Home Page
Posted By: hamelg random xorg crash when mouse enabled - 06/24/08 07:39 AM
Hello,

When I run sdlmame the first time on a freshly X session and move the mouse, Xserver crashes with this error :

Fatal server error:
bogus pointer event from ddx

The crash happens only the first time but not every time. If it doesn't happen the first time, it never happens.

Here is my configuration :
Linux kernel 2.6.25
sdlmame 0.125u1
xorg-server 1.4.2

Is it a sdl or xorg issue ?

Thank you
Posted By: qmc2 Re: random xorg crash when mouse enabled - 06/24/08 08:08 AM
I'd assume it's an xorg issue... although maybe "triggered" by SDLMAME. It could be triggered by any application if the underlying X server is somewhat "instable"... moving the mouse cursor shouldn't be critical at all.
Posted By: hamelg Re: random xorg crash when mouse enabled - 06/24/08 09:06 AM
Originally Posted By qmc2
It could be triggered by any application if the underlying X server is somewhat "instable"...


When crash occurs, Xserver is dedicated to sdlmame. Here is my .xsession :
xrandr -s 1024x768 -r 85
wahcade
Posted By: qmc2 Re: random xorg crash when mouse enabled - 06/24/08 10:53 AM
Maybe, but it still does not sound as an SDLMAME issue...

Try google'ing for "bogus pointer event from ddx"... I found this probable cause (and solution) related to "evdev" for example:

http://www.chrisweldon.net/2007/01/19/xorg-71-and-evdev-problems-solved

Of course this only applies if you are using "evdev" as the mouse driver... could you post the full xorg-log (at least the parts related to the mouse pointer)?
Posted By: R. Belmont Re: random xorg crash when mouse enabled - 06/24/08 12:30 PM
Yeah, that's an X problem, not an SDLMAME thing.
Posted By: hamelg Re: random xorg crash when mouse enabled - 06/24/08 01:18 PM
Originally Posted By qmc2

Of course this only applies if you are using "evdev" as the mouse driver... could you post the full xorg-log (at least the parts related to the mouse pointer)?


$ grep -i mouse Xorg.0.log.old
(**) |-->Input Device "Mouse0"
(II) LoadModule: "mouse"
(II) Loading /usr/lib/xorg/modules/input//mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
(==) NVIDIA(0): Silken mouse enabled
(**) Mouse0: Device: "/dev/input/mice"
(**) Mouse0: Protocol: "auto"
(**) Mouse0: always reports core events
(==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
(**) Mouse0: ZAxisMapping: buttons 4 and 5
(**) Mouse0: Buttons: 9
(**) Mouse0: Sensitivity: 1
(II) evaluating device (Mouse0)
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
(--) Mouse0: PnP-detected protocol: "ExplorerPS/2"
(II) Mouse0: ps2EnableDataReporting: succeeded
(II) Mouse0: ps2EnableDataReporting: succeeded
(II) evaluating device (Mouse0)
(II) Mouse0: ps2EnableDataReporting: succeeded
(II) Mouse0: ps2EnableDataReporting: succeeded

Here is the related section in my xorg.conf :

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection

This issue occurs only when running sdlmame. I'll try to force protocol to IMPS/2 via device /dev/psaux.

I saw here https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/97643, that specify
InputDevice "mouse" "SendCoreEvents"
in xorg.conf may help. But,I think it's already enabled by default like the log file says (**) Mouse0: always reports core events.

Posted By: hamelg Re: random xorg crash when mouse enabled - 06/25/08 07:07 PM
Force protocol to imps/2 fixes nothing.
I have the same behavior whatever the mouse driver used.

I've found out that the crash doesn't happen if I start sdlmame on a fresh X server.
The workaround is to force the X session manager to kill and restart the X server each time I logoff. So, I have inserted this line in stanza [X-:*-Core] in my kdmrc file :

TerminateServer=true

and now, all work like a charm !
© Forums