https://bugs.kde.org/show_bug.cgi?id=362051

--- Comment #3 from Daniel Lichtenberger <daniel.lichtenber...@gmx.net> ---
I'm having the same issue and I also suspect it's some kind of race condition.
For me the panel is stored on the wrong (left) screen about 50% of boots.
Killing and restarting plasmashell does not trigger the issue.

I'm currently also using the following patch to replace kscreen with QT
5.6-based screen handling in plasmashell, but it didn't solve the issue:

https://git.reviewboard.kde.org/r/125451/

I added debug statements to the PanelView constructor and to the screen
change-listener of plasmashell.  Here's the output of a successful boot (panel
restored on the right screen):

> Creating panelView, setting screen to QRect(1280,0 1680x1050)

Here's the output of an unsucessful boot (panel restored on the left screen):

> Creating panelView, setting screen to QRect(1280,0 1680x1050)
> Screen changed: old= QRect(1280,0 1680x1050) , new= QRect(0,0 1280x1024) , 
> geometry= QRect(1280,1020 1x30)
> Screen changed: old= QRect(0,0 1280x1024) , new= QRect(1280,0 1680x1050) , 
> geometry= QRect(0,994 1x30)
> Screen changed: old= QRect(1280,0 1680x1050) , new= QRect(0,0 1280x1024) , 
> geometry= QRect(0,994 1x30)

The panel briefly oscillates between the two screens before staying on the
"wrong" screen.

I also got a stacktrace in the screen change listener, it seems like the
'TopLevelScreen' is being changed:

         /usr/bin/plasmashell() [0x431c74]
         /usr/bin/plasmashell() [0x435144]
         /usr/bin/plasmashell() [0x43a147]
         /usr/bin/plasmashell() [0x43a044]
         /usr/bin/plasmashell() [0x439e63]
        
/usr/lib64/libQt5Core.so.5(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x98e)
[0x7f9412607ace]
         /usr/lib64/libQt5Gui.so.5(_ZN7QWindow13screenChangedEP7QScreen+0x2f)
[0x7f9412b322bf]
        
/usr/lib64/libQt5Gui.so.5(_ZN14QWindowPrivate26emitScreenChangedRecursionEP7QScreen+0x15)
[0x7f9412b328a5]
        
/usr/lib64/libQt5Gui.so.5(_ZN14QWindowPrivate17setTopLevelScreenEP7QScreenb+0x1bd)
[0x7f9412b383fd]
        
/usr/lib64/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate31processWindowScreenChangedEventEPN29QWindowSystemInterfacePrivate24WindowScreenChangedEventE+0x201)
[0x7f9412b2bda1]
        
/usr/lib64/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate24processWindowSystemEventEPN29QWindowSystemInterfacePrivate17WindowSystemEventE+0x145)
[0x7f9412b305c5]
        
/usr/lib64/libQt5Gui.so.5(_ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0xbb)
[0x7f9412b0effb]
         /usr/lib64/libQt5XcbQpa.so.5(+0x6fa10) [0x7f9404f08a10]
         /usr/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x287)
[0x7f940de9e227]
         /usr/lib64/libglib-2.0.so.0(+0x4c458) [0x7f940de9e458]
         /usr/lib64/libglib-2.0.so.0(g_main_context_iteration+0x2c)
[0x7f940de9e4fc]
        
/usr/lib64/libQt5Core.so.5(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x5f)
[0x7f941262ec3f]
        
/usr/lib64/libQt5Core.so.5(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xea)
[0x7f94125da79a]
         /usr/lib64/libQt5Core.so.5(_ZN16QCoreApplication4execEv+0x8d)
[0x7f94125e2a6d]
         /usr/bin/plasmashell() [0x4232e6]
         /lib64/libc.so.6(__libc_start_main+0xf0) [0x7f9411748710]
         /usr/bin/plasmashell(_start+0x29) [0x41e859]

I'm on openSUSE Tumbleweed, Plasma 5.6.3, Qt 5.6.  I did not have the issue
with Plasma 5.5 or before.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to