-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[expo-gl] Android app crash after libexpo-gl.so loaded #7575
Comments
hi, are you using hermes or JSC ? |
@wkozyra95 Yes, you have my build.gradle here : https://github.com/alenoir/tesorflowapp/blob/master/android/app/build.gradle |
The crash happens when context id is converted into string https://github.com/expo/expo/blob/master/packages/expo-gl-cpp/cpp/EXGLContext.cpp#L52 I don't see how this code could break, I suspect that there is a bug in the implementation of standard library distributed with react-native. You could try upgrading to the latest react-native or downgrading. Alternatively, it could be caused by |
Same problem here, when executing tf.ready() with rn-webgl backend.
|
Hi
|
@wkozyra95 The crash apparently occurs during the createContextAsync function execution and I'm unable to get gl object to set the enableLogging to true. Or am I doing it wrong? Just adding that line causes an error as gl object doesn't exist. |
I'm running into this issue as well, although I'm trying out gl-react/gl-react-native which uses expo-gl and expo-gl-cpp as dependencies, both 8.1.0. My logcat shows the same fatal signal when loading libexpo-gl.so. EDIT: After looking at the versions of libexpo-gl.so in the repository, there was a commit 20 days ago where all of the .so files show drastically reduced file sizes, but only one line of C++ was added. Before that, the binaries were updated a year ago, and I can confirm those are the versions in my project. Perhaps the binaries haven't been updated for distribution since then? I'm not familiar with the code/repo, so I could be mistaken. |
if this is the same issue as @alenoir, then it's unrelated to recent changes, I tested it with older @jbrew138 there were more changes added before, but so files were not committed at the time. |
same there |
One more question. Is the environment an emulator or a real device? You can try my repo. Remember to use |
@wkozyra95 I created a fresh react-native project using 0.61.4 and it's still triggering this issue. For context, I'm testing it on both a Galaxy S7 and S9. I believe both have arm64 CPUs, if the issue is on an abi level. |
@wood After downgrading to 0.61.4
@jbrew138 can you check if those changes fix the issue for you? |
@wkozyra95 Thanks for your follow up. May I know if you are using real device? As I am using the emulator, I still got the error
And this is my virtual device configuration |
I tested on the same emulator. You can try switching option |
@wkozyra95 Tried to remove flipper as you described, but the issue persists. Nothing's changed, the error is the same. I'm testing on a Galaxy S8 |
|
|
@wkozyra95 Actually after fresh creating a new project with react-native 0.61.4 the crash no longer occurs (Without removing flipper). |
@wkozyra95 I am using the latest mac mini 2018. I think it supports OpenGL ES 3.0. Anyway as you have said it worked. I trust you. Again thank you so much |
I have some update. As I forgot to downgrade to 0.61.4, it did not work. Now it works on emulator. @wkozyra95 Which side is responsible for getting 0.62.2 work? |
FYI: @LevanSanadiradze I can get 0.61.5 work as well |
I ran into an issue where npm was automatically upgrading to 0.62.2. After ensuring that it downgraded to 0.61.4 and rebuilding, it started working. Flipper was only added as of 0.62 so I didn't have to edit anything else. As an experiment I tried preventing flipper from being added to my 0.62.2 copy (including removing the initializeFlipper function in MainApplication.java, and ReactNativeFlipper.java from app/src/debug/...), but it still crashed. |
Flipper causes crash with expo-gl. See expo/expo#7575
Could be related to #7623 |
Seems to not be compatible with |
|
^ Small correction because |
This seems to be happening again with RN @ |
Thanks for the report @StampixSMO. We'll investigate that and release a new version soon as the SDK45 release is coming 😉 |
🐛 Bug Report
Environment
Target : React Native Android
Steps to Reproduce
Launch App
Expected Behavior
No crash
Actual Behavior
App crash after execution of
GLView.createContextAsync();
orawait tf.ready();
In Logcat :
Reproducible Demo
Repo here : https://github.com/alenoir/tesorflowapp
The text was updated successfully, but these errors were encountered: