We are using Vitamio in our project as a MediaPlayer. When we change target SDK to API level 23 it crashes.
Logcat is as follows:
10-10 22:12:04.858: E/Vitamio[4.2.1]Player: LOAD FFMPEG ERROR: dlopen failed: /data/data/com.project/libs/libffmpeg.so: has text relocations
10-10 22:12:04.864: E/Vitamio[4.2.1]Player: FIND_NAME_SYM vvo, render_yuv
10-10 22:12:04.869: A/libc(9372): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 9372
There is an issue about this problem in Vitamio's github page : https://github.com/yixia/VitamioBundle/issues/312
Is there any workaround for this problem?
Related
Its on an HTC Aria, running 2.2 (API 8)
https://en.wikipedia.org/wiki/HTC_Aria
The aria is an armv6 device that supports opengles 2
If you open up the latest Android Studio (im working on windows 7), then import the HelloGL2 sample, then simply try to run it on the above device, it will fail as soon as it tries to make a call into the native library.
Here is the log:
01-06 11:14:08.467 12771-12813/com.android.gl2jni D/dalvikvm: Trying to load lib /data/data/com.android.gl2jni/lib/libgl2jni.so 0x44c165d0
01-06 11:14:08.467 12771-12813/com.android.gl2jni I/dalvikvm: Unable to dlopen(/data/data/com.android.gl2jni/lib/libgl2jni.so): Cannot load library: link_image[1995]: failed to link libgl2jni.so
01-06 11:14:08.477 12771-12813/com.android.gl2jni W/dalvikvm: Exception Ljava/lang/UnsatisfiedLinkError; thrown during Lcom/android/gl2jni/GL2JNILib;.<clinit>
01-06 11:14:08.497 12771-12813/com.android.gl2jni W/dalvikvm: threadid=8: thread exiting with uncaught exception (group=0x40028a00)
01-06 11:14:08.517 95-121/? I/ActivityManager: Displayed activity com.android.gl2jni/.GL2JNIActivity: 9823 ms (total 2027818 ms)
01-06 11:14:08.567 12771-12813/com.android.gl2jni E/AndroidRuntime: FATAL EXCEPTION: GLThread 9
java.lang.ExceptionInInitializerError
at com.android.gl2jni.GL2JNIView$Renderer.onSurfaceChanged(GL2JNIView.java:332)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1327)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
Caused by: java.lang.UnsatisfiedLinkError: Library gl2jni not found
at java.lang.Runtime.loadLibrary(Runtime.java:461)
at java.lang.System.loadLibrary(System.java:557)
at com.android.gl2jni.GL2JNILib.<clinit>(GL2JNILib.java:24)
at com.android.gl2jni.GL2JNIView$Renderer.onSurfaceChanged(GL2JNIView.java:332)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1327)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
01-06 11:14:08.607 95-164/? W/ActivityManager: Force finishing activity com.android.gl2jni/.GL2JNIActivity
This sample works on the 3 other devices i've tried (Galaxy s5, Galaxy J1, Nexus s)
The line: 'Unable to dlopen(/data/data/com.android.gl2jni/lib/libgl2jni.so): Cannot load library: link_image[1995]: failed to link libgl2jni.so' is probably key. I tried loading the library explicitly using system.loadlibrary, but the same problem happens on that call.
I think it might be something to do with the processor being armv6?
The sample is configured to do 'armeabi' though.
On Zooming In and Out of the Skmap in android application, I get this error in logcat. How do I resolve this issue?
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x2ef43a49 in tid 22639 (GLThread 1245)
After trying to load WebArchievs for some sites I get this error.
06-12 11:03:36.604 6257-6257/<packageName> D/﹕ Page started file:///data/data/<packageName>/files/savedData3.mht
06-12 11:03:36.644 6257-6281/<packageName> V/RenderScript﹕ Application requested CPU execution
06-12 11:03:36.649 6257-6281/<packageName> V/RenderScript﹕ 0xb8ec6f88 Launching thread(s), CPUs 2
06-12 11:03:36.662 6257-6332/<packageName> E/chromium﹕ ### WebView Version 43.0.2357.121 (code 2357121)
06-12 11:03:36.662 6257-6332/<packageName> A/libc﹕ Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 6332 (Thread-36203)
Saving WebArchiev:
getWebView().saveWebArchive(<pathToFile>);
Loading WebArchiv:
getWebView().loadUrl(<pathToFile>);
I am using renderscript library in my project and I perfectly run my apk on Samsung S4 I9500. But when I tried this in other phones I get crash.
No JNI_OnLoad found in /system/lib/libRSSupport.so 0x4185f0f0, skipping init
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti E/dalvikvm﹕ ERROR: couldn't find native method
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti E/dalvikvm﹕ Requested: Landroid/support/v8/renderscript/RenderScript;._nInit:()V
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti E/JNIHelp﹕ RegisterNatives failed for 'android/support/v8/renderscript/RenderScript', aborting
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti A/libc﹕ Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 8994
Any help appreciated. Thanks.
You forgot to include libRSSupport.so + the other native libraries in your .apk. This is attempting to load the system version of the compatibility, library, which will not work with your app.
android application random crash in Galaxy S4 and Nexus 5. On other device is working file.
The crash happen mostly when I back pressed or finish the activity.
And I got the error in log
E/ViewRootImpl( 7168): sendUserActionEvent() mView == null
W/ApplicationPackageManager( 7168): getCSCPackageItemText()
W/Resources( 7168): Converting to int: TypedValue{t=0x3/d=0xcd6 "60" a=3 r=0x7f090170}
W/Resources( 7168): Converting to int: TypedValue{t=0x3/d=0xcd5 "500" a=3 r=0x7f09016f}
W/Resources( 7168): Converting to int: TypedValue{t=0x3/d=0xcd7 "30" a=3 r=0x7f090171}
F/libc ( 7168): invalid address or address of corrupt block 0x73880968 passed to dlfree
D/dalvikvm( 7168): [SWE] ### S.LSI JIT optimization list BEGIN ###
D/dalvikvm( 7168): [SWE] ### S.LSI JIT optimization list END ###
F/libc ( 7168): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 7183 (AsyncTask #1)
D/dalvikvm( 7770): Late-enabling CheckJNI
I/dalvikvm( 7770): Enabling JNI app bug workarounds for target SDK version 9...
can any one help me on this issue , how to resolve or any workaround ...