GithubHelp home page GithubHelp logo

Comments (13)

tarasvakulka avatar tarasvakulka commented on April 18, 2024 2

@dulinriley, problem was not in hermes, my method array sort worked incorrect and hermesvm throw error, I refactor my code and now my problem solved

from hermes.

jasonalmaturner avatar jasonalmaturner commented on April 18, 2024 2

It should be noted that there is a bug with the array sort function in Hermes. #95

I had an issue where my comparator callback function in an array sort was incorrect. JavaScript engines usually fallback to the default implementation in that case, but Hermes doesn't and gets stuck in an infinite loop. Pretty understandable bug on Hermes' part, especially considering how new it is. Fixing my comparator function solved the issue for me.

from hermes.

tmikov avatar tmikov commented on April 18, 2024 2

@tarasvakulka we realize that this is a problem and we are working on fixing it. Unfortunately it isn't a simple fix, but we will address it. Thank you for your understanding!

from hermes.

tarasvakulka avatar tarasvakulka commented on April 18, 2024 1

07-30 09:43:42.911 13712 13712 I crash_dump64: performing dump of process 13463 (target tid = 13604)
07-30 09:43:42.929 13712 13712 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-30 09:43:42.929 13712 13712 F DEBUG : Build fingerprint: 'Sony/H4113'
07-30 09:43:42.929 13712 13712 F DEBUG : Revision: '0'
07-30 09:43:42.929 13712 13712 F DEBUG : ABI: 'arm64'
07-30 09:43:42.929 13712 13712 F DEBUG : pid: 13463, tid: 13604, name: mqt_js >>> app.theTest <<<
07-30 09:43:42.930 13712 13712 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
07-30 09:43:42.930 13712 13712 F DEBUG : Cause: null pointer dereference
07-30 09:43:42.930 13712 13712 F DEBUG : x0 0000000000000000 x1 000000738ad80160 x2 0000000000000000 x3 000000739d66cb80
07-30 09:43:42.930 13712 13712 F DEBUG : x4 000000739d66cb71 x5 000000739d66cbe1 x6 726f67657461635f x7 617373656d202c79
07-30 09:43:42.930 13712 13712 F DEBUG : x8 0000000000000000 x9 000000000000002a x10 652073617720657a x11 2964656465656378
07-30 09:43:42.930 13712 13712 F DEBUG : x12 614d203d20656761 x13 7320706165682078 x14 000000738a000000 x15 ffffffffffffffff
07-30 09:43:42.930 13712 13712 F DEBUG : x16 000000738b475718 x17 000000743c4bdeb0 x18 0000000000000010 x19 000000738ad801f8
07-30 09:43:42.930 13712 13712 F DEBUG : x20 0000000000000001 x21 0000000000000000 x22 000000738b478c28 x23 000000738b2e0154
07-30 09:43:42.930 13712 13712 F DEBUG : x24 0000000000000028 x25 000000738ad83588 x26 000000738ad803a8 x27 000000738ad803b8
07-30 09:43:42.930 13712 13712 F DEBUG : x28 000000738ad80690 x29 000000738ad801e0
07-30 09:43:42.930 13712 13712 F DEBUG : sp 000000738ad80130 lr 000000738b3e21d0 pc 000000738b2e0170
07-30 09:43:43.038 25414 13715 E a : process name :com.cleanmaster.mguard:service , process importance : 125
07-30 09:43:43.042 13712 13712 F DEBUG :
07-30 09:43:43.042 13712 13712 F DEBUG : backtrace:
07-30 09:43:43.042 13712 13712 F DEBUG : #00 pc 000000000001a170 /data/app/app.theMovieExpert-yZdXfZiuMSKr5e0mIUWYuw==/lib/arm64/libhermes.so (facebook::hermes::detail::hermesFatalErrorHandler(void*, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator> const&, bool)+28)
07-30 09:43:43.042 13712 13712 F DEBUG : #01 pc 000000000011c1cc /data/app/app.theMovieExpert-yZdXfZiuMSKr5e0mIUWYuw==/lib/arm64/libhermes.so
07-30 09:43:43.042 13712 13712 F DEBUG : #2 pc 000000000011c0c4 /data/app/app.theMovieExpert-yZdXfZiuMSKr5e0mIUWYuw==/lib/arm64/libhermes.so
07-30 09:43:43.042 13712 13712 F DEBUG : #3 pc 00000000000f4fcc /data/app/app.theMovieExpert-yZdXfZiuMSKr5e0mIUWYuw==/lib/arm64/libhermes.so

from hermes.

dulinriley avatar dulinriley commented on April 18, 2024 1

@tarasvakulka can you explain why you closed the issue?
Is the problem gone?

If you can, please provide some context here about how it was resolved so that anyone in the future with this issue will know what they should do.

from hermes.

tarasvakulka avatar tarasvakulka commented on April 18, 2024 1

@jasonalmaturner You are right, this is bug of Hermes, I hope Hermes team fix this in future, because I spent a lot of time to find this problem in infinity loop if Hermes is on

from hermes.

dulinriley avatar dulinriley commented on April 18, 2024

The hermesFatalErrorHandler should log the message it received into Logcat. Are there any more lines in the log before the process was killed with SIGKILL?

from hermes.

eliaslecomte avatar eliaslecomte commented on April 18, 2024

Having the same issue, but only on non-debug builds.

from hermes.

Awaisqr avatar Awaisqr commented on April 18, 2024

I am facing this same issue, if hermes is disabled in android/build.gradle then my app works fine but if hermes is enabled then I get error after splash screen "maximum call stack reached, js engines hermes". Note: I have also run gradle clean

from hermes.

davidcort avatar davidcort commented on April 18, 2024

I build my app bundle for Play Store with Helmet and only shows the splash, after crash.

from hermes.

noway avatar noway commented on April 18, 2024

Should this issue be reopened? Fixing js is a workaround - it should just work.

@tmikov is there are version with a fix?

from hermes.

neildhar avatar neildhar commented on April 18, 2024

@noway Are you seeing infinite loops with inconsistent comparators in new versions of Hermes? The bug was fixed in 14685c8, which has been in Hermes since version 0.7.0

from hermes.

noway avatar noway commented on April 18, 2024

@neildhar I'm on version 0.4.3

  "name": "hermes-engine",
  "version": "0.4.3",

Using react-native 0.62.3. I guess I just need to upgrade. Thanks!

from hermes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.