[Linux] Segfault as normal user; Not responding to keyboard

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Post Reply
showdax
New Member
Posts: 6
Joined: Tue Aug 17, 2004 4:36 pm

[Linux] Segfault as normal user; Not responding to keyboard

Post by showdax »

I'm having some problems with ZSNES under linux (Slackware 10.0.)

1) If I run zsnes as a normal/non-root user, it displays everything up to "MMX support found and enabled" and then says "segmentation fault" and exits. It loads fine as root.

2) When I do get it running, it doesn't respond to my keyboard. The "Z" dialog appears and pressing the Z key does nothing.

I've tried compiling 1.36, compiling the 0803 WIP, and installing the 1.36 slackware package from linuxpackages.net. All behave in the same manner.
rage46
Lurker
Posts: 117
Joined: Wed Jul 28, 2004 4:02 am
Location: nowhere special

Post by rage46 »

Sounds like you don't have permissions to this file, first do a make clean in the zsnes directory. Then as root run the ./configure, make, make install (All seperate commands of course). Or you can try to chown it like so (I think) chown <your username here> zsnes. Without the bracket things obviously.
Some people are like slinky's not really good for anything but you can't help smile when one falls down the stairs.
showdax
New Member
Posts: 6
Joined: Tue Aug 17, 2004 4:36 pm

Post by showdax »

No, I have permissions. It's set to read/execute for world. If I didn't have permission to run the file I wouldn't be able to run zsnes and see the segfault error message.

The second problem irks me more though as I could at least use the emulator if it responded to anything I did. I'm running it from CLI, not in xfree86/xorg-x11 or anything. It loads up fine (as root) and displays the "press "Z" to continue" dialog, but pressing Z doesn't do anything.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Make sure you have proper permission to ~/.zsnes an it's contents. Also make sure that if you don't have a standard US keyboard, that you try pushing every single button on your keyboard, especially the ones in the lower left.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
showdax
New Member
Posts: 6
Joined: Tue Aug 17, 2004 4:36 pm

Post by showdax »

As a normal user, ~/.zsnes is owned by that user and permissions are fine.

I tried what you said with zsnes running as root and got past the dialog by pressing the "." key. Getting through dialogs didn't really work well; as far as the regular arrow keys go, only the "down" key functioned. The numpad arrow keys seemed to work a little better, but I didn't test much else.

I'm using a normal US keyboard (specifically this,) and it's being used via the PS/2 port.
rage46
Lurker
Posts: 117
Joined: Wed Jul 28, 2004 4:02 am
Location: nowhere special

Post by rage46 »

I dont recommend it but you could just chmod 777 everything in the directory.
Some people are like slinky's not really good for anything but you can't help smile when one falls down the stairs.
showdax
New Member
Posts: 6
Joined: Tue Aug 17, 2004 4:36 pm

Post by showdax »

chmodding ~/.zsnes and ~/.zsnesl.cfg 777 doesn't stop the segfaulting. zsnes is creating the directory as 755 and the cfg file as 644.

Is there any way to get something more descriptive than "segmentation fault"? That would probably be a lot more informative.
rage46
Lurker
Posts: 117
Joined: Wed Jul 28, 2004 4:02 am
Location: nowhere special

Post by rage46 »

You could try snes9x instead.
Some people are like slinky's not really good for anything but you can't help smile when one falls down the stairs.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Any chance you are using KDE?

Try deleting everything in /tmp

I don't know much about your keyboard, but it sounds like the keys are mapped differently then usual. Can you use the mouse to navigate? You should have no trouble setting the keys you desire to be used ingame in the input menus.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
showdax
New Member
Posts: 6
Joined: Tue Aug 17, 2004 4:36 pm

Post by showdax »

I'm running zsnes from the CLI, not from xfree86/xorg-x11. I just tested it in xfce4 running on xorg-x11 6.7.0 and it loaded fine and keys were mapped appropriately.

It segfaults under CLI but not under xorg-x11. Is this normal behavior? I'd rather run it without X11 as I'm using it on my television and I want the least amount of slow-down possible.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

If you compile SDL to use SVGA, that should work.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
showdax
New Member
Posts: 6
Joined: Tue Aug 17, 2004 4:36 pm

Post by showdax »

Is there anyway to check that with pre-existing binaries? And would that really affect anything considering it loads just fine from CLI as root?
Post Reply