Bug 388705 - Unexpected crash on adding new items to the collection from an external application - 5.7.0 suse packages
Summary: Unexpected crash on adding new items to the collection from an external appli...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-IconView (show other bugs)
Version: 5.7.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-09 01:28 UTC by Andrius
Modified: 2019-01-01 17:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrius 2018-01-09 01:28:40 UTC
Thread 1 "digikam" received signal SIGSEGV, Segmentation fault.
Digikam::Album::next (this=0x21) at /b/dktemp/digikam-master/core/libs/album/album.cpp:96
96      /b/dktemp/digikam-master/core/libs/album/album.cpp: No such file or directory.
(gdb) bt
#0  Digikam::Album::next (this=0x21)
    at /b/dktemp/digikam-master/core/libs/album/album.cpp:96
#1  0x00007ffff76f772c in Digikam::AbstractAlbumModel::Private::findNthChild (
    this=<optimized out>, n=3, parent=<optimized out>)
    at /b/dktemp/digikam-master/core/libs/models/abstractalbummodelpriv.h:70
#2  Digikam::AbstractAlbumModel::index (this=0xd483f0, row=3, column=<optimized out>, 
    parent=...) at /b/dktemp/digikam-master/core/libs/models/abstractalbummodel.cpp:213
#3  0x00007ffff7723837 in Digikam::AbstractCheckableAlbumTreeView::rowsInserted (this=
    0x143cad0, parent=..., start=<optimized out>, end=3)
    at /b/dktemp/digikam-master/core/libs/album/albumtreeview.cpp:1423
#4  0x00007fffef971cca in ?? () from /tmp/.mount_7rPFD8/usr/lib/libQt5Widgets.so.5
#5  0x000000329eab5fd8 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#6  0x000000329ea3207e in QAbstractItemModel::rowsInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#7  0x000000329ea39e2d in QAbstractItemModel::endInsertRows() ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#8  0x000000329ea5be4b in ?? () from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#9  0x000000329ea61145 in ?? () from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#10 0x000000329ea61e99 in ?? () from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#11 0x000000329eab5fd8 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#12 0x000000329ea3207e in QAbstractItemModel::rowsInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#13 0x000000329ea39e2d in QAbstractItemModel::endInsertRows() ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#14 0x00007ffff76f7ce3 in Digikam::AbstractAlbumModel::slotAlbumAdded (this=0xd483f0, 
    album=<optimized out>)
    at /b/dktemp/digikam-master/core/libs/models/abstractalbummodel.cpp:459
#15 0x000000329eab5fd8 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#16 0x00007ffff774c482 in Digikam::AlbumManager::signalAlbumAdded (
    this=this@entry=0x7ffff7dd63c0 <_ZZN7Digikam12_GLOBAL__N_113Q_QGS_creator13innerFunctionEvE6holder>, _t1=_t1@entry=0x380eb10)
    at /b/dktemp/digikam-master/build/core/libs/album/moc_albummanager.cpp:585
#17 0x00007ffff773a290 in Digikam::AlbumManager::insertPAlbum (
    this=this@entry=0x7ffff7dd63c0 <_ZZN7Digikam12_GLOBAL__N_113Q_QGS_creator13innerFunctionEvE6holder>, album=album@entry=0x380eb10, parent=parent@entry=0x27260e0)
    at /b/dktemp/digikam-master/core/libs/album/albummanager.cpp:2940
#18 0x00007ffff773f4b4 in Digikam::AlbumManager::scanPAlbums (
    this=0x7ffff7dd63c0 <_ZZN7Digikam12_GLOBAL__N_113Q_QGS_creator13innerFunctionEvE6holder>) at /b/dktemp/digikam-master/core/libs/album/albummanager.cpp:1410
#19 0x00007ffff774dc5b in Digikam::AlbumManager::qt_static_metacall (
    _o=0x7ffff7dd63c0 <_ZZN7Digikam12_GLOBAL__N_113Q_QGS_creator13innerFunctionEvE6holder>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>)
    at /b/dktemp/digikam-master/build/core/libs/album/moc_albummanager.cpp:334
#20 0x000000329eab5fd8 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#21 0x000000329eac3877 in QTimer::timeout(QTimer::QPrivateSignal) ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#22 0x000000329eac3ba8 in QTimer::timerEvent(QTimerEvent*) ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#23 0x000000329eab77bb in QObject::event(QEvent*) ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#24 0x00007fffef7378bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Widgets.so.5
#25 0x00007fffef73edc0 in QApplication::notify(QObject*, QEvent*) ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Widgets.so.5
#26 0x000000329ea8d1c0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#27 0x000000329eadbece in QTimerInfoList::activateTimers() ()
   from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#28 0x000000329eadc671 in ?? () from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
#29 0x00007fffed189f97 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#30 0x00007fffed18a1d0 in ?? () from /usr/lib64/libglib-2.0.so.0
#31 0x00007fffed18a25c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#32 0x000000329eadc9a7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /tmp/.mount_7rPFD8/usr/lib/libQt5Core.so.5
Comment 1 caulier.gilles 2018-01-09 08:11:34 UTC
It's not clear. How to reproduce the problem exactly ? What the contents of the new album in DK collection ?

What do you mean by "an external application" ?

Can you reproduce the problem with the AppImage bundle 5.8.0 pre release ?

https://files.kde.org/digikam/

Gilles Caulier
Comment 2 Andrius 2018-01-09 14:34:48 UTC
(In reply to caulier.gilles from comment #1)
> It's not clear. How to reproduce the problem exactly ? What the contents of
> the new album in DK collection ?
> 
> What do you mean by "an external application" ?
> 
> Can you reproduce the problem with the AppImage bundle 5.8.0 pre release ?
> 
> https://files.kde.org/digikam/
> 
> Gilles Caulier

I was importing 800 photos and 100 videos from a thumbdrive using Rapid Photo Downloader. digiKam was opened in the background. I was not in front of the computer. When I came back I found out that digiKam isn't responding.
I hoped the bugtraces will give you a clear idea on what went wrong.

I don't think I can reproduce the bug. digiKam crashes very rare nowadays.
Comment 3 caulier.gilles 2018-08-17 21:27:20 UTC
Can you reproduce the dysfunction using digiKam 6.0.0 pre-release bundle available here :

https://files.kde.org/digikam/

Gilles Caulier
Comment 4 Andrius 2018-08-18 13:44:05 UTC
(In reply to caulier.gilles from comment #3)
> Can you reproduce the dysfunction using digiKam 6.0.0 pre-release bundle
> available here :
> 
> https://files.kde.org/digikam/
> 
> Gilles Caulier

Gilles, will do that in few days. I do have a lot of images pending to import.
Comment 5 caulier.gilles 2018-12-31 11:51:28 UTC
Can you reproduce the dysfunction using the last digiKam 6.0.0-beta3 just
released ?

https://www.digikam.org/news/2018-12-30-6.0.0-beta3_release_announcement/
Comment 6 Maik Qualmann 2019-01-01 17:27:46 UTC
I close the bug now, the code in which the crash occurs no longer exists in digiKam-6.0.0 and has been replaced. If necessary, reopen the bug report.

Maik