Comments (13)
@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.
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.
@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.
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.
@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.
@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.
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.
Having the same issue, but only on non-debug builds.
from hermes.
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.
I build my app bundle for Play Store with Helmet and only shows the splash, after crash.
from hermes.
Should this issue be reopened? Fixing js is a workaround - it should just work.
@tmikov is there are version with a fix?
from hermes.
@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.
@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)
- simplifyBinOp in InstSimplify generates wrong result HOT 3
- The generator function's body is executed incorrectly when the next() method is not called HOT 1
- [Feature Request] Hello World application for JavaScript Http Server
- Async arrow functions are not supported, making 'show source' unusable inside them HOT 6
- An issues with with statements HOT 1
- Hermes should throw an exception when BigInts use unsigned shift HOT 2
- Hermes should throw an exception when Maxium BigInt size exceed HOT 1
- simplifySwitchInst in SimplifyCFG ignores negative zero HOT 1
- iOS App submission will require a privacy manifest and signature HOT 6
- Possible memory leak HOT 30
- Compile failure with optimized ASan builds HOT 4
- Thread 6: "Exception NSException * "Unhandled JS Exception: Error: invalid host, js engine: hermes" HOT 32
- Parser: improve error message when await is used in non-async functions or instead of async
- JSRangeErrorException setting maximumFractionDigits to 0 with Intl.NumberFormat currency style HOT 1
- Unreachable in ES6 is reachable. HOT 1
- Update documentation on using custom Hermes builds HOT 3
- Building Static Hermes on Windows HOT 4
- Problems finding libraries with fresh compile under windows HOT 3
- Conversion of large array to a Set seems slow HOT 3
- React Native & Hermes: Is Additional Code Obfuscation Beneficial? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hermes.