Bug 493305

Summary: Multiple Java JOptionPane alerts displayed in succession causes plasmashell crash
Product: [Plasma] plasmashell Reporter: Kurt Wilson <kdebugs>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: Christoph.Wolk, kdebugs
Priority: NOR Keywords: drkonqi
Version: 6.1.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/35063/events/58820261101e458aa98982c726b1df3d/
Attachments: New crash information added by DrKonqi
Screen recording of the issue. I run one query as an example, and then two, which causes the failure
(corrected) Screen recording of the issue. I run one query as an example, and then two, which causes the failure

Description Kurt Wilson 2024-09-18 04:41:34 UTC
Application: plasmashell (6.1.5)

Qt Version: 6.7.2
Frameworks Version: 6.6.0
Operating System: Linux 6.10.10-arch1-1 x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 6.1.5 [CoredumpBackend]

-- Information about the crash:
Application specific details: I'm using UPPAAL 4.1.20. When running a statistical query, it shows the result in (what I think is a) JOptionPane. If I run multiple queries together, UPPAAL shows these dialogs in sucession - acknowleging all of them causes a plasmashell crash.

UPPAAL is closed source, so I can't 100% confirm the mechanism causing the crash, but give me a few days and I'll try to reproduce it in Java.

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#5  0x0000717b91d7598c in QConcatenateTablesProxyModel::index (this=0x622a1e40d190, row=<optimized out>, column=0, parent=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/itemmodels/qconcatenatetablesproxymodel.cpp:280
#6  0x0000717b886bdb8d in TaskManager::TasksModel::TasksModelLessThan::operator() (this=0x7ffc682c4b00, r1=<optimized out>, r2=<optimized out>) at /usr/src/debug/plasma-workspace/plasma-workspace-6.1.5/libtaskmanager/tasksmodel.cpp:100
#8  std::__insertion_sort<QList<int>::iterator, __gnu_cxx::__ops::_Iter_comp_iter<TaskManager::TasksModel::TasksModelLessThan> > (__first=..., __last=..., __comp=...) at /usr/include/c++/14.2.1/bits/stl_algo.h:1777
#9  0x0000717b886be405 in std::__stable_sort_adaptive<QList<int>::iterator, int*, __gnu_cxx::__ops::_Iter_comp_iter<TaskManager::TasksModel::TasksModelLessThan> > (__first=..., __first@entry=..., __middle=..., __last=..., __last@entry=..., __buffer=__buffer@entry=0x622a2103fb90, __comp=...) at /usr/include/c++/14.2.1/bits/stl_algo.h:2705
#10 0x0000717b886bf91b in std::__stable_sort<QList<int>::iterator, __gnu_cxx::__ops::_Iter_comp_iter<TaskManager::TasksModel::TasksModelLessThan> > (__first=..., __last=..., __comp=...) at /usr/include/qt6/QtCore/qlist.h:113


Reported using DrKonqi
Comment 1 Kurt Wilson 2024-09-18 04:41:35 UTC
Created attachment 173812 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Kurt Wilson 2024-09-18 04:53:37 UTC
Created attachment 173813 [details]
Screen recording of the issue. I run one query as an example, and then two, which causes the failure

Screen recording of the issue. I run one query as an example, and then two, which causes the failure.
Comment 3 Kurt Wilson 2024-09-18 04:54:59 UTC
Comment on attachment 173813 [details]
Screen recording of the issue. I run one query as an example, and then two, which causes the failure

I'm using the Doom effect from Burn My Windows, but the bug occurs with the stock Fade effect too
Comment 4 Kurt Wilson 2024-09-18 05:08:05 UTC
Created attachment 173814 [details]
(corrected) Screen recording of the issue. I run one query as an example, and then two, which causes the failure

Sorry, somehow I uploaded the wrong video
Comment 5 cwo 2024-09-18 08:08:08 UTC
Thank you for the bug report! This seems to be the same crash as bug 488596, which was recently fixed in the current development version. The fix should be included in Plasma 6.2, to be released in early October.

*** This bug has been marked as a duplicate of bug 488596 ***
Comment 6 Kurt Wilson 2024-09-18 21:55:42 UTC
(In reply to cwo from comment #5)
> Thank you for the bug report! This seems to be the same crash as bug 488596,
> which was recently fixed in the current development version. The fix should
> be included in Plasma 6.2, to be released in early October.
> 
> *** This bug has been marked as a duplicate of bug 488596 ***

Cool, thank you!