Fmod loading sound issue crashing mac app

Hi all,

Trying to rebuild an old project, it seems to crash when trying to load sounds:

woodlandWiggle(11225,0xa08731d4) malloc: *** mach_vm_map(size=8675328) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
[ error ] ofFmodSoundPlayer: loadSound(): could not load "../../../data/assets/forest/sound/weather/WeatherBed.wav"
woodlandWiggle(11225,0xa08731d4) malloc: *** mach_vm_map(size=8507392) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
[ error ] ofFmodSoundPlayer: loadSound(): could not load "../../../data/assets/forest/sound/music/GuitarMedium.wav"

Cg compiler terminated due to fatal errorEXIT

Previously a OF 0072 project, have copied all the sources into a new 084 project and updated bits that have changed since then. When I run the app it crashes on the above.

All I am doing is sound.loadSound(“assets/forest/sound/weather/WeatherBed.wav”, false); etc

Is it a path issue, or has something changed?

Thanks

seems like a path issue i don’t think anything has changed in terms of loading a sound. check that it’s really in the data folder and that you are not setting ofSetDataPath somewhere else

Searched the project, no instance of ofSetDataPath and files in the right place.

So
sound.loadSound(“assets/forest/sound/weather/WeatherBed.wav”, false);

results in
could not load “…/…/…/data/assets/forest/sound/weather/WeatherBed.wav”

is that path right? with the …/…/…/ ?

with the images i’m just doing

imgTrees.loadImage(“assets/forest/graphics/scenery/trees.png”);

and they work ok.

thanks

yes, it should work the same for images or sounds, it might be that the specific wav format is not working? you could try to reencode them but it’s strange that it was working and it’s not anymore. also you could try to debug it to see where it’s crashing exactly which would help figuring out what’s going on