pSX Emulator
« Problems running linux binary file »

Welcome Guest. Please Login or Register.
May 25, 2013, 8:49am



Important Links
[ pSX Homepage | FORUM RULES | FAQ | Things to Remember when Posting Reports | Known Requests | Search ]
Make sure you familiarize yourself with ALL of the above links.

Global Announcement
As of this now, new users will no longer be able to register. Absence of staff to keep up with registrations and the security issue with throw-away email addresses are the cause of this.

Also, there will be no more posts permitted by users, again due to lack of active staff plus lack of development.


The illegal sharing of copyright material will not be tolerated. This includes, but is not limited to, the sharing of disc images, ROMs, and BIOS images. We do not provide support for people who have obtained their games or BIOS images by illegal means.

pSX Emulator :: Support :: Help & Support :: Problems running linux binary file
   [Search This Thread] [Share Topic] [Print]
 AuthorTopic: Problems running linux binary file (Read 1,436 times)
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.
Link to Post - Back to Top  IP: Logged
tekhnolyze
New Member
*
member is offline



[aim]

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.
Link to Post - Back to Top  IP: Logged
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.
Link to Post - Back to Top  IP: Logged
tekhnolyze
New Member
*
member is offline



[aim]

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
Link to Post - Back to Top  IP: Logged
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:
autospawn = no

Then issue the following command before running pSX:
Code:
pulseaudio -k

and the following command after running pSX:
Code:
pulseaudio -D

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
« Last Edit: Feb 1, 2011, 7:17pm by arek »Link to Post - Back to Top  IP: Logged
Ultima
Administrator
*****
Ulti-Admin
member is offline





Joined: Jan 2006
Posts: 2,333
 Re: Problems running linux binary file
« Reply #5 on Feb 3, 2011, 9:26am »

http://ubuntuforums.org/showthread.php?t=1557058
Seen this thread yet?
Link to Post - Back to Top  IP: Logged

pSX Frontend (v1.12.1 on 2009-05-08)
pSX Emulator Compatibility List, a (currently outdated) JavaScript implementation of smegforbrain's compatibility list
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
« Last Edit: Feb 3, 2011, 4:27pm by arek »Link to Post - Back to Top  IP: Logged
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.
« Last Edit: Feb 4, 2011, 7:50pm by Ultima »Link to Post - Back to Top  IP: Logged

pSX Frontend (v1.12.1 on 2009-05-08)
pSX Emulator Compatibility List, a (currently outdated) JavaScript implementation of smegforbrain's compatibility list
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?
Link to Post - Back to Top  IP: Logged
   [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile