Bug 231631 - Save modified file to the same file
Summary: Save modified file to the same file
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Showfoto-Save (show other bugs)
Version: 1.1.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-22 10:35 UTC by Adam Kovari
Modified: 2022-02-05 04:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kovari 2010-03-22 10:35:17 UTC
Application: showfoto (1.1.0)
KDE Platform Version: 4.4.1 (KDE 4.4.1)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
I rewrited file, which caused showfoto to crash. It happens every time.

The crash can be reproduced every time.

 -- Backtrace:
Application: showFoto (showfoto), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f29a12a37c0 (LWP 11743))]

Thread 6 (Thread 0x7f298de9c710 (LWP 11744)):
#0  0x00007f299c15f07c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f299f2ad11b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f29a0ce29c2 in Digikam::LoadSaveThread::run() () from /usr/lib/libdigikamcore.so.1
#3  0x00007f299f2ac155 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f299c15a81a in start_thread () from /lib/libpthread.so.0
#5  0x00007f299de0bc7d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f298d69b710 (LWP 11745)):
[KCrash Handler]
#5  0x00007f299ddb87c2 in strlen () from /lib/libc.so.6
#6  0x00007f299c8059ee in png_set_text_2 () from /usr/lib/libpng14.so.14
#7  0x00007f299c805c19 in png_set_text () from /usr/lib/libpng14.so.14
#8  0x00007f29a0c308f2 in Digikam::PNGLoader::save(QString const&, Digikam::DImgLoaderObserver*) () from /usr/lib/libdigikamcore.so.1
#9  0x00007f29a0c212dc in Digikam::DImg::save(QString const&, QString const&, Digikam::DImgLoaderObserver*) () from /usr/lib/libdigikamcore.so.1
#10 0x00007f29a0cf4b8e in Digikam::SavingTask::execute() () from /usr/lib/libdigikamcore.so.1
#11 0x00007f29a0ce298c in Digikam::LoadSaveThread::run() () from /usr/lib/libdigikamcore.so.1
#12 0x00007f299f2ac155 in ?? () from /usr/lib/libQtCore.so.4
#13 0x00007f299c15a81a in start_thread () from /lib/libpthread.so.0
#14 0x00007f299de0bc7d in clone () from /lib/libc.so.6
#15 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f298b415710 (LWP 11746)):
#0  0x00007f299c15f07c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f299f2ad11b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f29a0ce29c2 in Digikam::LoadSaveThread::run() () from /usr/lib/libdigikamcore.so.1
#3  0x00007f299f2ac155 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f299c15a81a in start_thread () from /lib/libpthread.so.0
#5  0x00007f299de0bc7d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f2983fff710 (LWP 11753)):
#0  0x00007f299c15f07c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f299f2ad11b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f29a0ce29c2 in Digikam::LoadSaveThread::run() () from /usr/lib/libdigikamcore.so.1
#3  0x00007f299f2ac155 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f299c15a81a in start_thread () from /lib/libpthread.so.0
#5  0x00007f299de0bc7d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f298ac14710 (LWP 11756)):
#0  0x00007f299c15f07c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f299f2ad11b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f29a0ce29c2 in Digikam::LoadSaveThread::run() () from /usr/lib/libdigikamcore.so.1
#3  0x00007f299f2ac155 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f299c15a81a in start_thread () from /lib/libpthread.so.0
#5  0x00007f299de0bc7d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f29a12a37c0 (LWP 11743)):
#0  0x00007f299de03483 in poll () from /lib/libc.so.6
#1  0x00007f29962a580a in _xcb_conn_wait () from /usr/lib/libxcb.so.1
#2  0x00007f29962a773c in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#3  0x00007f299ba64fa3 in _XReply () from /usr/lib/libX11.so.6
#4  0x00007f299ba420e7 in XGetWindowProperty () from /usr/lib/libX11.so.6
#5  0x00007f299ba4122c in XGetWMHints () from /usr/lib/libX11.so.6
#6  0x00007f299e8054f2 in QWidgetPrivate::show_sys() () from /usr/lib/libQtGui.so.4
#7  0x00007f299e7bfac5 in QWidgetPrivate::show_helper() () from /usr/lib/libQtGui.so.4
#8  0x00007f299e7c1c2a in QWidget::setVisible(bool) () from /usr/lib/libQtGui.so.4
#9  0x00007f29a0d2c5db in Digikam::DCursorTracker::triggerAutoShow(int) () from /usr/lib/libdigikamcore.so.1
#10 0x00007f29a0d37445 in Digikam::DZoomBar::setZoom(double, double, double) () from /usr/lib/libdigikamcore.so.1
#11 0x00007f29a0e1cc83 in Digikam::EditorWindow::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libdigikamcore.so.1
#12 0x000000000043d7f0 in ?? ()
#13 0x00007f299f3b34df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#14 0x00007f29a0e066a7 in Digikam::EditorStackView::signalZoomChanged(bool, bool, double) () from /usr/lib/libdigikamcore.so.1
#15 0x00007f29a0e067bc in Digikam::EditorStackView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libdigikamcore.so.1
#16 0x00007f299f3b34df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#17 0x00007f29a0df8220 in Digikam::Canvas::signalZoomChanged(double) () from /usr/lib/libdigikamcore.so.1
#18 0x00007f29a0dfb8a0 in Digikam::Canvas::resizeEvent(QResizeEvent*) () from /usr/lib/libdigikamcore.so.1
#19 0x00007f299e7ba5c4 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#20 0x00007f299eb5ef86 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#21 0x00007f299e7645ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#22 0x00007f299e76abdb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#23 0x00007f299fd6dd36 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#24 0x00007f299f3a079c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#25 0x00007f299e806962 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () from /usr/lib/libQtGui.so.4
#26 0x00007f299e7b98ad in QWidget::setGeometry(QRect const&) () from /usr/lib/libQtGui.so.4
#27 0x00007f299e796913 in QLayoutPrivate::doResize(QSize const&) () from /usr/lib/libQtGui.so.4
#28 0x00007f299e7645ae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#29 0x00007f299e76abdb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#30 0x00007f299fd6dd36 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#31 0x00007f299f3a079c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#32 0x00007f299e806962 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () from /usr/lib/libQtGui.so.4
#33 0x00007f299e7b98ad in QWidget::setGeometry(QRect const&) () from /usr/lib/libQtGui.so.4
#34 0x00007f299e7c020d in QWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#35 0x00007f299edff8f5 in QFrame::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#36 0x00007f299ee01e55 in QStackedWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#37 0x00007f29a0e06780 in Digikam::EditorStackView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libdigikamcore.so.1
#38 0x00007f299f296229 in ?? () from /usr/lib/libQtCore.so.4
#39 0x00007f299f293600 in ?? () from /usr/lib/libQtCore.so.4
#40 0x00007f299f294034 in ?? () from /usr/lib/libQtCore.so.4
#41 0x00007f299f296e70 in QPropertyAnimation::updateState(QAbstractAnimation::State, QAbstractAnimation::State) () from /usr/lib/libQtCore.so.4
#42 0x00007f299f2916c0 in ?? () from /usr/lib/libQtCore.so.4
#43 0x00007f299ebfe31a in ?? () from /usr/lib/libQtGui.so.4
#44 0x00007f299eb54e50 in ?? () from /usr/lib/libQtGui.so.4
#45 0x00007f299eb7e1dd in ?? () from /usr/lib/libQtGui.so.4
#46 0x00007f299eb7ea3e in ?? () from /usr/lib/libQtGui.so.4
#47 0x00007f299e796913 in QLayoutPrivate::doResize(QSize const&) () from /usr/lib/libQtGui.so.4
#48 0x00007f299e7645ae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#49 0x00007f299e76abdb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#50 0x00007f299fd6dd36 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#51 0x00007f299f3a079c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#52 0x00007f299e806962 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () from /usr/lib/libQtGui.so.4
#53 0x00007f299e7b98ad in QWidget::setGeometry(QRect const&) () from /usr/lib/libQtGui.so.4
#54 0x00007f299ebbd2ae in ?? () from /usr/lib/libQtGui.so.4
#55 0x00007f299ebbdf85 in ?? () from /usr/lib/libQtGui.so.4
#56 0x00007f299e7ba5c4 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#57 0x00007f299e7645ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#58 0x00007f299e76abdb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#59 0x00007f299fd6dd36 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#60 0x00007f299f3a079c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#61 0x00007f299e806962 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () from /usr/lib/libQtGui.so.4
#62 0x00007f299e7b98ad in QWidget::setGeometry(QRect const&) () from /usr/lib/libQtGui.so.4
#63 0x00007f299e79ab47 in QWidgetItem::setGeometry(QRect const&) () from /usr/lib/libQtGui.so.4
#64 0x00007f299e77507b in QBoxLayout::setGeometry(QRect const&) () from /usr/lib/libQtGui.so.4
#65 0x00007f299e796913 in QLayoutPrivate::doResize(QSize const&) () from /usr/lib/libQtGui.so.4
#66 0x00007f299e7645ae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#67 0x00007f299e76abdb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#68 0x00007f299fd6dd36 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#69 0x00007f299f3a079c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#70 0x00007f299e806962 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () from /usr/lib/libQtGui.so.4
#71 0x00007f299e7b98ad in QWidget::setGeometry(QRect const&) () from /usr/lib/libQtGui.so.4
#72 0x00007f299e7c020d in QWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#73 0x00007f299f296229 in ?? () from /usr/lib/libQtCore.so.4
#74 0x00007f299f293600 in ?? () from /usr/lib/libQtCore.so.4
#75 0x00007f299f294034 in ?? () from /usr/lib/libQtCore.so.4
#76 0x00007f299f296e70 in QPropertyAnimation::updateState(QAbstractAnimation::State, QAbstractAnimation::State) () from /usr/lib/libQtCore.so.4
#77 0x00007f299f2916c0 in ?? () from /usr/lib/libQtCore.so.4
#78 0x00007f299ebfe31a in ?? () from /usr/lib/libQtGui.so.4
#79 0x00007f299eb54e50 in ?? () from /usr/lib/libQtGui.so.4
#80 0x00007f299eb7e1dd in ?? () from /usr/lib/libQtGui.so.4
#81 0x00007f299eb7ea3e in ?? () from /usr/lib/libQtGui.so.4
#82 0x00007f299e796913 in QLayoutPrivate::doResize(QSize const&) () from /usr/lib/libQtGui.so.4
#83 0x00007f299e796a70 in QLayout::activate() () from /usr/lib/libQtGui.so.4
#84 0x00007f299e7c1cb3 in QWidget::setVisible(bool) () from /usr/lib/libQtGui.so.4
#85 0x00007f299e7a426d in QStackedLayout::setCurrentIndex(int) () from /usr/lib/libQtGui.so.4
#86 0x00007f29a0d5c85d in Digikam::StatusProgressBar::progressBarMode(int, QString const&) () from /usr/lib/libdigikamcore.so.1
#87 0x00007f29a0e1144d in Digikam::EditorWindow::slotSavingStarted(QString const&) () from /usr/lib/libdigikamcore.so.1
#88 0x0000000000437979 in ?? ()
#89 0x000000000043da56 in ?? ()
#90 0x00007f299f3b34df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#91 0x00007f29a0df7f75 in Digikam::Canvas::signalSavingStarted(QString const&) () from /usr/lib/libdigikamcore.so.1
#92 0x00007f29a0e17704 in Digikam::EditorWindow::startingSave(KUrl const&) () from /usr/lib/libdigikamcore.so.1
#93 0x000000000043f069 in ?? ()
#94 0x00007f29a0e1a131 in Digikam::EditorWindow::startingSaveAs(KUrl const&) () from /usr/lib/libdigikamcore.so.1
#95 0x000000000043ee09 in ?? ()
#96 0x00007f29a0e1c97f in Digikam::EditorWindow::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libdigikamcore.so.1
#97 0x000000000043d7f0 in ?? ()
#98 0x00007f299f3b34df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#99 0x00007f299e75e4e2 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#100 0x00007f299e76055b in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#101 0x00007f299eb1818a in ?? () from /usr/lib/libQtGui.so.4
#102 0x00007f299eb1843c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#103 0x00007f299ebe456a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#104 0x00007f299e7ba9b2 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#105 0x00007f299e7645ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#106 0x00007f299e76b3bb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#107 0x00007f299fd6dd36 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#108 0x00007f299f3a079c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#109 0x00007f299e76a58e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#110 0x00007f299e7e9fab in ?? () from /usr/lib/libQtGui.so.4
#111 0x00007f299e7e8cba in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#112 0x00007f299e813172 in ?? () from /usr/lib/libQtGui.so.4
#113 0x00007f29983be26e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#114 0x00007f29983c1c28 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#115 0x00007f29983c1d50 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#116 0x00007f299f3c9c13 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#117 0x00007f299e812d6e in ?? () from /usr/lib/libQtGui.so.4
#118 0x00007f299f39f0c2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#119 0x00007f299f39f49c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#120 0x00007f299f3a31db in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#121 0x0000000000436293 in ?? ()
#122 0x00007f299dd5bb6d in __libc_start_main () from /lib/libc.so.6
#123 0x00000000004118f9 in _start ()

Reported using DrKonqi
Comment 1 caulier.gilles 2010-03-22 10:54:26 UTC
Sound like you use libpng 1.4.0. We have already fixed this problem in current implementation from svn (next 1.2.0).

Please test with current code from KDE repository...

Gilles Caulier
Comment 2 Dario Andres 2010-03-22 22:50:57 UTC
Just as a reference: the original issues is at bug 229340.
Comment 3 caulier.gilles 2010-04-04 10:47:10 UTC
digiKam and Kipi-plugins 1.2.0 are out. Please check if crash is still valid there.

Thanks in advance

Gilles Caulier
Comment 4 Johannes Wienke 2010-08-15 11:42:44 UTC
No comment since nearly half a year. Marking this as duplicate. Please reopen if this is not the case.

*** This bug has been marked as a duplicate of bug 229340 ***
Comment 5 caulier.gilles 2022-01-20 06:41:51 UTC
Fixed with https://bugs.kde.org/show_bug.cgi?id=229340