-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React native 0.59.x crashes on Android without any error message #24260
Comments
@MahdiGhajary - if you look into the output of logcat you'll most probably see the exact reason for the crash. There is no such thing "no error message". We have our app running on .59 and it works fine. If you want someone to help you - please provide the output of the crash report in logcat. |
@compojoom actually I did look at output of logcat but I couldn't find anything useful there. |
Try to print the logs without filtering them |
@zaguiini What do you mean? (if you mean I should have run just |
Run |
@zaguiini Hundreds of lines of text were logged but there wasn't anything useful or special. could you reproduce this issue on your own machine or it's something that I'm just facing on my device? |
I'm not getting this error, unfortunately... |
@compojoom I am also experiencing this issue in android after I have migrated to RN 0.59 and added abi filters to support for 64bit android support Same issue is coming after I try it with a fresh RN project with v0.59 |
Looks like there's a |
Can you guys try with a clean rn project? Is it working there? If it is, then it is a misconfiguration with the project you have. We are running with rn .59 for a week now and have 0 crash reports. |
Please note this issue tracker is not a help forum (as stated in issue template). We recommend using StackOverflow where there are community incentives to help others or our Discord channel for questions. We can reopen this once there is a concrete bug report and this is a real issue, or even better: please send us a PR with a fix! |
@compojoom as I said, it's reproducible just by creating a fresh RN project. maybe it's just reproducible on Windows machines or android 7.0 or maybe just physical Galaxy S7. all I know is that I didn't have this issue on 0.58.6 or Expo SDK 32. |
@MahdiGhajary - then do rn init, create the project, push it to github, give us a link and we'll try to run your project to confirm. RN init works fine on my end and the produced app doesn't crash. |
@compojoom @cpojer @MahdiGhajary The crash is occurring when I open the app and long press on the text for 2-3 seconds, sometimes the app hangs up but doesn't crash. As mentioned earlier as well, the app is not crashing in other android devices as I noticed till now, that is why it could be related to some specific device architecture configuration.Crash log is the same as attached previously. Note: However, app does not crash in |
mine does not crash....tested with latest version |
Crashes on physical galaxy s7. |
@hramos @mkonicek As of now we can conclude that this seems to be an issue with latest RN 0.59 release, affecting android builds running on |
This is still happening on RN 59.4, Galaxy S7, Android 6.0. Removing Edit: added relevant bits from logcat ⬇️
|
It seems all they care is closing issues and keeping them below 400 even though lots of them are still relevant. @Fouppy |
@Fouppy That still mentions arm64 throughout the stack trace. Did you fully rebuild the app after removing those ABIs from build.gradle? The 64 bit build appears to be causing all sorts of issues for us. From segfaults to seemingly random NullPointerExceptions that never occurred before and cannot be reproduced, specifically on Galaxy S7 and Galaxy Tab S2. Both device variants run on Cortex-A53 (Exynos) CPUs. |
@wbercx This logcat was extracted before, but the crash still occured |
Important note: As described on this StackOverflow solution, just removing
|
@ahanriat Yep, that's what I did :) To no avail. |
Got the same crash using latest react-native, and fresco version |
How did you downgrade fresco version ? what file should I change ? |
This is an issue for me too. |
@chilugen - just upgrading doesn't work for all Android devices. |
@jacquesdev what error ? |
@chilugen |
@chilugen - I am on that version, see the comment above, #24260 (comment), it's not even fixed yet in 0.60.5. For sure upgrading to 0.59.10 will fix it on some Android phones, but not all of them. |
@jacquesdev Yup, since the comment, I've seen some folks do that with v8, and it looks like it's working for them too. I can't speak from personal experience since I used Hermes (which does require an upgrade). |
@j-wang I’m using Hermes too but it seems that the performance is very slow compare to without it. Anyway I upgraded to 0.60.5 and I have noticed that the performance is slower than before. Did you fix this issue? |
Hmm, it likely depends on your exact application and what you're doing. For ours, it's actually marginally faster. Well, on production at least. On development, it's now almost unusably slow for certain phones (including higher-end ones). |
I have two apps, one at react native 0.59.10 and the other at 0.60.5. I can't use Hermes or v8 cause there is a lib (realm in this case) that only uses JavaScript Core. The problem for me is that I can't go back cause of Google 64 bits mandatory. Waiting for the lib owners to integrate Hermes or V8, and hoping that this will solve those crashes. I already tried so many things, and change this lib will affect the whole project, at a level that will the worth for me to create a new one instead. |
@RenanSanguinete You can build for 64-bit on 0.59.x |
@wkoutre The app still crashes on 64-bits on 0.59.x in some devices as Galaxy Samsung S7 |
Well, it didn't for the app I'm currently working on, but there are obviously many complexities to consider regarding this on a per-app basis. |
still the error persists in samsung s7 with RN 0.59? |
I'm on RN 0.60 and still having the issue. |
I am also facing the same issue across for all android 6.0 version. not for lower ones and higher ones |
Hi My app is crashing only in production build |
I was able to fix for my app using kind of a workaround. used |
Here's a fix if your issues are related to JSC on React 0.59 (#24261 (comment)) |
react 61.4 still crashes on random devices. (huawei and Lg mostly) |
Update the react version to react 61.5 ..then it will work fine |
I have an error using
seems that the bundle is not able to read the component ? The error is the same using: Please help. |
I'm in 61.5 still crashing. |
i faced the same issue |
This problem may be related to react-native-screens. Please try. It worked for me. Add the following two lines to the dependencies section in android/app/build.gradle. implementation 'androidx.appcompat:appcompat:1.1.0-rc01' |
Thanks. It worked in my case |
two easy steps solved my problem... open android studio and remove offline bundle from src/main/assest..(** if any) |
🐛 Bug Report
RN 0.59 isn't stable on Android. if you spend 20 seconds wandering around in your app, it will crash and stop working with no error message whatsoever.
I have to add I didn't face this issue on Expo SDK 32 or RN v0.58.6.
To Reproduce
react-native init
react-native run-android
and use the Code Example as your App class.
now just type a few words in TextInput and then remove some letters and again type something...; it takes less than 5 seconds to crash without any error message.
Expected Behavior
just to work in a stable manner.
Code Example
Environment
React Native Environment Info:
System:
OS: Windows 10
CPU: (8) x64 Intel(R) Core(TM) i7-4702MQ CPU @ 2.20GHz
Memory: 913.58 MB / 5.76 GB
Binaries:
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5056338
Android 7.0 (real device: Samsung S7)
React Native v0.59.3
The text was updated successfully, but these errors were encountered: