Bug 451738 - Amarok crash when clicking on Quit [/src/browsers/BrowserCategoryListModel.cpp:30]
Summary: Amarok crash when clicking on Quit [/src/browsers/BrowserCategoryListModel.cp...
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: File Browser (show other bugs)
Version: 2.9.71
Platform: openSUSE Linux
: NOR crash
Target Milestone: kf5
Assignee: Amarok Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-03-20 19:11 UTC by mpeter.68m0y
Modified: 2025-01-23 21:14 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 mpeter.68m0y 2022-03-20 19:11:53 UTC
Application: amarok (2.9.71)

Qt Version: 5.15.2
Frameworks Version: 5.92.0
Operating System: Linux 5.3.18-150300.59.54-default x86_64
Windowing System: X11
Distribution: openSUSE Leap 15.3
DrKonqi: 5.24.3 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
I was closing Amarok with the Quit button in the "Amarok" menu of the top menu bar.

This is a fresh installation. I've just looked through the settings, read the docs for some of the settings pages with the built in docs viewer, then went on to discover the main window.
First I've opened the dynamic playlists section on the left, but a few menu layers later I didn't know how to get back to the top level so I tried to exit Amarok.
Closing the window reminded me that it still runs in the background, so I opened it again and used the above mentioned Quit button.
This is when the crash happened.

There was a similar issue where someone concluded that it was probably because of a bad script, but I don't have any scripts installed (and also the most minimal configuration) so I didn't mark that one as similar.

Before sending the report I've only tried it once to reproduce the crash, but it didn't happen.

The crash does not seem to be reproducible.

-- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault

[KCrash Handler]
#4  0x0000000000000000 in  ()
#5  0x00007f9005f1fc9e in qDeleteAll<QList<BrowserCategory*>::const_iterator>(QList<BrowserCategory*>::const_iterator, QList<BrowserCategory*>::const_iterator) (end=..., begin=...) at /usr/include/qt5/QtCore/qalgorithms.h:320
#6  qDeleteAll<QList<BrowserCategory*> >(QList<BrowserCategory*> const&) (c=...) at /usr/include/qt5/QtCore/qalgorithms.h:328
#7  BrowserCategoryListModel::~BrowserCategoryListModel() (this=0x556bc6f163e0, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/browsers/BrowserCategoryListModel.cpp:30
#8  0x00007f9005f1fcf9 in BrowserCategoryListModel::~BrowserCategoryListModel() (this=0x556bc6f163e0, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/browsers/BrowserCategoryListModel.cpp:31
#9  0x00007f9003a524eb in QObjectPrivate::deleteChildren() (this=this@entry=0x556bc6f2e6e0) at kernel/qobject.cpp:2104
#10 0x00007f9004a09566 in QWidget::~QWidget() (this=0x556bc6cb9630, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1522
#11 0x00007f9006060bac in ServiceBrowser::~ServiceBrowser() (this=0x556bc6cb9630, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/browsers/servicebrowser/ServiceBrowser.cpp:45
#12 0x00007f9006060c09 in ServiceBrowser::~ServiceBrowser() (this=0x556bc6cb9630, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/browsers/servicebrowser/ServiceBrowser.cpp:48
#13 0x00007f9005f1fc9e in qDeleteAll<QList<BrowserCategory*>::const_iterator>(QList<BrowserCategory*>::const_iterator, QList<BrowserCategory*>::const_iterator) (end=..., begin=...) at /usr/include/qt5/QtCore/qalgorithms.h:320
#14 qDeleteAll<QList<BrowserCategory*> >(QList<BrowserCategory*> const&) (c=...) at /usr/include/qt5/QtCore/qalgorithms.h:328
#15 BrowserCategoryListModel::~BrowserCategoryListModel() (this=0x556bc7039040, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/browsers/BrowserCategoryListModel.cpp:30
#16 0x00007f9005f1fcf9 in BrowserCategoryListModel::~BrowserCategoryListModel() (this=0x556bc7039040, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/browsers/BrowserCategoryListModel.cpp:31
#17 0x00007f9003a524eb in QObjectPrivate::deleteChildren() (this=this@entry=0x556bc55962a0) at kernel/qobject.cpp:2104
#18 0x00007f9004a09566 in QWidget::~QWidget() (this=0x556bc6f2bc20, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1522
#19 0x00007f9005f195c9 in BrowserCategoryList::~BrowserCategoryList() (this=0x556bc6f2bc20, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/browsers/BrowserCategoryList.cpp:89
#20 0x00007f9003a524eb in QObjectPrivate::deleteChildren() (this=this@entry=0x556bc70edac0) at kernel/qobject.cpp:2104
#21 0x00007f9004a09566 in QWidget::~QWidget() (this=0x556bc70b1640, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1522
#22 0x00007f9005eda9c1 in BoxWidget::~BoxWidget() (this=0x556bc70b1640, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/widgets/BoxWidget.h:44
#23 BoxWidget::~BoxWidget() (this=0x556bc70b1640, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/widgets/BoxWidget.h:44
#24 0x00007f9003a524eb in QObjectPrivate::deleteChildren() (this=this@entry=0x556bc6d1aa40) at kernel/qobject.cpp:2104
#25 0x00007f9004a09566 in QWidget::~QWidget() (this=0x556bc6f3aff0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1522
#26 0x00007f9005f20ab9 in AmarokDockWidget::~AmarokDockWidget() (this=0x556bc6f3aff0, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/widgets/AmarokDockWidget.h:23
#27 BrowserDock::~BrowserDock() (this=0x556bc6f3aff0, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/browsers/BrowserDock.cpp:62
#28 BrowserDock::~BrowserDock() (this=0x556bc6f3aff0, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/browsers/BrowserDock.cpp:63
#29 0x00007f9003a524eb in QObjectPrivate::deleteChildren() (this=this@entry=0x556bc5ca7d60) at kernel/qobject.cpp:2104
#30 0x00007f9004a09566 in QWidget::~QWidget() (this=0x556bc5745520, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1522
#31 0x00007f8ffd201ddd in KMainWindow::~KMainWindow() (this=0x556bc5745520, __in_chrg=<optimized out>) at /usr/src/debug/kxmlgui-5.92.0-lp153.261.1.x86_64/src/kmainwindow.cpp:437
#32 0x00007f900627c570 in MainWindow::~MainWindow() (this=0x556bc5745520, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/MainWindow.cpp:175
#33 0x00007f900627c5f9 in MainWindow::~MainWindow() (this=0x556bc5745520, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/MainWindow.cpp:187
#34 0x00007f9006266500 in App::~App() (this=0x7fff92a71b30, __in_chrg=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/App.cpp:231
#35 0x0000556bc33d40a5 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220224T114455~9300034c57-lp153.154.3.x86_64/src/main.cpp:59
[Inferior 1 (process 11917) detached]

Possible duplicates by query: bug 446543, bug 444408, bug 444064, bug 442583, bug 441979.

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2022-03-27 15:05:21 UTC
Thank you for the report. Not sure if it is a Qt or Amarok issue actually, but the report is useful.
Comment 2 Tuomas Nurmi 2024-07-13 20:32:32 UTC
I happened to encounter this a couple of times when looking at other things, but didn't find what are the exact steps to reproduce. I did some navigating in file browser and checking through the Internet services + enabling/disabling them when I got the crash.

I'm not completely sure if the bug fixed with https://invent.kde.org/multimedia/amarok/-/commit/777195d457ce0488f5e03248b9c600fa4b9c9435 might be relevant here (and if this is also fixed with that), but I'll maybe try reproducing later again to see if this might actually be fixed now, too.
Comment 3 Tuomas Nurmi 2025-01-23 21:14:53 UTC
I haven't encountered this since the service browser fixes myself, and it doesn't seem to appear in KDE crash reports either, so probably was fixed back then. Closing.