question

dantreble avatar image
dantreble asked

Crash on resume

Help! Trying to implement IAP, however every time my game is resumed, it crashes. It crashes switching away and back again regardless of IAP. I'm running on a Kindle Fire HD with the latest OS 7.2.3_user_2330720 Log cat is I/PhoneWindowManager( 204): App com.DefiantDev.SkiSafari.Fire uses dismiss keyguard flags without DISABLE_KEYGUARD permission or required trust level. Removing flags. I/WindowManager( 204): DIM BEHIND: Window{416f4e60 paused=false} I/WindowManager( 204): DIM BEHIND: Window{416f4e60 paused=false} W/GraphicBufferMapper(13593): registerBuffer(0x1c4ea38) failed -14 (Bad address) F/libc (13593): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1) I/WindowManager( 204): DIM BEHIND: Window{416f4e60 paused=false} I/WindowManager( 204): DIM BEHIND: Window{416f4e60 paused=false} I/DEBUG (11845): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG (11845): Build fingerprint: 'Android/tate/tate:4.0.3/IML74K/7.2.3_user_2330720:user/release-keys' I/DEBUG (11845): pid: 13593, tid: 13593 >>> com.DefiantDev.SkiSafari.Fire <<< I/DEBUG (11845): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000 I/DEBUG (11845): r0 00000000 r1 00000000 r2 000013c0 r3 00000000 I/DEBUG (11845): r4 00000000 r5 00000000 r6 00000000 r7 00000000 I/DEBUG (11845): r8 00000000 r9 beeac4d0 10 40661fb0 fp beeac470 I/DEBUG (11845): ip 00000000 sp beeac318 lr 00000000 pc 400b7ce8 cpsr 20000010 I/DEBUG (11845): d0 414000003f800000 d1 0000000000000000 I/DEBUG (11845): d2 0000000000000000 d3 0066007200750065 I/DEBUG (11845): d4 007900740069006e d5 00790061006c0050 I/DEBUG (11845): d6 0000000000000000 d7 4080000044a00000 I/DEBUG (11845): d8 3f7efd023f7efd02 d9 3fefdfa040000000 I/DEBUG (11845): d10 3febb67ae8584caa d11 3ffbb67ae8584caa I/DEBUG (11845): d12 00000000411e1f12 d13 0000000000000000 I/DEBUG (11845): d14 0000000000000000 d15 0000000000000000 I/DEBUG (11845): d16 0000000000000004 d17 0000000000000000 I/DEBUG (11845): d18 0000000000000000 d19 0000000000000000 I/DEBUG (11845): d20 3ff0000000000000 d21 8000000000000000 I/DEBUG (11845): d22 0000000000000000 d23 3fede16b9c24a98f I/DEBUG (11845): d24 0000000000000000 d25 0000000000000000 I/DEBUG (11845): d26 ffffffffffffffff d27 ffffffffffffffff I/DEBUG (11845): d28 0000000100000001 d29 3ff0000000000000 I/DEBUG (11845): d30 0000000000000000 d31 3ff0000000000000 I/DEBUG (11845): scr 60000012 I/DEBUG (11845): I/DEBUG (11845): #00 pc 0000dce8 /system/lib/ libc.so (memset) I/DEBUG (11845): #01 pc 00076c8c /system/lib/ libskia.so (_ZNK6SkDraw9drawPaintERK7SkPaint) I/DEBUG (11845): #02 pc 0006f3e0 /system/lib/ libskia.so (_ZN8SkCanvas9drawPaintERK7SkPaint) I/DEBUG (11845): #03 pc 0006cef8 /system/lib/ libskia.so (_ZN8SkCanvas9drawColorEjN10SkXfermode4ModeE) I/DEBUG (11845): #04 pc 0006953c /system/lib/ libandroid_runtime.so I/DEBUG (11845): #05 pc 0001ec70 /system/lib/ libdvm.so (dvmPlatformInvoke) I/DEBUG (11845): #06 pc 00058ff0 /system/lib/ libdvm.so (_Z16dvmCallJNIMethodPKjP6JValuePK6MethodP6Thread) I/DEBUG (11845): I/DEBUG (11845): code around pc: I/DEBUG (11845): 400b7cc8 28a04002 48a04002 e1b03103 24801004 .@.(.@.H.1.....$ I/DEBUG (11845): 400b7cd8 e2522020 e1a03001 4a000002 e2522020 R..0.....J R. I/DEBUG (11845): 400b7ce8 e8a050fa 2afffffc e2822020 e1b02e02 .P.....* ...... I/DEBUG (11845): 400b7cf8 28a0500a 48a04002 e1b02102 24801004 .P.(.@.H.!.....$ I/DEBUG (11845): 400b7d08 40c010b2 e1b02102 25c01000 e8bd40f1 ...@.!.....%.@.. I/DEBUG (11845): I/DEBUG (11845): code around lr: I/DEBUG (11845): 00000000 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG (11845): 00000010 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG (11845): 00000020 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG (11845): 00000030 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG (11845): 00000040 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG (11845): I/DEBUG (11845): stack: I/DEBUG (11845): beeac2d8 01c3b730 [heap] I/DEBUG (11845): beeac2dc 01c3b734 [heap] I/DEBUG (11845): beeac2e0 00000002 I/DEBUG (11845): beeac2e4 01c4ea38 [heap] I/DEBUG (11845): beeac2e8 01bbf030 [heap] I/DEBUG (11845): beeac2ec 00000000 I/DEBUG (11845): beeac2f0 5e893474 /system/vendor/lib/hw/ gralloc.omap4.so I/DEBUG (11845): beeac2f4 01c4ea38 [heap] I/DEBUG (11845): beeac2f8 00000000 I/DEBUG (11845): beeac2fc 00000030 I/DEBUG (11845): beeac300 00000000 I/DEBUG (11845): beeac304 57975c3c /system/vendor/lib/ libsrv_um.so I/DEBUG (11845): beeac308 01bbf030 [heap] I/DEBUG (11845): beeac30c 5e891294 /system/vendor/lib/hw/ gralloc.omap4.so I/DEBUG (11845): beeac310 e3a070ad I/DEBUG (11845): beeac314 ef9000ad I/DEBUG (11845): #00 beeac318 00000000 I/DEBUG (11845): beeac31c 0000031e I/DEBUG (11845): beeac320 00000000 I/DEBUG (11845): beeac324 00001400 I/DEBUG (11845): beeac328 00001400 I/DEBUG (11845): beeac32c 40663c90 /system/lib/ libskia.so I/DEBUG (11845): #01 beeac330 00000000 I/DEBUG (11845): beeac334 beeac418 [stack] I/DEBUG (11845): beeac338 00000000 I/DEBUG (11845): beeac33c 00000000 I/DEBUG (11845): beeac340 00000000 I/DEBUG (11845): beeac344 4005dc20 /system/lib/ libui.so I/DEBUG (11845): beeac348 01c5c830 [heap] I/DEBUG (11845): beeac34c 400f24f8 I/DEBUG (11845): beeac350 00000320 I/DEBUG (11845): beeac354 40624588 /system/lib/ libskia.so I/DEBUG (11845): beeac358 00000001 I/DEBUG (11845): beeac35c 01b9445c [heap] I/DEBUG (11845): beeac360 00000001 I/DEBUG (11845): beeac364 00000500 I/DEBUG (11845): beeac368 00000320 I/DEBUG (11845): beeac36c 00000000 I/DEBUG (11845): beeac370 00000000 I/DEBUG (11845): beeac374 406245cc /system/lib/ libskia.so I/DEBUG (11845): beeac378 00000320 I/DEBUG (11845): beeac37c 3b300019 I/DEBUG (11845): beeac380 585cf60c /system/framework/framework.odex I/DEBUG (11845): beeac384 40625908 /system/lib/ libskia.so I/DEBUG (11845): beeac388 00000000 I/DEBUG (11845): beeac38c 40161391 /system/lib/ libutils.so I/DEBUG (11845): beeac390 01c5c838 [heap] I/DEBUG (11845): beeac394 4016435f /system/lib/ libutils.so I/DEBUG (11845): beeac398 beeac418 [stack] I/DEBUG (11845): beeac39c 00000000 I/DEBUG (11845): beeac3a0 beeac4b8 [stack] I/DEBUG (11845): beeac3a4 401643a9 /system/lib/ libutils.so I/DEBUG (11845): beeac3a8 0492839c [heap] I/DEBUG (11845): beeac3ac 00000000 I/DEBUG (11845): beeac3b0 beeac4b8 [stack] I/DEBUG (11845): beeac3b4 4077571d /system/lib/ libgui.so I/DEBUG (11845): beeac3b8 01c114d8 [heap] I/DEBUG (11845): beeac3bc 40779b37 /system/lib/ libgui.so I/DEBUG (11845): beeac3c0 408abf90 /system/lib/ libdvm.so I/DEBUG (11845): beeac3c4 408abf90 /system/lib/ libdvm.so I/DEBUG (11845): beeac3c8 408abf90 /system/lib/ libdvm.so I/DEBUG (11845): beeac3cc 01a529c8 [heap] I/DEBUG (11845): beeac3d0 60c0001d I/DEBUG (11845): beeac3d4 4084e61b /system/lib/ libdvm.so I/DEBUG (11845): beeac3d8 00000000 I/DEBUG (11845): beeac3dc 00000000 I/DEBUG (11845): beeac3e0 00000500 I/DEBUG (11845): beeac3e4 00000320 I/DEBUG (11845): beeac3e8 beeac424 [stack] I/DEBUG (11845): beeac3ec 01c47b38 [heap] I/DEBUG (11845): beeac3f0 01c47b38 [heap] I/DEBUG (11845): beeac3f4 00000001 I/DEBUG (11845): beeac3f8 00000001 I/DEBUG (11845): beeac3fc beeac424 [stack] I/DEBUG (11845): beeac400 01c47b38 [heap] I/DEBUG (11845): beeac404 01c47b38 [heap] I/DEBUG (11845): beeac408 00000001 I/DEBUG (11845): beeac40c 00000001 I/DEBUG (11845): beeac410 beeac424 [stack] I/DEBUG (11845): beeac414 406245fc /system/lib/ libskia.so I/DEBUG (11845): beeac418 beeac424 [stack] I/DEBUG (11845): beeac41c 40625a58 /system/lib/ libskia.so I/DEBUG (11845): beeac420 beeac4dc [stack] I/DEBUG (11845): beeac424 00000000 I/DEBUG (11845): beeac428 00000000 I/DEBUG (11845): beeac42c 00000500 I/DEBUG (11845): beeac430 00000320 I/DEBUG (11845): beeac434 00000000 I/DEBUG (11845): beeac438 01c47b38 [heap] I/DEBUG (11845): beeac43c 01c47b30 [heap] I/DEBUG (11845): beeac440 00000000 I/DEBUG (11845): beeac444 01c47b38 [heap] I/DEBUG (11845): beeac448 00000000 I/DEBUG (11845): beeac44c 4065bc54 /system/lib/ libskia.so I/DEBUG (11845): beeac450 00000000 I/DEBUG (11845): beeac454 00000500 I/DEBUG (11845): beeac458 01c4456c [heap] I/DEBUG (11845): beeac45c 01b943d0 [heap] I/DEBUG (11845): beeac460 01c49208 [heap] I/DEBUG (11845): beeac464 0492eefc [heap] I/DEBUG (11845): beeac468 000001d8 I/DEBUG (11845): beeac46c 00000002 I/DEBUG (11845): beeac470 01c47b38 [heap] I/DEBUG (11845): beeac474 00000000 I/DEBUG (11845): beeac478 00000000 I/DEBUG (11845): beeac47c 00000000 I/DEBUG (11845): beeac480 00000500 I/DEBUG (11845): beeac484 00000320 I/DEBUG (11845): beeac488 beeac400 [stack] I/DEBUG (11845): beeac48c 00000000 I/DEBUG (11845): beeac490 00000000 I/DEBUG (11845): beeac494 00000500 I/DEBUG (11845): beeac498 00000320 I/DEBUG (11845): beeac49c 00000000 I/DEBUG (11845): beeac4a0 60c0001d I/DEBUG (11845): beeac4a4 beeac4d0 [stack] I/DEBUG (11845): beeac4a8 01b943d0 [heap] I/DEBUG (11845): beeac4ac 00000000 I/DEBUG (11845): beeac4b0 beeac504 [stack] I/DEBUG (11845): beeac4b4 00000001 I/DEBUG (11845): beeac4b8 40714680 /system/lib/ libskia.so I/DEBUG (11845): beeac4bc 40715e04 /system/lib/ libskia.so I/DEBUG (11845): beeac4c0 fffffa7c I/DEBUG (11845): beeac4c4 4065c3e4 /system/lib/ libskia.so I/WindowManager( 204): DIM BEHIND: Window{416f4e60 paused=false} I/WindowManager( 204): DIM BEHIND: Window{416f4e60 paused=false} I/WindowManager( 204): DIM BEHIND: Window{416f4e60 paused=false} V/EchoCanceller( 107): notifyStreamOutClosed() I/WindowManager( 204): DIM BEHIND: Window{416f4e60 paused=false} I/WindowManager( 204): DIM BEHIND: Window{416f4e60 paused=false} D/dalvikvm( 204): GC_CONCURRENT freed 1110K, 27% free 15377K/20871K, paused 2ms+4ms V/Sensors ( 204): accel data: -0.809517 0.244292 9.752520 I/Sensors ( 204): **** No Motion **** I/BootReceiver( 204): Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)
fire tablet
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dantreble avatar image
dantreble answered
Don't get the crash on resume in OpenGL ES 1.1.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sachin@Amazon avatar image
Sachin@Amazon answered
Hi, Thank you for your post. From the crash log, I can see that you are using android.permission.DISABLE_KEYGUARD permission for your app. Kindle Fire tablets do not support apps that use disable_keyguard permissions or customize the lock screen. We recommend that you either remove the features that require this service or modify them to degrade gracefully when invoked (for example with an error message such as "This feature is not currently available on this device.").
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dantreble avatar image
dantreble answered
Thanks for pointing out the android.permission.DISABLE_KEYGUARD problem. I'm unconvinced it is the source of my crash though. I'll keep you posted. Thanks
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Matt Benic avatar image
Matt Benic answered
Hi, did you ever resolve this? We're getting something similar, if we trigger the IAP dialog or mail composer, when it exits out we get a black screen. If we give it some time (a couple of minutes) the app does eventually come back, but not very gracefully :) We're also seeing a log about DISABLE_KEYGUARD, but ours is a Unity app-we don't explicitly call anything keyguard related, so it seems like something internal to Unity: App com.ourdomain.ourapp uses dismiss keyguard flags without DISABLE_KEYGUARD permission. Removing flags.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
This issue is specific to your app. Can you please raise a ContactUs ( https://developer.amazon.com/help/contact-us.html) with us and one of our support engineer will help you on this.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.