Android: Game might crash when quit rather closedown gracefull

Previous topic - Next topic

spacefractal

Rather than debate from the beta 11 thread, I think I should starte a new thread here, since this happens both in early and the new beta.

By know I have no clue how to read those crash log I got from logview.bat. This happens very often when I quit my game (which do elsewise run very flawless):
Code (glbasic) Select

I/glbasic (  672): [GLB]->MiniGames_LoadingRoom()
I/SDL     (  672): 1: keycode_back w/o alt-key -> finish
I/glbasic (  672): [GLB]->GLB_ON_QUIT()
I/glbasic (  672): Shut down GLB
I/DEBUG   (  619): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *
**
I/DEBUG   (  619): Build fingerprint: 'hp/hp_tenderloin/tenderloin:4.0.4/IMM76I/
330937:user/release-keys'
I/DEBUG   (  619): pid: 672, tid: 672  >>> com.spacefractal.greedymouse <<<
I/DEBUG   (  619): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 4d59900
4
I/DEBUG   (  619):  r0 00000000  r1 0000b000  r2 2aaf762c  r3 00000000
I/DEBUG   (  619):  r4 4d599000  r5 002ec7a8  r6 420a7870  r7 2aaf7474
I/DEBUG   (  619):  r8 4d599008  r9 00000000  10 00000000  fp 7ec7776c
I/DEBUG   (  619):  ip 00000000  sp 7ec77720  lr 2aac15c8  pc 2aac4840  cpsr 200
f0030
I/DEBUG   (  619):  d0  0000000000000000  d1  0000000000000000
I/DEBUG   (  619):  d2  0000000000000000  d3  0000000000000000
I/DEBUG   (  619):  d4  001e3db800000035  d5  0013d53800000036
I/DEBUG   (  619):  d6  001e3ca800000037  d7  001e3d2000000038
I/DEBUG   (  619):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   (  619):  d10 0000000000000000  d11 0000000000000000
I/DEBUG   (  619):  d12 0000000000000000  d13 0000000000000000
I/DEBUG   (  619):  d14 0000000000000000  d15 0000000000000000
I/DEBUG   (  619):  d16 473e2d5d424c475b  d17 55515f4e4f5f424c
I/DEBUG   (  619):  d18 0021c06800000042  d19 00198aa000000044
I/DEBUG   (  619):  d20 001fee1000000045  d21 001feed800000046
I/DEBUG   (  619):  d22 001fefa800000047  d23 001ff07800000048
I/DEBUG   (  619):  d24 3e66376972bea4d0  d25 3fd174646512dc71
I/DEBUG   (  619):  d26 3fefdfde00000000  d27 bed0810fee5b0a9d
I/DEBUG   (  619):  d28 c00005c02b53cb8a  d29 bf66fdec79316df6
I/DEBUG   (  619):  d30 bc0a42cc192d5632  d31 be23e4f5df600000
I/DEBUG   (  619):  scr 20000010
I/DEBUG   (  619):
I/DEBUG   (  619):          #00  pc 00015840  /system/lib/libc.so (dlfree)
I/DEBUG   (  619):          #01  pc 0001649c  /system/lib/libc.so (free)
I/DEBUG   (  619):          #02  pc 0000c07e  /mnt/asec/com.spacefractal.greedymouse-1/lib/libSDL_mixer.so (Mix_FreeChunk)
I/DEBUG   (  619):
I/DEBUG   (  619): code around pc:
I/DEBUG   (  619): 2aac4820 70dcf50c eeb6f7fc f0402800 f8df8307  ...p.....(@....
.
I/DEBUG   (  619): 2aac4830 f1a8761c 447f0408 428c6939 82eef0c0  .v.....D9i.B...
.
I/DEBUG   (  619): 2aac4840 3c04f858 f140079a f02382e9 07db0603  X..<..@...#....
.
I/DEBUG   (  619): 2aac4850 0506eb04 8118f100 3c08f858 d51107d8  ........X..<...
.
I/DEBUG   (  619): 2aac4860 0e01f023 ebce4476 36100004 f7f64631  #...vD.....61F.
.
I/DEBUG   (  619):
I/DEBUG   (  619): code around lr:
I/DEBUG   (  619): 2aac15a8 e2166903 1a000018 e5945000 e1a02004  .i.......P... .
.
I/DEBUG   (  619): 2aac15b8 e2055a02 e1a00005 e3851001 ebffec3f  .Z..........?..
.
I/DEBUG   (  619): 2aac15c8 e3500000 13856002 1a000001 ea000009  ..P..`.........
.
I/DEBUG   (  619): 2aac15d8 ebfffe87 e1a01004 e1a00006 ebffec3f  ............?..
.
I/DEBUG   (  619): 2aac15e8 e1a01005 e1a02006 e3a03000 e1550000  ..... ...0....U
.
I/DEBUG   (  619):
I/DEBUG   (  619): memory map around addr 4d599004:
I/DEBUG   (  619): 4d33e000-4d53e000 /dev/kgsl-3d0
I/DEBUG   (  619): (no map for address)
I/DEBUG   (  619): 502c9000-50b40000 /dev/kgsl-3d0
I/DEBUG   (  619):
I/DEBUG   (  619): stack:
I/DEBUG   (  619):     7ec776e0  4637d138  /mnt/asec/com.spacefractal.greedymouse-1/lib/libmain.so
I/DEBUG   (  619):     7ec776e4  2ab0b9bf  /system/lib/libstdc++.so
I/DEBUG   (  619):     7ec776e8  00008000  /system/bin/app_process
I/DEBUG   (  619):     7ec776ec  00000000
I/DEBUG   (  619):     7ec776f0  001569c8  [heap]
I/DEBUG   (  619):     7ec776f4  2aac1570  /system/lib/libc.so
I/DEBUG   (  619):     7ec776f8  00004000
I/DEBUG   (  619):     7ec776fc  00000000
I/DEBUG   (  619):     7ec77700  4637d138  /mnt/asec/com.spacefractal.greedymouse-1/lib/libmain.so
I/DEBUG   (  619):     7ec77704  002ec7a8  [heap]
I/DEBUG   (  619):     7ec77708  420a7870
I/DEBUG   (  619):     7ec7770c  000000b2
I/DEBUG   (  619):     7ec77710  4d599008
I/DEBUG   (  619):     7ec77714  00000000
I/DEBUG   (  619):     7ec77718  df0027ad
I/DEBUG   (  619):     7ec7771c  00000000
I/DEBUG   (  619): #00 7ec77720  4637d138  /mnt/asec/com.spacefractal.greedymouse-1/lib/libmain.so
I/DEBUG   (  619):     7ec77724  002ec7a8  [heap]
I/DEBUG   (  619):     7ec77728  420a7870
I/DEBUG   (  619):     7ec7772c  000000b2
I/DEBUG   (  619):     7ec77730  00001000
I/DEBUG   (  619):     7ec77734  00000000
I/DEBUG   (  619):     7ec77738  00000000
I/DEBUG   (  619):     7ec7773c  2aac549f  /system/lib/libc.so
I/DEBUG   (  619): #01 7ec77740  4637d138  /mnt/asec/com.spacefractal.greedymouse-1/lib/libmain.so
I/DEBUG   (  619):     7ec77744  46100081  /mnt/asec/com.spacefractal.greedymouse-1/lib/libSDL_mixer.so


Since this happens after Shut down GLB, then its might looking like a bug in glbasic close rutine and I thinks s is a sound and/or music issue. This wont happens if I disable the sound.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

From the glbasic beta 11 (to avoid confuction to about the sound problem), which happens:

QuoteThe SDL_MixFreeChunk crash is strange. It might come when you load or unload a sound. Can you play to make something reproducable?

This seen only happens when using samples, not when using music. Not sure how I can reproducable, but look on that next week. I think its a memory unhandlede issue and property might only happens because i use GENSOUND() to generate the ID?

When I use sound alternative method in the game, which only use MUSIC for playing samples (the game dosent require many sound channels really), then its plays fine.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/