FS#62612 - GIMP 2.10.10 crashes Xorg

Attached to Project: Arch Linux
Opened by Antyradek (Antyradek) - Saturday, 11 May 2019, 22:47 GMT
Last edited by freswa (frederik) - Thursday, 20 February 2020, 21:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Something scary happened between GIMP 2.10.8 and 2.10.10, which now happens to crash Xorg.

Running:
Xorg 1.20.4
Nvidia 418.74 with Prime configuration

GIMP can be started normally and new image can be created/opened.
As soon as the cursor moves onto the canvas, Xorg gets aborted and you are catapulted back to login manager.
This doesn't happen with Wayland, it happens both on GNOME and Plasma.

This bug is not present in 2.10.8, however GIMP's GitLab doesn't have opened issue for any similar problem.

The nuisance is, there are no logs present neither for GIMP, nor Xorg.
Xorgs gets internally aborted and ends after SIGABRT without saying much.

Journalctl at the moment of moving cursor:
[code]
May 11 22:25:57 arch audit[6161]: ANOM_ABEND auid=4294967295 uid=0 gid=0 ses=4294967295 pid=6161 comm="Xorg" exe="/usr/lib/Xorg" sig=6 res=1
May 11 22:25:57 arch kernel: audit: type=1701 audit(1557606357.289:640): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=6161 comm="Xorg" exe="/usr/lib/Xorg" sig=6 res=1
May 11 22:25:57 arch systemd[1]: Started Process Core Dump (PID 6884/UID 0).
May 11 22:25:57 arch audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@188-6884-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? termina>
May 11 22:25:57 arch kernel: audit: type=1130 audit(1557606357.296:641): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@188-6884-0 comm="systemd" exe="/usr/lib/systemd/system>
May 11 22:25:57 arch dolphin[6646]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch kdeinit5[6263]: The X11 connection broke: I/O error (code 1)
May 11 22:25:57 arch kuiserver5[6457]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch kgpg[6343]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch ksmserver[6295]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch gmenudbusmenuproxy[6316]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch kwalletd5[6222]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch krunner[6302]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch org_kde_powerdevil[6340]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch kactivitymanagerd[6383]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch kaccess[6270]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch pulseaudio[2726]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
May 11 22:25:57 arch pulseaudio[2726]: after 14 requests (6 known processed) with 0 events remaining.
May 11 22:25:57 arch kglobalaccel5[6282]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch xembedsniproxy[6313]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch polkit-kde-authentication-agent-1[6310]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch krunner[6302]: The X11 connection broke: I/O error (code 1)
May 11 22:25:57 arch sddm[688]: kwalletd5: Checking for pam module
May 11 22:25:57 arch sddm[688]: kwalletd5: Got pam-login param
May 11 22:25:57 arch sddm[688]: kwalletd5: Waiting for hash on 7-
May 11 22:25:57 arch sddm[688]: kwalletd5: waitingForEnvironment on: 3
May 11 22:25:57 arch sddm[688]: kwalletd5: client connected
May 11 22:25:57 arch sddm[688]: kwalletd5: client disconnected
May 11 22:25:57 arch kscreen_backend_launcher[6289]: The X11 connection broke (error 1). Did the X11 server die?
May 11 22:25:57 arch bluetoothd[678]: Endpoint unregistered: sender=:1.335 path=/MediaEndpoint/A2DPSource
May 11 22:25:57 arch bluetoothd[678]: Endpoint unregistered: sender=:1.335 path=/MediaEndpoint/A2DPSink
May 11 22:25:57 arch plasmashell[6304]: The X11 connection broke: I/O error (code 1)
May 11 22:25:57 arch polkitd[697]: Unregistered Authentication Agent for unix-session:6 (system bus name :1.671, object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8) (disconnect>
May 11 22:25:57 arch plasmashell[6304]: QObject::~QObject: Timers cannot be stopped from another thread
May 11 22:25:57 arch kwin_x11[6298]: The X11 connection broke: I/O error (code 1)
May 11 22:25:57 arch plasmashell[6304]: QtDBus: cannot relay signals from parent QObject(0x559fdf75a6d0 "") unless they are emitted in the object's thread QThread(0x559fdecaa780 ""). Current thread>
May 11 22:25:57 arch plasmashell[6304]: QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
May 11 22:25:57 arch systemd[744]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
May 11 22:25:57 arch systemd[744]: pulseaudio.service: Failed with result 'exit-code'.
May 11 22:25:57 arch sddm-helper[6213]: [PAM] Closing session
May 11 22:25:57 arch sddm-helper[6213]: pam_unix(sddm:session): session closed for user arq
May 11 22:25:57 arch sddm-helper[6213]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_close_session
May 11 22:25:57 arch sddm-helper[6213]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
May 11 22:25:57 arch sddm-helper[6213]: [PAM] Ended.
May 11 22:25:57 arch sddm[688]: Auth: sddm-helper exited successfully
May 11 22:25:57 arch sddm[688]: Socket server stopping...
May 11 22:25:57 arch sddm[688]: Socket server stopped.
May 11 22:25:57 arch sddm[688]: Display server stopping...
May 11 22:25:57 arch systemd-logind[676]: Session 6 logged out. Waiting for processes to exit.
May 11 22:25:57 arch systemd[744]: pulseaudio.service: Service RestartSec=100ms expired, scheduling restart.
May 11 22:25:57 arch systemd[744]: pulseaudio.service: Scheduled restart job, restart counter is at 1.
May 11 22:25:57 arch systemd[744]: Stopped Sound Service.
May 11 22:25:57 arch systemd[744]: Starting Sound Service...
May 11 22:25:57 arch rtkit-daemon[971]: Successfully made thread 6894 of process 6894 owned by '1000' high priority at nice level -11.
May 11 22:25:57 arch rtkit-daemon[971]: Supervising 1 threads of 1 processes of 1 users.
May 11 22:25:57 arch pulseaudio[6894]: W: [pulseaudio] pid.c: Stale PID file, overwriting.
May 11 22:25:58 arch sddm[688]: Display server stopped.
May 11 22:25:58 arch sddm[688]: Running display stop script "/usr/share/sddm/scripts/Xstop"
May 11 22:25:58 arch sddm[688]: Removing display ":0" ...
May 11 22:25:58 arch sddm[688]: Adding new display on vt 1 ...
May 11 22:25:58 arch sddm[688]: Loading theme configuration from ""
May 11 22:25:58 arch sddm[688]: Display server starting...
May 11 22:25:58 arch sddm[688]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{0d6bb08b-34bd-4c69-ba1e-c859d6e9819d} -background none -noreset -displayfd 18 -seat seat0 vt1
May 11 22:25:58 arch acpid[679]: client 6161[0:0] has disconnected
May 11 22:25:58 arch acpid[679]: client connected from 6896[0:0]
May 11 22:25:58 arch acpid[679]: 1 client rule loaded
May 11 22:25:58 arch rtkit-daemon[971]: Supervising 1 threads of 1 processes of 1 users.
May 11 22:25:58 arch rtkit-daemon[971]: Successfully made thread 6897 of process 6894 owned by '1000' RT at priority 5.
May 11 22:25:58 arch rtkit-daemon[971]: Supervising 2 threads of 1 processes of 1 users.
May 11 22:25:58 arch rtkit-daemon[971]: Supervising 2 threads of 1 processes of 1 users.
May 11 22:25:58 arch rtkit-daemon[971]: Successfully made thread 6898 of process 6894 owned by '1000' RT at priority 5.
May 11 22:25:58 arch rtkit-daemon[971]: Supervising 3 threads of 1 processes of 1 users.
May 11 22:25:58 arch dbus-daemon[675]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.770" (uid=1000 pid=6894 comm="/usr/bin/pulseaudio --daemonize=no ") interface=>
May 11 22:25:58 arch systemd[744]: Started Sound Service.
May 11 22:25:58 arch pulseaudio[6894]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call">
May 11 22:25:58 arch acpid[679]: client connected from 6896[0:0]
May 11 22:25:58 arch acpid[679]: 1 client rule loaded
May 11 22:25:58 arch systemd-coredump[6885]: Process 6161 (Xorg) of user 0 dumped core.

Stack trace of thread 6161:
#0 0x00007f307db6182f raise (libc.so.6)
#1 0x00007f307db4c672 abort (libc.so.6)
#2 0x000055a992f32b5a OsAbort (Xorg)
#3 0x000055a992f295cf FatalError (Xorg)
#4 0x000055a992f373ee n/a (Xorg)
#5 0x00007f307db618b0 __restore_rt (libc.so.6)
#6 0x000055a992ecb928 n/a (Xorg)
#7 0x000055a992ed2777 n/a (Xorg)
#8 0x000055a99303b120 mieqProcessInputEvents (Xorg)
#9 0x000055a992f1b5c9 ProcessInputEvents (Xorg)
#10 0x000055a992ebd888 n/a (Xorg)
#11 0x00007f307db4dce3 __libc_start_main (libc.so.6)
#12 0x000055a992ebe30e _start (Xorg)
May 11 22:25:58 arch systemd[1]: systemd-coredump@188-6884-0.service: Succeeded.
[/code]

For /var/log/Xorg.1.log however, there are just logs for initialisation and closing down:
[code]
[ 3700.872] (II) XINPUT: Adding extended input device "Logitech USB Receiver" (type: KEYBOARD, id 17)
[ 3726.515] (II) event6 - (II) Power Button: (II) device removed
[ 3726.526] (II) event11 - (II) Video Bus: (II) device removed
[ 3726.556] (II) event3 - (II) Power Button: (II) device removed
[ 3726.586] (II) event4 - (II) Sleep Button: (II) device removed
[ 3726.619] (II) event10 - (II) Video Bus: (II) device removed
[ 3726.636] (II) event20 - (II) Lenovo EasyCamera: Lenovo EasyC: (II) device removed
[ 3726.656] (II) event1 - (II) Logitech USB Receiver: (II) device removed
[ 3726.676] (II) event8 - (II) Ideapad extra buttons: (II) device removed
[ 3726.706] (II) event0 - (II) AT Translated Set 2 keyboard: (II) device removed
[ 3726.769] (II) event2 - (II) Logitech USB Receiver: (II) device removed
[ 3726.791] (II) UnloadModule: "libinput"
[ 3726.791] (II) UnloadModule: "synaptics"
[ 3726.791] (II) UnloadModule: "libinput"
[ 3726.791] (II) UnloadModule: "libinput"
[ 3726.791] (II) UnloadModule: "libinput"
[ 3726.791] (II) UnloadModule: "libinput"
[ 3726.791] (II) UnloadModule: "libinput"
[ 3726.791] (II) UnloadModule: "libinput"
[ 3726.791] (II) UnloadModule: "libinput"
[ 3726.791] (II) UnloadModule: "libinput"
[ 3726.791] (II) UnloadModule: "libinput"
[ 3726.792] (II) UnloadModule: "libinput"
[ 3726.801] (II) NVIDIA(GPU-0): Deleting GPU-0
[ 3726.802] (WW) xf86CloseConsole: KDSETMODE failed: Input/output error
[ 3726.802] (WW) xf86CloseConsole: VT_GETMODE failed: Input/output error
[ 3726.802] (WW) xf86CloseConsole: VT_ACTIVATE failed: Input/output error
[ 3726.802] (II) Server terminated successfully (0). Closing log file.
[/code]

With audit dæmon running:
[code]
sudo ausearch -c Xorg -i
----
type=ANOM_ABEND msg=audit(12/05/19 00:24:21.359:265) : auid=unset uid=root gid=root ses=unset pid=4362 comm=Xorg exe=/usr/lib/Xorg sig=SIGABRT res=yes
[/code]

Steps to reproduce:
Happens always, try to open some image and edit it.

Now, blacklisting gimp in pacman.conf is *not* the proper solution for this.
Does anyone have similar problem, so I can open issue for GIMP's developers?
This task depends upon

Closed by  freswa (frederik)
Thursday, 20 February 2020, 21:20 GMT
Reason for closing:  None
Additional comments about closing:  This seems pretty stalled to me. If it's still an issue. Please fill a re-open request. Thank you :)
Comment by Antyradek (Antyradek) - Sunday, 12 May 2019, 00:10 GMT
Fun fact: Git unstable master branch (aur/gimp-git) works fine.
Comment by pezcurrel (pezcurrel) - Wednesday, 27 November 2019, 07:35 GMT
Same problem here on my notebook: Gimp 2.10.14, Xorg 1.20.6, kernel 5.3.13-arch1-1, nvidia 440.36-2 with prime configuration.
I don't have the problem on my desktop pc with a very similar configuration but without prime and without the "hidpi" monitor I have on the notebook, so I think it may be related to prime and/or hidpi.
@Antiradek, do you have an hidpi monitor too?
Comment by Antyradek (Antyradek) - Wednesday, 27 November 2019, 22:56 GMT
@pezcurrel Funny thigh you noted, because in fact YES.
I have UHD display.

I made some tests then and it turns out Xorg doesn't crash on lower resolutions. Only full 3840×2160 crashes Xorg. Image size doesn't matter.
Therefore this may be some problem with memory buffer size or so.
Comment by pezcurrel (pezcurrel) - Saturday, 30 November 2019, 13:49 GMT
I filed an issue on gimp's gitlab

https://gitlab.gnome.org/GNOME/gimp/issues/4317

Loading...