Bug 397282 - Intermittent segmentation fault when exiting Amarok
Summary: Intermittent segmentation fault when exiting Amarok
Status: RESOLVED WORKSFORME
Alias: None
Product: amarok
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.9.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: kf5
Assignee: Amarok Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-08 18:42 UTC by Nick
Modified: 2022-12-29 05:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Valgrind output (1.84 MB, text/plain)
2018-08-14 13:54 UTC, Nick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick 2018-08-08 18:42:48 UTC
On clicking the exit button on title bar amarok crashed with the error "Application: Amarok (amarok), signal: Segmentation fault"

On restarting and exiting amarok a second time I did not get the error.
On a third attempt it crashed again with the segmentation fault being reported.
On fifth, sixth, seventh attempts it was ok. Didn't try anymore after that.

So would seem to be fairly intermittent.

Kubuntu 18.04 LTS, Plasma 5.12.6, frameworks 5.44.0, QT 5.9.5 Kernel 4.15.0-30-generic, Nvidia 390.77.

Amarok Diagnostics

General Information:
   Amarok Version: 2.9.0
   KDE Version: 4.14.38
   Qt Version: 4.8.7
   Phonon Version: 4.10.0
   Phonon Backend: GStreamer (4.9.0)
   PulseAudio: Yes

Enabled Scripts:

Enabled Plugins:
   MTP Collection (1.0)
   Universal Mass Storage Collection (1.0)
   UPnP Collection (1.0)
   AudioCd Collection (1.0)
   DAAP Collection (1.0)
   MySQL Collection (1.0)
   iPod, iPad & iPhone Collection (2.0)
   MP3 Music Store (1.0)
   Jamendo (1.0)
   Last.fm (1.0)
   Podcast Directory (1.0)
   Magnatune Store (2.0)
   Clementine Importer (1.0)
   Amarok 1.4 (FastForward) Importer (1.0)
   Apple iTunes Importer (1.0)
   Amarok 2.x Importer (1.0)
   Rhythmbox Importer (1.0)
   Banshee Importer (1.0)

Enabled Applets:
   Current Track
   Analyser
   Lyrics
   Wikipedia
   Lyrics
Comment 1 Myriam Schweingruber 2018-08-09 21:49:36 UTC
We would need a backtrace, please see also https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Comment 2 Nick 2018-08-09 22:11:47 UTC
Normally I install the dbg files, however in this case the auto installation of the dbg files did not work. I installed the obvious ones for amarok manually, but it's not clear exactly which dbg files or how many are required. Does anybody know what debug files should be installed?
Comment 3 Nick 2018-08-09 22:16:08 UTC
Also the backtrace just consisted of a couple of lines that simple said a segmentation fault had occurred.
Comment 4 Myriam Schweingruber 2018-08-14 13:16:18 UTC
Usually debugging symbols are needed from the application and for the library dependencies, in this case Qt, KDE libraries and Phonon.

It is quite hard to debug segmentation faults, running valgrind might give an idea as well.
Comment 5 Nick 2018-08-14 13:47:08 UTC
Valgrind does complain about definite memory leaks and other initialisation issues. I'll add an attachment when I get a moment.
Comment 6 Nick 2018-08-14 13:54:11 UTC
Created attachment 114435 [details]
Valgrind output
Comment 7 Nick 2018-08-14 13:57:24 UTC
Some of Amarok's output while running valgrind

QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
WARNING: Phonon::createPath: Cannot connect  Phonon::MediaObject ( no objectName ) to  Phonon::AudioDataOutput ( no objectName ). 
Object::connect: No such signal Phonon::VLC::MediaObject::angleChanged(int) in /workspace/build/phonon/mediacontroller.cpp:65
Object::connect: No such signal Phonon::VLC::MediaObject::availableAnglesChanged(int) in /workspace/build/phonon/mediacontroller.cpp:66
QWidget::insertAction: Attempt to insert null action
amarok(14337)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
********************************************************************************************** 
** AMAROK WAS STARTED IN NORMAL MODE. IF YOU WANT TO SEE DEBUGGING INFORMATION, PLEASE USE: ** 
** amarok --debug                                                                           ** 
********************************************************************************************** 
nick@nick-X681X:~$ Calling appendChild() on a null node does nothing.
"<?xml version="1.0" encoding="UTF-8"?>
<lfm status="failed">
  <error code="8">Operation failed - Most likely the backend service failed. Please try again.</error>
</lfm>
" 
QMetaObject::invokeMethod: No such method App::onWsError(lastfm::ws::Error)
"<?xml version="1.0" encoding="UTF-8"?>
<lfm status="failed">
  <error code="3">Invalid Method - No method with that name in this package</error>
</lfm>
" 
"<?xml version="1.0" encoding="UTF-8"?>
<lfm status="failed">
  <error code="3">Invalid Method - No method with that name in this package</error>
</lfm>
" 
amarok(14337)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
amarok(14337)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
amarok(14337)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Calling appendChild() on a null node does nothing.
Comment 8 Myriam Schweingruber 2018-08-16 09:22:54 UTC
(In reply to Nick from comment #7)
> Some of Amarok's output while running valgrind
> 
...
> ** AMAROK WAS STARTED IN NORMAL MODE. IF YOU WANT TO SEE DEBUGGING
> INFORMATION, PLEASE USE: ** 
> ** amarok --debug                                                           
> ** 
>
It would be very helpful to also use the --debug flag for this
Comment 9 Justin Zobel 2022-11-29 05:05:58 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 10 Bug Janitor Service 2022-12-14 05:13:32 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2022-12-29 05:25:08 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!