Bug 432903 - Amarok crashes on exit [BrowserBreadcrumbWidget::addBreadCrumbItem(BrowserBreadcrumbItem*) ]
Summary: Amarok crashes on exit [BrowserBreadcrumbWidget::addBreadCrumbItem(BrowserBre...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: amarok
Classification: Applications
Component: general (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: 2021-02-13 22:07 UTC by Vojtěch Zeisek
Modified: 2021-05-07 11:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
amarok --debug (129.33 KB, text/x-log)
2021-02-18 20:20 UTC, Vojtěch Zeisek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vojtěch Zeisek 2021-02-13 22:07:23 UTC
Application: amarok (2.9.70)

Qt Version: 5.15.2
Frameworks Version: 5.78.0
Operating System: Linux 5.10.12-1-default x86_64
Windowing system: X11
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
Every time I try to quit Amarok (e.g. by Ctrl+Q), it crashes.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007f923bc1c174 in QWidget::setParent(QWidget*) () at /usr/lib64/libQt5Widgets.so.5
#5  0x00007f923c565260 in BrowserBreadcrumbWidget::addBreadCrumbItem(BrowserBreadcrumbItem*) (item=<optimized out>, this=0x5612601956b0) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/browsers/BrowserBreadcrumbWidget.cpp:171
#6  BrowserBreadcrumbWidget::addLevel(BrowserCategoryList*) (list=<optimized out>, this=0x5612601956b0) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/browsers/BrowserBreadcrumbWidget.cpp:120
#7  BrowserBreadcrumbWidget::updateBreadcrumbs() (this=0x5612601956b0) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/browsers/BrowserBreadcrumbWidget.cpp:84
#8  0x00007f923b0608c6 in  () at /usr/lib64/libQt5Core.so.5
#9  0x00007f923c55daaf in BrowserCategoryList::viewChanged() (this=0x561260622a80) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/build/src/amaroklib_autogen/H7W3GF2ISY/moc_BrowserCategoryList.cpp:198
#10 BrowserCategoryList::childViewChanged() (this=0x561260622a80) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/browsers/BrowserCategoryList.cpp:230
#11 0x00007f923b0608c6 in  () at /usr/lib64/libQt5Core.so.5
#12 0x00007f923c792649 in BrowserCategoryList::removeCategory(BrowserCategory*) (category=0x5612608a5660, this=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/browsers/BrowserCategoryList.cpp:169
#13 ScriptableServiceManager::removeRunningScript(QString const&) (name=..., this=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/services/scriptable/ScriptableServiceManager.cpp:111
#14 ScriptItem::pause() (this=this@entry=0x5612601410b0) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/scripting/scriptmanager/ScriptItem.cpp:148
#15 0x00007f923c7926d3 in ScriptItem::stop() (this=0x5612601410b0) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/scripting/scriptmanager/ScriptItem.cpp:324
#16 ScriptItem::~ScriptItem() (this=0x5612601410b0, this=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/scripting/scriptmanager/ScriptItem.cpp:355
#17 0x00007f923c7927b9 in ScriptItem::~ScriptItem() (this=0x5612601410b0, this=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/scripting/scriptmanager/ScriptItem.cpp:356
#18 0x00007f923b053efe in QObjectPrivate::deleteChildren() () at /usr/lib64/libQt5Core.so.5
#19 0x00007f923b05ead4 in QObject::~QObject() () at /usr/lib64/libQt5Core.so.5
#20 0x00007f923c791831 in ScriptManager::~ScriptManager() (this=0x7f9218041000, this=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/scripting/scriptmanager/ScriptManager.cpp:72
#21 ScriptManager::destroy() () at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/scripting/scriptmanager/ScriptManager.cpp:78
#22 0x00007f923c769eb8 in App::~App() (this=0x7ffd272cac00, this=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/App.cpp:221
#23 0x000056125ebef109 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.5.x86_64/src/main.cpp:56
[Inferior 1 (process 25437) detached]

Possible duplicates by query: bug 405285, bug 357519, bug 356867, bug 356718, bug 321518.

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2021-02-16 16:35:54 UTC
Thank you for your crash report. Unfortunately you do not have debugging symbols enabled. If you can reliably reproduce this crash, please install debugging symbols and provide a better backtrace. Se also https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Comment 2 Vojtěch Zeisek 2021-02-18 20:18:39 UTC
Hello, I have packages amarok, amarok-debuginfo and amarok-lang, version 2.9.70git.20201222T022603~89d13c15ad-142.6, openSUSE Tumbleweed. I can reproduce the bug every time on two computers. See attached log.
Comment 3 Vojtěch Zeisek 2021-02-18 20:20:35 UTC
Created attachment 135869 [details]
amarok --debug
Comment 4 Myriam Schweingruber 2021-02-20 01:35:05 UTC
Amarok --debug is not what we need...

You need to install debugging symbols for Amarok and its dependencies, then get a new backtrace. Please read the instructions on how to install those for your distribution in the wiki page I gave you.
Comment 5 Vojtěch Zeisek 2021-02-22 08:57:42 UTC
I'm sorry, but when submitting the first report, package "amarok-debuginfo" was already installed, as suggested by DrKonqi. From list "zypper info --requires amarok" I tried to install all matching "-debuginfo" packages, and got only "libtag-extras1-debuginfo, kirigami2-debuginfo, libmtp-debuginfo, libphonon4qt5-debuginfo, libqt5-qtquickcontrols-debuginfo" (I have debug repository enabled). When invoking the behavior in Amarok I get:

Application: Amarok (amarok), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f9fcbe4e164 in QWidget::setParent(QWidget*) () at /usr/lib64/libQt5Widgets.so.5
#5  0x00007f9fcc798260 in BrowserBreadcrumbWidget::addBreadCrumbItem(BrowserBreadcrumbItem*) (item=<optimized out>, this=0x562e6e6ba340) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/browsers/BrowserBreadcrumbWidget.cpp:171
#6  BrowserBreadcrumbWidget::addLevel(BrowserCategoryList*) (list=<optimized out>, this=0x562e6e6ba340) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/browsers/BrowserBreadcrumbWidget.cpp:120
#7  BrowserBreadcrumbWidget::updateBreadcrumbs() (this=0x562e6e6ba340) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/browsers/BrowserBreadcrumbWidget.cpp:84
#8  0x00007f9fcb291946 in  () at /usr/lib64/libQt5Core.so.5
#9  0x00007f9fcc790aaf in BrowserCategoryList::viewChanged() (this=0x562e6e9265a0) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/build/src/amaroklib_autogen/H7W3GF2ISY/moc_BrowserCategoryList.cpp:198
#10 BrowserCategoryList::childViewChanged() (this=0x562e6e9265a0) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/browsers/BrowserCategoryList.cpp:230
#11 0x00007f9fcb291946 in  () at /usr/lib64/libQt5Core.so.5
#12 0x00007f9fcc9c5649 in BrowserCategoryList::removeCategory(BrowserCategory*) (category=0x562e6e2bf350, this=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/browsers/BrowserCategoryList.cpp:169
#13 ScriptableServiceManager::removeRunningScript(QString const&) (name=..., this=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/services/scriptable/ScriptableServiceManager.cpp:111
#14 ScriptItem::pause() (this=this@entry=0x562e6e5f7c80) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/scripting/scriptmanager/ScriptItem.cpp:148
#15 0x00007f9fcc9c56d3 in ScriptItem::stop() (this=0x562e6e5f7c80) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/scripting/scriptmanager/ScriptItem.cpp:324
#16 ScriptItem::~ScriptItem() (this=0x562e6e5f7c80, this=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/scripting/scriptmanager/ScriptItem.cpp:355
#17 0x00007f9fcc9c57b9 in ScriptItem::~ScriptItem() (this=0x562e6e5f7c80, this=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/scripting/scriptmanager/ScriptItem.cpp:356
#18 0x00007f9fcb284f3e in QObjectPrivate::deleteChildren() () at /usr/lib64/libQt5Core.so.5
#19 0x00007f9fcb28fb54 in QObject::~QObject() () at /usr/lib64/libQt5Core.so.5
#20 0x00007f9fcc9c4831 in ScriptManager::~ScriptManager() (this=0x562e6e387ea0, this=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/scripting/scriptmanager/ScriptManager.cpp:72
#21 ScriptManager::destroy() () at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/scripting/scriptmanager/ScriptManager.cpp:78
#22 0x00007f9fcc99ceb8 in App::~App() (this=0x7ffc8ae68760, this=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/App.cpp:221
#23 0x0000562e6d603109 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/amarok-2.9.70git.20201222T022603~89d13c15ad-142.6.x86_64/src/main.cpp:56
[Inferior 1 (process 1554) detached]

I'm sorry, I really don't know where to get more debug output. Some more system/kdelibs packages...?
Comment 6 Myriam Schweingruber 2021-02-22 19:40:29 UTC
Sorry, my bad, I didn't scan beyond the first line.

You should ask your distribution to upgrade to the now released Amarok 2.9.71 and see if this still happens.
Comment 7 Pedro de Carvalho Gomes 2021-02-23 20:46:55 UTC
Hi,

The crash seems to be caused by Amarok trying to stop some running script. Can you provide all the scripts that you have installed?
Comment 8 Vojtěch Zeisek 2021-02-24 07:21:16 UTC
I have
- https://store.kde.org/p/1135859 - CopyCover2
- https://store.kde.org/p/1135750 - Copy All Cover
- https://store.kde.org/p/1135783 - Czech Radio (Ceska Radia)
Comment 9 Vojtěch Zeisek 2021-02-25 20:32:35 UTC
It's same on latest Git version (b94c362c1d).
Comment 10 Myriam Schweingruber 2021-02-26 13:32:20 UTC
Changing version
Comment 11 Vojtěch Zeisek 2021-05-07 08:40:21 UTC
The crash was caused by whatever problem in "Czech Radio (Ceska Radia)" https://store.kde.org/p/1135783/ script. After uninstalling, Amarok doesn't crash anymore. The script is normally installable and otherwise id doesn't produce any error. I'm not sure if whatever error in external script should cause crash of whole application... Might be such problematic scripts should be removed from the KDE store...?
Comment 12 Myriam Schweingruber 2021-05-07 11:00:33 UTC
We have no control over third-party scripts in the KDE Store. The scripting interface has changed a lot between Amarok 2.9 and the current git version. Please report this to the script author.