Bug 483628

Summary: Plasma 6.0.2 crashing
Product: [Plasma] plasmashell Reporter: dexter <dex.mbox>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: nate, qydwhotmail
Priority: NOR Keywords: drkonqi, qt6
Version First Reported In: 6.0.2   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 6.0.3
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
new trace
trace 3

Description dexter 2024-03-15 07:07:39 UTC
Application: plasmashell (6.0.2)

Qt Version: 6.6.2
Frameworks Version: 6.0.0
Operating System: Linux 6.8.0-63.fc40.1.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora release 40 (Forty)"
DrKonqi: 6.0.2 [CoredumpBackend]

-- Information about the crash:
Random crashes in floating planel since v6.0

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#8  qobject_cast<QQuickLayout*> (object=<optimized out>) at /usr/include/qt6/QtCore/qobject.h:393
#9  QQuickLayout::effectiveSizePolicy_helper (item=<optimized out>, orientation=<optimized out>, info=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.6.2-1.fc40.x86_64/src/quicklayouts/qquicklayout.cpp:1269
#10 0x00007feb81f5f13b in QGridLayoutItem::stretchFactor (this=<optimized out>, orientation=<optimized out>) at /usr/src/debug/qt6-qtbase-6.6.2-6.fc40.x86_64/src/gui/util/qgridlayoutengine.cpp:533
#11 QGridLayoutItem::stretchFactor (this=<optimized out>, orientation=<optimized out>) at /usr/src/debug/qt6-qtbase-6.6.2-6.fc40.x86_64/src/gui/util/qgridlayoutengine.cpp:527
#12 0x00007feb81f66396 in QGridLayoutEngine::fillRowData (this=this@entry=0x558c1769c288, rowData=rowData@entry=0x558c1769c428, colPositions=colPositions@entry=0x0, colSizes=colSizes@entry=0x0, orientation=orientation@entry=Qt::Horizontal, styleInfo=styleInfo@entry=0x558c1769be10) at /usr/src/debug/qt6-qtbase-6.6.2-6.fc40.x86_64/src/gui/util/qgridlayoutengine.cpp:1395


Reported using DrKonqi
Comment 1 dexter 2024-03-15 07:07:40 UTC
Created attachment 167233 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Fushan Wen 2024-03-15 09:32:11 UTC
What were you doing when the crash happened
Comment 3 dexter 2024-03-15 21:44:30 UTC
(In reply to Fushan Wen from comment #2)
> What were you doing when the crash happened

it's random, 
but it feels like when I move to activate the main floating panel which is auto hidden it's likely to crash or not.
here is another trace since the last crash.
Comment 4 dexter 2024-03-15 21:47:12 UTC
Created attachment 167285 [details]
new trace
Comment 5 dexter 2024-03-16 09:16:06 UTC
I just got a crash while 30mins into a fullscreen video, the screen flashed black & audio kept playing. I got out of fullscreen to find drkonqi so no input from me this time. trace included.
Comment 6 dexter 2024-03-16 09:17:50 UTC
Created attachment 167306 [details]
trace 3
Comment 7 dexter 2024-03-23 22:03:21 UTC
I've also filed this against QT
https://bugreports.qt.io/browse/QTBUG-123638
Comment 8 Fushan Wen 2024-03-24 06:35:57 UTC
> #4  QQmlData::get (priv=0x81, create=false) at /usr/src/debug/qt6-qtdeclarative-6.6.2-1.fc40.x86_64/src/qml/qml/qqmldata_p.h:202

The backtrace looks like something is wrong with the QML garbage collector
Comment 9 Bug Janitor Service 2024-03-25 17:51:52 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/564
Comment 10 Fushan Wen 2024-03-25 18:11:40 UTC
Do you use the weather widget?
Comment 11 dexter 2024-03-25 18:17:25 UTC
Yes good guess
Comment 12 Fushan Wen 2024-03-26 00:28:20 UTC
Git commit 8581674ee8fb2b0a17619302fa5a4e8f59669100 by Fushan Wen.
Committed on 26/03/2024 at 00:28.
Pushed by fusionfuture into branch 'master'.

applets/weather: remove invalid bindings on Layout properties

Those weather views are in the SwipeView, not in a layout.
Related: bug 483791

M  +0    -2    applets/weather/package/contents/ui/ForecastView.qml
M  +2    -2    applets/weather/package/contents/ui/SwitchPanel.qml
M  +1    -1    applets/weather/package/contents/ui/TopPanel.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/8581674ee8fb2b0a17619302fa5a4e8f59669100
Comment 13 Bug Janitor Service 2024-03-26 00:28:58 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/565
Comment 14 Fushan Wen 2024-03-26 00:31:33 UTC
Git commit 0350e4468502f10a9530e41850cf929db20f5bb9 by Fushan Wen.
Committed on 26/03/2024 at 00:28.
Pushed by fusionfuture into branch 'Plasma/6.0'.

applets/weather: remove invalid bindings on Layout properties

Those weather views are in the SwipeView, not in a layout.
Related: bug 483791


(cherry picked from commit 8581674ee8fb2b0a17619302fa5a4e8f59669100)

916d5ab8 applets/weather: remove invalid bindings on Layout properties

M  +0    -2    applets/weather/package/contents/ui/ForecastView.qml
M  +2    -2    applets/weather/package/contents/ui/SwitchPanel.qml
M  +1    -1    applets/weather/package/contents/ui/TopPanel.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/0350e4468502f10a9530e41850cf929db20f5bb9
Comment 15 Bug Janitor Service 2024-03-26 14:01:20 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/566
Comment 16 dexter 2024-03-26 18:34:33 UTC
(In reply to Fushan Wen from comment #14)
> Git commit 0350e4468502f10a9530e41850cf929db20f5bb9 by Fushan Wen.
> Committed on 26/03/2024 at 00:28.
> Pushed by fusionfuture into branch 'Plasma/6.0'.
> 
> applets/weather: remove invalid bindings on Layout properties
> 
> Those weather views are in the SwipeView, not in a layout.
> Related: bug 483791
> 
> 
> (cherry picked from commit 8581674ee8fb2b0a17619302fa5a4e8f59669100)
> 
> 916d5ab8 applets/weather: remove invalid bindings on Layout properties
> 
> M  +0    -2    applets/weather/package/contents/ui/ForecastView.qml
> M  +2    -2    applets/weather/package/contents/ui/SwitchPanel.qml
> M  +1    -1    applets/weather/package/contents/ui/TopPanel.qml
> 
> https://invent.kde.org/plasma/kdeplasma-addons/-/commit/
> 0350e4468502f10a9530e41850cf929db20f5bb9

Testing...
Comment 17 Fushan Wen 2024-03-27 15:07:30 UTC
Is there any new crash?
Comment 18 dexter 2024-03-27 15:34:17 UTC
(In reply to Fushan Wen from comment #17)
> Is there any new crash?

No it's been rock solid. I think you may have cracked it. 
Famous last words.
Comment 19 Fushan Wen 2024-03-28 17:29:20 UTC
No crash on Sentry either, so mark as closed.
Comment 20 dexter 2024-03-28 20:07:50 UTC
Closed QT bug.
Thanks for coming.
Comment 21 Nate Graham 2024-07-22 21:11:07 UTC

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