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

NativeLibraryLoader.load (java.lang.UnsatisfiedLinkError) #525

Open
epegasus opened this issue Nov 16, 2023 · 8 comments
Open

NativeLibraryLoader.load (java.lang.UnsatisfiedLinkError) #525

epegasus opened this issue Nov 16, 2023 · 8 comments

Comments

@epegasus
Copy link

I'm facing this crash, reported on firebase-crashlytics.

Device Details

android 7, 8, 11
transsion, oppo

Trace

Fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library "libCGE.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
at java.lang.System.loadLibrary(System.java:1664)
at org.wysaid.nativePort.NativeLibraryLoader.load(NativeLibraryLoader.java:15)
at org.wysaid.nativePort.CGEImageHandler.(CGEImageHandler.java:16)
at org.wysaid.view.ImageGLSurfaceView.onSurfaceCreated(ImageGLSurfaceView.java:308)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1549)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1280)

@wysaid
Copy link
Owner

wysaid commented Nov 21, 2023

I'm not facing this problem.
Have you checked your lib?
Provide more details about your devices?

@ferhatozcelik
Copy link

ferhatozcelik commented Aug 15, 2024

Process: com.app, PID: 4895
                                                                                                    java.lang.UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/data/app/~~-T-M59gvJEjRDcL1kchX0Q==/com.app-534UeA9JG8li7Q7f0EZUaA==/base.apk!/lib/arm64-v8a/libCGE.so" (new hash type from the future?)
at java.lang.Runtime.loadLibrary0(Runtime.java:1081)
                                                                                                    	at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
                                                                                                    	at java.lang.System.loadLibrary(System.java:1765)
                                                                                                    	at org.wysaid.nativePort.NativeLibraryLoader.load(NativeLibraryLoader.java:15)
                                                                                                    	at org.wysaid.nativePort.CGENativeLibrary.<clinit>(CGENativeLibrary.java:18)
                                                                                                    	at com.app.activities.ImageEditActivity.onCreate(ImageEditActivity.java:197
```)      

**Device**
Pixel 8 API 35 (Android Studio Emulator)                                                                                                      
                                                                                            
                                                                                                                                                                                               
                                                                                                    
                                                                                                    

@wysaid
Copy link
Owner

wysaid commented Aug 16, 2024

Process: com.app, PID: 4895
                                                                                                    java.lang.UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/data/app/~~-T-M59gvJEjRDcL1kchX0Q==/com.app-534UeA9JG8li7Q7f0EZUaA==/base.apk!/lib/arm64-v8a/libCGE.so" (new hash type from the future?)
at java.lang.Runtime.loadLibrary0(Runtime.java:1081)
                                                                                                    	at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
                                                                                                    	at java.lang.System.loadLibrary(System.java:1765)
                                                                                                    	at org.wysaid.nativePort.NativeLibraryLoader.load(NativeLibraryLoader.java:15)
                                                                                                    	at org.wysaid.nativePort.CGENativeLibrary.<clinit>(CGENativeLibrary.java:18)
                                                                                                    	at com.app.activities.ImageEditActivity.onCreate(ImageEditActivity.java:197
```)      

**Device**
Pixel 8 API 35 (Android Studio Emulator)                                                                                                      
                                                                                            
                                                                                                                                                                                               
                                                                                                    
                                                                                                    

You're using emulator, please check if you are using the right arch of libs.

@ferhatozcelik
Copy link

ferhatozcelik commented Aug 16, 2024

Process: com.app, PID: 4895
                                                                                                    java.lang.UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/data/app/~~-T-M59gvJEjRDcL1kchX0Q==/com.app-534UeA9JG8li7Q7f0EZUaA==/base.apk!/lib/arm64-v8a/libCGE.so" (new hash type from the future?)
at java.lang.Runtime.loadLibrary0(Runtime.java:1081)
                                                                                                    	at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
                                                                                                    	at java.lang.System.loadLibrary(System.java:1765)
                                                                                                    	at org.wysaid.nativePort.NativeLibraryLoader.load(NativeLibraryLoader.java:15)
                                                                                                    	at org.wysaid.nativePort.CGENativeLibrary.<clinit>(CGENativeLibrary.java:18)
                                                                                                    	at com.app.activities.ImageEditActivity.onCreate(ImageEditActivity.java:197
```)      

**Device**
Pixel 8 API 35 (Android Studio Emulator)                                                                                                      
                                                                                            
                                                                                                                                                                                               
                                                                                                    
                                                                                                    

You're using emulator, please check if you are using the right arch of libs.

maven { url 'https://maven.wysaid.org/' }

// All arch: armeabi-v7a, arm64-v8a, x86, x86_64 without video module (no ffmpeg)
implementation 'org.wysaid:gpuimage-plus:3.0.0-min'

Yes, I checked API 33 and 34, there is no problem, but 35 also causes crash. Could you please look at this issue in detail, can you check the necessary conditions etc. for API 35, thank you.

image image image

@wysaid
Copy link
Owner

wysaid commented Aug 19, 2024

Process: com.app, PID: 4895
                                                                                                    java.lang.UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/data/app/~~-T-M59gvJEjRDcL1kchX0Q==/com.app-534UeA9JG8li7Q7f0EZUaA==/base.apk!/lib/arm64-v8a/libCGE.so" (new hash type from the future?)
at java.lang.Runtime.loadLibrary0(Runtime.java:1081)
                                                                                                    	at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
                                                                                                    	at java.lang.System.loadLibrary(System.java:1765)
                                                                                                    	at org.wysaid.nativePort.NativeLibraryLoader.load(NativeLibraryLoader.java:15)
                                                                                                    	at org.wysaid.nativePort.CGENativeLibrary.<clinit>(CGENativeLibrary.java:18)
                                                                                                    	at com.app.activities.ImageEditActivity.onCreate(ImageEditActivity.java:197
```)      

**Device**
Pixel 8 API 35 (Android Studio Emulator)                                                                                                      
                                                                                            
                                                                                                                                                                                               
                                                                                                    
                                                                                                    

You're using emulator, please check if you are using the right arch of libs.

maven { url 'https://maven.wysaid.org/' }

// All arch: armeabi-v7a, arm64-v8a, x86, x86_64 without video module (no ffmpeg) implementation 'org.wysaid:gpuimage-plus:3.0.0-min'

Yes, I checked API 33 and 34, there is no problem, but 35 also causes crash. Could you please look at this issue in detail, can you check the necessary conditions etc. for API 35, thank you.

image image image

Get, I will try this.

@wysaid
Copy link
Owner

wysaid commented Aug 19, 2024

image hello, @ferhatozcelik , I tried with my demo, the problem did not come. Can you please give me more details or if you can produce this problem on my demo?

@qinRight
Copy link

image hello, @ferhatozcelik , I tried with my demo, the problem did not come. Can you please give me more details or if you can produce this problem on my demo?
你好,我尝试了我的演示,问题没有出现。您能否给我更多详细信息,或者您是否可以在我的演示中产生这个问题?

大师兄,我的也有这个问题,模拟器要选这个16kb page size,demo就会崩溃
WX20241118-104011@2x

@qinRight
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants