unload_wav results in Abort trap: 6 [OS X]
Issue #68
resolved
The following code will fail to compile with "Abort trap: 6" in OS X
Pxtb build from commit b5e8fa4646ed1b5b8592352b42949c680d763aa8
import "mod_sound"
private
int s;
begin
s = load_wav("awav.wav");
unload_wav(s);
end
pxtb -d main.pxt
PixTudio Blender 1.0.0 (Jul 10 2016 22:47:20)
Pixtudio comes with ABSOLUTELY NO WARRANTY
See COPYING for copyright details
Abort trap: 6
Commenting the unload_wav line will make it compile.
The problem does not happen in Linux, although I have not tried with the same pixtudio version.
Comments (2)
-
repo owner -
repo owner - changed status to resolved
I can no longer reproduce the bug with the following code, hence I'm closing the bug. Please reopen it if needed:
import "mod_sound" private int s; begin s = sound_load("awav.wav"); sound_unload(s); end
- Log in to comment
Thanks for reporting, I'll have a look at this ASAP.