Libgdx Android Game Fatal signal 11 (SIGSEGV) - android

I have developed a game using Libgdx. It stops randomly by giving Fatal signal 11(SIGSEGV) error. Sometimes it force closes and sometimes force closes and then automatically restarts. The logs printed during force close are:-
A/libc(3475): Fatal signal 11 (SIGSEGV) at 0x00000008 (code=1), thread 3534 (Thread-343)
I also keep on getting some logs during my game play from time to time.
04-27 09:04:18.750: D/dalvikvm(3475): Issue registerizing the trace in the backend.
04-27 09:04:18.750: I/dalvikvm(3475): Ignoring other issues and retrying without backend registerization
04-27 09:04:18.750: D/dalvikvm(3475): JIT_INFO: Retrying trace Lcom/badlogic/gdx/graphics/g2d/BitmapFontCache;translate, offset 40
04-27 09:12:39.410: D/dalvikvm(3475): JIT_INFO: Issues while compiling trace Ljava/util/Arrays;fill, offset 7
04-27 09:12:39.410: D/dalvikvm(3475): The trace provoked a spill.
04-27 09:12:39.410: I/dalvikvm(3475): Trying less registerization from 1 to 0
04-27 09:12:39.410: D/dalvikvm(3475): JIT_INFO: Retrying trace Ljava/util/Arrays;fill, offset 7
04-27 09:14:08.930: I/dalvikvm(3475): JIT_INFO: Overwriting association of v6:ecx with xmm0
04-27 09:18:30.610: D/dalvikvm(3475): JIT_INFO: Issues while compiling trace Ljava/util/Arrays;fill, offset 5
04-27 09:18:30.610: D/dalvikvm(3475): The trace provoked a spill.
04-27 09:18:30.610: I/dalvikvm(3475): Trying less registerization from 1 to 0
Please help me I am stuck and not able to find the cause of issue.

Related

Current AndroidStudio sample fails on phone due to runtime native library link error. Why?

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.

RenderScript No JNI_OnLoad found error

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.

Amazon-Android Registration Error(601): SERVICE_NOT_AVAILABLE

Today I tried to implement the Amazon push notification into my android app.
I followed this instruction: http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html
But at the third step when I start the "AndroidMobilePushApp" there comes no Registration ID in the LogCat there are just these lines:
10-25 20:39:44.313: D/dalvikvm(601): Not late-enabling CheckJNI (already on)
10-25 20:39:45.144: I/dalvikvm(601): threadid=3: reacting to signal 3
10-25 20:39:45.394: E/dalvikvm(601): Unable to open stack trace file '/data/anr/traces.txt': Is a directory
10-25 20:39:45.653: I/dalvikvm(601): threadid=3: reacting to signal 3
10-25 20:39:45.713: I/dalvikvm(601): Wrote stack traces to '/data/anr/traces.txt'
10-25 20:39:45.743: I/onResume(601): no missed messages
10-25 20:39:45.993: I/onResume(601): no missed messages
10-25 20:39:46.053: D/gralloc_goldfish(601): Emulator without GPU emulation detected.
10-25 20:39:52.413: I/Registration Error(601): SERVICE_NOT_AVAILABLE
I hope you can help me.
This means the GCM service is currently unavailable and should be retried. checkout How to fix Google Cloud Messaging Registration error: SERVICE_NOT_AVAILABLE?

Error initiating Equalizer,my app crashes sometimes

So i was trying to use equalizer but sometimes app crashes
Here are the necessary things to note
1) I am using sessionid 0;
2) App crashes when any other app is either using it,or has used it and i haven't restarted the phone since then
Strangely the line number which is causing the crash is not shown
here is the logcat
04-30 18:21:29.642: E/AudioEffect(31157): set(): AudioFlinger could not create effect, status: -38
04-30 18:21:29.642: E/AudioEffects-JNI(31157): AudioEffect initCheck failed -5
04-30 18:21:29.642: E/dalvikvm(31157): JNI ERROR (app bug): accessed stale global reference 0x1d2002b2 (index 172 in a table of size 172)
04-30 18:21:29.642: E/dalvikvm(31157): VM aborting
04-30 18:21:29.642: A/libc(31157): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 31157 (thermusicplayer)
I just used a different equalizer code and that helped
https://github.com/android/platform_frameworks_base/blob/master/media/java/android/media/audiofx/Equalizer.java

Application gets crashed and displays a Error in Thread(Fatal Signal)

In LogCat :
12-16 01:49:49.139: A/libc(790): Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 806 (Thread-93)
12-16 01:49:49.169: A/libc(790): Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 824 (Thread-112)
I wrote a code for creating Threads one by one when a button is clicked.It switches to multiple screens.
when i tap on button multiple time my app is closing automatically,how to resolve this issue?

Categories

Resources