I just had another crash, this time with libreoffice-calc. When
working on a spreadsheet I get the similar behavior to gimp if I try
to change the background color of a collection of cells. Both screens
go black. Then the a second later the left display recovers and maybe
½ second later the right screen recovers. The first time it then froze
for a few seconds and went back to functioning. The second time this
happened, Sway crashed and dumped me in a terminal. All graphical
windows were lost but the underlying apps were still running.

So if there is anything similar between localc » right cick » format
cells » background and Gimp’s threshold dialog, that might give a clue.

> To me this bug sounds a lot like a out of memory problem (maybe even out of
> video memory). Can you have a log at the system log at the time of the
> crash? Try:
> 
> sudo journalctl -S 2024-06-18
> 
> for that. Also, can you reproduce the bug?

The bug seems relatively reproducable. Every time I enter Gimp
threshold or localc background color things slow down, the screens
blink, and sometimes recover and sometimes crash. Gimp hung and needed
a forced power off after the screens blinked. Localc caused sway to
crash after blinking the screens. It’s obviously risky to make things
crash so I’m not keen to repeat the actions that cause the freeze and
crash.

When I run journalctl, it looks like a “GPU HANG … Resetting chip for
stopped heartbeat on rcs0” might be relevant:

===8<------------------------------
Jul 06 16:35:22 kernel: audit: type=1400 audit(1720276522.925:1405): 
apparmor="ALLOWED" operation="open" profile="libreoffice-soffi>
Jul 06 16:35:22 audit[54762]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/lib>
Jul 06 16:35:22 audit[54762]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/lib>
Jul 06 16:35:22 audit[54762]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/lib>
Jul 06 16:35:22 audit[54762]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/lib>
Jul 06 16:35:22 audit[54762]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/lib>
Jul 06 16:35:22 audit[54762]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/lib>
Jul 06 16:35:24 audit[54762]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/lib>
Jul 06 16:35:24 audit[54762]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/lib>
Jul 06 16:35:30 kernel: i915 0000:00:02.0: [drm] GPU HANG: ecode 4:1:9fe7fbfd, 
in Xwayland [1512]
Jul 06 16:35:31 kernel: i915 0000:00:02.0: [drm] Resetting chip for stopped 
heartbeat on rcs0
Jul 06 16:35:31 kernel: i915 0000:00:02.0: [drm] Xwayland[1512] context reset 
due to GPU hang
Jul 06 16:35:43 audit[54762]: AVC apparmor="ALLOWED" operation="mknod" 
profile="libreoffice-soffice" name="~/.config/li>
Jul 06 16:35:43 audit[54762]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/lib>
Jul 06 16:35:43 audit[54762]: AVC apparmor="ALLOWED" operation="file_lock" 
profile="libreoffice-soffice" name="~/.config/>
Jul 06 16:35:43 kernel: kauditd_printk_skb: 8 callbacks suppressed
Jul 06 16:35:43 kernel: audit: type=1400 audit(1720276543.934:1414): 
apparmor="ALLOWED" operation="mknod" profile="libreoffice-soff>
Jul 06 16:35:43 kernel: audit: type=1400 audit(1720276543.934:1415): 
apparmor="ALLOWED" operation="open" profile="libreoffice-soffi>
Jul 06 16:35:43 kernel: audit: type=1400 audit(1720276543.934:1416): 
apparmor="ALLOWED" operation="file_lock" profile="libreoffice->
Jul 06 16:35:43 audit[54762]: AVC apparmor="ALLOWED" operation="rename_src" 
profile="libreoffice-soffice" name="~/.config/>
Jul 06 16:35:43 audit[54762]: AVC apparmor="ALLOWED" operation="rename_dest" 
profile="libreoffice-soffice" name="~/.config/>
Jul 06 16:35:43 kernel: audit: type=1400 audit(1720276543.942:1417): 
apparmor="ALLOWED" operation="rename_src" profile="libreoffice>
Jul 06 16:35:43 kernel: audit: type=1400 audit(1720276543.942:1418): 
apparmor="ALLOWED" operation="rename_dest" profile="libreoffic>
…
Jul 06 16:35:48 audit[54762]: AVC apparmor="ALLOWED" operation="mknod" 
profile="libreoffice-soffice" name="~/.config/li>
Jul 06 16:35:48 audit[54762]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/lib>
Jul 06 16:35:48 audit[54762]: AVC apparmor="ALLOWED" operation="file_lock" 
profile="libreoffice-soffice" name="~/.config/>
Jul 06 16:35:48 audit[54762]: AVC apparmor="ALLOWED" operation="rename_src" 
profile="libreoffice-soffice" name="/.config/>
Jul 06 16:35:48 audit[54762]: AVC apparmor="ALLOWED" operation="rename_dest" 
profile="libreoffice-soffice" name="/.config/>
Jul 06 16:35:48 audit[54762]: AVC apparmor="ALLOWED" operation="chown" 
profile="libreoffice-soffice" name="~/.config/li>
Jul 06 16:35:55 kernel: i915 0000:00:02.0: [drm] GPU HANG: ecode 4:1:9fe7fbfd, 
in Xwayland [1512]
Jul 06 16:35:56 kernel: i915 0000:00:02.0: [drm] Resetting chip for stopped 
heartbeat on rcs0
Jul 06 16:35:56 kernel: i915 0000:00:02.0: [drm] Xwayland[1512] context reset 
due to GPU hang
Jul 06 16:36:02 systemd[1391]: xdg-desktop-portal-gtk.service: Main process 
exited, code=exited, status=1/FAILURE
Jul 06 16:36:02 systemd[1391]: xdg-desktop-portal-gtk.service: Failed with 
result 'exit-code'.
Jul 06 16:36:02 systemd[1391]: xdg-desktop-portal-gtk.service: Consumed 3.120s 
CPU time.
Jul 06 16:37:14 audit[152923]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/li>
Jul 06 16:37:14 kernel: kauditd_printk_skb: 12 callbacks suppressed
Jul 06 16:37:14 kernel: audit: type=1400 audit(1720276634.754:1436): 
apparmor="ALLOWED" operation="open" profile="libreoffice-soffi>
Jul 06 16:37:14 audit[152923]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/li>
Jul 06 16:37:14 kernel: audit: type=1400 audit(1720276634.762:1437): 
apparmor="ALLOWED" operation="open" profile="libreoffice-soffi>
Jul 06 16:37:14 audit[152923]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/dc>
Jul 06 16:37:14 kernel: audit: type=1400 audit(1720276634.894:1438): 
apparmor="ALLOWED" operation="open" profile="libreoffice-soffi>
Jul 06 16:37:14 audit[152923]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/li>
Jul 06 16:37:14 audit[152923]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/li>
Jul 06 16:37:14 audit[152923]: AVC apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="~/.config/li>
===8<------------------------------

Since it appears Xwayland Version: 2:22.1.9-1 is tied to the gpu hang,
I have attached the info that would be included in an Xwayland bug
report. And perhaps this bug should be moved to Xwayland.

-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 
'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-28-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xwayland depends on:
ii  libc6               2.36-9+deb12u7
ii  libdrm2             2.4.114-1+b1
ii  libepoxy0           1.5.10-1
ii  libgbm1             22.3.6-1+deb12u1
ii  libgcrypt20         1.10.1-3
ii  libgl1              1.6.0-1
ii  libpixman-1-0       0.42.2-1
ii  libtirpc3           1.3.3+ds-1
ii  libwayland-client0  1.21.0-1
ii  libxau6             1:1.0.9-1
ii  libxcvt0            0.1.2-1
ii  libxdmcp6           1:1.1.2-3
ii  libxfont2           1:2.0.6-1
ii  libxshmfence1       1.3-1
ii  xserver-common      2:21.1.7-3+deb12u7

xwayland recommends no packages.

xwayland suggests no packages.

-- debconf-show failed

Reply via email to