On Aug 30 2022, Matthieu Herrb wrote:
> On Tue, Aug 30, 2022 at 03:35:56PM +0200, Walter Alejandro Iglesias wrote:
> > On Aug 29 2022, Matthieu Herrb wrote:
> > > On Sat, Aug 27, 2022 at 01:07:30PM +0200, Walter Alejandro Iglesias wrote:
> > > > X crashes when moving cursor from keyboard bindings. I can reproduce
> > > > the bug with cwm, fvwm or fvwm2 (because this window managers have that
> > > > option). According to the logs the cause could be in wsmouse.
> > > >
> > > > **IT'S NOT EASY TO REPRODUCE IT**. Generally, but not necessarily is
> > > > easier right after X started (when wsmouse is still being loaded), and
> > > > stressing it, changing fast the direction.
> > > >
> > >
> > > Hi,
> > >
> > > I also cannot reproduce it, however, I've some idea on what could be
> > > happening.
> > >
> > > Can you try the patch below ? It adds locking with the input thread of
> > > the X server while adding new devices.
> >
> > Matthieu, I'm very very sorry to say that I'm still able to reproduce
> > it. Again, it doesn't happen every time, I have to insist.
> >
> > If you can think of anything else I can try let me know.
> >
> >
> > I didn't mention the following warning that shows up every time I run
> > startx, I ignore if it's related or even relevant:
> >
> > WARNING: Kernel has no file descriptor comparison support: No such a file
> > or directory
> >
>
> Could you share the contents of your .xinitrc file with us ? One thing
> that may make the issue impossible to reproduce for others is that
> somme applications (like ssh-add) grab the keyboard and so won't let
> the mouse emulation code of the window manager inject motion events.
To be sure, now I did the following. I created a new user with default
skel. I just added a .xinirc containing just "cwm", and the cwmrc I use
with my normal user, which includes this bindings:
bind-key M-s window-move-left
bind-key M-f window-move-down
bind-key M-d window-move-up
bind-key M-g window-move-right
I run startx and press M-f or M-d right after X is loaded and X
crashes. I could do it also with fvwm2.
Anyways, below I paste my normal user ~/xinitrc, if you find something
on it that could cause problems let me know.
#!/bin/sh
# ~/.xinitrc
wm=cwm
xrdb ~/.Xdefaults
setxkbmap es
xmodmap ~/.Xmodmap
case $wm in
cwm|twm)
bg=black
fg=gray60
height=20
exec xsetroot -bitmap $HOME/.icons/XBM/back.xbm -bg gray10 &
exec xclock -name docked-xclock -digital -render \
-fa Fixed:pixelsize=13:style=semicondensed \
-fg $fg -bg $bg -render -padding 3 \
-geometry x${height}-0+0 &
exec xbiff -name docked-xbiff \
-xrm '*emptyPixmap:/home/morlock/.icons/XBM/xbiff_empty.xbm' \
-xrm '*fullPixmap:/home/morlock/.icons/XBM/xbiff_full.xbm' \
-fg $fg -bg $bg -geometry 30x${height}+0+0 &
exec xconsole -daemon -notify -exitOnFail \
-geometry 500x130+0-0 -bg $bg -bd $fg -fg $fg -fn fixed \
-xrm 'xconsole*cursorColor:'$fg &
exec oclock -fg gray35 -bd gray35 -geometry 100x100-15-15 &
exec xterm &
;;
esac
exec $wm
# End of file
>
>
> --
> Matthieu Herrb
Walter