varietywalls / variety

Wallpaper downloader and manager for Linux systems
http://peterlevi.com/variety
GNU General Public License v3.0
1.21k stars 146 forks source link

Variety preventing suspend in Ubuntu linux Ubuntu 22.04.3 LTS running plasma #678

Open banjo1977 opened 9 months ago

banjo1977 commented 9 months ago

Version of Variety

0.8.5

Describe the bug

When I try to hibernate my computer after a recent update (I'm sorry - don't know exactly when last three weeks) it fails to hibernate. A check of the log provides information that a pool-variety process is refusing to freeze with a PID associated with Variety.

Context

Variety is installed to start when the computer starts (and has been for ages - l love it thank you!).

As context, in the same time period I have also had trouble with Plasma crashing and this might be related to Variety as menu / icon responses become very sluggish.

To Reproduce

  1. Reboot computer, login with Variety running
  2. Attempt to suspend
  3. suspend will fail.

Attach Variety's log file

Jan 30 23:10:03 Iskar kernel: [28234.076997] Freezing user space processes ... Jan 30 23:10:03 Iskar kernel: [28259.086302] Freezing of tasks failed after 25.010 seconds (1 tasks refusing to freeze, wq_busy=0): Jan 30 23:10:03 Iskar kernel: [28259.086479] task:pool-variety state:D stack: 0 pid:39220 ppid: 2073 flags:0x00004006 Jan 30 23:10:03 Iskar kernel: [28259.086493] Call Trace: Jan 30 23:10:03 Iskar kernel: [28259.086498] Jan 30 23:10:03 Iskar kernel: [28259.086507] schedule+0x24e/0x590 Jan 30 23:10:03 Iskar kernel: [28259.086524] schedule+0x69/0x110 Jan 30 23:10:03 Iskar kernel: [28259.086533] request_wait_answer+0xaa/0x210 Jan 30 23:10:03 Iskar kernel: [28259.086547] ? wait_woken+0x70/0x70 Jan 30 23:10:03 Iskar kernel: [28259.086559] fuse_simple_request+0x1b5/0x360 Jan 30 23:10:03 Iskar kernel: [28259.086571] ? filename_lookup+0xcf/0x1d0 Jan 30 23:10:03 Iskar kernel: [28259.086580] fuse_statfs+0xda/0x150 Jan 30 23:10:03 Iskar kernel: [28259.086598] statfs_by_dentry+0x6a/0xa0 Jan 30 23:10:03 Iskar kernel: [28259.086611] user_statfs+0x5b/0xd0 Jan 30 23:10:03 Iskar kernel: [28259.086624] do_sys_statfs+0x28/0x60 Jan 30 23:10:03 Iskar kernel: [28259.086639] __x64_sys_statfs+0x16/0x20 Jan 30 23:10:03 Iskar kernel: [28259.086650] do_syscall_64+0x59/0xc0 Jan 30 23:10:03 Iskar kernel: [28259.086659] ? switch_fpu_return+0x4e/0xc0 Jan 30 23:10:03 Iskar kernel: [28259.086673] ? exit_to_user_mode_prepare+0x96/0xb0 Jan 30 23:10:03 Iskar kernel: [28259.086686] ? irqentry_exit_to_user_mode+0x17/0x20 Jan 30 23:10:03 Iskar kernel: [28259.086697] ? irqentry_exit+0x1d/0x30 Jan 30 23:10:03 Iskar kernel: [28259.086706] ? sysvec_reschedule_ipi+0x78/0xe0 Jan 30 23:10:03 Iskar kernel: [28259.086716] entry_SYSCALL_64_after_hwframe+0x62/0xcc Jan 30 23:10:03 Iskar kernel: [28259.086729] RIP: 0033:0x7f3a947b610b Jan 30 23:10:03 Iskar kernel: [28259.086737] RSP: 002b:00007f3a7b909c28 EFLAGS: 00000202 ORIG_RAX: 0000000000000089 Jan 30 23:10:03 Iskar kernel: [28259.086747] RAX: ffffffffffffffda RBX: 000055b869884b60 RCX: 00007f3a947b610b Jan 30 23:10:03 Iskar kernel: [28259.086753] RDX: 0000000000000001 RSI: 00007f3a7b909c50 RDI: 000055b86a7f2870 Jan 30 23:10:03 Iskar kernel: [28259.086758] RBP: 000055b86a5572c0 R08: 0000000000000000 R09: 000055b869707a88 Jan 30 23:10:03 Iskar kernel: [28259.086763] R10: 0000000000000000 R11: 0000000000000202 R12: 000055b869884b60 Jan 30 23:10:03 Iskar kernel: [28259.086768] R13: 000055b86a6a9060 R14: 00007f3a7b909db0 R15: 00007fff86b56900 Jan 30 23:10:03 Iskar kernel: [28259.086780] Jan 30 23:10:03 Iskar kernel: [28259.087150] Jan 30 23:10:03 Iskar kernel: [28259.087153] OOM killer enabled. Jan 30 23:10:03 Iskar rtkit-daemon[1387]: The canary thread is apparently starving. Taking action. Jan 30 23:10:03 Iskar rtkit-daemon[1387]: Demoting known real-time threads. Jan 30 23:10:03 Iskar rtkit-daemon[1387]: Successfully demoted thread 1688 of process 1681. Jan 30 23:10:03 Iskar rtkit-daemon[1387]: Successfully demoted thread 1962 of process 1682. Jan 30 23:10:03 Iskar rtkit-daemon[1387]: Successfully demoted thread 1960 of process 1682. Jan 30 23:10:03 Iskar rtkit-daemon[1387]: Successfully demoted thread 1682 of process 1682. Jan 30 23:10:03 Iskar rtkit-daemon[1387]: Successfully demoted thread 1766 of process 1680. Jan 30 23:10:03 Iskar rtkit-daemon[1387]: Successfully demoted thread 1680 of process 1680. Jan 30 23:10:03 Iskar rtkit-daemon[1387]: Demoted 6 threads. Jan 30 23:10:03 Iskar systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully. Jan 30 23:10:03 Iskar kernel: [28259.087156] Restarting tasks ... done. Jan 30 23:10:03 Iskar kernel: [28259.111586] video LNXVIDEO:00: Restoring backlight state Jan 30 23:10:03 Iskar kernel: [28259.111936] PM: hibernation: hibernation exit Jan 30 23:10:03 Iskar systemd-sleep[39260]: Failed to put system to sleep. System resumed again: Device or resource busy

Desktop environment and version

Operating System: Kubuntu 22.04 KDE Plasma Version: 5.24.7 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 5.15.0-92-generic (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz Memory: 31.2 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 620

OS name and version

buntu 22.04.3 LTS \n \l

PRETTY_NAME="Ubuntu 22.04.3 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.3 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy

RabidExRabbit commented 9 months ago

Same situation with my system: Ubuntu 22.04 dmesg shows [Fr Feb 9 02:16:20 2024] PM: suspend entry (deep) [Fr Feb 9 02:16:20 2024] Filesystems sync: 0.016 seconds [Fr Feb 9 02:16:20 2024] Freezing user space processes ... [Fr Feb 9 02:16:40 2024] Freezing of tasks failed after 20.006 seconds (3 tasks refusing to freeze, wq_busy=0): [Fr Feb 9 02:16:40 2024] task:pool-variety state:D stack: 0 pid:73301 ppid: 47873 flags:0x00004006 [Fr Feb 9 02:16:40 2024] Call Trace: [Fr Feb 9 02:16:40 2024] [Fr Feb 9 02:16:40 2024] schedule+0x24e/0x590 [Fr Feb 9 02:16:40 2024] schedule+0x69/0x110 [Fr Feb 9 02:16:40 2024] request_wait_answer+0xaa/0x210 [Fr Feb 9 02:16:40 2024] ? wait_woken+0x70/0x70 [Fr Feb 9 02:16:40 2024] fuse_simple_request+0x1b5/0x360 [Fr Feb 9 02:16:40 2024] fuse_statfs+0xda/0x150 [Fr Feb 9 02:16:40 2024] statfs_by_dentry+0x6d/0xa0 [Fr Feb 9 02:16:40 2024] user_statfs+0x5b/0xd0 [Fr Feb 9 02:16:40 2024] do_sys_statfs+0x28/0x60 [Fr Feb 9 02:16:40 2024] x64_sys_statfs+0x16/0x20 [Fr Feb 9 02:16:40 2024] do_syscall_64+0x5c/0xc0 [Fr Feb 9 02:16:40 2024] ? exit_to_user_mode_prepare+0x96/0xb0 [Fr Feb 9 02:16:40 2024] ? syscall_exit_to_user_mode+0x35/0x50 [Fr Feb 9 02:16:40 2024] ? do_syscall_64+0x69/0xc0 [Fr Feb 9 02:16:40 2024] ? exit_to_user_mode_prepare+0x96/0xb0 [Fr Feb 9 02:16:40 2024] ? syscall_exit_to_user_mode+0x35/0x50 [Fr Feb 9 02:16:40 2024] entry_SYSCALL_64_after_hwframe+0x62/0xcc [Fr Feb 9 02:16:40 2024] RIP: 0033:0x7fb01209f10b [Fr Feb 9 02:16:40 2024] RSP: 002b:00007fb00f3a0c28 EFLAGS: 00000202 ORIG_RAX: 0000000000000089 [Fr Feb 9 02:16:40 2024] RAX: ffffffffffffffda RBX: 00005649c3fbd740 RCX: 00007fb01209f10b [Fr Feb 9 02:16:40 2024] RDX: 0000000000000001 RSI: 00007fb00f3a0c50 RDI: 00007faff801e5d0 [Fr Feb 9 02:16:40 2024] RBP: 00005649c4075800 R08: 0000000000000000 R09: 00005649c3e09cd8 [Fr Feb 9 02:16:40 2024] R10: 0000000000000000 R11: 0000000000000202 R12: 00005649c3fbd740 [Fr Feb 9 02:16:40 2024] R13: 00007faff8024a20 R14: 00007fb00f3a0db0 R15: 00007ffcadf55ed0 [Fr Feb 9 02:16:40 2024] [Fr Feb 9 02:16:40 2024] task:pool-variety state:D stack: 0 pid:73303 ppid: 47873 flags:0x00004006 [Fr Feb 9 02:16:40 2024] Call Trace: [Fr Feb 9 02:16:40 2024] [Fr Feb 9 02:16:40 2024] schedule+0x24e/0x590 [Fr Feb 9 02:16:40 2024] schedule+0x69/0x110 [Fr Feb 9 02:16:40 2024] request_wait_answer+0xaa/0x210 [Fr Feb 9 02:16:40 2024] ? wait_woken+0x70/0x70 [Fr Feb 9 02:16:40 2024] fuse_simple_request+0x1b5/0x360 [Fr Feb 9 02:16:40 2024] ? filename_lookup+0xcf/0x1d0 [Fr Feb 9 02:16:40 2024] fuse_statfs+0xda/0x150 [Fr Feb 9 02:16:40 2024] statfs_by_dentry+0x6d/0xa0 [Fr Feb 9 02:16:40 2024] user_statfs+0x5b/0xd0 [Fr Feb 9 02:16:40 2024] do_sys_statfs+0x28/0x60 [Fr Feb 9 02:16:40 2024] x64_sys_statfs+0x16/0x20 [Fr Feb 9 02:16:40 2024] do_syscall_64+0x5c/0xc0 [Fr Feb 9 02:16:40 2024] ? irqentry_exit_to_user_mode+0x17/0x20 [Fr Feb 9 02:16:40 2024] ? irqentry_exit+0x1d/0x30 [Fr Feb 9 02:16:40 2024] ? sysvec_apic_timer_interrupt+0x4e/0x90 [Fr Feb 9 02:16:40 2024] entry_SYSCALL_64_after_hwframe+0x62/0xcc [Fr Feb 9 02:16:40 2024] RIP: 0033:0x7fb01209f10b [Fr Feb 9 02:16:40 2024] RSP: 002b:00007fafdb591c28 EFLAGS: 00000202 ORIG_RAX: 0000000000000089 [Fr Feb 9 02:16:40 2024] RAX: ffffffffffffffda RBX: 00005649c3f24ac0 RCX: 00007fb01209f10b