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

alcDeviceResumeSOFT Crashes on Android #450

Open
NatWobble opened this issue Oct 27, 2018 · 1 comment
Open

alcDeviceResumeSOFT Crashes on Android #450

NatWobble opened this issue Oct 27, 2018 · 1 comment

Comments

@NatWobble
Copy link

Hi. We are getting quite a few crashes with the following trace on the Google Play console for Android but they are difficult to reproduce:

backtrace:
#00 pc 00000000001d20da /data/app/com.wobblemonkey.speedygram-1/lib/arm/libgideros.so
#1 pc 00000000001c6e85 /data/app/com.wobblemonkey.speedygram-1/lib/arm/libgideros.so (alcDeviceResumeSOFT+132)
#2 pc 0000000000096e71 /data/app/com.wobblemonkey.speedygram-1/lib/arm/libgideros.so (_ZN18ApplicationManager6resumeEv+28)
#3 pc 00000000006e1285 /data/app/com.wobblemonkey.speedygram-1/oat/arm/base.odex

Android versions 6-8 are affected. Our last release used Gideros 2018.09 but older versions of our app using older versions of Gideros also produce this crash. It seems to be related to resuming.

We also get a few ANRs related to pausing. I am not sure whether they are related to the resuming issue but the GP trace is more detailed for ANRs:

"main" prio=5 tid=1 Blocked
| group="main" sCount=1 dsCount=0 flags=1 obj=0x745af638 self=0xed3fc000
| sysTid=1159 nice=0 cgrp=default sched=0/0 handle=0xf18a94bc
| state=S schedstat=( 803514127 245163664 1571 ) utm=51 stm=29 core=0 HZ=100
| stack=0xff650000-0xff652000 stackSize=8MB
| held mutexes=

#00 pc 0000000000018eac /system/lib/libc.so (syscall+28)

#1 pc 00000000000b380d /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+88)

#2 pc 00000000002c1201 /system/lib/libart.so (_ZN3art7Monitor4LockEPNS_6ThreadE+2196)

#3 pc 00000000002c23b7 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+990)

#4 pc 00000000002c37a3 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+130)

#5 pc 00000000002d41d7 /system/lib/libart.so (_ZN3artL13Object_waitJIEP7_JNIEnvP8_jobjectxi+36)

#6 pc 000000000000089d /system/framework/arm/boot.oat (Java_java_lang_Object_wait__JI+92)

at java.lang.Object.wait (Native method)

  • waiting to lock <0x0ae28ea4> (a java.util.ArrayList) held by thread 11

    at java.lang.Object.wait (Object.java:422)

    at com.giderosmobile.android.player.GiderosApplication.onPause (GiderosApplication.java:547)

  • locked <0x0ae28ea4> (a java.util.ArrayList)

    at com.giderosmobile.android.SpeedyGramActivity.onPause (SpeedyGramActivity.java:179)

    at android.app.Activity.performPause (Activity.java:7408)

    at android.app.Instrumentation.callActivityOnPause (Instrumentation.java:1415)

    at android.app.ActivityThread.performPauseActivityIfNeeded (ActivityThread.java:4115)

    at android.app.ActivityThread.performPauseActivity (ActivityThread.java:4092)

    at android.app.ActivityThread.performPauseActivity (ActivityThread.java:4066)

    at android.app.ActivityThread.handlePauseActivity (ActivityThread.java:4040)

    at android.app.ActivityThread.-wrap16 (ActivityThread.java)

    at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1708)

    at android.os.Handler.dispatchMessage (Handler.java:105)

    at android.os.Looper.loop (Looper.java:164)

    at android.app.ActivityThread.main (ActivityThread.java:6942)

    at java.lang.reflect.Method.invoke (Native method)

    at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)

    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
    "GLThread 16338" tid=11 Native
    "GLThread 16338" prio=5 tid=11 Native
    | group="main" sCount=1 dsCount=0 flags=1 obj=0x13900988 self=0xe5288000
    | sysTid=1227 nice=0 cgrp=default sched=0/0 handle=0xcdc13970
    | state=R schedstat=( 14998215704 2609272120 5682 ) utm=311 stm=1188 core=2 HZ=100
    | stack=0xcdb11000-0xcdb13000 stackSize=1038KB
    | held mutexes=

    #00 pc 000000000004b310 /system/lib/libc.so (sched_yield+12)

    Player - New Features #1 pc 00000000001d2465 /data/app/com.wobblemonkey.speedygram-Bp_9TIkT0IrIHoSXS1VH8Q==/lib/arm/libgideros.so (???)

    Additional Player resolutions with Retina support #2 pc 00000000001c6d99 /data/app/com.wobblemonkey.speedygram-Bp_9TIkT0IrIHoSXS1VH8Q==/lib/arm/libgideros.so (alcDevicePauseSOFT+112)

    move touch event from viewcontroller to view #3 pc 0000000000096e1f /data/app/com.wobblemonkey.speedygram-Bp_9TIkT0IrIHoSXS1VH8Q==/lib/arm/libgideros.so (_ZN18ApplicationManager5pauseEv+102)

    Minor improvement on Preview Widget #4 pc 0000000000004b9f /data/app/com.wobblemonkey.speedygram-Bp_9TIkT0IrIHoSXS1VH8Q==/oat/arm/base.odex (Java_com_giderosmobile_android_player_GiderosApplication_nativePause__+94)

    at com.giderosmobile.android.player.GiderosApplication.nativePause (Native method)

    at com.giderosmobile.android.player.GiderosApplication.onDrawFrame (GiderosApplication.java:668)

  • locked <0x040bf110> (a java.lang.Object)

    at com.giderosmobile.android.GiderosRenderer.onDrawFrame (SpeedyGramActivity.java:415)

    at android.opengl.GLSurfaceView$GLThread.guardedRun (GLSurfaceView.java:1571)

    at android.opengl.GLSurfaceView$GLThread.run (GLSurfaceView.java:1270)

@NatWobble
Copy link
Author

Also these traces:

backtrace:
#00 pc 000000000026fff4 /data/app/com.wobblemonkey.speedygram-DokJSXGfSemTnVK0B2YfiQ==/lib/arm64/libgideros.so
#1 pc 000000000025ec1c /data/app/com.wobblemonkey.speedygram-DokJSXGfSemTnVK0B2YfiQ==/lib/arm64/libgideros.so (alcDeviceResumeSOFT+340)
#2 pc 00000000000c4648 /data/app/com.wobblemonkey.speedygram-DokJSXGfSemTnVK0B2YfiQ==/lib/arm64/libgideros.so (ApplicationManager::resume()+44)
#3 pc 0000000000032610 /data/app/com.wobblemonkey.speedygram-DokJSXGfSemTnVK0B2YfiQ==/oat/arm64/base.odex

backtrace:

#00 pc 00000000000e00d4 /data/app/com.wobblemonkey.speedygram-4tMptSwVdgeqDU2Ueu325w==/lib/arm64/libgideros.so (gapplication_enqueueEvent+20)
#1 pc 00000000000c4818 /data/app/com.wobblemonkey.speedygram-4tMptSwVdgeqDU2Ueu325w==/lib/arm64/libgideros.so (_ZN18ApplicationManager10backgroundEv+48)
#2 pc 0000000000051d50 /data/app/com.wobblemonkey.speedygram-4tMptSwVdgeqDU2Ueu325w==/oat/arm64/base.odex

hgy29 added a commit to hgy29/gideros that referenced this issue Nov 18, 2019
[android] Allow reads from http connections
[android] Possible fix for OpenSl crash (gideros#450, gideros#480)
[core/fonts] Fix text layouts positionning, add more options
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

1 participant