[KPhotoAlbum] segfault when renaming a category

Christoph Moseler forums at moseler.net
Tue Aug 29 19:39:40 BST 2006


Hi,

kpa segfaults when renaming a category.

Steps to reproduce:

- open kpa
- click on a category, e.g. Persons
- Goto Settings - Configure KPhotoalbum
- Select Categories
- in the QListBox select the category you opened in step 2
- Change the label
- click on OK

type = DB::ImageDB::instance()->categoryCollection()->categoryForName( 
category )->viewType();

QString category still contains the old name of the category, that seems 
to be the problem.

Cheers,
Christoph


(gdb) backtrace
#0  0x080efab9 in Browser::BrowserWidget::setupFactory (this=0xee8d298) 
at 
/home/chris/build/kimdaba/kphotoalbum-2.2.1/kphotoalbum/Browser/BrowserWidget.cpp:290
#1  0x080efbc3 in Browser::BrowserWidget::reload (this=0xee8d298) at 
/home/chris/build/kimdaba/kphotoalbum-2.2.1/kphotoalbum/Browser/BrowserWidget.cpp:196
#2  0x080f0a39 in Browser::BrowserWidget::qt_invoke (this=0xee8d298, 
_id=50, _o=0xbfa2c47c) at ./BrowserWidget.moc:221
#3  0xb6f4d678 in QObject::activate_signal (this=0x8354630, 
clist=0xee76b10, o=0xbfa2c47c) at kernel/qobject.cpp:2380
#4  0xb6f4dfdc in QObject::activate_signal (this=0x8354630, signal=2) at 
kernel/qobject.cpp:2325
#5  0x0816ecd6 in DB::CategoryCollection::categoryCollectionChanged 
(this=0x8354630) at ./CategoryCollection.moc:108
#6  0x080d5b9e in XMLDB::XMLCategoryCollection::rename (this=0x8354630, 
oldName=@0xbb18578, newName=@0xbb18584) at 
/home/chris/build/kimdaba/kphotoalbum-2.2.1/kphotoalbum/XMLDB/XMLCategoryCollection.cpp:48
#7  0x08151d69 in Settings::SettingsDialog::slotMyOK (this=0x835cbd8) at 
/home/chris/build/kimdaba/kphotoalbum-2.2.1/kphotoalbum/Settings/SettingsDialog.cpp:522
#8  0x0815214e in Settings::SettingsDialog::qt_invoke (this=0x835cbd8, 
_id=86, _o=0xbfa2c6dc) at ./SettingsDialog.moc:142
#9  0xb6f4d54b in QObject::activate_signal (this=0x835cbd8, 
clist=0xbaaafd8, o=0xbfa2c6dc) at kernel/qobject.cpp:2356
#10 0xb6f4dfdc in QObject::activate_signal (this=0x835cbd8, signal=10) 
at kernel/qobject.cpp:2325
#11 0xb788e0ec in KDialogBase::okClicked () from /usr/lib/libkdeui.so.4
#12 0xb788e122 in KDialogBase::slotOk () from /usr/lib/libkdeui.so.4
#13 0xb7968c99 in KDialogBase::qt_invoke () from /usr/lib/libkdeui.so.4
#14 0x08152335 in Settings::SettingsDialog::qt_invoke (this=0x835cbd8, 
_id=74, _o=0xbfa2c83c) at ./SettingsDialog.moc:157
#15 0xb6f4d54b in QObject::activate_signal (this=0xd41ecc8, 
clist=0x9d6b780, o=0xbfa2c83c) at kernel/qobject.cpp:2356
#16 0xb6f4dfdc in QObject::activate_signal (this=0xd41ecc8, signal=4) at 
kernel/qobject.cpp:2325
#17 0xb72e7c09 in QButton::clicked (this=0xd41ecc8) at 
.moc/debug-shared-mt/moc_qbutton.cpp:152
#18 0xb6fe8c2c in QButton::mouseReleaseEvent (this=0xd41ecc8, 
e=0xbfa2ccbc) at widgets/qbutton.cpp:836
#19 0xb6f87c78 in QWidget::event (this=0xd41ecc8, e=0xbfa2ccbc) at 
kernel/qwidget.cpp:4702
#20 0xb6ee387a in QApplication::internalNotify (this=0xbfa2d2c8, 
receiver=0xd41ecc8, e=0xbfa2ccbc) at kernel/qapplication.cpp:2635
#21 0xb6ee3dff in QApplication::notify (this=0xbfa2d2c8, 
receiver=0xd41ecc8, e=0xbfa2ccbc) at kernel/qapplication.cpp:2421
#22 0xb769e52e in KApplication::notify () from /usr/lib/libkdecore.so.4
#23 0xb6e7506f in QApplication::sendSpontaneousEvent 
(receiver=0xd41ecc8, event=0xbfa2ccbc) at kernel/qapplication.h:523
#24 0xb6e707a4 in QETWidget::translateMouseEvent (this=0xd41ecc8, 
event=0xbfa2d0f8) at kernel/qapplication_x11.cpp:4301
#25 0xb6e6ec94 in QApplication::x11ProcessEvent (this=0xbfa2d2c8, 
event=0xbfa2d0f8) at kernel/qapplication_x11.cpp:3478
#26 0xb6e882a2 in QEventLoop::processEvents (this=0x82c4208, flags=4) at 
kernel/qeventloop_x11.cpp:192
#27 0xb6efc255 in QEventLoop::enterLoop (this=0x82c4208) at 
kernel/qeventloop.cpp:198
#28 0xb6efc17a in QEventLoop::exec (this=0x82c4208) at 
kernel/qeventloop.cpp:145
#29 0xb6ee238d in QApplication::exec (this=0xbfa2d2c8) at 
kernel/qapplication.cpp:2758
#30 0x08085f03 in main (argc=1, argv=0xbfa2d4b4) at 
/home/chris/build/kimdaba/kphotoalbum-2.2.1/kphotoalbum/main.cpp:74




More information about the Kphotoalbum mailing list