Bug 469512 - Playback stops. Pressing the play button again often results in a SIGSEGV
Summary: Playback stops. Pressing the play button again often results in a SIGSEGV
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Playlist (show other bugs)
Version: 2.9.71
Platform: Other Linux
: NOR normal
Target Milestone: kf5
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-08 21:55 UTC by Mark Post
Modified: 2024-04-09 20:28 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 Mark Post 2023-05-08 21:55:49 UTC
Application: amarok (2.9.71)

Actual version as reported by RPM is amarok-2.9.75git.20220102T131246~92aa01de32-bp154.1.19.x86_64

Qt Version: 5.15.2
Frameworks Version: 5.90.0
Operating System: Linux 5.14.21-150400.24.60-default x86_64
Windowing System: X11
Distribution: "openSUSE Leap 15.4"
DrKonqi: 5.24.4 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
I start Amarok, and click on the play button. I have "shuffle mode" enabled. Frequently, after playing the first track, playback will stop. If I click on the play button again, one of three things happen:
1. Nothing, which is then followed by clicking on the play button again.
2. The next randomly selected track plays.
3. Amarok segfaults.

The crash can be reproduced sometimes.

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

[KCrash Handler]
#4  Playlist::FavoredRandomTrackNavigator::planOne (this=0x5563d5caf8e0) at /usr/src/debug/amarok-2.9.75git.20220102T131246~92aa01de32-bp154.1.19.x86_64/src/playlist/navigators/FavoredRandomTrackNavigator.cpp:67
#5  0x00007f07014d9b6c in Playlist::NonlinearTrackNavigator::nextItemChooseDonorList (this=this@entry=0x5563d5caf8e0) at /usr/src/debug/amarok-2.9.75git.20220102T131246~92aa01de32-bp154.1.19.x86_64/src/playlist/navigators/NonlinearTrackNavigator.cpp:239
#6  0x00007f07014db247 in Playlist::NonlinearTrackNavigator::requestNextTrack (this=0x5563d5caf8e0) at /usr/src/debug/amarok-2.9.75git.20220102T131246~92aa01de32-bp154.1.19.x86_64/src/playlist/navigators/NonlinearTrackNavigator.cpp:265
#7  0x00007f0701499f41 in Playlist::Actions::play (this=0x5563d5c74790) at /usr/src/debug/amarok-2.9.75git.20220102T131246~92aa01de32-bp154.1.19.x86_64/src/playlist/PlaylistActions.cpp:181
#8  0x00007f070178922d in EngineController::play (this=this@entry=0x7f06d00057b0) at /usr/src/debug/amarok-2.9.75git.20220102T131246~92aa01de32-bp154.1.19.x86_64/src/EngineController.cpp:349
#9  0x00007f0701789403 in EngineController::playPause (this=0x7f06d00057b0) at /usr/src/debug/amarok-2.9.75git.20220102T131246~92aa01de32-bp154.1.19.x86_64/src/EngineController.cpp:611
#10 0x00007f06fef7b1c7 in QtPrivate::QSlotObjectBase::call (a=0x7ffca163c740, r=0x7f06d00057b0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#11 doActivate<false> (sender=0x5563d57f7c70, signal_index=8, argv=0x7ffca163c740) at kernel/qobject.cpp:3886
#12 0x00007f06fef74782 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f0701cbd820 <PlayPauseButton::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffca163c740) at kernel/qobject.cpp:3946
#13 0x00007f07013b37cf in PlayPauseButton::toggled (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220102T131246~92aa01de32-bp154.1.19.x86_64/build/src/amaroklib_autogen/IMAN36LHMA/moc_PlayPauseButton.cpp:141
#14 0x00007f06fef7b1c7 in QtPrivate::QSlotObjectBase::call (a=0x7ffca163c800, r=0x5563d57f7c70, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#15 doActivate<false> (sender=0x5563d57f7c70, signal_index=7, argv=0x7ffca163c800) at kernel/qobject.cpp:3886
#16 0x00007f06fef74782 in QMetaObject::activate (sender=sender@entry=0x5563d57f7c70, m=m@entry=0x7f0701ce6fa0 <IconButton::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3946
#17 0x00007f07013b27b0 in IconButton::clicked (this=this@entry=0x5563d57f7c70) at /usr/src/debug/amarok-2.9.75git.20220102T131246~92aa01de32-bp154.1.19.x86_64/build/src/amaroklib_autogen/IMAN36LHMA/moc_IconButton.cpp:139
#18 0x00007f0701881d67 in IconButton::mouseReleaseEvent (this=0x5563d57f7c70, me=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220102T131246~92aa01de32-bp154.1.19.x86_64/src/widgets/IconButton.cpp:69
#19 0x00007f06fff2ab48 in QWidget::event (this=0x5563d57f7c70, event=0x7ffca163cd20) at kernel/qwidget.cpp:9020
#20 0x00007f06ffeea3bc in QApplicationPrivate::notify_helper (this=this@entry=0x5563d52d0250, receiver=receiver@entry=0x5563d57f7c70, e=e@entry=0x7ffca163cd20) at kernel/qapplication.cpp:3632
#21 0x00007f06ffef1730 in QApplication::notify (this=<optimized out>, receiver=0x5563d57f7c70, e=0x7ffca163cd20) at kernel/qapplication.cpp:3076
#22 0x00007f06fef3dc23 in QCoreApplication::notifyInternal2 (receiver=0x5563d57f7c70, event=0x7ffca163cd20) at kernel/qcoreapplication.cpp:1064
#23 0x00007f06fef3de0e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x5563d57f7c70, event=event@entry=0x7ffca163cd20) at kernel/qcoreapplication.cpp:1474
#24 0x00007f06ffef071f in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x5563d57f7c70, event=event@entry=0x7ffca163cd20, alienWidget=0x5563d57f7c70, nativeWidget=0x5563d53af8b0, buttonDown=buttonDown@entry=0x7f0700606670 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#25 0x00007f06fff4531c in QWidgetWindow::handleMouseEvent (this=this@entry=0x5563d6438610, event=event@entry=0x7ffca163d180) at kernel/qwidgetwindow.cpp:683
#26 0x00007f06fff4838d in QWidgetWindow::event (this=0x5563d6438610, event=0x7ffca163d180) at kernel/qwidgetwindow.cpp:300
#27 0x00007f06ffeea3bc in QApplicationPrivate::notify_helper (this=this@entry=0x5563d52d0250, receiver=receiver@entry=0x5563d6438610, e=e@entry=0x7ffca163d180) at kernel/qapplication.cpp:3632
#28 0x00007f06ffef11a0 in QApplication::notify (this=0x7ffca163d6a0, receiver=0x5563d6438610, e=0x7ffca163d180) at kernel/qapplication.cpp:3156
#29 0x00007f06fef3dc23 in QCoreApplication::notifyInternal2 (receiver=0x5563d6438610, event=0x7ffca163d180) at kernel/qcoreapplication.cpp:1064
#30 0x00007f06fef3de0e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x5563d6438610, event=event@entry=0x7ffca163d180) at kernel/qcoreapplication.cpp:1474
#31 0x00007f06ff5970cb in QGuiApplicationPrivate::processMouseEvent (e=0x5563d83977d0) at kernel/qguiapplication.cpp:2282
#32 0x00007f06ff598675 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x5563d83977d0) at kernel/qguiapplication.cpp:2002
#33 0x00007f06ff57044b in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#34 0x00007f06d6b40d0a in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#35 0x00007f06ec15782b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#36 0x00007f06ec157bd0 in ?? () from /usr/lib64/libglib-2.0.so.0
#37 0x00007f06ec157c5c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#38 0x00007f06fefa002c in QEventDispatcherGlib::processEvents (this=0x5563d5399330, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#39 0x00007f06fef3c48a in QEventLoop::exec (this=this@entry=0x7ffca163d520, flags=..., flags@entry=...) at kernel/qeventloop.cpp:232
#40 0x00007f06fef45cc7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1375
#41 0x00005563d4008075 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20220102T131246~92aa01de32-bp154.1.19.x86_64/src/main.cpp:395
[Inferior 1 (process 661) detached]

Possible duplicates by query: bug 332283, bug 260837, bug 249095, bug 247963.
Comment 1 Tuomas Nurmi 2024-04-09 20:28:34 UTC
Reading the backtrace and the related place in code, this crash was probably fixed in git some days ago by https://invent.kde.org/multimedia/amarok/-/commit/5cbe9219234380afbd5958f22ecbb95554fff51b so I'm closing this as fixed.

Should you still somewhy encounter this with current git builds (amarok-2.9.75git.20240406* or later) or wih the upcoming 3.0beta1, please don't hesitate to reopen.