question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GLView crashing in bare project

See original GitHub issue

Environment

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

  1. expo init --template bare-minimum
  2. yarn add expo-gl, yarn add expo-gl-cpp
  3. Adding GLPackage to MainApplication.java
  4. Adding GLView from expo-gl to the app component
  5. 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:closed
  • Created 5 years ago
  • Comments:29 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
reimertzcommented, Oct 22, 2019

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

demo

2reactions
chalarliecommented, Oct 25, 2019

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 !

Read more comments on GitHub >

github_iconTop Results From Across the Web

ErrorRecovery - Expo Documentation
If your project crashes in production as a result of a fatal JS error, Expo will reload your project. If you've set these...
Read more >
React native project crashing with Redux Toolkit
I'm using an Expo Bare Workflow setup with my React Native App. I followed this guide EXACTLY ...
Read more >
React-Native and WebGL without Expo | by Steve Liles | Medium
Starting a new React-Native project recently I was quite surprised to ... but when you try to use a GLView your app will...
Read more >
expo-gl | Yarn - Package Manager
Provides GLView that acts as OpenGL ES render target and gives GL context object implementing WebGL 2.0 ... Installation in managed Expo projects....
Read more >
expo-analytics-segment - NPM Package Versions - Socket
If you would like to collect the IDFA, you must be in the bare workflow. ... in Android test flavors if the src/test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found