[Digikam-devel] [digikam] [Bug 341241] DIgikam crash during marking photos in Persons/Tags view

Kristian Karl kristian.hermann.karl at gmail.com
Sat Feb 14 20:36:32 GMT 2015


https://bugs.kde.org/show_bug.cgi?id=341241

Kristian Karl <kristian.hermann.karl at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kristian.hermann.karl at gmail
                   |                            |.com

--- Comment #5 from Kristian Karl <kristian.hermann.karl at gmail.com> ---
Created attachment 91078
  --> https://bugs.kde.org/attachment.cgi?id=91078&action=edit
Patch for bug

I also get this crash. After some debugging, I think I narrowed it down the
problem to:
void PersistentWidgetDelegateOverlay::showOnIndex(const QModelIndex& index)
{
    d->index = QPersistentModelIndex(index);
    restoreFocus();
}

I added following:
void PersistentWidgetDelegateOverlay::showOnIndex(const QModelIndex& index)
{
  kDebug() << "index 2: " << index.row();
    d->index = QPersistentModelIndex(index);
  kDebug() << "index 3: " << index.row();
    restoreFocus();
}

When crashing, the debug output was:
digikam(7911)/digikam (core) Digikam::AssignNameOverlay::showOnIndex: index 1: 
7
digikam(7911)/digikam (core)
Digikam::PersistentWidgetDelegateOverlay::showOnIndex: index 2:  7
digikam(7911)/digikam (core)
Digikam::PersistentWidgetDelegateOverlay::showOnIndex: index 3:  7
digikam(7911)/digikam (core) Digikam::AssignNameOverlay::showOnIndex: index 4: 
7
digikam(7911)/digikam (core) Digikam::AssignNameOverlay::showOnIndex: index 1: 
7
digikam(7911)/digikam (core)
Digikam::PersistentWidgetDelegateOverlay::showOnIndex: index 2:  7
digikam(7911)/digikam (core)
Digikam::PersistentWidgetDelegateOverlay::showOnIndex: index 3:  31321040
digikam(7911)/digikam (core) Digikam::AssignNameOverlay::showOnIndex: index 4: 
31321040
ASSERT failure in QVector<T>::operator[]: "index out of range", file
/usr/include/qt4/QtCore/qvector.h, line 355
*** Program received signal SIGABRT (Aborted) ***

The index made a jump from 7 to 31321040? That does not seem right. I changed
the assignment of the d->index with the QPersistentModelIndex constructor, and
the crash is gone for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list