Rockbox Development > Starting Development and Compiling
VMWare: Segmentation Fault - Simulator chokes on audio
MarcGuay:
Howdy,
I've been trying to build a simulator with logf() enabled to hunt down a playback.c bug and have run into a small problem. I'm using VMWare with the RB image. Everything works fine until I try to play a sound file and at that point I receive a "Segmentation Fault" message and the simulator ends. I did some research and it appears this is because I don't have the proper SDL files for sound output, but the VMWare installation page states that the image includes "libsdl-dev (for the simulator)", so perhaps that's not the issue. Any ideas?
Domonoky:
You could check if other soundoutput works in the vm.
I have heard of others, that had the same problem, and they didnt had a (virtual) soundcard in the vm :-)
greets
MarcGuay:
Any suggestions on how to test the sound? I tried the "speaker-test" command recommended in another thread here but I guess it's not a function provided by the debian image. (I should state at this point, perhaps, that I have no experience with linux). I tried changing the line:
sound.virtualDev = "es1371" to sound.virtualDev = "sb16"
in the .vmx file because I have a soundblaster, not ensonic, sound card but that didn't do a thing. Unfortunately I can play sound in the windows environment while VMWare is running, which seems to me a bad sign that VMWare hasn't been given control of the soundcard.
Anyone have the experience and patience needed to help a brother out?
nls:
I get the same segfault here if I try to play anything with the sim in the VM _if_ logged on as 'user' if I log in as root all is fine so it seems like some kind of permission problem...
EDIT: I managed to fix it here, run the following as root:
--- Code: ---usermod -G audio user
--- End code ---
to add the user 'user' to the audio group.
MarcGuay:
Thanks chum! Working nicely now after a few VM reboots and undoing some of the "maybe this'll make it work" change I made. Now for the fun stuff... :)
Navigation
[0] Message Index
[#] Next page
Go to full version