Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gnome Shell is repeatedly crashing in 21.10 and ignores display and power settings on restart (turns off the screen after 30s) #103

Open
n-hebert opened this issue Dec 20, 2021 · 7 comments · Fixed by #101

Comments

@n-hebert
Copy link

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

NAME="Pop!_OS"
VERSION="21.10"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 21.10"
VERSION_ID="21.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=impish
UBUNTU_CODENAME=impish
LOGO=distributor-logo-pop-os

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

gnome-shell:
  Installed: 40.5-1ubuntu2pop0~1633630918~21.10~91d3049
  Candidate: 40.5-1ubuntu2pop0~1633630918~21.10~91d3049
  Version table:
 *** 40.5-1ubuntu2pop0~1633630918~21.10~91d3049 1001
       1001 http://apt.pop-os.org/release impish/main amd64 Packages
        100 /var/lib/dpkg/status
     40.5-1ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu impish/main amd64 Packages

Issue/Bug Description:

The screen keeps going to black and powering off my external monitor after a very short window (30 seconds?) and there's no way to configure the time-out nor stop it from doing so.

Steps to reproduce (if you know):

  1. Leave the computer alone for 60s

Expected behavior:

  1. Timeout and power settings are observed properly

Other Notes:
I have configured my power settings not to dim any displays when inactive and to go to blank after 10 minutes. Nothing is being observed properly.
image

This is also exacerbating pop-os/pop#2074, making computing on this a drag.

@melizasw
Copy link

I had this same problem after updating my Lemur Pro from 21.04 to 21.10. The command xset -dpms provided some relief, but also meant that the the screen wouldn't power off when it was supposed to. Today's update which included the 5.15.8 kernel seems to have fixed it.

@allout58
Copy link

I was having the same problem (screen turning off after 30s inactivity), realized I hadn't rebooted since updating yesterday, then things started behaving normally. Seems like kernel 5.15.8 did fix the issue for me.

@n-hebert
Copy link
Author

Hooray - the system updates did seem to fix this.
The functional kernel is Linux 5.15.8-76051508-generic #202112141040~1639505278~21.10~0ede46a SMP Tue Dec 14 22:38:29 U x86_64 x86_64 x86_64 GNU/Linux

@jacobgkau jacobgkau transferred this issue from pop-os/pop Dec 21, 2021
@jacobgkau jacobgkau linked a pull request Dec 21, 2021 that will close this issue
@n-hebert
Copy link
Author

This is back on the same kernel.
I noticed my Gnome Shell display randomly died when I walked away (it was on the lock screen) and then on coming back to life the problem repeated.

I would say the reboot is more important than the kernel update in silencing this until the next gnome shell crash.

@n-hebert n-hebert reopened this Dec 22, 2021
@n-hebert
Copy link
Author

Seeing lots of these in the journalctl.


Dec 23 13:43:47 oryx-pro gnome-shell[58520]: == Stack trace for context 0x56428dd7d120 ==
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #0   56428ffd3258 i   resource:///org/gnome/shell/ui/components/automountManager.js:38 (29dc87b02fb0 @ 282) 
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #1   56428ffd31b8 i   resource:///org/gnome/shell/ui/components/__init__.js:49 (217f737db6f0 @ 59)
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #2   56428ffd3128 i   resource:///org/gnome/shell/ui/components/__init__.js:18 (217f737db880 @ 15)
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #3   7fff13f4f2b0 b   self-hosted:225 (3fae98db17e0 @ 273) 
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #4   56428ffd3098 i   resource:///org/gnome/shell/ui/components/__init__.js:18 (217f737db920 @ 67)
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #5   7fff13f4ff10 b   self-hosted:850 (217f7372a6a0 @ 423) 
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #6   7fff13f50000 b   resource:///org/gnome/gjs/modules/core/_signals.js:114 (3fae98db1330 @ 439) 
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #7   7fff13f507f0 b   resource:///org/gnome/shell/ui/sessionMode.js:200 (121a2a1e6d30 @ 284) 
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #8   56428ffd2f30 i   resource:///org/gnome/shell/ui/sessionMode.js:168 (121a2a1e6e20 @ 116) 
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #9   56428ffd2e98 i   resource:///org/gnome/shell/ui/screenShield.js:574 (121a2a1d3a60 @ 79)
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #10   56428ffd2e08 i   resource:///org/gnome/shell/ui/screenShield.js:565 (121a2a1d3ab0 @ 17)
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #11   56428ffd2d70 i   resource:///org/gnome/shell/gdm/authPrompt.js:604 (121a2a1f14c0 @ 65)
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #12   56428ffd2cd8 i   resource:///org/gnome/shell/ui/unlockDialog.js:871 (217f737053d0 @ 40)
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #13   56428ffd2c48 i   resource:///org/gnome/shell/ui/screenShield.js:565 (121a2a1d3b00 @ 50)
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #14   56428ffd2ba8 i   /usr/share/gnome-shell/extensions/pop-shell@system76.com/extension.js:487 (c184016c90 @ 35)
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #15   56428ffd2b18 i   resource:///org/gnome/shell/ui/screenShield.js:116 (121a2a1dc6f0 @ 13)
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #16   7fff13f52040 b   resource:///org/gnome/gjs/modules/core/_signals.js:114 (3fae98db1330 @ 439) 
Dec 23 13:43:47 oryx-pro gnome-shell[58520]: #17   56428ffd2a68 i   resource:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (3fae98da5b50 @ 39)

@n-hebert n-hebert changed the title 21.10 is ignoring display and power settings and powering off displays too early Gnome Shell is repeatedly crashing in 21.10 (ignores display and power settings on restart, and turns off the screen after 30s) Dec 23, 2021
@n-hebert
Copy link
Author

n-hebert commented Dec 23, 2021

When I leave the PC idle the lock screen itself seems to be crashing gnome-shell & gdm.
Some programs don't even restart with gnome-shell (emacs GUI) and windows seem to lose their workspaces & placement.

Restarting gdm silences the issue until it happens again.

This bug is very annoying and occurs frequently, every boot.

@dr3amnightmare
Copy link

dr3amnightmare commented Jan 10, 2022

This is happening to me also since updating. I even went as far as to do an OS Refresh to see if that would clear the issue up but it has come back. I have noticed that it generally occurs when my screen has been active without a proper sleep for a long period of time (hours). The only real smoking gun I've come across is a segfault in gnome-shell and maybe it doesn't load power settings when restarting itself?

Jan 10 06:05:52 pop-os gnome-shell[5146]: [VERTICAL-OVERVIEW] resetting overrides
Jan 10 06:05:52 pop-os gnome-shell[5146]: [VERTICAL-OVERVIEW] disabled
Jan 10 06:05:52 pop-os gnome-shell[5146]: cr_parser_new_from_buf: assertion 'a_buf && a_len' failed
Jan 10 06:05:52 pop-os gnome-shell[5146]: cr_declaration_parse_list_from_buf: assertion 'parser' failed
Jan 10 06:05:52 pop-os gnome-shell[5146]: cr_parser_new_from_buf: assertion 'a_buf && a_len' failed
Jan 10 06:05:52 pop-os gnome-shell[5146]: cr_declaration_parse_list_from_buf: assertion 'parser' failed
Jan 10 06:05:53 pop-os gnome-shell[5146]: cr_parser_new_from_buf: assertion 'a_buf && a_len' failed
Jan 10 06:05:53 pop-os gnome-shell[5146]: cr_declaration_parse_list_from_buf: assertion 'parser' failed
Jan 10 06:05:53 pop-os gnome-shell[5146]: cr_parser_new_from_buf: assertion 'a_buf && a_len' failed
Jan 10 06:05:53 pop-os gnome-shell[5146]: cr_declaration_parse_list_from_buf: assertion 'parser' failed
Jan 10 06:05:53 pop-os gnome-shell[5146]: cr_parser_new_from_buf: assertion 'a_buf && a_len' failed
Jan 10 06:05:53 pop-os gnome-shell[5146]: cr_declaration_parse_list_from_buf: assertion 'parser' failed
Jan 10 06:05:53 pop-os kernel: gnome-shell[5146]: segfault at 55e95aaba342 ip 00007faf3eb04949 sp 00007ffcfb20f780 error 4 in libst-1.0.so[7faf3eae0000+4d000]
Jan 10 06:05:53 pop-os kernel: Code: 89 44 24 08 eb 12 0f 1f 00 48 83 ed 08 48 39 6c 24 08 0f 84 7f 02 00 00 49 8b 84 24 28 01 00 00 4c 89 ee 4c 8b 3c 28 49 8b 07 <48> 8b 00 48 8b 38 e8 9c >
Jan 10 06:05:53 pop-os systemd[4239]: org.gnome.Shell@x11.service: Main process exited, code=dumped, status=11/SEGV
Jan 10 06:05:53 pop-os polkitd(authority=local)[873]: Unregistered Authentication Agent for unix-session:4 (system bus name :1.153, object path /org/freedesktop/PolicyKit1/AuthenticationAge>
Jan 10 06:05:53 pop-os systemd[4239]: org.gnome.Shell@x11.service: Failed with result 'core-dump'.
Jan 10 06:05:53 pop-os systemd[4239]: org.gnome.Shell@x11.service: Consumed 44min 42.655s CPU time.
Jan 10 06:05:53 pop-os systemd[4239]: org.gnome.Shell@x11.service: Scheduled restart job, restart counter is at 1.
Jan 10 06:05:53 pop-os systemd[4239]: Stopped GNOME Shell on X11.
Jan 10 06:05:53 pop-os systemd[4239]: org.gnome.Shell@x11.service: Consumed 44min 42.655s CPU time.
Jan 10 06:05:53 pop-os systemd[4239]: Starting GNOME Shell on X11...
Jan 10 06:05:53 pop-os gnome-shell[25191]: Failed to set RT scheduler: Operation not permitted

@n-hebert n-hebert changed the title Gnome Shell is repeatedly crashing in 21.10 (ignores display and power settings on restart, and turns off the screen after 30s) Gnome Shell is repeatedly crashing in 21.10 and ignores display and power settings on restart (turns off the screen after 30s) Jan 11, 2022
jackpot51 pushed a commit that referenced this issue May 11, 2022
… lwt hook

[ Upstream commit b02d196 ]

xmit_check_hhlen() observes the dst for getting the device hard header
length to make sure a modified packet can fit. When a helper which changes
the dst - such as bpf_skb_set_tunnel_key() - is called as part of the
xmit program the accessed dst is no longer valid.

This leads to the following splat:

 BUG: kernel NULL pointer dereference, address: 00000000000000de
 #PF: supervisor read access in kernel mode
 #PF: error_code(0x0000) - not-present page
 PGD 0 P4D 0
 Oops: 0000 [#1] PREEMPT SMP PTI
 CPU: 0 PID: 798 Comm: ping Not tainted 5.18.0-rc2+ #103
 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014
 RIP: 0010:bpf_xmit+0xfb/0x17f
 Code: c6 c0 4d cd 8e 48 c7 c7 7d 33 f0 8e e8 42 09 fb ff 48 8b 45 58 48 8b 95 c8 00 00 00 48 2b 95 c0 00 00 00 48 83 e0 fe 48 8b 00 <0f> b7 80 de 00 00 00 39 c2 73 22 29 d0 b9 20 0a 00 00 31 d2 48 89
 RSP: 0018:ffffb148c0bc7b98 EFLAGS: 00010282
 RAX: 0000000000000000 RBX: 0000000000240008 RCX: 0000000000000000
 RDX: 0000000000000010 RSI: 00000000ffffffea RDI: 00000000ffffffff
 RBP: ffff922a828a4e00 R08: ffffffff8f1350e8 R09: 00000000ffffdfff
 R10: ffffffff8f055100 R11: ffffffff8f105100 R12: 0000000000000000
 R13: ffff922a828a4e00 R14: 0000000000000040 R15: 0000000000000000
 FS:  00007f414e8f0080(0000) GS:ffff922afdc00000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 00000000000000de CR3: 0000000002d80006 CR4: 0000000000370ef0
 Call Trace:
  <TASK>
  lwtunnel_xmit.cold+0x71/0xc8
  ip_finish_output2+0x279/0x520
  ? __ip_finish_output.part.0+0x21/0x130

Fix by fetching the device hard header length before running the BPF code.

Fixes: 3a0af8f ("bpf: BPF for lightweight tunnel infrastructure")
Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220420165219.1755407-1-eyal.birger@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants