Okay, the testing has been done to a point where I can't reach much longer.Moe wrote:If you test it, provide more than a short comment. As I mentioned before, I only accept bugreports that are either easy to reproduce or give a stack trace. You can always use PM or E-Mail if the trace containts data that you do not want to become public.
Section 1 - Logcat
To start with the testing, two different apks were tested together with a dummy lovefile. The first apk contained the github version, as is, and the second contained an uncommented version.
According to your comments and statement, both the Activities were shut down. There was a little delay between these two and I will come back to this point after presenting the logcats.
Logcat #1 - Github version
Code: Select all
05-08 17:33:11.996: I/liblove(12315): onMouseDown
05-08 17:33:12.012: I/liblove(12315): deinit
05-08 17:33:12.051: I/liblove(12315): onMouseUp
05-08 17:33:12.801: A/libc(12315): Fatal signal 11 (SIGSEGV) at 0x00000005 (code=1)
05-08 17:33:13.301: I/DEBUG(10848): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-08 17:33:13.301: I/DEBUG(10848): Build fingerprint: 'google/yakju/maguro:4.0.4/IMM76D/299849:user/release-keys'
05-08 17:33:13.301: I/DEBUG(10848): pid: 12315, tid: 12330 >>> net.schattenkind.nativelove <<<
05-08 17:33:13.301: I/DEBUG(10848): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000005
05-08 17:33:13.301: I/DEBUG(10848): r0 0018f348 r1 fffffff0 r2 00000001 r3 00000000
05-08 17:33:13.301: I/DEBUG(10848): r4 0018f348 r5 ffffffe9 r6 00000038 r7 00000000
05-08 17:33:13.301: I/DEBUG(10848): r8 00000050 r9 00000400 10 00000004 fp 00000000
05-08 17:33:13.301: I/DEBUG(10848): ip 0026db50 sp 5c302960 lr 5c0cc9f9 pc 5c0cc60a cpsr 800f0030
05-08 17:33:13.301: I/DEBUG(10848): d0 6174732065736f6c d1 696620647261646e
05-08 17:33:13.301: I/DEBUG(10848): d2 65766f6c65766969 d3 494e4a65766f4c6e
05-08 17:33:13.301: I/DEBUG(10848): d4 0000b25400000001 d5 0000000000000000
05-08 17:33:13.301: I/DEBUG(10848): d6 0000000000000000 d7 0000000000000000
05-08 17:33:13.301: I/DEBUG(10848): d8 3f8000003f800000 d9 4342000043c10000
05-08 17:33:13.301: I/DEBUG(10848): d10 0000000000000000 d11 0000000000000000
05-08 17:33:13.301: I/DEBUG(10848): d12 0000000000000000 d13 0000000000000000
05-08 17:33:13.301: I/DEBUG(10848): d14 0000000000000000 d15 0000000000000000
05-08 17:33:13.301: I/DEBUG(10848): d16 001464b800000001 d17 7e37e43c8800759c
05-08 17:33:13.301: I/DEBUG(10848): d18 3fe0000000000000 d19 3fe0a3b5840f4000
05-08 17:33:13.301: I/DEBUG(10848): d20 0000000000000000 d21 3f909fbf0fbe2b83
05-08 17:33:13.301: I/DEBUG(10848): d22 3e21e4c221e25016 d23 bda8fae9be8838d4
05-08 17:33:13.301: I/DEBUG(10848): d24 fbfbfbfbfbfbfbfb d25 afafb0b0b0b0b1b2
05-08 17:33:13.301: I/DEBUG(10848): d26 3131323232323233 d27 ffffffffffffffff
05-08 17:33:13.301: I/DEBUG(10848): d28 0100010001000100 d29 3ff0000000000000
05-08 17:33:13.301: I/DEBUG(10848): d30 0000000000000000 d31 3ff0000000000000
05-08 17:33:13.301: I/DEBUG(10848): scr 20000012
05-08 17:33:14.152: I/DEBUG(10848): #00 pc 0000660a /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:33:14.152: I/DEBUG(10848): #01 pc 000069f4 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:33:14.152: I/DEBUG(10848): #02 pc 00006c80 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:33:14.152: I/DEBUG(10848): #03 pc 00005754 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:33:14.152: I/DEBUG(10848): #04 pc 00006ca4 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:33:14.152: I/DEBUG(10848): #05 pc 00010694 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:33:14.152: I/DEBUG(10848): #06 pc 000066e2 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:33:14.160: I/DEBUG(10848): #07 pc 00006726 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:33:14.160: I/DEBUG(10848): #08 pc 00010596 /data/data/net.schattenkind.nativelove/lib/liblua.so (lua_pcall)
05-08 17:33:14.160: I/DEBUG(10848): #09 pc 0004c70c /data/data/net.schattenkind.nativelove/lib/liblove.so (_Z9main_stepv)
05-08 17:33:14.160: I/DEBUG(10848): #10 pc 00047e24 /data/data/net.schattenkind.nativelove/lib/liblove.so (Java_net_schattenkind_nativelove_LoveJNI_step)
05-08 17:33:14.160: I/DEBUG(10848): #11 pc 0001ec30 /system/lib/libdvm.so (dvmPlatformInvoke)
05-08 17:33:14.160: I/DEBUG(10848): #12 pc 00058ee4 /system/lib/libdvm.so (_Z16dvmCallJNIMethodPKjP6JValuePK6MethodP6Thread)
05-08 17:33:14.160: I/DEBUG(10848): code around pc:
05-08 17:33:14.160: I/DEBUG(10848): 5c0cc5e8 000152be 0000016c aaaaaaab 2638b5f8 .R..l.........8&
05-08 17:33:14.160: I/DEBUG(10848): 5c0cc5f8 25025d83 422b1c04 6942d12f 3d181c15 .].%..+B/.Bi...=
05-08 17:33:14.160: I/DEBUG(10848): 5c0cc608 68536165 682a6910 68ea60e2 280061a2 eaSh.i*h.`.h.a.(
05-08 17:33:14.160: I/DEBUG(10848): 5c0cc618 68a2d013 d2134291 e0041c02 311068a5 ...h.B.......h.1
05-08 17:33:14.160: I/DEBUG(10848): 5c0cc628 428d3310 680dd90d 601d684e 688d605e .3.B...hNh.`^`.h
05-08 17:33:14.160: I/DEBUG(10848): code around lr:
05-08 17:33:14.160: I/DEBUG(10848): 5c0cc9d8 1c206963 681b685b 4798691b 20021c01 ci .[h.h.i.G...
05-08 17:33:14.160: I/DEBUG(10848): 5c0cc9e8 db062900 010968a3 1a591c20 fdfef7ff .)...h.. .Y.....
05-08 17:33:14.160: I/DEBUG(10848): 5c0cc9f8 b0052001 4690bc3c 46a24699 bdf046ab . ..<..F.F.F.F..
05-08 17:33:14.168: I/DEBUG(10848): 5c0cca08 21011c20 fd04f7ff e7ae68a3 224b691d ..!.....h...iK"
05-08 17:33:14.168: I/DEBUG(10848): 5c0cca18 5ca968a3 010a69e0 42901ac0 e095dc00 .h.\.i.....B....
05-08 17:33:14.168: I/DEBUG(10848): stack:
05-08 17:33:14.168: I/DEBUG(10848): 5c302920 416b5360 /dev/ashmem/dalvik-heap (deleted)
05-08 17:33:14.168: I/DEBUG(10848): 5c302924 5c30293c
05-08 17:33:14.168: I/DEBUG(10848): 5c302928 416b5360 /dev/ashmem/dalvik-heap (deleted)
05-08 17:33:14.168: I/DEBUG(10848): 5c30292c 5c1eaf5c /data/data/net.schattenkind.nativelove/lib/liblove.so
05-08 17:33:14.168: I/DEBUG(10848): 5c302930 416b5360 /dev/ashmem/dalvik-heap (deleted)
05-08 17:33:14.168: I/DEBUG(10848): 5c302934 5c129f71 /data/data/net.schattenkind.nativelove/lib/liblove.so
05-08 17:33:14.168: I/DEBUG(10848): 5c302938 56bff360 /dev/ashmem/dalvik-LinearAlloc (deleted)
05-08 17:33:14.168: I/DEBUG(10848): 5c30293c 5c1a68a0 /data/data/net.schattenkind.nativelove/lib/liblove.so
05-08 17:33:14.168: I/DEBUG(10848): 5c302940 5c1eb798
05-08 17:33:14.168: I/DEBUG(10848): 5c302944 5c302954
05-08 17:33:14.168: I/DEBUG(10848): 5c302948 0018f348 [heap]
05-08 17:33:14.168: I/DEBUG(10848): 5c30294c 5c12f59f /data/data/net.schattenkind.nativelove/lib/liblove.so
05-08 17:33:14.168: I/DEBUG(10848): 5c302950 00000004
05-08 17:33:14.168: I/DEBUG(10848): 5c302954 5c1c7aec /data/data/net.schattenkind.nativelove/lib/liblove.so
05-08 17:33:14.168: I/DEBUG(10848): 5c302958 df0027ad
05-08 17:33:14.168: I/DEBUG(10848): 5c30295c 00000000
05-08 17:33:14.168: I/DEBUG(10848): #00 5c302960 00000000
05-08 17:33:14.168: I/DEBUG(10848): 5c302964 0018f348 [heap]
05-08 17:33:14.168: I/DEBUG(10848): 5c302968 00000000
05-08 17:33:14.168: I/DEBUG(10848): 5c30296c 00000000
05-08 17:33:14.168: I/DEBUG(10848): 5c302970 00000000
05-08 17:33:14.168: I/DEBUG(10848): 5c302974 5c0cc9f9 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:33:14.168: I/DEBUG(10848): #01 5c302978 00000000
05-08 17:33:14.168: I/DEBUG(10848): 5c30297c 00000030
05-08 17:33:14.168: I/DEBUG(10848): 5c302980 00000003
05-08 17:33:14.168: I/DEBUG(10848): 5c302984 5c0cc9f9 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:33:14.176: I/DEBUG(10848): 5c302988 5c302a10
05-08 17:33:14.176: I/DEBUG(10848): 5c30298c 00282848 [heap]
05-08 17:33:14.176: I/DEBUG(10848): 5c302990 00000400
05-08 17:33:14.176: I/DEBUG(10848): 5c302994 00000000
05-08 17:33:14.176: I/DEBUG(10848): 5c302998 00000000
05-08 17:33:14.176: I/DEBUG(10848): 5c30299c 0018f348 [heap]
05-08 17:33:14.176: I/DEBUG(10848): 5c3029a0 00000004
05-08 17:33:14.176: I/DEBUG(10848): 5c3029a4 00282878 [heap]
05-08 17:33:14.176: I/DEBUG(10848): 5c3029a8 002828a8 [heap]
05-08 17:33:14.176: I/DEBUG(10848): 5c3029ac 5c0ccc85 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:33:15.738: W/InputDispatcher(13046): channel '43745228 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveLauncher (server)' ~ Consumer closed input channel or an error occurred. events=0x8
05-08 17:33:15.738: E/InputDispatcher(13046): channel '43745228 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveLauncher (server)' ~ Channel is unrecoverably broken and will be disposed!
05-08 17:33:15.770: D/Zygote(13020): Process 12315 terminated by signal (11)
05-08 17:33:15.941: D/dalvikvm(13046): GC_FOR_ALLOC freed 1568K, 7% free 45968K/48903K, paused 211ms
05-08 17:33:15.949: W/InputDispatcher(13046): Attempted to unregister already unregistered input channel '43745228 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveLauncher (server)'
05-08 17:33:15.949: I/WindowManager(13046): WINDOW DIED Window{43745228 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveLauncher paused=false}
05-08 17:33:15.949: I/ActivityManager(13046): Process net.schattenkind.nativelove (pid 12315) has died.
05-08 17:33:15.949: W/ActivityManager(13046): Force removing ActivityRecord{436b8c28 net.schattenkind.nativelove/.LoveNative}: app died, no saved state
05-08 17:33:15.957: W/InputDispatcher(13046): channel '43748160 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveNative (server)' ~ Consumer closed input channel or an error occurred. events=0x8
05-08 17:33:15.957: E/InputDispatcher(13046): channel '43748160 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveNative (server)' ~ Channel is unrecoverably broken and will be disposed!
05-08 17:33:15.957: W/InputDispatcher(13046): Attempted to unregister already unregistered input channel '43748160 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveNative (server)'
05-08 17:33:15.957: I/WindowManager(13046): WIN DEATH: Window{4376d888 SurfaceView paused=false}
05-08 17:33:15.957: I/WindowManager(13046): WIN DEATH: Window{43748160 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveNative paused=false}
05-08 17:33:15.957: W/WindowManager(13046): Failed looking up window
05-08 17:33:15.957: W/WindowManager(13046): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@42d36dc8 does not exist
05-08 17:33:15.957: W/WindowManager(13046): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7176)
05-08 17:33:15.957: W/WindowManager(13046): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7167)
05-08 17:33:15.957: W/WindowManager(13046): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1545)
05-08 17:33:15.957: W/WindowManager(13046): at android.os.BinderProxy.sendDeathNotice(Binder.java:417)
05-08 17:33:15.957: W/WindowManager(13046): at dalvik.system.NativeStart.run(Native Method)
05-08 17:33:15.957: I/WindowManager(13046): WIN DEATH: null
05-08 17:33:15.965: I/WindowManager(13046): WINDOW DIED Window{43748160 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveNative paused=false}
05-08 17:33:15.973: D/dalvikvm(12333): Late-enabling CheckJNI
05-08 17:33:15.973: I/ActivityManager(13046): Start proc net.schattenkind.nativelove for activity net.schattenkind.nativelove/.LoveLauncher: pid=12333 uid=10072 gids={3003, 1015}
05-08 17:33:15.988: I/dalvikvm(12333): Turning on JNI app bug workarounds for target SDK version 7...
05-08 17:33:16.129: W/InputManagerService(13046): Got RemoteException sending setActive(false) notification to pid 12315 uid 10072
05-08 17:33:16.176: I/ActivityManager(13046): Displayed net.schattenkind.nativelove/.LoveLauncher: +214ms
[+00.000] onMouseDown, deinit followed shortly afterwards.
[+00.805] C code crashed, signal 11 received.
[+03.774] Process killed with signal 11.
[+03.953] Process died, no saved state found for re-creation of Activity [LoveNative].
[+03.961] Win-Death between SurfaceView (found in LoveNative?) and LoveNative, SurfaceView is null so LoveNative is killed.
[+03.977] Process started again, Activity [LoveLauncher] started.
Logcat #2 - Modified version
Code: Select all
05-08 17:28:16.504: I/liblove(12315): onMouseDown
05-08 17:28:16.520: I/liblove(12062): deinit
05-08 17:28:16.543: I/liblove(12062): onMouseUp
05-08 17:28:16.785: A/libc(12062): Fatal signal 11 (SIGSEGV) at 0x00000005 (code=1)
05-08 17:28:17.090: I/DEBUG(10848): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-08 17:28:17.090: I/DEBUG(10848): Build fingerprint: 'google/yakju/maguro:4.0.4/IMM76D/299849:user/release-keys'
05-08 17:28:17.090: I/DEBUG(10848): pid: 12062, tid: 12077 >>> net.schattenkind.nativelove <<<
05-08 17:28:17.090: I/DEBUG(10848): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000005
05-08 17:28:17.090: I/DEBUG(10848): r0 0021dca0 r1 fffffff0 r2 00000001 r3 00000000
05-08 17:28:17.090: I/DEBUG(10848): r4 0021dca0 r5 ffffffe9 r6 00000038 r7 00000000
05-08 17:28:17.090: I/DEBUG(10848): r8 00000050 r9 00000400 10 00000004 fp 00000000
05-08 17:28:17.090: I/DEBUG(10848): ip 0026df58 sp 5c406960 lr 5c1d09f9 pc 5c1d060a cpsr 800f0030
05-08 17:28:17.090: I/DEBUG(10848): d0 0000000000000030 d1 00000000000000d0
05-08 17:28:17.090: I/DEBUG(10848): d2 000000080000031a d3 5b1ad0280000005b
05-08 17:28:17.090: I/DEBUG(10848): d4 0000cb5400000001 d5 0000000000000000
05-08 17:28:17.090: I/DEBUG(10848): d6 0000000000000000 d7 0000000000000000
05-08 17:28:17.090: I/DEBUG(10848): d8 3f8000003f800000 d9 0000000000000000
05-08 17:28:17.090: I/DEBUG(10848): d10 0000000000000000 d11 0000000000000000
05-08 17:28:17.090: I/DEBUG(10848): d12 0000000000000000 d13 0000000000000000
05-08 17:28:17.090: I/DEBUG(10848): d14 0000000000000000 d15 0000000000000000
05-08 17:28:17.090: I/DEBUG(10848): d16 5b1ad02800000001 d17 7e37e43c8800759c
05-08 17:28:17.090: I/DEBUG(10848): d18 3fe0000000000000 d19 3fe0a3b5840f4000
05-08 17:28:17.090: I/DEBUG(10848): d20 0000000000000000 d21 3f909fbf0fbe2b83
05-08 17:28:17.090: I/DEBUG(10848): d22 3e21e4c221e25016 d23 bda8fae9be8838d4
05-08 17:28:17.090: I/DEBUG(10848): d24 fbfbfbfbfbfbfbfb d25 afafb0b0b0b0b1b2
05-08 17:28:17.090: I/DEBUG(10848): d26 3131323232323233 d27 ffffffffffffffff
05-08 17:28:17.090: I/DEBUG(10848): d28 0100010001000100 d29 3ff0000000000000
05-08 17:28:17.090: I/DEBUG(10848): d30 0000000000000000 d31 3ff0000000000000
05-08 17:28:17.090: I/DEBUG(10848): scr 20000012
05-08 17:28:17.215: I/DEBUG(10848): #00 pc 0000660a /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:28:17.215: I/DEBUG(10848): #01 pc 000069f4 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:28:17.215: I/DEBUG(10848): #02 pc 00006c80 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:28:17.215: I/DEBUG(10848): #03 pc 00005754 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:28:17.215: I/DEBUG(10848): #04 pc 00006ca4 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:28:17.215: I/DEBUG(10848): #05 pc 00010694 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:28:17.215: I/DEBUG(10848): #06 pc 000066e2 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:28:17.215: I/DEBUG(10848): #07 pc 00006726 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:28:17.215: I/DEBUG(10848): #08 pc 00010596 /data/data/net.schattenkind.nativelove/lib/liblua.so (lua_pcall)
05-08 17:28:17.215: I/DEBUG(10848): #09 pc 0004c70c /data/data/net.schattenkind.nativelove/lib/liblove.so (_Z9main_stepv)
05-08 17:28:17.215: I/DEBUG(10848): #10 pc 00047e24 /data/data/net.schattenkind.nativelove/lib/liblove.so (Java_net_schattenkind_nativelove_LoveJNI_step)
05-08 17:28:17.215: I/DEBUG(10848): #11 pc 0001ec30 /system/lib/libdvm.so (dvmPlatformInvoke)
05-08 17:28:17.223: I/DEBUG(10848): #12 pc 00058ee4 /system/lib/libdvm.so (_Z16dvmCallJNIMethodPKjP6JValuePK6MethodP6Thread)
05-08 17:28:17.223: I/DEBUG(10848): code around pc:
05-08 17:28:17.223: I/DEBUG(10848): 5c1d05e8 000152be 0000016c aaaaaaab 2638b5f8 .R..l.........8&
05-08 17:28:17.223: I/DEBUG(10848): 5c1d05f8 25025d83 422b1c04 6942d12f 3d181c15 .].%..+B/.Bi...=
05-08 17:28:17.223: I/DEBUG(10848): 5c1d0608 68536165 682a6910 68ea60e2 280061a2 eaSh.i*h.`.h.a.(
05-08 17:28:17.223: I/DEBUG(10848): 5c1d0618 68a2d013 d2134291 e0041c02 311068a5 ...h.B.......h.1
05-08 17:28:17.223: I/DEBUG(10848): 5c1d0628 428d3310 680dd90d 601d684e 688d605e .3.B...hNh.`^`.h
05-08 17:28:17.223: I/DEBUG(10848): code around lr:
05-08 17:28:17.223: I/DEBUG(10848): 5c1d09d8 1c206963 681b685b 4798691b 20021c01 ci .[h.h.i.G...
05-08 17:28:17.223: I/DEBUG(10848): 5c1d09e8 db062900 010968a3 1a591c20 fdfef7ff .)...h.. .Y.....
05-08 17:28:17.223: I/DEBUG(10848): 5c1d09f8 b0052001 4690bc3c 46a24699 bdf046ab . ..<..F.F.F.F..
05-08 17:28:17.223: I/DEBUG(10848): 5c1d0a08 21011c20 fd04f7ff e7ae68a3 224b691d ..!.....h...iK"
05-08 17:28:17.223: I/DEBUG(10848): 5c1d0a18 5ca968a3 010a69e0 42901ac0 e095dc00 .h.\.i.....B....
05-08 17:28:17.223: I/DEBUG(10848): stack:
05-08 17:28:17.223: I/DEBUG(10848): 5c406920 416b5610 /dev/ashmem/dalvik-heap (deleted)
05-08 17:28:17.223: I/DEBUG(10848): 5c406924 5c40693c
05-08 17:28:17.223: I/DEBUG(10848): 5c406928 416b5610 /dev/ashmem/dalvik-heap (deleted)
05-08 17:28:17.223: I/DEBUG(10848): 5c40692c 5c2eef5c /data/data/net.schattenkind.nativelove/lib/liblove.so
05-08 17:28:17.223: I/DEBUG(10848): 5c406930 416b5610 /dev/ashmem/dalvik-heap (deleted)
05-08 17:28:17.223: I/DEBUG(10848): 5c406934 5c22df71 /data/data/net.schattenkind.nativelove/lib/liblove.so
05-08 17:28:17.223: I/DEBUG(10848): 5c406938 56bff398 /dev/ashmem/dalvik-LinearAlloc (deleted)
05-08 17:28:17.223: I/DEBUG(10848): 5c40693c 5c2aa8a0 /data/data/net.schattenkind.nativelove/lib/liblove.so
05-08 17:28:17.223: I/DEBUG(10848): 5c406940 5c2ef798
05-08 17:28:17.223: I/DEBUG(10848): 5c406944 5c406954
05-08 17:28:17.223: I/DEBUG(10848): 5c406948 0021dca0 [heap]
05-08 17:28:17.223: I/DEBUG(10848): 5c40694c 5c23359f /data/data/net.schattenkind.nativelove/lib/liblove.so
05-08 17:28:17.223: I/DEBUG(10848): 5c406950 00000004
05-08 17:28:17.223: I/DEBUG(10848): 5c406954 5c2cbaec /data/data/net.schattenkind.nativelove/lib/liblove.so
05-08 17:28:17.223: I/DEBUG(10848): 5c406958 df0027ad
05-08 17:28:17.223: I/DEBUG(10848): 5c40695c 00000000
05-08 17:28:17.223: I/DEBUG(10848): #00 5c406960 00000000
05-08 17:28:17.223: I/DEBUG(10848): 5c406964 0021dca0 [heap]
05-08 17:28:17.223: I/DEBUG(10848): 5c406968 00000000
05-08 17:28:17.223: I/DEBUG(10848): 5c40696c 00000000
05-08 17:28:17.223: I/DEBUG(10848): 5c406970 00000000
05-08 17:28:17.223: I/DEBUG(10848): 5c406974 5c1d09f9 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:28:17.223: I/DEBUG(10848): #01 5c406978 00000000
05-08 17:28:17.223: I/DEBUG(10848): 5c40697c 00000030
05-08 17:28:17.223: I/DEBUG(10848): 5c406980 00000003
05-08 17:28:17.223: I/DEBUG(10848): 5c406984 5c1d09f9 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:28:17.223: I/DEBUG(10848): 5c406988 5c406a10
05-08 17:28:17.223: I/DEBUG(10848): 5c40698c 0027db50 [heap]
05-08 17:28:17.223: I/DEBUG(10848): 5c406990 00000400
05-08 17:28:17.223: I/DEBUG(10848): 5c406994 00000000
05-08 17:28:17.223: I/DEBUG(10848): 5c406998 00000000
05-08 17:28:17.223: I/DEBUG(10848): 5c40699c 0021dca0 [heap]
05-08 17:28:17.223: I/DEBUG(10848): 5c4069a0 00000004
05-08 17:28:17.223: I/DEBUG(10848): 5c4069a4 0027db80 [heap]
05-08 17:28:17.223: I/DEBUG(10848): 5c4069a8 0027dbb0 [heap]
05-08 17:28:17.223: I/DEBUG(10848): 5c4069ac 5c1d0c85 /data/data/net.schattenkind.nativelove/lib/liblua.so
05-08 17:28:18.918: W/InputDispatcher(13046): channel '437f75b8 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveLauncher (server)' ~ Consumer closed input channel or an error occurred. events=0x8
05-08 17:28:18.918: E/InputDispatcher(13046): channel '437f75b8 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveLauncher (server)' ~ Channel is unrecoverably broken and will be disposed!
05-08 17:28:18.949: D/Zygote(13020): Process 12062 terminated by signal (11)
05-08 17:28:19.105: D/dalvikvm(13046): GC_FOR_ALLOC freed 691K, 6% free 46071K/48903K, paused 200ms
05-08 17:28:19.105: I/WindowManager(13046): WIN DEATH: Window{438815e0 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveNative paused=false}
05-08 17:28:19.105: I/ActivityManager(13046): Process net.schattenkind.nativelove (pid 12062) has died.
05-08 17:28:19.105: W/WindowManager(13046): Force-removing child win Window{428e6268 SurfaceView paused=false} from container Window{438815e0 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveNative paused=false}
05-08 17:28:19.113: W/InputDispatcher(13046): Attempted to unregister already unregistered input channel '437f75b8 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveLauncher (server)'
05-08 17:28:19.113: I/WindowManager(13046): WIN DEATH: Window{437f75b8 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveLauncher paused=false}
05-08 17:28:19.113: W/WindowManager(13046): Failed looking up window
05-08 17:28:19.113: W/WindowManager(13046): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@42c4a9c0 does not exist
05-08 17:28:19.113: W/WindowManager(13046): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7176)
05-08 17:28:19.113: W/WindowManager(13046): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7167)
05-08 17:28:19.113: W/WindowManager(13046): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1545)
05-08 17:28:19.113: W/WindowManager(13046): at android.os.BinderProxy.sendDeathNotice(Binder.java:417)
05-08 17:28:19.113: W/WindowManager(13046): at dalvik.system.NativeStart.run(Native Method)
05-08 17:28:19.113: I/WindowManager(13046): WIN DEATH: null
05-08 17:28:19.113: I/WindowManager(13046): WINDOW DIED Window{437f75b8 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveLauncher paused=false}
05-08 17:28:19.113: W/ActivityManager(13046): Force removing ActivityRecord{42900dc8 net.schattenkind.nativelove/.LoveLauncher}: app died, no saved state
[+00.000] onMouseDown, deinit followed shortly afterwards.
[+00.281] C code crashed, signal 11 received.
[+02.544] Process killed with signal 11.
[+02.700] Process died. SurfaceView force-removed from LoveNative Window.
[+02.718] Win-Death between LoveNative and LoveLauncher, LoveNative is null (as it was finished before? Time of termination is unknown) and LoveLauncher is killed.
[+02.718] Re-starting of Activity [LoveLauncher] cancelled, with the same reason as the other logcat (event #4), Activity killed without instance state saved.
(Important notice)
Both of the logcat contains information about an InputDispatcher channel being closed by the consumer. According to this e-mail by Dianne Hackborn (a very respected developer of Android), this means that the consumer in someway closed the channel, or that it was closed from the result of some crash.
This message only appears once on the logcat for the modified version (#2, for LoveLauncher only), while it appears twice on the logcat for the Github version (#1, for both LoveLauncher and LoveNative). Could this be the result from the modified version finishing LoveNative itself and doesn't rely on the crash (?!!) for closing the app? (The first channel message seems quite unimportant at the moment as it is called *before* the process dies.)
While comparing these logcats, you can clearly see that the one representing the modified one does its thing more or less a second faster than the Github one. This could be explained by the Activity [LoveNative] being finished using code instead of closing itself because of a crash. This hypothesis is however not proved in a fair way and the longer execution time could just as well be a placebo. What is more interesting is what Activity is affected by the crash. When LoveNative exists, it is closed, but when it doesn't, the LoveLauncher is closed. Another interesting (but not really surprising) thing is that the SurfaceView is removed first when the Activity [LoveNative] is shut down is some way or another.
The last thing that is of use in these logcats are the message W/ActivityManager(13046): Force removing ActivityRecord{Activity details}: app died, no saved state. This basically means that the Bundle which is being referred to in onCreate was never created, most probably because the Activity crashed instead of being shut down correctly. While this could seem like a problem, it is also a source for a faster (just 20 - 30 ms or something) and semi-functional quick-fix (read "quick-fix", this is by far not a permanent solution, more about this further down in the post).
Section 2 - Summary
While there is some read-worthy text up ahead, a short summary is always good. So, I will try to keep it short here.
- There is something in the C code that crashes, no doubt about that.
- This crash results in some active Activity being killed afterwards.
- The activity killing gives a fake impression that the LoveLauncher activity is being finished with my proposed removal of the comments (Which I suppose was what you meant in the first place, Moe. That it closes down the LoveLauncher indirectly using that?).
- There is a (temporary) solution available.
Even if the fix of this problem will require some C "hacking" sooner or later, there is a little solution you can utilize. This solution does remove the delay between love.event.push('q') and the termination of the LoveNative activity, it will however cause a little delay later (hey, no temporary solution is perfect
![Wink ;)](./images/smilies/ms-wink.png)
The solution involves ignoring the saved state bundle, and is fixed by adding one line to the AndroidManifest.xml. This line will tell the app to never require this saved state for the LoveLauncher activity and therefore make a normal startup a little quicker. When love.event.push('q') is later called, the LoveNative will exit right away from the .finish() inside LoveJNI.java (which has been un-commented). A little later, the LoveLauncher activity "crashes", but is started right away as there is no (at this point non-existent) saved state required.
Implementing the solution
- Un-comment the code (obviously) inside of exitLove() in LoveJNI.java.
- Add the android:stateNotNeeded="true" to the LoveLauncher activity tag in AndroidManifest.xml.
Code: Select all
<activity android:theme="@android:style/Theme.NoTitleBar" android:label="LÖVE" android:stateNotNeeded="true" <!-- Line to be added --> android:name="LoveLauncher"> <intent-filter > <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
---------------------------------------------------------------------------------------------------------------------------------------------
Anyway, this should be it. It didn't turn out to be that short comment you talked about Moe
![Glee ^^](./images/smilies/ms-glee.png)
![Wink ;)](./images/smilies/ms-wink.png)