Quantcast
Channel: arm - openFrameworks
Viewing all articles
Browse latest Browse all 364

Raspberry Pi 'Segmentation fault' on loading gif/sound files

$
0
0

@vladstorm wrote:

Hi,
I'm writing a audio sampler on raspberry pi.
Everything works but i have this strange 'segmentation fault' error while loading GIF files.

So at first I used only SoundPlayer to play audio samples.
And sample loading taking super long time. ( s.loadSound("sounds/s1.mp3"); )
When I was trying to load more than 7 samples (about 30 sec each/mp3) - i had an error. I don't really remember the exact error but I thought it cause of the RAM. I thought so coz loading is taking really long time. i mean about 1-2min. I thought its just not enough memory but I also could be wrong and it could be something else. At that moment I didn't' find that error in google. I just decided to load less files coz it worked for my case.

But now I also trying to load some GIF files for animation with ofxGifDecoder. Everything work on OSX machine but on raspberry its taking also long time and after loading 6 audio files and 2 GIF files the app crashes with 'Segmentation fault'.

Do you have any ideas?
I have Raspberry B+. and I installed raspbian and oF on my older one (B) and then just using the same SD card. Maybe I can reinstall Raspbian and recompile oF and it will give me more RAM or maybe it's not related.

I really wanna know why I have this problem. If its only coz of the memory then Ill try to buy raspbery pi 2

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 364

Latest Images

Trending Articles



Latest Images