Sound handle crashing

Previous topic - Next topic

MrPlow

Hi Spacefractal et al,

I have a few Playstore crashes lately related to sound...

Either is the playing of music or something else...

i am using Playsound with no handle so could that be the issue?



Any ideas?

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Revision: '8'
pid: 10821, tid: 10864, name: SDLThread >>> com.gazzapper.galaxystorm <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000010
r0 00000010 r1 794d4bf8 r2 72930a48 r3 00000010
r4 794d4bf8 r5 00000010 r6 794ce008 r7 78e80fc0
r8 78f7eae8 r9 78e80fb8 sl 78e78ef0 fp 78f7e8bc
ip 01000000 sp 78f7e8b0 lr 76af7468 pc 76af766c cpsr 800d0010
d0 0000000000000000 d1 0000000000000000
d2 0000000000000000 d3 0000000000000000
d4 000d000f00050050 d5 ffdafff3ffec0069
d6 3e4ccccd00424e48 d7 0000000400000004
d8 0000000000000000 d9 0000000000000000
d10 0000000000000000 d11 0000000000000000
d12 0000000000000000 d13 0000000000000000
d14 0000000000000000 d15 0000000000000000
d16 40e5938000000000 d17 0000000100b30101
d18 7461642f3a70697a d19 6f632f7070612f61
d20 70617a7a61672e6d d21 616c61672e726570
d22 2d6d726f74737978 d23 00003a6b70612e32
d24 3e2a817ff7000000 d25 3ff0000000000000
d26 3c0f65ee720aaebd d27 bf8d59f78880c128
d28 bf1aaae71a68a5df d29 3f2a7a71c7316a74
d30 3e2a817ff707bd4a d31 3f115664eeaf5f14
scr 60000013

backtrace:
#00 pc 0009c66c /data/app-lib/com.gazzapper.galaxystorm-2/libmain.so (SFXSoundBuffer::FreeBuffer()+20)
#01 pc 0009c464 /data/app-lib/com.gazzapper.galaxystorm-2/libmain.so (SFXSoundBuffer::Clear()+20)

code around pc:
76af764c e1a00003 e24bd004 e8bd8800 e92d4800
76af765c e28db004 e24dd008 e50b0008 e51b3008
76af766c e5933000 e3530000 0a000003 e51b3008
76af767c e5933000 e1a00003 ebfe242f e51b3008
76af768c e3a02000 e5832000 e24bd004 e8bd8800
76af769c 00000000 e92d4800 e28db004 e24dd088
76af76ac e50b0080 e50b1084 e50b2088 e50b308c
76af76bc ed1b7a21 eddf7a7c ee677a27 eeb77ae7
76af76cc ec510b17 ebfe24f4 ec410b17 eef77bc7
76af76dc ed4b7a05 ed1b7a21 eddf7a73 ee677a27
76af76ec eeb77ae7 ec510b17 ebfe253f ec410b17
76af76fc eef77bc7 ed4b7a04 e24b307c e1a00003
76af770c ebff0585 e3a03000 e50b300c ed5b7a22
76af771c eef57a40 eef1fa10 1a00003f ed5b7a23
76af772c eef57a40 eef1fa10 1a00001d eddb7a01
76af773c eef57a40 eef1fa10 0a000059 e3a03001

code around lr:
76af7448 e24bd004 e8bd8800 e92d4800 e28db004
76af7458 e24dd008 e50b0008 e51b0008 eb00007b
76af7468 e51b0008 ebffffef e24bd004 e8bd8800
76af7478 e92d4800 e28db004 e24dd010 e50b0008
76af7488 e50b100c e50b2010 e50b3014 e51b0008
76af7498 ebffffec e51b0010 e59f3048 e08f3003
76af74a8 e1a01003 ebfe23c4 e1a03000 e1a00003
76af74b8 e3a01001 ebfe23bd e1a02000 e51b3008
76af74c8 e5832000 e51b3008 e5933000 e3530000
76af74d8 03a03000 13a03001 e6ef3073 e1a00003
76af74e8 e24bd004 e8bd8800 0007a870 e92d4800
76af74f8 e28db004 e24dd008 e50b0008 e50b100c
76af7508 e51b3008 e5933000 e3530000 1a000001
76af7518 e3a03000 ea00000b e51b300c e3730001
76af7528 1a000001 e3a03000 ea000006 e51b000c
76af7538 ebfe242b e1a03000 e3530000 03a03000
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

Are you using the same index number as the loaded sound ?

MrPlow

I used checkasset (AE) and the loadsound with a # for each sound

Then playsound using the number # and some sounds are checked for playing like


Code (glbasic) Select


IF NOT SOUNDPLAYING(channel%) THEN channel%=PLAYSOUND(1,0,1)

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

The crash seen have been generated when the game was closing, which happens some times. This is a bug in glbasic and its sdlmixer im cant do anything with. Sldmixer the retine glbasic uses for its sound.

If you wish you can create comply of functions to uses soundpool/mediaplayer in Java instead, the library FiveSprites created. They prove have been quite more stable and im changed to uses that lib recently too in both my games.

Its would been nice if Gernot could disable the sdlmixer, if we want to choice a another one (im did something like that in java by adding a String.xml vale(.


Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Thanks!
I will look into that...
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs