Bug 457976 - Plasma crashes when change monitor configuration via bash script (xrandr command)
Summary: Plasma crashes when change monitor configuration via bash script (xrandr comm...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.24.4
Platform: Ubuntu Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-08-17 00:37 UTC by James
Modified: 2022-08-17 00:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James 2022-08-17 00:37:29 UTC
Application: plasmashell (5.24.4)

Qt Version: 5.15.3
Frameworks Version: 5.92.0
Operating System: Linux 5.15.0-46-generic x86_64
Windowing System: X11
Distribution: Ubuntu 22.04.1 LTS
DrKonqi: 5.24.4 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
Executed bash script to disable or enable third monitor.

- Custom settings of the application:
Disable third monitor: xrandr --output DP-0  --off \
        --output HDMI-0 --mode 2560x1440 --primary --pos 0x1440 --rotate normal \
        --output DP-4  --mode 3440x1440 --pos 469x0    --rotate normal

Enable third monitor: xrandr --output DP-0  --mode 2560x1440 --primary --pos 2560x1440       --rotate normal \
        --output HDMI-0 --mode 2560x1440 --pos 0x1440 --rotate normal \
        --output DP-4  --mode 3440x1440 --pos 469x0    --rotate normal

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault

[KCrash Handler]
#4  0x00007efc546f6134 in QScreen::geometry() const () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#5  0x0000559a30d74f63 in  ()
#6  0x0000559a30d78f16 in  ()
#7  0x00007efc546d95a5 in QWindow::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#8  0x00007efc54fdb713 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007efc542e4e2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007efc546ce748 in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#11 0x00007efc546a2a2c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#12 0x00007efc4f20ad6e in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#13 0x00007efc526c0d1b in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007efc527156f8 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007efc526be3c3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007efc5433e0a8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007efc542e374b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007efc542ebce4 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x0000559a30d60dce in  ()
#20 0x00007efc53c00d90 in __libc_start_call_main (main=main@entry=0x559a30d5ff70, argc=argc@entry=1, argv=argv@entry=0x7ffc30bb0408) at ../sysdeps/nptl/libc_start_call_main.h:58
#21 0x00007efc53c00e40 in __libc_start_main_impl (main=0x559a30d5ff70, argc=1, argv=0x7ffc30bb0408, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc30bb03f8) at ../csu/libc-start.c:392
#22 0x0000559a30d60ef5 in  ()
[Inferior 1 (process 1513) detached]

The reporter indicates this bug may be a duplicate of or related to bug 457282.

Possible duplicates by query: bug 457916, bug 457912, bug 457862, bug 457827, bug 457721.

Reported using DrKonqi
Comment 1 James 2022-08-17 00:44:37 UTC
Change scripts to be one line ie: xrandr --output DP-0  --off --output HDMI-0 --mode 2560x1440 --primary --pos 0x1440 --rotate normal --output DP-4  --mode 3440x1440 --pos 469x0    --rotate normal  and it seemed to stop the crashing.