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

Android built with sdl2 crash when paused #4496

Closed
WillDHB opened this issue Jul 27, 2016 · 1 comment
Closed

Android built with sdl2 crash when paused #4496

WillDHB opened this issue Jul 27, 2016 · 1 comment

Comments

@WillDHB
Copy link

WillDHB commented Jul 27, 2016

I recently changed a previously functional app to build with sdl2 using the android_new target with Buildozer. After this, it began crashing when the app is paused. This occurs prior to invoking the on_pause() method of the app (and independent of whether I have defined one).

Behavior is consistent between an emulator and a physical device.

Logcat is as follows:

V/SDL ( 1005): onPause()
V/SDL ( 1005): nativePause()
F/libc ( 1005): Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 1005 (ugglesoft.evrev)
W/ActivityManager( 277): Activity pause timeout for ActivityRecord{419a31c0 u0 com.fugglesoft.evrev/org.kivy.android.PythonActivity}
I/DEBUG ( 35): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 35): Build fingerprint: 'generic/sdk/generic:4.3.1/JB_MR2/1743067:eng/test-keys'
I/DEBUG ( 35): Revision: '0'
I/DEBUG ( 35): pid: 1005, tid: 1005, name: UNKNOWN >>> com.fugglesoft.evrev <<<
I/DEBUG ( 35): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000c
D/dalvikvm( 637): GC_FOR_ALLOC freed 9K, 57% free 19655K/45456K, paused 333ms, total 349ms
W/EGL_emulation( 409): eglSurfaceAttrib not implemented
I/DEBUG ( 35): r0 4df313c8 r1 ffffffbc r2 00000000 r3 ffffffb8
I/DEBUG ( 35): r4 4de87da0 r5 4c7ff361 r6 4df43e50 r7 4dfac570
I/DEBUG ( 35): r8 4df313c8 r9 4c9737e4 sl 2a00d0a0 fp beeae5f4
I/DEBUG ( 35): ip 00000000 sp beeae538 lr 4c81eaa7 pc 4df3ddf0 cpsr 20000030
I/DEBUG ( 35): d0 3f8000003da9df4e d1 00000000bf6ac416
I/DEBUG ( 35): d2 0000000000000000 d3 33d6bf9500000000
I/DEBUG ( 35): d4 0000000000000000 d5 44b4000000000000
I/DEBUG ( 35): d6 450dc00000000000 d7 0000000000000000
I/DEBUG ( 35): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 35): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 35): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 35): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 35): scr 60000010
I/DEBUG ( 35):
I/DEBUG ( 35): backtrace:
I/DEBUG ( 35): #00 pc 00005df0 /data/data/com.fugglesoft.evrev/files/lib/python2.7/site-packages/kivy/core/window/_window_sdl2.so
I/DEBUG ( 35): #1 pc 00070aa3 /data/app-lib/com.fugglesoft.evrev-1/libpython2.7.so (PyTuple_New+126)
I/DEBUG ( 35):
I/DEBUG ( 35): stack:
I/DEBUG ( 35): beeae4f8 400721f4
I/DEBUG ( 35): beeae4fc c82d5179
I/DEBUG ( 35): beeae500 46c2ecb4
I/DEBUG ( 35): beeae504 00000000
I/DEBUG ( 35): beeae508 4df313d4
I/DEBUG ( 35): beeae50c 4df313c8
I/DEBUG ( 35): beeae510 00000002
I/DEBUG ( 35): beeae514 4c930a88 /data/app-lib/com.fugglesoft.evrev-1/libpython2.7.so
I/DEBUG ( 35): beeae518 00000004
I/DEBUG ( 35): beeae51c 4c81eaa7 /data/app-lib/com.fugglesoft.evrev-1/libpython2.7.so (PyTuple_New+130)
I/DEBUG ( 35): beeae520 00000001
I/DEBUG ( 35): beeae524 4de87da0
I/DEBUG ( 35): beeae528 4dfa5d00
I/DEBUG ( 35): beeae52c 4df43e50 /data/data/com.fugglesoft.evrev/files/lib/python2.7/site-packages/kivy/core/window/_window_sdl2.so
I/DEBUG ( 35): beeae530 df0027ad
I/DEBUG ( 35): beeae534 00000000
I/DEBUG ( 35): #00 beeae538 00000000
I/DEBUG ( 35): ........ ........
I/DEBUG ( 35): #1 beeae538 00000000
I/DEBUG ( 35): beeae53c 00000000
I/DEBUG ( 35): beeae540 00000000
I/DEBUG ( 35): beeae544 4dfabb20
I/DEBUG ( 35): beeae548 00000103
I/DEBUG ( 35): beeae54c 00000000
I/DEBUG ( 35): beeae550 46c2ecbc
I/DEBUG ( 35): beeae554 beeae5e0 [stack]
I/DEBUG ( 35): beeae558 46c2ecb4
I/DEBUG ( 35): beeae55c 4df3ace1 /data/data/com.fugglesoft.evrev/files/lib/python2.7/site-packages/kivy/core/window/_window_sdl2.so
I/DEBUG ( 35): beeae560 4df3acd1 /data/data/com.fugglesoft.evrev/files/lib/python2.7/site-packages/kivy/core/window/_window_sdl2.so
I/DEBUG ( 35): beeae564 beeae588 [stack]
I/DEBUG ( 35): beeae568 00000103
I/DEBUG ( 35): beeae56c 4c5e3751 /data/app-lib/com.fugglesoft.evrev-1/libSDL2.so (SDL_PushEvent_REAL+32)
I/DEBUG ( 35): beeae570 beeae588 [stack]
I/DEBUG ( 35): beeae574 ffffffff
I/DEBUG ( 35):
I/DEBUG ( 35): memory near r0:
I/DEBUG ( 35): 4df313a8 00000002 4c93d90c 4c93d90c 00000000
I/DEBUG ( 35): 4df313b8 2a669c88 4e5f6390 fffffffd 4df313c8
I/DEBUG ( 35): 4df313c8 00000001 4c941930 00000002 4dfab880
I/DEBUG ( 35): 4df313d8 4de87da0 4df313e0 00000000 4dfab6e8
I/DEBUG ( 35): 4df313e8 fffffffe 00000013 00000001 4c941930
I/DEBUG ( 35): 4df313f8 00000002 4d59f980 4d584280 00000013
I/DEBUG ( 35): 4df31408 00000000 4df77698 fffffffe 00000000
I/DEBUG ( 35): 4df31418 00000001 4c941930 00000002 4df71740
I/DEBUG ( 35): 4df31428 4df71770 00000000 00000000 4

...and so on, followed by:
I/BootReceiver( 277): Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE)
D/Zygote ( 38): Process 1005 terminated by signal (11)
I/ActivityManager( 277): Process com.fugglesoft.evrev (pid 1005) has died.
W/ActivityManager( 277): Force removing ActivityRecord{419a31c0 u0 com.fugglesoft.evrev/org.kivy.android.PythonActivity}: app died, no saved state
W/InputDispatcher( 277): channel '41d00f28 com.fugglesoft.evrev/org.kivy.android.PythonActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
E/InputDispatcher( 277): channel '41d00f28 com.fugglesoft.evrev/org.kivy.android.PythonActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
I/WindowState( 277): WIN DEATH: Window{41d00f28 u0 com.fugglesoft.evrev/org.kivy.android.PythonActivity}
W/InputDispatcher( 277): Attempted to unregister already unregistered input channel '41d00f28 com.fugglesoft.evrev/org.kivy.android.PythonActivity (server)'
I/WindowState( 277): WIN DEATH: Window{419a0880 u0 SurfaceView}

@WillDHB WillDHB changed the title Some Android apps crash when paused if built with sdl2 Android built with sdl2 crash when paused Jul 30, 2016
@WillDHB WillDHB closed this as completed Jul 30, 2016
@WillDHB
Copy link
Author

WillDHB commented Jul 30, 2016

Issue is (apparently) resolved in master.

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