Bug 443729

Summary: Crash on startup
Product: [Applications] digikam Reporter: tlc.tony.cristiano
Component: Database-MysqlAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, metzpinguin, tlc.tony.cristiano
Priority: NOR Keywords: drkonqi
Version: 7.2.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 7.5.0
Sentry Crash Report:

Description tlc.tony.cristiano 2021-10-14 16:06:38 UTC
Application: digikam (7.2.0)

Qt Version: 5.15.2
Frameworks Version: 5.85.0
Operating System: Linux 5.14.11-200.fc34.x86_64 x86_64
Windowing System: Wayland
Drkonqi Version: 5.22.5
Distribution: Fedora 34 (Thirty Four)

-- Information about the crash:
I had started the application and while it was looking for new photos in the collection it crashed when it got to 4%.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fedddddebc3 in net_field_length () at /lib64/libmariadb.so.3
#5  0x00007fedddde73d9 in mthd_stmt_read_all_rows () at /lib64/libmariadb.so.3
#6  0x00007fedddde9fe3 in mysql_stmt_store_result () at /lib64/libmariadb.so.3
#7  0x00007fedbc0896b9 in QMYSQLResult::exec() () at /usr/lib64/qt5/plugins/sqldrivers/libqsqlmysql.so
#8  0x00007fedf7ec63bc in Digikam::BdEngineBackend::exec(Digikam::DbEngineSqlQuery&) () at /lib64/libdigikamcore.so.7.2.0
#9  0x00007fedf7ec6a99 in Digikam::BdEngineBackend::execQuery(QString const&, QVariant const&) () at /lib64/libdigikamcore.so.7.2.0
#10 0x00007fedf7ec6b0c in Digikam::BdEngineBackend::execSql(QString const&, QVariant const&, QList<QVariant>*, QVariant*) () at /lib64/libdigikamcore.so.7.2.0
#11 0x00007fedf832d6e7 in Digikam::CoreDB::getItemPosition(long long, QFlags<Digikam::DatabaseFields::ItemPositionsField>) const () at /lib64/libdigikamdatabase.so.7.2.0
#12 0x00007fedf83866d2 in Digikam::ItemPositionPriv::init(Digikam::CoreDbAccess&, long long) () at /lib64/libdigikamdatabase.so.7.2.0
#13 0x00007fedf83869fe in Digikam::ItemPosition::ItemPosition(long long) () at /lib64/libdigikamdatabase.so.7.2.0
#14 0x00007fedf83778ff in Digikam::ItemInfo::imagePosition() const () at /lib64/libdigikamdatabase.so.7.2.0
#15 0x00007fedf8377c31 in Digikam::ItemInfo::hasCoordinates() const () at /lib64/libdigikamdatabase.so.7.2.0
#16 0x00007fedf8a0a75b in Digikam::GPSMarkerTiler::slotImageChange(Digikam::ImageChangeset const&) () at /lib64/libdigikamgui.so.7.2.0
#17 0x00007fedf653df09 in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#18 0x00007fedf6fe5443 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#19 0x00007fedf6513798 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#20 0x00007fedf6516d06 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt5Core.so.5
#21 0x00007fedf65650d7 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5Core.so.5
#22 0x00007fedf437a4cf in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#23 0x00007fedf43ce4f8 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#24 0x00007fedf4377c03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#25 0x00007fedf6564b78 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#26 0x00007fedf65121a2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#27 0x00007fedf87c046a in Digikam::ScanController::completeCollectionScanCore(bool, bool) () at /lib64/libdigikamgui.so.7.2.0
#28 0x00007fedf88df2e7 in Digikam::NewItemsFinder::slotStart() () at /lib64/libdigikamgui.so.7.2.0
#29 0x00007fedf653df09 in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#30 0x00007fedf6fe5443 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#31 0x00007fedf6513798 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#32 0x00007fedf6516d06 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt5Core.so.5
#33 0x00007fedf65650d7 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5Core.so.5
#34 0x00007fedf437a4cf in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#35 0x00007fedf43ce4f8 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#36 0x00007fedf4377c03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#37 0x00007fedf6564b78 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#38 0x00007fedf65121a2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#39 0x00007fedf651a6e4 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#40 0x0000559678142336 in main ()
[Inferior 1 (process 18829) detached]

Reported using DrKonqi
Comment 1 Maik Qualmann 2021-10-14 16:50:10 UTC
You are using MariaDB >= 10.6.3, without a corresponding patch in Qt-5.15, the MySQL driver from Qt no longer works. Read this Bug 440296  story and report it to Fedora. The crash can also be fixed with a MySQL version 10.5.x.

Maik

*** This bug has been marked as a duplicate of bug 440296 ***
Comment 2 caulier.gilles 2021-12-15 20:38:20 UTC
Fixed with #440296