Bug 378956 - Elisa crashes after close
Summary: Elisa crashes after close
Status: RESOLVED FIXED
Alias: None
Product: Elisa
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-19 11:22 UTC by Mykola Krachkovsky
Modified: 2017-10-18 20:52 UTC (History)
1 user (show)

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


Attachments
Traceback file (13.86 KB, text/plain)
2017-10-06 00:30 UTC, Iván Ruvalcaba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mykola Krachkovsky 2017-04-19 11:22:27 UTC
When close Elisa it's not actually quit, but after a while crash happens:

Thread 6 (Thread 0x7f535b7fe700 (LWP 9983)):
[KCrash Handler]
#6  0x00007f5381410db0 in operator==(QString const&, QString const&) () at /usr/lib64/libQt5Core.so.5
#7  0x00000000004255b9 in operator!=(QString const&, QString const&) ()
#8  0x0000000000463710 in TracksListener::trackAdded(unsigned long long) ()
#9  0x000000000045939b in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<unsigned long long>, void, void (TracksListener::*)(unsigned long long)>::call(void (TracksListener::*)(unsigned long long), TracksListener*, void**) ()
#10 0x0000000000458f3c in void QtPrivate::FunctionPointer<void (TracksListener::*)(unsigned long long)>::call<QtPrivate::List<unsigned long long>, void>(void (TracksListener::*)(unsigned long long), TracksListener*, void**) ()
#11 0x000000000045891e in QtPrivate::QSlotObject<void (TracksListener::*)(unsigned long long), QtPrivate::List<unsigned long long>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) ()
#12 0x00007f53815845e9 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#13 0x00007f53824d9eac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#14 0x00007f53824e1661 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#15 0x00007f5381557b30 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#16 0x00007f538155a2bd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#17 0x00007f53815abd93 in  () at /usr/lib64/libQt5Core.so.5
#18 0x00007f537b976887 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#19 0x00007f537b976af0 in  () at /usr/lib64/libglib-2.0.so.0
#20 0x00007f537b976b9c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#21 0x00007f53815ac19f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#22 0x00007f5381555b1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#23 0x00007f5381383813 in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#24 0x00007f53813884c8 in  () at /usr/lib64/libQt5Core.so.5
#25 0x00007f537ddae537 in start_thread () at /lib64/libpthread.so.0
#26 0x00007f538076804f in clone () at /lib64/libc.so.6

Works everytime.
Comment 1 Matthieu Gallien 2017-04-21 08:44:24 UTC
Git commit f5b99ebf271b02f1065d6a57dd03e9e55271ddbd by Matthieu Gallien.
Committed on 21/04/2017 at 08:43.
Pushed by mgallien into branch 'master'.

fix crash in TracksListener

M  +5    -3    src/trackslistener.cpp

https://commits.kde.org/elisa/f5b99ebf271b02f1065d6a57dd03e9e55271ddbd
Comment 2 Iván Ruvalcaba 2017-10-06 00:30:33 UTC
Created attachment 108197 [details]
Traceback file

Today build and install Elisa from here: https://aur.archlinux.org/packages/elisa-git and I'm presenting this issue.

From previous experience I know that tracebacks made on Arch-like systems are not usually useful, however, I hope that the attachment can be helpful.

If I run elisa from the terminal I get the following output (intentionally I removed the lines where the music library is loaded):

kf5.kservice.sycoca: Parse error in  "/home/foo/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu" , line  1 , col  1 :  "unexpected end of file"
org.kde.kcoreaddons: Error loading plugin "kcm_elisa_local_file" "No se ha encontrado la biblioteca compartida."
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin")
The environment variable QT_PLUGIN_PATH might be not correctly set
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
database open
DatabaseInterface::init yes
DatabaseInterface::reloadExistingDatabase
qrc:/ContextView.qml:135:13: QML Image: Failed to get image from provider: image://icon/view-media-artist
.
.
.
DatabaseInterface::internalRemoveTracksList ()
MediaPlayList::setPersistentState (QVariant(QStringList, ("Sing", "The Invisible Band", "Travis")), QVariant(QStringList, ("Dear Diary", "The Invisible Band", "Travis")), QVariant(QStringList, ("Side", "The Invisible Band", "Travis")), QVariant(QStringList, ("Pipe Dreams", "The Invisible Band", "Travis")), QVariant(QStringList, ("Flowers In The Window", "The Invisible Band", "Travis")), QVariant(QStringList, ("The Cage", "The Invisible Band", "Travis")), QVariant(QStringList, ("Safe", "The Invisible Band", "Travis")), QVariant(QStringList, ("Follow The Light", "The Invisible Band", "Travis")), QVariant(QStringList, ("Last Train", "The Invisible Band", "Travis")), QVariant(QStringList, ("Afterglow", "The Invisible Band", "Travis")), QVariant(QStringList, ("Indefinitely", "The Invisible Band", "Travis")), QVariant(QStringList, ("The Humpty Dumpty Love Song", "The Invisible Band", "Travis")), QVariant(QStringList, ("Ring Out The Bell", "The Invisible Band", "Travis")), QVariant(QStringList, ("You Don't Know What I'm Like", "The Invisible Band", "Travis")))
PlayListControler::setPersistentState QMap(("currentTrack", QVariant(int, 4))("randomPlay", QVariant(bool, false))("repeatPlay", QVariant(bool, true)))
KCrash: Application 'elisa' crashing...
KCrash: Attempting to start /usr/lib/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
pa_write() failed while trying to wake up the mainloop: Descriptor de fichero erróneo
pa_write() failed while trying to wake up the mainloop: Descriptor de fichero erróneo
pa_write() failed while trying to wake up the mainloop: Descriptor de fichero erróneo
pa_write() failed while trying to wake up the mainloop: Descriptor de fichero erróneo
QSocketNotifier: Invalid socket 7 and type 'Read', disabling...                                                                                              [147]
QSocketNotifier: Invalid socket 32 and type 'Read', disabling...
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
Unable to start Dr. Konqi
Re-raising signal for core dump handling.

[1]  + segmentation fault (core dumped)  elisa

Best regards.
Comment 3 Christoph Feck 2017-10-17 00:46:27 UTC
Iván, comment #2 does unfortunately not help to check if this is a duplicate or a different bug. The backtrace can be found at the 'Developer Information' tab of the crash dialog window.

For more information, please see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Comment 4 Matthieu Gallien 2017-10-18 20:51:57 UTC
I believe the reported crash was due to code in Elisa triggering a crash in KFileMetaData that is fixed in v5.29 version of KDE Frameworks 5. Could you test again with this version of the frameworks ?
Comment 5 Matthieu Gallien 2017-10-18 20:52:45 UTC
I meant the version 5.39 just released.