Bug 490332 - crash when disconnecting external monitor
Summary: crash when disconnecting external monitor
Status: RESOLVED DUPLICATE of bug 489180
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 6.1.2
Platform: unspecified Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-07-16 01:43 UTC by Gabriel Barros
Modified: 2024-07-16 04:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (125.01 KB, text/plain)
2024-07-16 01:43 UTC, Gabriel Barros
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Barros 2024-07-16 01:43:17 UTC
Application: plasmashell (6.1.2)

Qt Version: 6.7.2
Frameworks Version: 6.4.0
Operating System: Linux 6.9.9-arch1-1 x86_64
Windowing System: Wayland
Distribution: Arch Linux
DrKonqi: 6.1.2 [CoredumpBackend]

-- Information about the crash:
Adding external monitor after system is running (laptop with external HDMI port via APU)

As soon as external monitor is turned off, or cable is removed, this crash occurs. Have been happening for a while (~4 months on rolling update distro which tracks close to upstream)

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  QtWaylandClient::QWaylandWindow::waylandScreen (this=0x5c95df680f70) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:956
#6  QtWaylandClient::QWaylandWindow::devicePixelRatio (this=0x5c95df680f70) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:1521
#7  0x00007c07d5406f0c in QtWaylandClient::QWaylandEglWindow::updateSurface (this=0x5c95df680f70, create=true) at /usr/src/debug/qt6-wayland/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:70
#8  0x00007c07d5407905 in QtWaylandClient::QWaylandGLContext::makeCurrent (this=this@entry=0x7c06a852b260, surface=<optimized out>) at /usr/src/debug/qt6-wayland/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:318
#9  0x00007c07dc0adc28 in QOpenGLContext::makeCurrent (this=0x7c06a8697ad0, surface=0x5c95df8d6700) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qopenglcontext.cpp:664


Reported using DrKonqi
Comment 1 Gabriel Barros 2024-07-16 01:43:19 UTC
Created attachment 171696 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Gabriel Barros 2024-07-16 02:14:29 UTC
Most of the time i have only VLC window on the extended screen. here are the system logs around the time i turned off the extended monitor:

```
Jul 15 22:16:45 host vlc[3041]: [00007a7830001200] mkv demux error: Dummy Element at unexpected position... corrupted file?
Jul 15 22:16:45 host vlc[3041]: [00007a7830001200] mkv demux error: Dummy element too large or misplaced at 7837824730... skipping to next upper element
Jul 15 22:17:52 host kernel: amdgpu 0000:03:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jul 15 22:17:52 host kernel: amdgpu 0000:03:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jul 15 22:17:52 host kernel: amdgpu 0000:03:00.0: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:839
Jul 15 22:17:52 host plasmashell[1127]: KCrash: Application 'plasmashell' crashing... crashRecursionCounter = 2
Jul 15 22:17:52 host systemd-coredump[6047]: Process 1127 (plasmashell) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Jul 15 22:17:52 host systemd[1]: Created slice Slice /system/drkonqi-coredump-processor.
Jul 15 22:17:52 host systemd[1]: Created slice Slice /system/systemd-coredump.
Jul 15 22:17:52 host systemd[1]: Started Process Core Dump (PID 6047/UID 0).
Jul 15 22:17:52 host systemd[1]: Started Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
Jul 15 22:17:53 host org_kde_powerdevil[1164]: Sleep event. connector=card1-HDMI-A-1, dref not set
Jul 15 22:17:53 host org_kde_powerdevil[1164]: Delaying 6 seconds to avoid a false disconnect/connect sequence...
Jul 15 22:17:54 host systemd-coredump[6048]: [🡕] Process 1127 (plasmashell) of user 1000 dumped core.
Jul 15 22:17:54 host systemd[1]: systemd-coredump@0-6047-0.service: Deactivated successfully.
Jul 15 22:17:54 host systemd[892]: plasma-plasmashell.service: Main process exited, code=dumped, status=11/SEGV
Jul 15 22:17:54 host systemd[892]: plasma-plasmashell.service: Failed with result 'core-dump'.
Jul 15 22:17:55 host drkonqi-coredump-processor[6049]: "/usr/bin/plasmashell" 1127 "/var/lib/systemd/coredump/core.plasmashell.1000.283ea22436244a888946b7f65a9ba1fb.1127.1721092672000000.zst"
Jul 15 22:17:55 host systemd[892]: Started Launch DrKonqi for a systemd-coredump crash (PID 6049/UID 0).
Jul 15 22:17:55 host systemd[1]: drkonqi-coredump-processor@0-6047-0.service: Deactivated successfully.
Jul 15 22:17:55 host systemd[892]: plasma-plasmashell.service: Scheduled restart job, restart counter is at 1.
Jul 15 22:17:55 host systemd[892]: Starting KDE Plasma Workspace...
...
««i've been seeing this C locale errors.. my system should be all UTF8»»
Jul 15 22:17:55 host drkonqi[6084]: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
                                     Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
                                     If this causes problems, reconfigure your locale. See the locale(1) manual
                                     for more information.
...
Jul 15 22:17:55 host plasmashell[6083]: file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/main.qml:195:25: QML FolderViewDropArea (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "minimumWidth"
...
Jul 15 22:17:55 host plasmashell[6083]: Toolbox not loading, toolbox package is either invalid or disabled.
Jul 15 22:17:55 host systemd[1]: Started Hostname Service.
...
Jul 15 22:17:57 host drkonqi-coredump-launcher[6268]:   boot_time = datetime.utcfromtimestamp(psutil.boot_time()).strftime('%Y-%m-%dT%H:%M:%S')
Jul 15 22:17:57 host systemd[1]: Starting Time & Date Service...
Jul 15 22:17:57 host systemd[1]: Started Time & Date Service.
Jul 15 22:17:57 host plasmashell[6083]: file:///usr/share/plasma/plasmoids/org.kde.plasma.keyboardindicator/contents/ui/main.qml:61:13: Unable to assign [undefined] to bool
Jul 15 22:17:57 host drkonqi-coredump-launcher[6268]: /usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:532: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
...
Jul 15 22:17:57 host drkonqi-coredump-launcher[6268]:   'timestamp': datetime.utcnow().isoformat(),
Jul 15 22:18:00 host org_kde_powerdevil[1164]: DRM connectors with newly disconnected displays: card1-HDMI-A-1
Jul 15 22:18:00 host org_kde_powerdevil[1164]: Removing connected display with bus Display_Path[/dev/i2c-4], drm connector card1-HDMI-A-1
Jul 15 22:18:02 host org_kde_powerdevil[1164]: Emitting DDCA_Display_Status_Event( 8064.216:  DDCA_EVENT_DPMS_ASLEEP, card1-HDMI-A-1, dref: Display_Ref[NULL], io_path:/dev/i2c-4]
Jul 15 22:18:02 host org_kde_powerdevil[1164]: Executed 1 registered callbacks.
Jul 15 22:18:02 host org_kde_powerdevil[1164]: Emitting DDCA_Display_Status_Event( 8071.217:  DDCA_EVENT_DISPLAY_DISCONNECTED, card1-HDMI-A-1, dref: Display_Ref[NULL], io_path:/dev/i2c-4]
Jul 15 22:18:02 host org_kde_powerdevil[1164]: Executed 1 registered callbacks.
Jul 15 22:18:12 host wpa_supplicant[871]: wlp1s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-60 noise=-96 txrate=154800
Jul 15 22:18:27 host systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Jul 15 22:18:27 host systemd[1]: systemd-timedated.service: Deactivated successfully.
Jul 15 22:18:37 host wpa_supplicant[871]: wlp1s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-59 noise=-96 txrate=154800
Jul 15 22:18:55 host plasma_waitforname[6182]: org.kde.plasma.waitforname: WaitForName: Service was not registered within timeout
Jul 15 22:18:55 host systemd[892]: dbus-:1.2-org.kde.KSplash@2.service: Main process exited, code=exited, status=1/FAILURE
Jul 15 22:18:55 host systemd[892]: dbus-:1.2-org.kde.KSplash@2.service: Failed with result 'exit-code'.
Jul 15 22:19:33 host kernel: ath11k_pci 0000:01:00.0: msdu_done bit in attention is not set
Jul 15 22:20:02 host systemd[1]: Started dbus-:1.3-org.kde.powerdevil.backlighthelper@1.service.
Jul 15 22:20:12 host systemd[1]: dbus-:1.3-org.kde.powerdevil.backlighthelper@1.service: Deactivated successfully.
Jul 15 22:21:33 host systemd[1]: Started dbus-:1.3-org.kde.powerdevil.backlighthelper@2.service.
Jul 15 22:21:34 host drkonqi[6084]: qrc:/ui/DeveloperPage.qml:12:1: QML DeveloperPage: Created graphical object was not placed in the graphics scene.
Jul 15 22:21:34 host drkonqi[6084]: qml: 2
Jul 15 22:21:34 host drkonqi[6084]: qml: 2
Jul 15 22:21:34 host drkonqi[6084]: qml: usefulness
Jul 15 22:21:34 host drkonqi[6084]: qml: 1
Jul 15 22:21:34 host drkonqi[6084]: qml: 4
Jul 15 22:21:43 host systemd[1]: dbus-:1.3-org.kde.powerdevil.backlighthelper@2.service: Deactivated successfully.
Jul 15 22:21:55 host drkonqi[6084]: qml: 1
Jul 15 22:21:55 host drkonqi[6084]: qml: 2
Jul 15 22:21:55 host drkonqi[6084]: Core already exists, returning early
Jul 15 22:21:56 host wpa_supplicant[871]: wlp1s0: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=-67 noise=-96 txrate=137600
Jul 15 22:21:58 host drkonqi[6084]: qrc:/ui/WelcomePage.qml:11:1: QML WelcomePage: Created graphical object was not placed in the graphics scene.
Jul 15 22:22:04 host drkonqi-coredump-launcher[6432]: warning: Can't open file /memfd:pulseaudio (deleted) during file-backed mapping note processing
...
Jul 15 22:22:05 host drkonqi[6084]: qrc:/ui/ContextPage.qml:11:1: QML ContextPage: Created graphical object was not placed in the graphics scene.
Jul 15 22:22:17 host drkonqi[6084]: qrc:/ui/BacktracePage.qml:10:1: QML BacktracePage: Created graphical object was not placed in the graphics scene.
Jul 15 22:22:17 host drkonqi[6084]: qml: 1
Jul 15 22:22:17 host drkonqi[6084]: qml: 2
Jul 15 22:22:17 host drkonqi[6084]: qml: usefulness
Jul 15 22:22:17 host drkonqi[6084]: qml: 1
Jul 15 22:22:17 host drkonqi[6084]: qml: 4
Jul 15 22:25:15 host wpa_supplicant[871]: wlp1s0: WPA: Group rekeying completed with d8:ec:5e:80:ad:64 [GTK=CCMP]
Jul 15 22:28:53 host doas[2914]: pam_unix(doas:session): session closed for user root
Jul 15 22:28:55 host kwin_wayland[925]: kwin_xwl: Could not create a source from 0x7837c400f250 0
Jul 15 22:28:56 host systemd[892]: Started XTerm.
Jul 15 22:28:56 host xterm[6723]: Warning: locale not supported by C library, locale unchanged
Jul 15 22:28:56 host xterm[6723]: Warning: Actions not found: create-menu, insert-selection, select-start, select-extend, select-end, print-everything, larger-vt-font, smaller-vt-font
Jul 15 22:28:56 host xterm[6723]: Warning: Actions not found: create-menu, print-everything
Jul 15 22:28:56 host xterm[6723]: Warning: Actions not found: create-menu, print-everything
Jul 15 22:28:56 host kwin_wayland[925]: kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11
Jul 15 22:32:05 host dbus-broker-launch[726]: Activation request for 'org.freedesktop.Avahi' failed: The systemd unit 'dbus-org.freedesktop.Avahi.service' could not be found.
Jul 15 22:32:13 host systemd[892]: Started XTerm.
Jul 15 22:32:13 host xterm[7038]: Warning: locale not supported by C library, locale unchanged
Jul 15 22:32:13 host xterm[7038]: Warning: Actions not found: create-menu, insert-selection, select-start, select-extend, select-end, print-everything, larger-vt-font, smaller-vt-font
Jul 15 22:32:13 host xterm[7038]: Warning: Actions not found: create-menu, print-everything
Jul 15 22:32:13 host xterm[7038]: Warning: Actions not found: create-menu, print-everything
Jul 15 22:32:13 host kwin_wayland[925]: kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11
Jul 15 22:32:16 host systemd[1]: Starting Fingerprint Authentication Daemon...
Jul 15 22:32:16 host systemd[1]: Started Fingerprint Authentication Daemon.
Jul 15 22:32:17 host doas[7079]: pam_systemd_home(doas:account): New sd-bus connection (system-bus-pam-systemd-home-7079) opened.
Jul 15 22:32:17 host doas[7079]: pam_unix(doas:session): session opened for user root(uid=0) by gcb(uid=1000)
Jul 15 22:32:17 host doas[7088]: gcb ran command /bin/bash as root from /home/gcb
Jul 15 22:32:48 host systemd[1]: fprintd.service: Deactivated successfully.
Jul 15 22:32:51 host systemd[892]: Starting Accessibility services bus...
Jul 15 22:32:51 host systemd[892]: Started Accessibility services bus.
Jul 15 22:32:51 host at-spi-bus-launcher[7359]: Policy to allow eavesdropping in /usr/share/defaults/at-spi2/accessibility.conf +15: Eavesdropping is deprecated and ignored
Jul 15 22:32:51 host at-spi-bus-launcher[7359]: Policy to allow eavesdropping in /usr/share/defaults/at-spi2/accessibility.conf +17: Eavesdropping is deprecated and ignored
Jul 15 22:32:51 host dbus-broker-launch[7359]: Ready
Jul 15 22:34:31 host kwin_wayland[925]: kwin_xwl: Could not create a source from 0x641aea0db3d0 0
Jul 15 22:35:05 host wpa_supplicant[871]: wlp1s0: WPA: Group rekeying completed with d8:ec:5e:80:ad:64 [GTK=CCMP]
Jul 15 22:35:43 host drkonqi-coredump-launcher[6432]: /usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:515: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for r
emoval in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
Jul 15 22:35:43 host drkonqi-coredump-launcher[6432]:   boot_time = datetime.utcfromtimestamp(psutil.boot_time()).strftime('%Y-%m-%dT%H:%M:%S')
Jul 15 22:35:43 host systemd[1]: Starting Hostname Service...
```
Comment 3 cwo 2024-07-16 04:35:19 UTC
Thank you for the bug report! This issue has already been filed and was determined to be an upstream bug in Qt; please see that bug report for updates on a fix.

*** This bug has been marked as a duplicate of bug 489180 ***