Skip to content
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

App crashes on every device, but works on emulator #18

Closed
ghost opened this issue Jun 12, 2019 · 8 comments
Closed

App crashes on every device, but works on emulator #18

ghost opened this issue Jun 12, 2019 · 8 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jun 12, 2019

I am using this library on my app, and it works totally fine on any android emulator, with any android sdk version over 17 ,but on a real device, it just crashes, it doesnt show an error, it just closes... and i have tested it, and it is not because i am calling a component the wrong way, it crashes with just simply installing it on my react native project. I tested the app on many android devices. And yes i am doing all the instructions specified. And yes, i already test the app without this library, and works totally fine. THE ONLY different thing that i did was that i put the new ImageFilterKitPackage() on my mainapplication.java rather than mainactivity.java

@DYuusha
Copy link

DYuusha commented Jun 12, 2019

i have the same problem, the thing is, that i don't know how to get the crashes error, because i can't initialize the debug in my phone, i am using android.

@csto
Copy link

csto commented Jun 12, 2019

Same problem here. I created a new react native app and ran npm i react-native-image-filter-kit then react-native link react-native-image-filter-kit. I then set the minSdkVersion to 17. The new app will crash on opening. If I unlink this package, the app no longer crashes. Any ideas?

@iyegoroff
Copy link
Owner

Please specify your react-native, react-native-image-filter-kit and gradle versions and provide a crashlog or reproducible example.

@csto
Copy link

csto commented Jun 14, 2019

You can view my test app at: https://github.com/csto/ImageKitDemo

[email protected]
[email protected]
gradle version is 3.4.0

I also tried older versions of all 3 without any luck.

It have confirmed that this runs fine on a Samsung Galaxy S5 (Android 6.0.1), but crashes on startup on a Samsung Galaxy S8 (Android 9) or Google Pixel XL (Android 8.1.0).

It crashes 100% of the time before startup on the Pixel XL and S8, so there are no logs from Metro or running react-native log-android.

Running adb libcat *:E against the Pixel XL I got:

06-14 10:36:59.405  1830  1833 E ANDR-PERF-OPTSHANDLER: Warning: Resource [2, 0] not supported for core 1. Instead use resource for core 0
06-14 10:36:59.405  1830  1833 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [2, 2, 0]
06-14 10:36:59.450   882  2124 E ActivityManager: applyOptionsLocked: Unknown animationType=0
06-14 10:36:59.833 22968 22989 E SoLoader: Error when loading lib: dlopen failed: "/data/data/com.imagekitdemo/lib-main/libc++_shared.so" is 64-bit instead of 32-bit lib hash: 7ccd91485c9bd99f2c675e417db127e3 search path is /data/app/com.imagekitdemo-ESpuf5I_qrZ3FWtJV_Xjig==/lib/arm
06-14 10:36:59.834 22968 22989 E SoLoader: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.imagekitdemo/lib-main/libc++_shared.so" is 64-bit instead of 32-bit
06-14 10:36:59.834 22968 22989 E SoLoader: couldn't find DSO to load: libfb.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.imagekitdemo/lib-main/libc++_shared.so" is 64-bit instead of 32-bit
06-14 10:36:59.834 22968 22989 E SoLoader: couldn't find DSO to load: libreactnativejni.so caused by: couldn't find DSO to load: libfb.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.imagekitdemo/lib-main/libc++_shared.so" is 64-bit instead of 32-bit
06-14 10:36:59.836 22968 22989 E AndroidRuntime: FATAL EXCEPTION: create_react_context
06-14 10:36:59.836 22968 22989 E AndroidRuntime: Process: com.imagekitdemo, PID: 22968
06-14 10:36:59.836 22968 22989 E AndroidRuntime: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libreactnativejni.so caused by: couldn't find DSO to load: libfb.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.imagekitdemo/lib-main/libc++_shared.so" is 64-bit instead of 32-bit
06-14 10:36:59.836 22968 22989 E AndroidRuntime: 	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:738)
06-14 10:36:59.836 22968 22989 E AndroidRuntime: 	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:591)
06-14 10:36:59.836 22968 22989 E AndroidRuntime: 	at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:529)
06-14 10:36:59.836 22968 22989 E AndroidRuntime: 	at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:484)
06-14 10:36:59.836 22968 22989 E AndroidRuntime: 	at com.facebook.react.bridge.ReactBridge.staticInit(ReactBridge.java:31)
06-14 10:36:59.836 22968 22989 E AndroidRuntime: 	at com.facebook.react.bridge.NativeMap.<clinit>(NativeMap.java:19)
06-14 10:36:59.836 22968 22989 E AndroidRuntime: 	at com.facebook.react.jscexecutor.JSCExecutorFactory.create(JSCExecutorFactory.java:25)
06-14 10:36:59.836 22968 22989 E AndroidRuntime: 	at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:944)
06-14 10:36:59.836 22968 22989 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:764)

@csto
Copy link

csto commented Jun 14, 2019

Also, I updated Android Studio to the newest version the day before this crash started.

@iyegoroff
Copy link
Owner

@csto, I can't reproduce this crash, probably it is somehow related only to 64-bit devices. Maybe you can find some workarounds here - facebook/react-native#2814

@iyegoroff iyegoroff added help wanted Extra attention is needed bug Something isn't working labels Jun 14, 2019
@iyegoroff
Copy link
Owner

fixed

@iyegoroff iyegoroff removed the help wanted Extra attention is needed label Jul 13, 2019
@ghost
Copy link

ghost commented Jan 3, 2023

I have same issue here

how I can solu this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants