Xorg crashes, possibly easystroke related

Bug #1769397 reported by lemonsqueeze
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
easystroke (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,
Giving ubuntu-mate 18.04 a try, fresh install.

I'm getting a lot of Xorg crashes which seem to be easystroke related:

Easiest way to reproduce so far seems browsing around in chromium, at some point when using mouse wheel for scrolling everything suddenly freezes, Xorg session crashes and i'm back at login manager.

I suspect this is easystroke related:

- syslog shows easystroke crashing right at that time:

    17:26:12 bionic mate-appearance[2034]: ../../../../../gdk/x11/gdkwindow-x11.c:5579 drawable is not a native X11 window
    17:34:02 bionic kernel: [ 2489.359116] easystroke[1860]: segfault at 0 ip b7bf2e9d sp bfef9640 error 4 in libgtkmm-3.0.so.1.1.0[b79c5000+3c3000]
    17:26:12 bionic mate-appearance[2034]: message repeated 5 times: [ ../../../../../gdk/x11/gdkwindow-x11.c:5579 drawable is not a native X11 window]
    17:34:02 mate-appearance[2034]: mate-appearance-properties: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.

- I can't seem to get it to crash when easystroke is not running.

easystroke works fine otherwise, imported settings from previous install and it does well.

Might be mate-related, i'll report it there as well.

Revision history for this message
lemonsqueeze (lemonsqueeze) wrote :
Revision history for this message
floriankeim (floriankeim) wrote :

The same happens with 18.04 (default using gnome). Sometimes it happens as described, sometimes ubuntu freezes. It sometimes happens right after you perform a gesture.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in easystroke (Ubuntu):
status: New → Confirmed
Revision history for this message
Mark St. John (markdstjohn) wrote :

This sporadically happens to me when performing a copy (ctrl-c) or paste (ctrl-v) gesture.

Revision history for this message
Ville Haapala (vhaapala) wrote :
Revision history for this message
Jorge Cardoso (iorch12) wrote :

In my case Xorg crashes under the following conditions:

1 Using Gnome

2 Using Dual Monitors

3 Easystroke Gestures is enabled and running.

4 Moving mouse away from the taskbar or sound icon after a right click has been done on the taskbar.

Revision history for this message
Tim Banchi (tim-banchi) wrote :

I can confirm Jorge Cardoso, using 18.04 with Intel Corporation Mobile GM965/GL960, and unity (gnome crashed as well), dual monitor, and Easystroke.

Right-clicking and then moving the mouse towards the other monitor crashes Xorg. Over the last weeks I tried out different distros, and had the same problem also with Fedora 28

If easystroke is not running, there are no crashes.

in the subsequent crash report I get "Xorg crashed with SIGSEGV in miPointerSetPosition()"

in /var/log/syslog I see (beside others):
easystroke[8113]: segfault at 0 ip 00007fe92f8d2f41 sp 00007ffc96085388 error 4 in libgtkmm-3.0.so.1.1.0[7fe92f58a000+486000]

easystroke is essential for me, especially after gestures are not really working any more in firefox

Revision history for this message
Sergej Kozin (sergejkozin) wrote :

I can reproduce crash using Jorge Cardoso steps in Ubuntu 18.04 / Xfce / Dual Monitors.

I use right mouse button (Button 3) as the "Gesture Button" in Easystroke.
When I changed it to middle button (Button 2) crash is not reproduces so often.
But it possible:

1. Hold middle button (should be hold all time)
2. Wait few seconds
3. Click right button for show context menu (in Xfce it can be context menu of desktop or panel)
4. Move mouse pointer out from context menu rectangle

Revision history for this message
flo schneider (0penartist) wrote :

It seems like easystroke on ubuntu is still built from 0.6.0 release and not from master.

possibly related bug is also fixed in master:
https://bugs.launchpad.net/ubuntu/+source/easystroke/+bug/1426190

As master is also outdated, you will need to add at least this patch:
https://github.com/thjaeger/easystroke/pull/6

"This fixes a serious bug that can lead to system instability. Without this patch, if a 'Command' action is commonly used, it will lead to so many zombie processes that the OS will be unable to launch additional processes."

for the non-tech savvy, here is an already built package:
http://openartisthq.org/easystroke/easystroke_0.6.0-0ubuntu8_amd64.deb

for people who do not want to install packages from outside the debian packages mechanism, I also provide the already patched sources with the used patches:
http://openartisthq.org/easystroke/patched-easystroke-master.tar.bz2

Let me know if this helps ;-)

Revision history for this message
Malter (malteroe) wrote :

I use Kubuntu 18.04 LT and also suffer from this problem. I tried the .deb from
http://openartisthq.org/easystroke/easystroke_0.6.0-0ubuntu8_amd64.deb
but the problem persists. I am using three displays.
So far, the easiest way to reproduce the crash was to right click on the task bar and open Task manager settings.

Revision history for this message
Mark St. John (markdstjohn) wrote :
Download full text (17.1 KiB)

I ran Xorg in gdb and captured a backtrace of a crash using a script similar to the one in the "Debugging with one machine" section of https://www.x.org/wiki/Development/Documentation/ServerDebugging/

Here's the output of the gdb_log file that it generated:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

X.Org X Server 1.19.6
Release Date: 2017-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-83-generic x86_64 Debian
Current Operating System: Linux mstjohn 4.19.12-1rodete1-amd64 #1 SMP Debian 4.19.12-1rodete1 (2018-12-26) x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-4.19.12-1rodete1-amd64 root=/dev/mapper/sysvg-root ro ima_hash=sha256 slab_nomerge intel_iommu=on,igfx_off elevator=deadline apparmor=1 security=apparmor quiet splash
Build Date: 05 February 2018 07:11:13PM
xorg-server 2:1.19.6-1 (https://www.debian.org/support)
Current version of pixman: 0.34.0
 Before reporting problems, check http://wiki.x.org
 to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
 (++) from command line, (!!) notice, (II) informational,
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 31 18:59:19 2019
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
[New Thread 0x7fffeca94700 (LWP 8583)]

Thread 1 "Xorg" received signal SIGPIPE, Broken pipe.
(EE) client bug: timer event11 debounce short: offset negative (-0ms)

Thread 2 "InputThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffeca94700 (LWP 8583)]
drmmode_set_cursor (crtc=<optimized out>, crtc=<optimized out>) at ../../../../../../../hw/xfree86/drivers/modesetting/drmmode_display.c:755
755 ../../../../../../../hw/xfree86/drivers/modesetting/drmmode_display.c: No such file or directory.
#0 0x00007ffff2643f61 in drmmode_set_cursor (crtc=<optimized out>, crtc=<optimized out>) at ../../../../../../../hw/xfree86/drivers/modesetting/drmmode_display.c:755
        cursor = 0x0
        drmmode_crtc = 0x555555b7c740
        drmmode = 0x5555559fc440
        handle = 10
        ms = 0x5555559fc3f0
        ret = -22
#1 0x0000555555622465 in xf86_crtc_show_cursor (crtc=0x555555b7bc70) at ../../../../../../hw/xfree86/modes/xf86Cursors.c:340
        crtc = 0x555555b7bc70
        scrn = <optimized out>
        xf86_config = <optimized out>
        cursor_info = <optimized out>
        crtc_y = <optimized out>
        mode = 0x555555b7bc88
        crtc_x = <optimized out>
        crtc = 0x555555b7bc70
        xf86_config = 0x555555b72d20
        c = 1
#2 0x0000555555622465 in xf86_crtc_set_cursor_position (y=537, x=2540, crtc=0x555555b7bc70) at ../../../../../../hw/xfree86/modes/xf86Cursors.c:451
        scrn = <optimized out>
        xf86_config = <optimized out>
        cursor_info = <optimized out>
        crtc_y = <optimized out>
        mode = 0x555555b7bc88
        crtc_x = <optimized out>
        crtc = 0x555555b7bc70
        xf86_config = 0x555555b72d20
        c = 1
#3 0x0000555555622465 in xf86_set_cursor_position (scrn=<optimized out>, x=25...

Revision history for this message
Mark St. John (markdstjohn) wrote :

I filed a Debian bug for this at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=921046, since that's what I'm actually using. In that bug I included a patch to hw/xfree86/drivers/modesetting/drmmode_display.c in the xserver-xorg-core package that fixes the issue for me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.