GLView crashing in bare project
See original GitHub issueEnvironment
Expo CLI 2.11.9 environment info: System: OS: Windows 10 Binaries: Yarn: 1.5.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.1.0.0 AI-173.4907809
Target
A real Android Pie device
Steps to Reproduce
expo init --template bare-minimum
yarn add expo-gl
,yarn add expo-gl-cpp
- Adding
GLPackage
to MainApplication.java - Adding
GLView
fromexpo-gl
to the app component yarn android
Expected Behavior
App should not crash and show at least a black box.
Actual Behavior
App crashes and closes immediately after opening. Just got a very short glimpse at the black box. This happens always - even if I don’t pass the onContextCreate
param or trying to paint a black box on the canvas.
The debug log from Android Studio says:
E/SoLoader: couldn’t find DSO to load: libexpo-gl.so caused by: dlopen failed: “/data/data/com.chllng/lib-main/libexpo-gl.so” is 32-bit instead of 64-bit E/AndroidRuntime: FATAL EXCEPTION: mqt_js Process: com.chllng, PID: 16188 java.lang.UnsatisfiedLinkError: couldn’t find DSO to load: libexpo-gl.so caused by: dlopen failed: “/data/data/com.chllng/lib-main/libexpo-gl.so” is 32-bit instead of 64-bit
If I add ndk.abiFilters "armeabi-v7a", "x86"
, this error goes, but I got:
A/libc: Fatal signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x2e in tid 25832 (mqt_js), pid 25760 (com.chllng)
Any ideas how to solve this?
Issue Analytics
- State:
- Created 5 years ago
- Comments:29 (4 by maintainers)
Hello there, I spent some time removing all the company-specific code and created a demo. Repo can be seen here: https://github.com/reimertz/expo-three-demo
You are a life saver!!! I’m not really sure what was much different from my project to yours other than I started with an Expo Bare project, but yours was clearly a conversion from a basic React Native project. I took that path and now everything seems to be working, which leads me to believe the issue is with the Expo package itself.
Thank you so much for providing that repo, @reimertz !