Bug 458607 - Elisa crashes on launch in KFileMetaData::ExtractorCollectionPrivate::getExtractors() with existing playlist and shuffle enabled
Summary: Elisa crashes on launch in KFileMetaData::ExtractorCollectionPrivate::getExtr...
Status: RESOLVED WORKSFORME
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: 22.08.0
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-09-01 17:32 UTC by Kath
Modified: 2023-12-16 03:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kath 2022-09-01 17:32:55 UTC
Application: elisa (22.08.0)

Qt Version: 5.15.5
Frameworks Version: 5.97.0
Operating System: Linux 5.19.4-200.fc36.x86_64 x86_64
Windowing System: X11
Distribution: Fedora Linux 36 (KDE Plasma)
DrKonqi: 5.25.4 [KCrashBackend]

-- Information about the crash:
When Elisa is launched with an existing playlist, and shuffle is enabled it has a chance to crash. This is not 100% reproducible, but after opening and closing the application 5-10 times this can be observed. 
The window will open without the sidebar visible and then immediately close
This happens more frequently with larger playlists (tested with 59 tracks) but has been observed with as low as 6 tracks. 
This does not seem related to a specific track. 
Hiding the sidebar does not resolve the issue. 
Disabling shuffle solved the issue entirely.
I cannot reproduce in Wayland.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Elisa (elisa), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f528061b9d7 in KFileMetaData::ExtractorCollectionPrivate::getExtractors(QString const&) () from /lib64/libKF5FileMetaData.so.3
#5  0x00007f528061be5c in KFileMetaData::ExtractorCollection::fetchExtractors(QString const&) const () from /lib64/libKF5FileMetaData.so.3
#6  0x00007f52781b9caa in FileScanner::scanOneFile (this=this@entry=0x5644c54011c0, scanFile=..., scanFileInfo=...) at /usr/include/c++/12/bits/unique_ptr.h:191
#7  0x00007f52781ba344 in FileScanner::scanOneFile (this=0x5644c54011c0, scanFile=...) at /usr/src/debug/elisa-player-22.08.0-2.fc36.x86_64/src/filescanner.cpp:164
#8  0x00007f52781d73c2 in operator() (__closure=0x5644c7b6d2e8) at /usr/src/debug/elisa-player-22.08.0-2.fc36.x86_64/src/models/trackmetadatamodel.cpp:593
#9  QtConcurrent::StoredFunctorCall0<QString, TrackMetadataModel::fetchLyrics()::<lambda()> >::runFunctor (this=0x5644c7b6d2c0) at /usr/include/qt5/QtConcurrent/qtconcurrentstoredfunctioncall.h:60
#10 QtConcurrent::RunFunctionTask<QString>::run (this=0x5644c7b6d2c0) at /usr/include/qt5/QtConcurrent/qtconcurrentrunbase.h:108
#11 0x00007f5294eba4f2 in QThreadPoolThread::run() () from /lib64/libQt5Core.so.5
#12 0x00007f5294eb7487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#13 0x00007f5294a25e2d in start_thread () from /lib64/libc.so.6
#14 0x00007f5294aab1b0 in clone3 () from /lib64/libc.so.6

Thread 8 (Thread 0x7f52677fe640 (LWP 25242) "Thread (pooled)"):
#1  0x00007f5294eb77c5 in QBasicMutex::lockInternal() () from /lib64/libQt5Core.so.5
#2  0x00007f52781d73ae in QMutexLocker::QMutexLocker (m=0x5644c54011c8, this=<synthetic pointer>) at /usr/include/qt5/QtCore/qmutex.h:238
#3  operator() (__closure=0x5644c54f2e58) at /usr/src/debug/elisa-player-22.08.0-2.fc36.x86_64/src/models/trackmetadatamodel.cpp:592
#4  QtConcurrent::StoredFunctorCall0<QString, TrackMetadataModel::fetchLyrics()::<lambda()> >::runFunctor (this=0x5644c54f2e30) at /usr/include/qt5/QtConcurrent/qtconcurrentstoredfunctioncall.h:60
#5  QtConcurrent::RunFunctionTask<QString>::run (this=0x5644c54f2e30) at /usr/include/qt5/QtConcurrent/qtconcurrentrunbase.h:108
#6  0x00007f5294eba4f2 in QThreadPoolThread::run() () from /lib64/libQt5Core.so.5
#7  0x00007f5294eb7487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x00007f5294a25e2d in start_thread () from /lib64/libc.so.6
#9  0x00007f5294aab1b0 in clone3 () from /lib64/libc.so.6

Thread 7 (Thread 0x7f5267fff640 (LWP 25241) "Thread (pooled)"):
#1  0x00007f5294eb77c5 in QBasicMutex::lockInternal() () from /lib64/libQt5Core.so.5
#2  0x00007f52781d73ae in QMutexLocker::QMutexLocker (m=0x5644c54011c8, this=<synthetic pointer>) at /usr/include/qt5/QtCore/qmutex.h:238
#3  operator() (__closure=0x5644c5c9ec58) at /usr/src/debug/elisa-player-22.08.0-2.fc36.x86_64/src/models/trackmetadatamodel.cpp:592
#4  QtConcurrent::StoredFunctorCall0<QString, TrackMetadataModel::fetchLyrics()::<lambda()> >::runFunctor (this=0x5644c5c9ec30) at /usr/include/qt5/QtConcurrent/qtconcurrentstoredfunctioncall.h:60
#5  QtConcurrent::RunFunctionTask<QString>::run (this=0x5644c5c9ec30) at /usr/include/qt5/QtConcurrent/qtconcurrentrunbase.h:108
#6  0x00007f5294eba4f2 in QThreadPoolThread::run() () from /lib64/libQt5Core.so.5
#7  0x00007f5294eb7487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x00007f5294a25e2d in start_thread () from /lib64/libc.so.6
#9  0x00007f5294aab1b0 in clone3 () from /lib64/libc.so.6

Thread 6 (Thread 0x7f526c8e6640 (LWP 25240) "Thread (pooled)"):
#1  0x00007f5294eb77c5 in QBasicMutex::lockInternal() () from /lib64/libQt5Core.so.5
#2  0x00007f52781d73ae in QMutexLocker::QMutexLocker (m=0x5644c54011c8, this=<synthetic pointer>) at /usr/include/qt5/QtCore/qmutex.h:238
#3  operator() (__closure=0x5644c7b6d368) at /usr/src/debug/elisa-player-22.08.0-2.fc36.x86_64/src/models/trackmetadatamodel.cpp:592
#4  QtConcurrent::StoredFunctorCall0<QString, TrackMetadataModel::fetchLyrics()::<lambda()> >::runFunctor (this=0x5644c7b6d340) at /usr/include/qt5/QtConcurrent/qtconcurrentstoredfunctioncall.h:60
#5  QtConcurrent::RunFunctionTask<QString>::run (this=0x5644c7b6d340) at /usr/include/qt5/QtConcurrent/qtconcurrentrunbase.h:108
#6  0x00007f5294eba4f2 in QThreadPoolThread::run() () from /lib64/libQt5Core.so.5
#7  0x00007f5294eb7487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x00007f5294a25e2d in start_thread () from /lib64/libc.so.6
#9  0x00007f5294aab1b0 in clone3 () from /lib64/libc.so.6

Thread 5 (Thread 0x7f526f1fe640 (LWP 25239) "QQuickPixmapRea"):
#1  0x00007f52950c781d in QElapsedTimer::isMonotonic() () from /lib64/libQt5Core.so.5
#2  0x00007f52950c65d2 in QTimerInfoList::repairTimersIfNeeded() () from /lib64/libQt5Core.so.5
#3  0x00007f52950c6647 in QTimerInfoList::timerWait(timespec&) () from /lib64/libQt5Core.so.5
#4  0x00007f52950c81be in timerSourcePrepare(_GSource*, int*) () from /lib64/libQt5Core.so.5
#5  0x00007f5293129b59 in g_main_context_prepare () from /lib64/libglib-2.0.so.0
#6  0x00007f529317f0b3 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#7  0x00007f5293127940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#8  0x00007f52950c7f66 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#9  0x00007f5295075c6a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#10 0x00007f5294eb618a in QThread::exec() () from /lib64/libQt5Core.so.5
#11 0x00007f529457c3fa in QQuickPixmapReader::run() () from /lib64/libQt5Quick.so.5
#12 0x00007f5294eb7487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#13 0x00007f5294a25e2d in start_thread () from /lib64/libc.so.6
#14 0x00007f5294aab1b0 in clone3 () from /lib64/libc.so.6

Thread 4 (Thread 0x7f5278fef640 (LWP 25238) "QQmlThread"):
#1  0x00007f529317f23d in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#2  0x00007f5293127940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f52950c7f66 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007f5295075c6a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f5294eb618a in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00007f5295694c59 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x00007f5294eb7487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x00007f5294a25e2d in start_thread () from /lib64/libc.so.6
#9  0x00007f5294aab1b0 in clone3 () from /lib64/libc.so.6

Thread 3 (Thread 0x7f52817d4640 (LWP 25237) "QDBusConnection"):
#1  0x00007f5293129b59 in g_main_context_prepare () from /lib64/libglib-2.0.so.0
#2  0x00007f529317f0b3 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#3  0x00007f5293127940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x00007f52950c7f66 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f5295075c6a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f5294eb618a in QThread::exec() () from /lib64/libQt5Core.so.5
#7  0x00007f5293ce3b1b in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#8  0x00007f5294eb7487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x00007f5294a25e2d in start_thread () from /lib64/libc.so.6
#10 0x00007f5294aab1b0 in clone3 () from /lib64/libc.so.6

Thread 2 (Thread 0x7f528255e640 (LWP 25236) "QXcbEventQueue"):
#1  0x00007f5292a26fba in _xcb_conn_wait.part.0 () from /lib64/libxcb.so.1
#2  0x00007f5292a2894c in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007f52826a4e81 in QXcbEventQueue::run() () from /lib64/libQt5XcbQpa.so.5
#4  0x00007f5294eb7487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007f5294a25e2d in start_thread () from /lib64/libc.so.6
#6  0x00007f5294aab1b0 in clone3 () from /lib64/libc.so.6

Thread 1 (Thread 0x7f528fd64400 (LWP 25235) "elisa"):
#1  0x00007f5294a25210 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007f5292a2750b in _xcb_out_flush_to () from /lib64/libxcb.so.1
#3  0x00007f5292a284ee in xcb_flush () from /lib64/libxcb.so.1
#4  0x00007f52826a5e67 in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5XcbQpa.so.5
#5  0x00007f5293129faf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#6  0x00007f529317f2c8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#7  0x00007f5293127940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#8  0x00007f52950c7f4a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#9  0x00007f5295075c6a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#10 0x00007f529507dd32 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#11 0x00005644c28211a5 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/elisa-player-22.08.0-2.fc36.x86_64/src/main.cpp:161
[Inferior 1 (process 25235) detached]

Reported using DrKonqi
Comment 1 Nate Graham 2022-09-02 18:54:32 UTC
#4  0x00007f528061b9d7 in KFileMetaData::ExtractorCollectionPrivate::getExtractors(QString const&) () from /lib64/libKF5FileMetaData.so.3
#5  0x00007f528061be5c in KFileMetaData::ExtractorCollection::fetchExtractors(QString const&) const () from /lib64/libKF5FileMetaData.so.3
#6  0x00007f52781b9caa in FileScanner::scanOneFile (this=this@entry=0x5644c54011c0, scanFile=..., scanFileInfo=...) at /usr/include/c++/12/bits/unique_ptr.h:191

Crash appears to be in KFileMetadata; moving there.
Comment 2 Stefan Brüns 2023-11-13 01:47:04 UTC
The backtrace is incomplete, please install debuginfo packages.

Also, debug traces from kfilemetadata would be helpful:
$> QT_LOGGING_RULES='kf.filemetadata.debug=true' elisa
Comment 3 Stefan Brüns 2023-11-16 04:40:08 UTC
Likely duplicate of 431422

KFileMetadata::ExtractorCollection is reentrant, but not thread safe.
Comment 4 Bug Janitor Service 2023-12-01 03:45:47 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 5 Bug Janitor Service 2023-12-16 03:45:59 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!