Forum Index  >>  RetroCopy Support  >>  

Crashes on Ubuntu 11.10 x86

      

   Page 1 of 1   

183 days ago - Sunday, November 20, 2011
Type: Member
Posts: 8
Joined: 9/14/2011
Hey everyone. When I run RetroCopy 0.96 on Ubuntu, it starts up, but crashes abruptly after around 5 seconds. This is what it outputs to the terminal:

Error opening PCM device plughw:0,0
Segmentation fault

Any idea how to fix it? Seems to be related to PulseAudio in some way:
http://help.lockergnome.com/linux/initalizing-audio-avidemux-kubuntu--ftopict489468.html
http://www.redhat.com/archives/rhl-list/2007-November/msg02288.html

EDIT: Ah, jeez. I just noticed there's a similar thread to this one, could've just asked there. Sorry.
Edited 2 times. Last edit by Doval
183 days ago - Sunday, November 20, 2011
Type: Member
Posts: 8
Joined: 9/14/2011
The edit button seems to have disappeared, so I'm forced to reply to myself. I remembered that when I used pSX on Ubuntu a year or two ago, it also segfaulted on startup, and the problem was related to PulseAudio. Found the old thread I had used to resolve the issue:
http://ubuntuforums.org/archive/index.php/t-1146830.html
These were the relevant instructions:

"it looks like pSX is having trouble with soundcard detection. here's how I managed to workaround this on Jaunty amd64. I did have to run pSX with sudo, but only once. here's the deal:

1. kill pulseaudio (sudo killall pulseaudio)
2. run pSX as root (sudo ./pSX)
3. find the "sound" tab in the configuration and switch the "device" setting from "default" to your soundcard (plughw:0,0 in my case). apply. close pSX.
4 open /root/.pSX/psx.ini in a text editor (gksudo gedit /root/.pSX/psx.ini). find the "device" string under [Sound] section (I have "b7d317a4" there).
5. paste this string into the relevant section in ~/.pSX/psx.ini, in place of all zeroes. save. if you don't have this file in your user directory, run pSX and cancel just after choosing language, on the bios selection screen. pSX should save settings then.

now pSX runs fine even after reboot."

I'm guessing RetroCopy's problem is similar, because I tried running it as root and it didn't segfault after the 5 second mark. However, there was no music playing in the menu and it segfaulted when I try to run any ROM. Killing PulseAudio prior to running RetroCopy didn't help either. Any ideas?
Edited 1 times. Last edit by Doval
183 days ago - Monday, November 21, 2011
Type: Member
Posts: 8
Joined: 9/14/2011
All right, I've made some progress. I found out about this tool: "pasuspender is a tool that can be used to tell a local PulseAudio sound server to temporarily suspend access to the audio devices, to allow other applications access them directly. pasuspender will suspend access to the audio devices, fork a child process, and when the child process terminates, resume access again."

Running "pasuspender ./retrocopy" started up the emulator and I could hear the usual BGM playing in the background. Looks like the reason killing PulseAudio wasn't helping earlier is that something was restarting it shortly after I killed it. Anyhow, with pasuspender I can hear the BGM, but it still crashes when I try to run a game.

   Page 1 of 1   



RetroCopy: Making emulation easy and fun.
  |   RetroCopy © 2011