Bug 445498

Summary: Plasma crashes inQXcbVirtualDesktop::surfaceFormatFor() when waking up the computer from suspension mode and clicking on any item on the menu
Product: [Plasma] plasmashell Reporter: Fabio C. Barrionuevo <bnafta>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: adam, bnafta, nate, nicolas.fella, plasma-bugs
Priority: NOR Keywords: drkonqi
Version: 5.23.3   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Fabio C. Barrionuevo 2021-11-14 19:23:07 UTC
Application: plasmashell (5.23.3)

Qt Version: 5.15.3
Frameworks Version: 5.87.0
Operating System: Linux 5.11.0-40-generic x86_64
Windowing System: X11
Distribution: KDE neon User - Plasma 25th Anniversary Edition
DrKonqi: 5.23.3 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:

Wake up the computer from suspension mode and click on any item of the menu. 

This bug is reproducible 100% of the time.

Note: I'm running KDE Neon on X11 + Nvidia GTX 1650 with proprietary driver installed via ubuntu-drivers + 2 monitors connected via Displayport.

Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-40-generic (64-bit)
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: GeForce GTX 1650/PCIe/SSE2

The crash can be reproduced every time.

-- Backtrace (Reduced):
#4  0x00007f17ea977c38 in QScreen::handle() const (this=0x556a3472d9c0) at kernel/qscreen.cpp:182
#5  0x00007f17e494dce4 in QXcbGlxIntegration::createPlatformOpenGLContext(QOpenGLContext*) const (this=<optimized out>, context=0x7f17e002ac00) at qxcbglxintegration.cpp:195
#6  0x00007f17e5cf1a88 in QXcbIntegration::createPlatformOpenGLContext(QOpenGLContext*) const (this=<optimized out>, context=0x7f17e002ac00) at qxcbintegration.cpp:282
#7  0x00007f17ea995ef1 in QOpenGLContext::create() (this=0x7f17e002ac00) at ../../include/QtGui/5.15.3/QtGui/private/../../../../../src/gui/kernel/qguiapplication_p.h:110
#8  0x00007f17ebfefd98 in QSGRenderThread::sync(bool, bool) (this=this@entry=0x7f17e0018200, inExpose=inExpose@entry=true, inGrab=inGrab@entry=false) at scenegraph/qsgthreadedrenderloop.cpp:620


Possible duplicates by query: bug 445327, bug 442126, bug 440124, bug 437266, bug 437090.

Reported using DrKonqi
Comment 1 Fabio C. Barrionuevo 2021-11-14 19:23:11 UTC
Created attachment 143552 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Adam Stein 2021-11-19 11:25:41 UTC
Created attachment 143725 [details]
New crash information added by DrKonqi

plasmashell (5.22.5) using Qt 5.15.2

- What I was doing when the application crashed:

Just resumed my computer out of sleep mode and clicked an icon in the tray. This time is specifically was the KDE Connect icon, but Plasma has crashed (and restarted) when I clicked other tray icons as well (so I don't think it's KDE Connect specific).

In this case, it didn't happen, but usually when Plasma crashes, it takes down other applications with it such as Dropbox, MS Teams, and Waterfox (a Firefox clone).

It seems to happen often after resuming from sleep, but I can't say it happens every single time.

-- Backtrace (Reduced):
#4  0x00007f01aea0c0a7 in QXcbVirtualDesktop::surfaceFormatFor(QSurfaceFormat const&) const () at /lib64/libQt5XcbQpa.so.5
#5  0x00007f01aea0c696 in QXcbScreen::surfaceFormatFor(QSurfaceFormat const&) const () at /lib64/libQt5XcbQpa.so.5
#6  0x00007f01ad4cfd70 in QXcbGlxIntegration::createPlatformOpenGLContext(QOpenGLContext*) const () at /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#7  0x00007f01c0d8c481 in QOpenGLContext::create() () at /lib64/libQt5Gui.so.5
#8  0x00007f01c2268600 in QSGRenderThread::syncAndRender(QImage*) () at /lib64/libQt5Quick.so.5
Comment 3 Nate Graham 2021-11-23 22:30:46 UTC

*** This bug has been marked as a duplicate of bug 414805 ***
Comment 4 Fabio C. Barrionuevo 2021-12-02 14:00:05 UTC
Created attachment 144146 [details]
New crash information added by DrKonqi

plasmashell (5.23.3) using Qt 5.15.3

I'm always up to date with KDE Neon, and this failure keeps happening.
I'm not sure if the merge-request that this issue was marked as a duplicate refers to can actually fix this specific issue.

Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-41-generic (64-bit)
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: GeForce GTX 1650/PCIe/SSE2

-- Backtrace (Reduced):
#4  0x00007f3f18a4a331 in QXcbVirtualDesktop::surfaceFormatFor(QSurfaceFormat const&) const (this=0x0, format=...) at qxcbobject.h:53
#5  0x00007f3f18a4a9d6 in QXcbScreen::surfaceFormatFor(QSurfaceFormat const&) const (this=this@entry=0x557609276240, format=...) at qxcbscreen.cpp:653
#6  0x00007f3f1769dd00 in QXcbGlxIntegration::createPlatformOpenGLContext(QOpenGLContext*) const (this=<optimized out>, context=0x5576069eb600) at qxcbglxintegration.cpp:196
#7  0x00007f3f18a42a88 in QXcbIntegration::createPlatformOpenGLContext(QOpenGLContext*) const (this=<optimized out>, context=0x5576069eb600) at qxcbintegration.cpp:282
#8  0x00007f3f1d6e6ef1 in QOpenGLContext::create() (this=0x5576069eb600) at ../../include/QtGui/5.15.3/QtGui/private/../../../../../src/gui/kernel/qguiapplication_p.h:110
Comment 5 Nate Graham 2021-12-03 16:49:10 UTC
It's Bug 414805. The issue is in Qt itself, not any KDE code.

*** This bug has been marked as a duplicate of bug 414805 ***
Comment 6 Fabio C. Barrionuevo 2021-12-03 16:58:10 UTC
(In reply to Nate Graham from comment #5)
> It's Bug 414805. The issue is in Qt itself, not any KDE code.
> 
> *** This bug has been marked as a duplicate of bug 414805 ***

Okay, thanks for pointing out that the bug is in QT and not KDE.

Since I keep getting this error repeatedly and https://invent.kde.org/qt/qt/qtbase/-/merge_requests/33 has merged 5 months ago, (and I can assume it's already integrated for general use in KDE Neon), is there any other issue that I should be aware of to see and/or help with more information that deals with this specific issue?
Comment 7 Nate Graham 2021-12-03 18:02:25 UTC
Darn, looks like you do have the supposed fix, then. I'll re-open the parent bug report.
Comment 8 Nate Graham 2021-12-03 18:04:50 UTC
Actually looks like I was wrong; there's no QScreen::handle() in your backtrace, so I guess it's a different bug.
Comment 9 Nicolas Fella 2022-01-28 13:04:13 UTC

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