pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.41k stars 83 forks source link

regression: gnome-shell crashes when running `kdiff3` #1388

Open skrap opened 3 years ago

skrap commented 3 years ago

Distribution (run cat /etc/os-release):

NAME="Pop!_OS" VERSION="20.10" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 20.10" VERSION_ID="20.10" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=groovy UBUNTU_CODENAME=groovy LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

skrap@pop-os:~/Documents/rust-uclibc/nix$ apt policy gnome-shell
gnome-shell:
  Installed: 3.38.1-1ubuntu1pop0~1604419851~20.10~8f9a3ce
  Candidate: 3.38.1-1ubuntu1pop0~1604419851~20.10~8f9a3ce
  Version table:
 *** 3.38.1-1ubuntu1pop0~1604419851~20.10~8f9a3ce 1001
       1001 http://ppa.launchpad.net/system76/pop/ubuntu groovy/main amd64 Packages
        100 /var/lib/dpkg/status
     3.38.1-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu groovy/main amd64 Packages
skrap@pop-os:~/Documents/rust-uclibc/nix$ apt policy kdiff3
kdiff3:
  Installed: 1.8.4-1
  Candidate: 1.8.4-1
  Version table:
 *** 1.8.4-1 500
        500 http://us.archive.ubuntu.com/ubuntu groovy/universe amd64 Packages
        100 /var/lib/dpkg/status

Issue/Bug Description:

When running kdiff3 (typically via git mergetool but that is not necessary for reproducing the bug) the gnome shell crashes and must relaunch.

Steps to reproduce (if you know):

for i in `seq 1 3`; do echo $i > /tmp/file.$i.txt; done
kdiff3 /tmp/file.[123].txt

Expected behavior:

I expect kdiff3 to launch and the gnome shell to survive and even thrive :smile:

Other Notes:

This worked as of a week or two ago, so I suspect a recent regression in pop's gnome-shell.

suspicious looking journal log:

Nov 13 11:07:01 pop-os gnome-shell[31141]: Error in freeze/thaw accounting
Nov 13 11:07:01 pop-os kernel: traps: gnome-shell[31141] trap int3 ip:7f8cd5a08517 sp:7ffd3b3bbcd0 error:0 in libglib-2.0.so.0.6600.1[7f8cd59ca000+8b000]
Nov 13 11:07:02 pop-os polkitd(authority=local)[948]: Unregistered Authentication Agent for unix-session:2 (system bus name :1.204, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Nov 13 11:07:02 pop-os systemd[2184]: org.gnome.Shell@x11.service: Main process exited, code=dumped, status=5/TRAP
Nov 13 11:07:02 pop-os systemd[2184]: org.gnome.Shell@x11.service: Failed with result 'core-dump'.
Nov 13 11:07:02 pop-os systemd[2184]: org.gnome.Shell@x11.service: Scheduled restart job, restart counter is at 7.
Nov 13 11:07:02 pop-os systemd[2184]: Stopped GNOME Shell on X11.
Nov 13 11:07:02 pop-os systemd[2184]: Starting GNOME Shell on X11...

not-too-suspicious kdiff3 output:

Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/8x8/legacy/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/16x16/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/16x16/ui/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/22x22/legacy/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/24x24/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/24x24/ui/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/32x32/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/32x32/ui/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/48x48/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/48x48/ui/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/64x64/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/64x64/ui/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/96x96/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/96x96/ui/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/256x256/legacy/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/512x512/legacy/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/scalable/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/scalable/ui/"
org.kde.kdiff3: "Loading A: /tmp/file.1.txt"
org.kde.kdiff3: Loading B:  "/tmp/file.2.txt"
Unsupported return type 65 QPixmap in method "grab"
Unsupported return type 65 QPixmap in method "grab"
Invalid return type in method "addAction"
Skipped method "setDefaultShortcuts" : Pointers are not supported: QAction*
ids1024 commented 3 years ago

Hm, not seeing a crash with the same commands.

skrap commented 3 years ago

Same versions of the above? I ask because the regression is recent.

skrap commented 3 years ago

Aha - try it on a laptop with an external monitor. I have a nvidia laptop in integrated graphics mode, and if I unplug the external monitor, then kdiff3 runs without issue. With the external monitor plugged in (seemingly regardless of scaling mode) then kdiff3 crashes gnome-shell on launch.

pdc4444 commented 3 years ago

I'm getting a similar issue when I use RealVNC client to connect to one of my other computers.

Error in Syslog: Nov 15 19:50:20 zenbox3800 kernel: [ 633.049883] traps: gnome-shell[14883] trap int3 ip:7f92e0869517 sp:7fffd77e9c90 error:0 in libglib-2.0.so.0.6600.1[7f92e082b000+8b000] Nov 15 19:50:20 zenbox3800 gnome-shell[14883]: Error in freeze/thaw accounting Nov 15 19:50:20 zenbox3800 systemd[3659]: org.gnome.Shell@x11.service: Main process exited, code=dumped, status=5/TRAP Nov 15 19:50:20 zenbox3800 systemd[3659]: org.gnome.Shell@x11.service: Failed with result 'core-dump'. Nov 15 19:50:20 zenbox3800 systemd[3659]: org.gnome.Shell@x11.service: Scheduled restart job, restart counter is at 5. Nov 15 19:50:20 zenbox3800 systemd[3659]: Stopped GNOME Shell on X11. Nov 15 19:50:20 zenbox3800 systemd[3659]: Starting GNOME Shell on X11...

Computer details: OS: Pop!_OS 20.10 x86_64 Kernel: 5.8.0-7630-generic Uptime: 13 mins Packages: 3234 (dpkg), 31 (flatpak) Shell: bash 5.0.17 Resolution: 2560x1440, 2560x1440 DE: GNOME 3.38.1 WM: Mutter WM Theme: Pop Theme: Pop [GTK2/3] Icons: Pop [GTK2/3] Terminal: gnome-terminal CPU: AMD Ryzen 7 3800X (16) @ 3.900GHz GPU: NVIDIA GeForce GTX 1080 GPU: NVIDIA GeForce RTX 2080 Ti Rev. A Memory: 2379MiB / 32019MiB

Steps to reproduce: Download and install the vnc viewer package from here https://www.realvnc.com/en/connect/download/viewer/ Create a new connection to a computer running vnc server Connect to computer running vnc server Notice that gnome shell dies. For me the screen flashes black and then the shell reloads which messes up all my windows, but at least the application has connected to my vnc client.

Edit: I reverted to my timeshift backup from 10-25 which was just before I performed the update to 20.10. Now that I'm back on 20.04 gnome shell is behaving as expected. Seems like an issue with gnome 3.38 since gnome 3.36.4 is working without a problem over here.

ids1024 commented 3 years ago

Searching for "Error in freeze/thaw accounting" brings up this issue: https://gitlab.gnome.org/GNOME/mutter/-/issues/1431

It appears it should be fixed in Gnome Shell 3.38.2, which doesn't seem to be released yet.