Summary: | With NVIDIA GPU, plasmashell crashes in QSGSoftwareRenderableNode::update() when filtering in the Klipper history popup | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Aleksey Kontsevich <akontsevich> |
Component: | Clipboard | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | fabian, kde, nate, qydwhotmail |
Priority: | NOR | Keywords: | drkonqi |
Version: | 5.27.1 | ||
Target Milestone: | 1.0 | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/commit/b34c60956fe858f123dcdde7ee6322b986a795f6 | Version Fixed In: | 5.27.4 |
Sentry Crash Report: | |||
Attachments: |
plasmashell-20230222-115656.kcrash
plasma_error.txt plasma_error_2.txt |
Description
Aleksey Kontsevich
2023-02-22 10:04:48 UTC
Created attachment 156600 [details]
plasmashell-20230222-115656.kcrash
Backtrace
*** Bug 465962 has been marked as a duplicate of this bug. *** Reproduction steps from other bug report: 1. Press Klipper hotkey to show history at mouse position 2. Switch to cyrillic 3. Type something to filter records 4. crash/freeze. Just tried that and it didn't happen to me. The backtrace indicates that it's deep in graphics code. What kind of GPU do you have? And have you forced Plasma or KWin to use a non-default rendering mode? (In reply to Nate Graham from comment #4) > Just tried that and it didn't happen to me. > > The backtrace indicates that it's deep in graphics code. What kind of GPU do > you have? > inxi -SGa System: Host: Aleksey Kernel: 6.1.12-1-default arch: x86_64 bits: 64 compiler: gcc v: 12.2.1 parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.12-1-default root=UUID=24fbaf81-79f0-4b37-b08e-b1d709ed97e7 splash=silent resume=/dev/disk/by-uuid/a58af199-9a71-4f77-9547-30a7871438e8 mitigations=auto quiet security=apparmor nosimplefb=1 Desktop: KDE Plasma v: 5.27.0 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 7 dm: SDDM Distro: openSUSE Tumbleweed 20230221 Graphics: Device-1: NVIDIA GA106 [Geforce RTX 3050] vendor: ASUSTeK driver: nvidia v: 525.89.02 alternate: nouveau,nvidia_drm non-free: 520.xx+ status: current (as of 2022-10) arch: Ampere code: GAxxx process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 2 speed: 5 GT/s lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16 ports: active: none off: HDMI-A-1 empty: DP-1,DP-2,DP-3 bus-ID: 01:00.0 chip-ID: 10de:2507 class-ID: 0300 Device-2: Logitech C920 PRO HD Webcam type: USB driver: snd-usb-audio,uvcvideo bus-ID: 5-2:3 chip-ID: 046d:08e5 class-ID: 0102 Display: x11 server: X.Org v: 21.1.7 with: Xwayland v: 22.1.8 compositor: kwin_x11 driver: X: loaded: nvidia unloaded: fbdev,modesetting,vesa alternate: nouveau,nv gpu: nvidia,nvidia-nvswitch display-ID: :0 screens: 1 Screen-1: 0 s-res: 3840x2160 s-dpi: 192 s-size: 508x286mm (20.00x11.26") s-diag: 583mm (22.95") Monitor-1: HDMI-A-1 mapped: HDMI-0 note: disabled model: Samsung serial: 16780800 built: 2021 res: 3840x2160 dpi: 103 gamma: 1.2 size: 950x540mm (37.4x21.26") diag: 1093mm (43") ratio: 16:9 modes: max: 3840x2160 min: 640x480 API: OpenGL v: 4.6.0 NVIDIA 525.89.02 renderer: NVIDIA GeForce RTX 3050/PCIe/SSE2 direct render: Yes >And have you forced Plasma or KWin to use a non-default rendering mode? Tried OpenGl or Automatic - what else? All right, NVIDIA GPU with the proprietary drivers, thanks. Crashes also with Latin keyboard, also when browsing in chrome based browser, etc. (In reply to Aleksey Kontsevich from comment #0) > Most often this happens when press Klipper hotkey - to show records at mouse > position, type something - to filter records - crash/freeze. Of course it also crashes very often accidentally without any reason as well. Please fix. Same crashes are in 5.27.1 version. Apparently you use the QML software renderer. That should not be the case, did you configure that explicitly in kcmshell kcm_qtquicksettings? (In reply to Fabian Vogt from comment #9) > Apparently you use the QML software renderer. That should not be the case, > did you configure that explicitly in kcmshell kcm_qtquicksettings? No, after the crash "kcmshell5 kcm_qtquicksettings" appeared for me so I tried any variants: Program, OpenGL, Automatic - all crashes. (In reply to Aleksey Kontsevich from comment #10) > (In reply to Fabian Vogt from comment #9) > > Apparently you use the QML software renderer. That should not be the case, > > did you configure that explicitly in kcmshell kcm_qtquicksettings? > > No, after the crash "kcmshell5 kcm_qtquicksettings" appeared for me so I > tried any variants: Program, OpenGL, Automatic - all crashes. Please switch to OpenGL, when it crashes again attach a backtrace. > > No, after the crash "kcmshell5 kcm_qtquicksettings" appeared for me so I
> > tried any variants: Program, OpenGL, Automatic - all crashes.
>
> Please switch to OpenGL, when it crashes again attach a backtrace.
Already switched, but problem is crash sender UI never appears, while it crashes or freezes all the time.
(In reply to Aleksey Kontsevich from comment #12) > > > No, after the crash "kcmshell5 kcm_qtquicksettings" appeared for me so I > > > tried any variants: Program, OpenGL, Automatic - all crashes. > > > > Please switch to OpenGL, when it crashes again attach a backtrace. > > Already switched, but problem is crash sender UI never appears, while it > crashes or freezes all the time. If it's frozen (or crashed but somehow hangs instead of restarting), you can run gdb -ex "thread apply all bt" -ex "kill" -ex "q" -p $(pidof plasmashell) Created attachment 157159 [details]
plasma_error.txt
(In reply to Fabian Vogt from comment #13) > If it's frozen (or crashed but somehow hangs instead of restarting), you can > run > > gdb -ex "thread apply all bt" -ex "kill" -ex "q" -p $(pidof plasmashell) That was tricky: Klipper filtering freezes plasma hardly - several CPU completely loaded, no keyboard response, so forced to do this in virtual terminal switching by Ctrl-Alt-F1 and redirect output to a file - see attachment below. See Attachment #157159 [details]. Created attachment 157160 [details]
plasma_error_2.txt
Right after the 1st crash (freeze), 2nd one happened accidentally (did nothing at that time: browsing in chrome based browser). See Attachment #157160 [details].
(In reply to Aleksey Kontsevich from comment #17) > Right after the 1st crash (freeze), 2nd one happened accidentally (did > nothing at that time: browsing in chrome based browser). See Attachment > #157160 [details]. 3rd crash just happened then auto-restarted - so was unable to catch the stack trace. I see that plasmashell still uses the software renderer, so the switch to OpenGL did not work. However, it looks like in both backtraces it's busy in clipboard history code. In plasma_error_2.txt, it's saving a copied image to disk. (In reply to Fabian Vogt from comment #19) > I see that plasmashell still uses the software renderer, so the switch to > OpenGL did not work. Another bug? > However, it looks like in both backtraces it's busy in clipboard history > code. In plasma_error_2.txt, it's saving a copied image to disk. What was changed in 5.27 that causes it?! If you clear the clipboard history, will the bug still exist? (In reply to Fushan Wen from comment #21) > If you clear the clipboard history, will the bug still exist? Cleared, copied some. With 1 record - no. Will check further when have more records. Why does not switch to OpenGL, how to switch? A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2730 Git commit b34c60956fe858f123dcdde7ee6322b986a795f6 by Fushan Wen. Committed on 14/03/2023 at 13:44. Pushed by fusionfuture into branch 'Plasma/5.27'. klipper: remove duplicate items when loading from history Due to a catastrophic bug existing in 5.27 beta and 5.27.0, there could be duplicate items in klipper's history file, so filter them out here. The popup menu will try to read `item->next_uuid()` in a loop to fill the menu, hence it's possible to create an infinite loop when there are duplicate items. Related: bug 465225 FIXED-IN: 5.27.4 M +9 -0 klipper/klipper.cpp https://invent.kde.org/plasma/plasma-workspace/commit/b34c60956fe858f123dcdde7ee6322b986a795f6 |