DragonMinded / libdragon

Open source library for N64 development.
https://libdragon.dev
The Unlicense
746 stars 109 forks source link

xm64player_play destroys any currently playing sounds and will hit a nullptr exception. #622

Open nopjne opened 1 month ago

nopjne commented 1 month ago

message (4).txt

CPU EXCEPTION Invalid program counter address exception at PC:00000000 Exception address: 00000000 GPR: zr: ---- ---- 0000 0000 at: ---- ---- 8080 0000 v0: ---- ---- 0000 001a v1: ---- ---- 0000 0001 a0: ---- ---- 0000 0000 a1: ---- ---- 8008 7a0c a2: ---- ---- 0000 1c68 a3: ---- ---- 0000 00d0 t0: ---- ---- 0000 0000 t1: ---- ---- 8007 b7a3 t2: ---- ---- 8007 b7a2 t3: ---- ---- 8007 b778 t4: ---- ---- 0000 0008 t5: ---- ---- 0000 0000 t6: ---- ---- 0000 0000 t7: ---- ---- ffff ffff s0: ---- ---- 8008 7a0c s1: ---- ---- 0000 1c68 s2: ---- ---- 0000 0010 s3: ---- ---- 0000 0000 s4: ---- ---- 807f fbd8 s5: ---- ---- 0000 1c68 s6: ---- ---- 8008 8010 s7: ---- ---- 8008 75e0 t8: ---- ---- 0000 001c t9: ---- ---- 8005 34c0 k0: ---- ---- 8019 8d24 k1: ---- ---- 8000 c8e4 gp: ---- ---- 8008 d150 sp: ---- ---- 807f fb18 s8: ---- ---- 0000 000c ra: ---- ---- 8006 6a2c lo: ---- ---- 0000 0000 hi: cccc cccc cccc cccd

Backtrace:

+0x0 (???:0) [0x00000000] samplebuffer_get+0xe4 (libdragon/src/audio/samplebuffer.c:99) [0x80066a24] mixer_exec+0x210 (libdragon/src/audio/mixer.c:586) [0x80065e70] (inline) mixer_poll+0x210 (libdragon/src/audio/mixer.c:759) [0x80065e70] n64_audio_stream_update+0x2c (n64_wrapper/audio.c:173) [0x8001c304] engine_run+0x2ac (src/engine.c:369) [0x8001ab68] main+0x138 (n64_wrapper/main_n64.c:172) [0x8001af80] ???+0x0 (???:0) [0x80000464] Backtrace: __inspector_exception+0x8 (libdragon/src/inspector.c:685) [0x8005cac8] exception_default_handler+0x13c (libdragon/src/exception.c:228) [0x8005e3fc] __onCriticalException+0x3c (libdragon/src/exception.c:443) [0x8005e49c] +0x0 (inthandler.o:0) [0x80000544] +0x0 (???:0) [0x00000000] samplebuffer_get+0xe4 (libdragon/src/audio/samplebuffer.c:99) [0x80066a24] mixer_exec+0x210 (libdragon/src/audio/mixer.c:586) [0x80065e70] (inline) mixer_poll+0x210 (libdragon/src/audio/mixer.c:759) [0x80065e70] n64_audio_stream_update+0x2c (n64_wrapper/audio.c:173) [0x8001c304] engine_run+0x2ac (src/engine.c:369) [0x8001ab68] main+0x138 (n64_wrapper/main_n64.c:172) [0x8001af80] ???+0x0 (???:0) [0x80000464]