• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android ANR Input dispatching timed out

Fiersking

Member
hi! i have a lot of anr on my last game sometime above the google limit.

did someone know what to do to get rid of it ?

Thanks
 

Mool

Member
We need more infos, like this:anr1_1x.PNG

YOu need to open all tabs and then look for libyoyo.so -> there u can mostly see the problem of the anr
 

rwkay

GameMaker Staff
GameMaker Dev.
We need more infos, like this:View attachment 43337

YOu need to open all tabs and then look for libyoyo.so -> there u can mostly see the problem of the anr
In that example the problem is in the cvs_to_grid script within the game... you need to debug what is happening in there (looks like it is trying to do a += on a string that is pointing at something invalid), this may or may not be an engine problem but I would start by debugging your own code.

Russell
 

Fiersking

Member
great ! thanks to all of you i'am gonna get this info and paste it here :)


>Bugs :
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***


backtrace:
#00 pc 000000000045977c /system/lib/egl/libGLES_mali.so
#00 pc 000000000047de98 /system/lib/egl/libGLES_mali.so
#00 pc 000000000047df44 /system/lib/egl/libGLES_mali.so
#00 pc 000000000047cbf4 /system/lib/egl/libGLES_mali.so
#00 pc 000000000047ba70 /system/lib/egl/libGLES_mali.so
#00 pc 000000000003d971 /system/lib/libhwui.so
#00 pc 000000000003f2af /system/lib/libhwui.so
#00 pc 000000000001cd23 /system/lib/libhwui.so
#00 pc 000000000001e8a9 /system/lib/libhwui.so
#00 pc 0000000000021363 /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+62)
#00 pc 00000000000102dd /system/lib/libutils.so (android:🧵:_threadLoop(void*)+112)
#00 pc 0000000000060d1f /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+70)
#00 pc 00000000000406e3 /system/lib/libc.so (__pthread_start(void*)+30)
#00 pc 000000000001a0e9 /system/lib/libc.so (__start_thread+6)
**************************************************************************************************************************************

backtrace:
#00 pc 000000000045a78c /system/lib/egl/libGLES_mali.so (eglp_swap_buffers+2296)
#00 pc 0000000000015f13 /system/lib/libEGL.so (eglSwapBuffersWithDamageKHR+326)
#00 pc 000000000001f6d1 /system/lib/libhwui.so
#00 pc 000000000001cd7b /system/lib/libhwui.so
#00 pc 000000000001e8a9 /system/lib/libhwui.so
#00 pc 0000000000021363 /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+62)
#00 pc 00000000000102dd /system/lib/libutils.so (android:🧵:_threadLoop(void*)+112)
#00 pc 0000000000060d1f /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+70)
#00 pc 00000000000406e3 /system/lib/libc.so (__pthread_start(void*)+30)
#00 pc 000000000001a0e9 /system/lib/libc.so (__start_thread+6)

*****************************************************************************************************************************************
backtrace:
#00 pc 00000000000431d4 /system/lib/libc.so (tgkill+12)
#00 pc 0000000000040de1 /system/lib/libc.so (pthread_kill+32)
#00 pc 000000000001c7e7 /system/lib/libc.so (raise+10)
#00 pc 0000000000019a65 /system/lib/libc.so (__libc_android_abort+34)
#00 pc 0000000000017600 /system/lib/libc.so (abort+4)
#00 pc 00000000000094c3 /system/lib/libcutils.so (__android_log_assert+86)
#00 pc 000000000001f303 /system/lib/libhwui.so
#00 pc 000000000001c89f /system/lib/libhwui.so
#00 pc 000000000001cba3 /system/lib/libhwui.so
#00 pc 000000000001e6a9 /system/lib/libhwui.so
#00 pc 000000000001e83b /system/lib/libhwui.so
#00 pc 0000000000021363 /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+62)
#00 pc 00000000000102dd /system/lib/libutils.so (android:🧵:_threadLoop(void*)+112)
#00 pc 0000000000060d1f /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+70)
#00 pc 00000000000406e3 /system/lib/libc.so (__pthread_start(void*)+30)
#00 pc 000000000001a0e9 /system/lib/libc.so (__start_thread+6)
***************************************************************************************************************************************
In those& bugs i can't see any gml stuff ... maybe system bugs ?

ANR :

#00 pc 0000000000041d08 /system/lib/libc.so (__pselect6+20)
#00 pc 000000000001c18d /system/lib/libc.so (select+60)
#00 pc 000000000000a50d /system/lib/libjavacrypto.so (???)
#00 pc 000000000000b09f /system/lib/libjavacrypto.so (???)
#00 pc 00000000004b247f /system/framework/arm/boot.oat (Java_com_android_org_conscrypt_NativeCrypto_SSL_1do_1handshake__JLjava_io_FileDescriptor_2Lcom_android_org_conscrypt_NativeCrypto_00024SSLHandshakeCallbacks_2IZ_3B_3B+210)
at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake (Native method)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake (OpenSSLSocketImpl.java:353)
at com.android.okhttp.internal.http.SocketConnector.connectTls (SocketConnector.java:212)
at com.android.okhttp.Connection.connect (Connection.java:1324)
at com.android.okhttp.Connection.connectAndSetOwner (Connection.java:1412)
at com.android.okhttp.OkHttpClient$1.connectAndSetOwner (OkHttpClient.java:131)
at com.android.okhttp.internal.http.HttpEngine.nextConnection (HttpEngine.java:481)
at com.android.okhttp.internal.http.HttpEngine.connect (HttpEngine.java:462)
at com.android.okhttp.internal.http.HttpEngine.sendRequest (HttpEngine.java:368)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute (HttpURLConnectionImpl.java:476)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect (HttpURLConnectionImpl.java:118)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream (HttpURLConnectionImpl.java:249)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream (DelegatingHttpsURLConnection.java:218)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream (HttpsURLConnectionImpl.java:25)
at com.gameanalytics.sdk.http.GAHTTPApi.sendEventsInArray (GAHTTPApi.java:355)
at com.gameanalytics.sdk.events.GAEvents.processEvents (GAEvents.java:202)
at com.gameanalytics.sdk.events.GAEvents.processEventQueue (GAEvents.java:92)
at com.gameanalytics.sdk.events.GAEvents.access$000 (GAEvents.java:36)
at com.gameanalytics.sdk.events.GAEvents$1.execute (GAEvents.java:56)
at com.gameanalytics.sdk.threading.GAThreading$1.run (GAThreading.java:32)
at java.util.Timer$TimerImpl.run (Timer.java:284)



there was many stuff on the anr but this one looks intersting to me : GA is not for googlme admob ?


the other anr hasn't any stacktrace ...
 
Last edited:

rwkay

GameMaker Staff
GameMaker Dev.
@rwkay Yeah Thanks I know. I just showed an example anr of my game as help for him :)

Could you maybe tell me how I can fix this issue?

View attachment 43358
That is a crash within the Garbage Collection, please ensure that you are on the most recent version of GM (as we have fixed various issues within the GC) and if the problem persists then file a bug with the project (and replication instructions, that are more specific than play for 100 hours) and we will take a look and address the issue.

Russell
 

Fiersking

Member
That is a crash within the Garbage Collection, please ensure that you are on the most recent version of GM (as we have fixed various issues within the GC) and if the problem persists then file a bug with the project (and replication instructions, that are more specific than play for 100 hours) and we will take a look and address the issue.

Russell
how to know that ?
ps : can you please read my post abiove and tell me what you think about it ?
i think my bug are from google admob but not sure.
 

Fiersking

Member
i also use a tutorial from this forum to send crashes to game analytics and the only error that show up is this one :
Type of exception: java.lang.IllegalArgumentException
# Exception message: No valid EGL configs match our minimum required spec
# Thread name: GLThread 8482
# Stacktrace: java.lang.IllegalArgumentException: No valid EGL configs match our minimum required spec
at com.KazuMedia.FourPicsAndForWord.DemoGLSurfaceView.chooseConfig(DemoGLSurfaceView.java:343)
at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1057)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1449)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1286)
 

Mool

Member
@Fiersking Is that all you got? Are you using gameanalytics ?

Do you not have any trace with libyoyo in it? Most of the time you can find your bug there
 

Fiersking

Member
@Fiersking Is that all you got? Are you using gameanalytics ?

Do you not have any trace with libyoyo in it? Most of the time you can find your bug there
yes i'am using gameanalytics the last bug i paste is froml g&ame analytics.

i checked again no libyoyo in both anr and crashes :(
 

rwkay

GameMaker Staff
GameMaker Dev.
# Exception message: No valid EGL configs match our minimum required spec
The problem is that the device cannot support the game... there was no GL device that matched the required minimum spec... you need to exclude devices that cannot play the game.

Russell
 

Fiersking

Member
The problem is that the device cannot support the game... there was no GL device that matched the required minimum spec... you need to exclude devices that cannot play the game.

Russell
ok thanks to all of you guys.

can i avoid this crash by check the "only support device with gpu ? "
 

Fiersking

Member
hi !

still have this issue :

# Type of exception: java.lang.IllegalArgumentException
# Exception message: No valid EGL configs match our minimum required spec
# Thread name: GLThread 7493
# Stacktrace: java.lang.IllegalArgumentException: No valid EGL configs match our minimum required spec
at com.KazuMedia.FourPicsAndForWord.DemoGLSurfaceView.chooseConfig(DemoGLSurfaceView.java:343)
at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1057)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1449)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1286)

anyone know if the feature "only support device with gpu" can do anything for me ?
i try to upload a new release with it but the number of available device was exactly the same ...
 

Fiersking

Member
hi i made a new release of my game but still got the same bug :

java.lang.ArrayIndexOutOfBoundsException:
at com.KazuMedia.FourPicsAndForWord.DemoGLSurfaceView.chooseConfig (DemoGLSurfaceView.java:344)
at android.opengl.GLSurfaceView$EglHelper.start (GLSurfaceView.java:1057)
at android.opengl.GLSurfaceView$GLThread.guardedRun (GLSurfaceView.java:1449)
at android.opengl.GLSurfaceView$GLThread.run (GLSurfaceView.java:1286)


on : _1Samsung Galaxy Tab S5e
 
Top