gamefreak201 New Member
 member is offline
Joined: Nov 2010 Gender: Male  Posts: 1
|  | Problems running linux binary file « Thread Started on Nov 11, 2010, 6:01pm » | |
I've been trying to launch the binary file for pSX, but I keep getting this error message.
Code:[src/linux/sound.cpp, line 215]: 'snd_pcm_hw_params_set_access(pcm_handle,hwparams,SND_PCM_ACCESS_MMAP_INTERLEAVED)' returned 'Invalid argument' pad=0 Segmentation fault (core dumped) |
|
If it helps to know this, I'm running a 32-bit system with Fedora 14 installed in it.
| |
|
tekhnolyze New Member
 member is offline
![[aim] [aim]](http://images.proboards.com/new/aim.png)
Joined: Jan 2007 Gender: Male  Posts: 27
|  | Re: Problems running linux binary file « Reply #1 on Jan 12, 2011, 4:40pm » | |
Make sure you have the ALSA driver installed.
| |
|
realgecko New Member
 member is offline
Joined: Jan 2011 Gender: Male  Posts: 2
|  | Re: Problems running linux binary file « Reply #2 on Jan 30, 2011, 11:17am » | |
I have exactly the same problem. ALSA is up and running. 32 bit Mandriva 2010.2 Free.
| |
|
tekhnolyze New Member
 member is offline
![[aim] [aim]](http://images.proboards.com/new/aim.png)
Joined: Jan 2007 Gender: Male  Posts: 27
|  | Re: Problems running linux binary file « Reply #3 on Feb 1, 2011, 3:35pm » | |
pSX has three Linux dependencies: OpenGL, ALSA, GTK, GTKGLEXT, and libxml2. Make sure each of these is installed, and up-to-date.
Make sure you've run chmod +x pSX to turn the binary into an executable
| |
|
arek New Member
 member is offline
Joined: Jul 2006 Posts: 16
|  | Re: Problems running linux binary file « Reply #4 on Feb 1, 2011, 7:16pm » | |
That particular error comes from PulseAudio. In order to get past it, you need to kill the PulseAudio daemon (pasuspender will NOT work in this case). Here's how:
first, create the text file ~/.pulse/client.conf with the following line in it:
Code: Then issue the following command before running pSX:
Code: and the following command after running pSX:
Code: All that said, with the newest versions of Ubuntu, the linux version of pSX *still* doesn't work, giving me the following error:
Code:pSX: pcm_params.c:2285: snd_pcm_hw_refine: Assertion `pcm && params' failed. Aborted |
|
I hope this eventually helps somebody...and if anyone has gotten past the second error, please, let me know. 
--Arek
| |
|
Ultima Administrator
     Ulti-Admin member is offline
Joined: Jan 2006 Posts: 2,333
| |
arek New Member
 member is offline
Joined: Jul 2006 Posts: 16
|  | Re: Problems running linux binary file « Reply #6 on Feb 3, 2011, 4:22pm » | |
Thanks, Ultima, I hadn't seen that, but it doesn't really help me....I already know how to disable PA properly (it does, however, point out a problem I hadn't known about). The second error I get happens even with PA disabled.
That said, the Windows version of pSX works well in Wine, so I'll use that instead until 1.14 comes out (or someone figures out a workaround for the "pcm && params" error).
--Arek
| |
|
Ultima Administrator
     Ulti-Admin member is offline
Joined: Jan 2006 Posts: 2,333
|  | Re: Problems running linux binary file « Reply #7 on Feb 4, 2011, 7:50pm » | |
Quote:it doesn't give me any problems now, accept for the case when i have something already running, ie Slacker radio. I have to stop it before i start pSX or it gives me this error:
Code:[src/linux/sound.cpp, line 582]: 'snd_pcm_open(&pcm_handle,dev->info->device_fname,SND_PCM_STREAM_PLAYBACK,0)' returned 'Device or resource busy' pSX: pcm_params.c:2274: snd_pcm_hw_refine: Assertion `pcm && params' failed. Aborted |
|
|
|
That was the point of my linking; I wasn't telling you to disable PulseAudio.
|
|
|
realgecko New Member
 member is offline
Joined: Jan 2011 Gender: Male  Posts: 2
|  | Re: Problems running linux binary file « Reply #8 on Feb 5, 2011, 1:47pm » | |
Feb 1, 2011, 3:35pm, tekhnolyze wrote:pSX has three Linux dependencies: OpenGL, ALSA, GTK, GTKGLEXT, and libxml2. Make sure each of these is installed, and up-to-date.
Make sure you've run chmod +x pSX to turn the binary into an executable |
|
yup, all this stuff is installed and updated. any other suggestions?
| |
|