Hi,
as this is work in progress I post this in the ML and not asa bug report. Maybe you can reproduce: load an image, select an area of e.g. 400x200 pixel, resize with CIMG to e.g. 2000x1000. After some processing I get this BT: Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1245714768 (LWP 17642)] [New Thread -1497031792 (LWP 17784)] [New Thread -1247741040 (LWP 17666)] [New Thread -1256133744 (LWP 17663)] 0xffffe410 in __kernel_vsyscall () #0 0xffffe410 in __kernel_vsyscall () #1 0xb5cc60e1 in select () from /lib/libc.so.6 #2 0xb649f618 in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3 #3 0xb65064a1 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3 #4 0xb64ef36f in QApplication::enter_loop () from /usr/qt/3/lib/libqt-mt.so.3 #5 0xb66d3b16 in QDialog::exec () from /usr/qt/3/lib/libqt-mt.so.3 #6 0xb7ec857e in Digikam::EditorWindow::slotResize (this=0x8c48ea0) at editorwindow.cpp:593 #7 0xb7ecce13 in Digikam::EditorWindow::qt_invoke (this=0x8c48ea0, _id=76, _o=0xbfcb9748) at editorwindow.moc:230 #8 0xb7ed3e80 in Digikam::ImageWindow::qt_invoke (this=0x8c48ea0, _id=76, _o=0xbfcb98d8) at imagewindow.moc:232 #9 0xb654eb49 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3 #10 0xb654f79d in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3 #11 0xb6d99f8c in KAction::activated (this=0x8d83ca8) at kaction.moc:176 #12 0xb6d9a7a1 in KAction::slotActivated (this=0xbfcb98d8) at kaction.cpp:1102 #13 0xb6d9a9eb in KAction::slotPopupActivated (this=0x8d83ca8) at kaction.cpp:1137 #14 0xb6d9ad1c in KAction::qt_invoke (this=0x8d83ca8, _id=16, _o=0xbfcb9a14) at kaction.moc:219 #15 0xb654eb49 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3 #16 0xb688772e in QSignal::signal () from /usr/qt/3/lib/libqt-mt.so.3 #17 0xb656ab05 in QSignal::activate () from /usr/qt/3/lib/libqt-mt.so.3 #18 0xb6653ec9 in QPopupMenu::mouseReleaseEvent () from /usr/qt/3/lib/libqt-mt.so.3 #19 0xb6d890a0 in KPopupMenu::mouseReleaseEvent (this=0x8d954e8, e=0xbfcb9e1c) at kpopupmenu.cpp:508 #20 0xb65878be in QWidget::event () from /usr/qt/3/lib/libqt-mt.so.3 #21 0xb64ef977 in QApplication::internalNotify () from /usr/qt/3/lib/libqt-mt.so.3 #22 0xb64f0748 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3 #23 0xb6b0386b in KApplication::notify (this=0xbfcba2b0, receiver=0x8d954e8, event=0xbfcb9e1c) at kapplication.cpp:550 #24 0xb6490996 in QETWidget::translateMouseEvent () from /usr/qt/3/lib/libqt-mt.so.3 #25 0xb648f940 in QApplication::x11ProcessEvent () from /usr/qt/3/lib/libqt-mt.so.3 #26 0xb649f831 in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3 #27 0xb65064a1 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3 #28 0xb6506326 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3 #29 0xb64ef3ff in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3 #30 0x0804b1d0 in main (argc=-1077172924, argv=0xb7f7c4a9) at main.cpp:321 HTH Thorsten _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Am Samstag 24 März 2007 schrieb Gilles Caulier:
> I cannot reproduce it. In your backtrace, there is no info relevant of the > plugin. If you can, start digiKam in GDB and try again > > Also, recently there are a lots of change in core. To be sure, I recommend > you to cleanup all source code and recompile from scratch digiKam & co. I recompile from scratch everytime I have a change in a Makefile.am during SVN update :-) Ok here is a gdb session: digikam: GreycstorationIface::Initialization... digikam: GreycstorationIface::Process Computation... digikam: Resizing image: size 575 x 496, value range [0 , 255] [New Thread -1364300912 (LWP 303)] [New Thread -1328039024 (LWP 304)] kdecore (KAcceleratorManager): KAcceleratorManager::manage kdecore (KAcceleratorManager): findAccelerators [Thread -1328039024 (LWP 304) exited] [New Thread -1493476464 (LWP 350)] [New Thread -1501869168 (LWP 351)] [Thread -1364300912 (LWP 303) exited] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1501869168 (LWP 351)] 0xb5c1162c in memcpy () from /lib/libc.so.6 (gdb) bt #0 0xb5c1162c in memcpy () from /lib/libc.so.6 #1 0xb7df0c68 in cimg_library::CImg<float>::draw_image (this=0xb1c04678, sprite=@0xa67b3ea4, x0=<value optimized out>, y0=<value optimized out>, z0=<value optimized out>, v0=0, opacity=1) at CImg.h:11228 #2 0xb7dfe881 in cimg_library::CImg<float>::greycstoration_thread (arg=0x8e456bc) at greycstoration.h:156 #3 0xb5ea64bb in start_thread () from /lib/libpthread.so.0 #4 0xb5c6376e in clone () from /lib/libc.so.6 As the crash starts in memcopy here is the end of a valgrind session: digikam: GreycstorationIface::Resize: new size: (1911, 2025) digikam: GreycstorationIface::Initialization... digikam: GreycstorationIface::Process Computation... digikam: Resizing image: size 501 x 531, value range [0 , 255] kdecore (KAcceleratorManager): KAcceleratorManager::manage kdecore (KAcceleratorManager): findAccelerators kdecore (KAcceleratorManager): KAcceleratorManager::manage kdecore (KAcceleratorManager): findAccelerators ==6402== ==6402== Thread 6: ==6402== Invalid read of size 1 ==6402== at 0x1BC15E8B: cimg_library::CImg<float>& cimg_library::CImg<float>::blur_anisotropic<unsigned char>(cimg_library::CImg<unsigned char> const&, float, float, float, float, float, float, float, float, unsigned, bool) (CImg.h:14487) ==6402== Address 0x1DD1CB70 is 0 bytes inside a block of size 8 free'd ==6402== at 0x1B9099A3: operator delete(void*) (vg_replace_malloc.c:155) ==6402== by 0x1BC83E27: Digikam::ImageResize::customEvent(QCustomEvent*) (imageresize.cpp:553) ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFC824: cimg_library::CImg<float>::is_empty() const (CImg.h:6772) ==6402== Address 0x2507B03C is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFC82B: cimg_library::CImg<float>::is_empty() const (CImg.h:6772) ==6402== Address 0x2507B028 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFC831: cimg_library::CImg<float>::is_empty() const (CImg.h:6772) ==6402== Address 0x2507B02C is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFC838: cimg_library::CImg<float>::is_empty() const (CImg.h:6772) ==6402== Address 0x2507B030 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFC846: cimg_library::CImg<float>::is_empty() const (CImg.h:6772) ==6402== Address 0x2507B034 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFC1B4: cimg_library::CImg<float>::dimx() const (CImg.h:6687) ==6402== Address 0x2507B028 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFC1C4: cimg_library::CImg<float>::dimy() const (CImg.h:6695) ==6402== Address 0x2507B02C is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFCB54: cimg_library::CImg<float>::dimz() const (CImg.h:6703) ==6402== Address 0x2507B030 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFCB64: cimg_library::CImg<float>::dimv() const (CImg.h:6711) ==6402== Address 0x2507B034 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BC089E1: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11219) ==6402== Address 0x2507B028 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BC08A14: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11220) ==6402== Address 0x2507B02C is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BC08A51: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11221) ==6402== Address 0x2507B030 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFC3E2: cimg_library::CImg<float>::offset(int, int, int, int) const (CImg.h:6793) ==6402== Address 0x2507B028 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFC3E4: cimg_library::CImg<float>::offset(int, int, int, int) const (CImg.h:6793) ==6402== Address 0x2507B02C is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFC3FE: cimg_library::CImg<float>::offset(int, int, int, int) const (CImg.h:6793) ==6402== Address 0x2507B030 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BBFC9D2: cimg_library::CImg<float>::ptr(unsigned, unsigned, unsigned, unsigned) (CImg.h:6816) ==6402== Address 0x2507B03C is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid write of size 1 ==6402== at 0x1B90A7DD: memcpy (mac_replace_strmem.c:285) ==6402== by 0x1BC08C67: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11228) ==6402== Address 0x2F78802B is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid write of size 1 ==6402== at 0x1B90A7E4: memcpy (mac_replace_strmem.c:286) ==6402== by 0x1BC08C67: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11228) ==6402== Address 0x2F78802A is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid write of size 1 ==6402== at 0x1B90A7EB: memcpy (mac_replace_strmem.c:287) ==6402== by 0x1BC08C67: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11228) ==6402== Address 0x2F788029 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid write of size 1 ==6402== at 0x1B90A7F2: memcpy (mac_replace_strmem.c:288) ==6402== by 0x1BC08C67: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11228) ==6402== Address 0x2F788028 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 4 ==6402== at 0x1BC08C7D: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11228) ==6402== Address 0x2507B028 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 1 ==6402== at 0x1BC166BB: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:144) ==6402== Address 0x1DD1CB70 is not stack'd, malloc'd or (recently) free'd ==6402== ==6402== Invalid read of size 1 ==6402== at 0x1BC1690E: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:143) ==6402== Address 0x1DD1CB70 is not stack'd, malloc'd or (recently) free'd KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = digikam path = <unknown> pid = 6402 QSocketNotifier: invalid socket 18 and type 'Read', disabling... QSocketNotifier: invalid socket 14 and type 'Read', disabling... QSocketNotifier: invalid socket 8 and type 'Read', disabling... QSocketNotifier: invalid socket 17 and type 'Read', disabling... QSocketNotifier: invalid socket 12 and type 'Read', disabling... digikam: Fatal IO error: client killed ==6402== ==6402== ERROR SUMMARY: 6319910 errors from 38 contexts (suppressed: 7 from 1) ==6402== malloc/free: in use at exit: 177121583 bytes in 402523 blocks. ==6402== malloc/free: 10944244 allocs, 10541716 frees, 1058099670 bytes allocated. ==6402== For counts of detected errors, rerun with: -v ==6402== searching for pointers to 402523 not-freed blocks. ==6402== checked 230188972 bytes. ==6402== ==6402== ==6402== 1 bytes in 1 blocks are definitely lost in loss record 5 of 2474 ==6402== at 0x1B909441: operator new(unsigned) (vg_replace_malloc.c:132) ==6402== by 0x1BC0B262: cimg_library::CImg<float>::greycstoration_run(cimg_library::CImg<unsigned char> const&, float, float, float, float, float, float, float, float, unsigned, bool, unsigned, unsigned, unsigned) (greycstoration.h:256) ==6402== ==6402== ==6402== 216 bytes in 1 blocks are definitely lost in loss record 1398 of 2474 ==6402== at 0x1B9092C5: malloc (vg_replace_malloc.c:130) ==6402== by 0x1D905209: _XimOpenIM (in /usr/lib/libX11.so.6.2.0) ==6402== ==6402== ==6402== 312 (72 direct, 240 indirect) bytes in 2 blocks are definitely lost in loss record 1454 of 2474 ==6402== at 0x1B9092C5: malloc (vg_replace_malloc.c:130) ==6402== by 0x1DC59799: (within /lib/libc-2.5.so) ==6402== by 0x1DC59E85: __nss_database_lookup (in /lib/libc-2.5.so) ==6402== by 0x1E10B079: ??? ==6402== by 0x1E10BDAA: ??? ==6402== by 0x1DC17294: getpwuid_r (in /lib/libc-2.5.so) ==6402== by 0x1DC16C98: getpwuid (in /lib/libc-2.5.so) ==6402== by 0x1D09223C: (within /usr/qt/3/lib/libqt-mt.so.3.3.6) ==6402== by 0x1D092B21: (within /usr/qt/3/lib/libqt-mt.so.3.3.6) ==6402== by 0x1D86DE27: _SmcProcessMessage (in /usr/lib/libSM.so.6.0.0) ==6402== ==6402== ==6402== 208 (128 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 1578 of 2474 ==6402== at 0x1B9092C5: malloc (vg_replace_malloc.c:130) ==6402== by 0x1D6932BB: (within /usr/lib/libfontconfig.so.1.2.0) ==6402== ==6402== ==6402== 152 bytes in 4 blocks are definitely lost in loss record 1594 of 2474 ==6402== at 0x1B9092C5: malloc (vg_replace_malloc.c:130) ==6402== by 0x1B8EE5DE: _dl_new_object (in /lib/ld-2.5.so) ==6402== by 0x1B8EA367: _dl_map_object_from_fd (in /lib/ld-2.5.so) ==6402== by 0x1B8EC239: _dl_map_object (in /lib/ld-2.5.so) ==6402== by 0x1B8EFFE5: openaux (in /lib/ld-2.5.so) ==6402== by 0x1B8F1811: _dl_catch_error (in /lib/ld-2.5.so) ==6402== by 0x1B8F01DF: _dl_map_object_deps (in /lib/ld-2.5.so) ==6402== by 0x1B8F570E: dl_open_worker (in /lib/ld-2.5.so) ==6402== by 0x1B8F1811: _dl_catch_error (in /lib/ld-2.5.so) ==6402== by 0x1B8F51D8: _dl_open (in /lib/ld-2.5.so) ==6402== by 0x1DA80E3C: (within /lib/libdl-2.5.so) ==6402== by 0x1B8F1811: _dl_catch_error (in /lib/ld-2.5.so) ==6402== ==6402== ==6402== 228 bytes in 1 blocks are possibly lost in loss record 1683 of 2474 ==6402== at 0x1B90968A: operator new[](unsigned) (vg_replace_malloc.c:138) ==6402== by 0x1BF89D44: QValueVectorPrivate<QRegExp>::growAndCopy(unsigned, QRegExp*, QRegExp*) (qvaluevector.h:223) ==6402== ==6402== ==6402== 360 bytes in 21 blocks are possibly lost in loss record 1809 of 2474 ==6402== at 0x1B909441: operator new(unsigned) (vg_replace_malloc.c:132) ==6402== by 0x1DB128D3: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator<char> const&) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6.0.8) ==6402== by 0x1DB13A74: (within /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6.0.8) ==6402== by 0x1DB13C28: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6.0.8) ==6402== by 0x1C468504: __static_initialization_and_destruction_0(int, int) (tiffvisitor.cpp:344) ==6402== by 0x1C475421: (within /usr/lib/libexiv2-0.13.so) ==6402== by 0x1C3F9304: (within /usr/lib/libexiv2-0.13.so) ==6402== by 0x1B8F1BC4: call_init (in /lib/ld-2.5.so) ==6402== by 0x1B8F1CD0: _dl_init (in /lib/ld-2.5.so) ==6402== by 0x1B8E48FE: (within /lib/ld-2.5.so) ==6402== ==6402== ==6402== 864 bytes in 6 blocks are possibly lost in loss record 2065 of 2474 ==6402== at 0x1B909C70: calloc (vg_replace_malloc.c:175) ==6402== by 0x1B8F4898: allocate_dtv (in /lib/ld-2.5.so) ==6402== by 0x1B8F495B: _dl_allocate_tls (in /lib/ld-2.5.so) ==6402== by 0x1D99CCD6: pthread_create@@GLIBC_2.1 (in /lib/libpthread-2.5.so) ==6402== by 0x1BC0B366: cimg_library::CImg<float>::greycstoration_run(cimg_library::CImg<unsigned char> const&, float, float, float, float, float, float, float, float, unsigned, bool, unsigned, unsigned, unsigned) (greycstoration.h:284) ==6402== ==6402== ==6402== 1304 bytes in 1 blocks are definitely lost in loss record 2131 of 2474 ==6402== at 0x1B909441: operator new(unsigned) (vg_replace_malloc.c:132) ==6402== by 0x1BC0B3B1: cimg_library::CImg<float>::greycstoration_run(cimg_library::CImg<unsigned char> const&, float, float, float, float, float, float, float, float, unsigned, bool, unsigned, unsigned, unsigned) (greycstoration.h:253) ==6402== ==6402== ==6402== 27200 (9600 direct, 17600 indirect) bytes in 25 blocks are definitely lost in loss record 2395 of 2474 ==6402== at 0x1B909D6A: realloc (vg_replace_malloc.c:196) ==6402== by 0x1D6931D3: (within /usr/lib/libfontconfig.so.1.2.0) ==6402== ==6402== ==6402== 16816 bytes in 4 blocks are definitely lost in loss record 2409 of 2474 ==6402== at 0x1B909D6A: realloc (vg_replace_malloc.c:196) ==6402== by 0x1D6AEC42: (within /usr/lib/libfreetype.so.6.3.8) ==6402== ==6402== ==6402== 18238 bytes in 5 blocks are definitely lost in loss record 2416 of 2474 ==6402== at 0x1B9092C5: malloc (vg_replace_malloc.c:130) ==6402== by 0x1D6AEBBA: (within /usr/lib/libfreetype.so.6.3.8) ==6402== ==6402== ==6402== 46437300 bytes in 1 blocks are possibly lost in loss record 2474 of 2474 ==6402== at 0x1B90968A: operator new[](unsigned) (vg_replace_malloc.c:138) ==6402== by 0x1BC01089: cimg_library::CImg<float>::CImg(cimg_library::CImg<float> const&) (CImg.h:6351) ==6402== ==6402== LEAK SUMMARY: ==6402== definitely lost: 46527 bytes in 44 blocks. ==6402== indirectly lost: 17920 bytes in 894 blocks. ==6402== possibly lost: 46438752 bytes in 29 blocks. ==6402== still reachable: 130618384 bytes in 401556 blocks. ==6402== suppressed: 0 bytes in 0 blocks. ==6402== Reachable blocks (those to which a pointer was found) are not shown. digikam --version Qt: 3.3.6 KDE: 3.5.6 digiKam: 0.9.2-svn libkipi 0.1.5 KExiv2 0.1.2-svn Exiv2 0.13.0 HTH Thorsten P.S. Lets see, if ML likes me this time ;-) _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Bugzilla from thorsten.schnebeck@gmx.net
Of course I think than you have set on the Restore Photograph option to on ?
Crash is not reproductible here using this way... resizing from 400*200 to 2000*1000 compute to 100%... Here i use a 1 PIV CPU 3.2 Ghz with 2 Gb RAM It take around 2mn. To be sure, are you set all settings to Defaults in General and Advanced tabs (press Default button) ? Gilles 2007/3/24, Thorsten Schnebeck <[hidden email]>: Hi, _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Am Montag 26 März 2007 schrieb Gilles Caulier:
> Of course I think than you have set on the Restore Photograph option to on > ? Of course, you got the BT and valgrind report in private mail and already noticed the crash in CImg-lib ;-) > Crash is not reproductible here using this way... resizing from 400*200 to > 2000*1000 compute to 100%... Can you please try to crop a bigger area, at least 400x400. I did some more tests. Crash is not 100% reproduceable but should appear at bigger size. (You do not need to crop you can also "restore" a e.g. 6MPixel pic by 120%. Crash is constant after 33% of process time. > Here i use a 1 PIV CPU 3.2 Ghz with 2 Gb RAM Maybe it depends on mainmemory but this maschine has also 2GB main memory. > It take around 2mn. > > To be sure, are you set all settings to Defaults in General and Advanced > tabs (press Default button) ? Default config and then reactivate the Restore option again. Bye Thorsten _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Bugzilla from thorsten.schnebeck@gmx.net
Am Dienstag 27 März 2007 schrieben Sie:
> Thorsten, > > I have found the problem. The crash is releavnt of CImg::wait(...) call in > my Greycstoration interface. > > I have removed these call and the valgrind report disapear. > > Code is patched to svn. Please checkout, try again, and give me a report. > Thanks in advance. > > Gilles Hi Gilles, sorry, but I still have a crash. I tried to collect all useful informations. Bye Thorsten digikam: GreycstorationIface::Resize: new size: (3764, 2509) [New Thread -1247376496 (LWP 7635)] digikam: GreycstorationIface::Initialization... digikam: GreycstorationIface::Process Computation... digikam: Resizing image: size 3072 x 2048, value range [0 , 255] [New Thread -1360770160 (LWP 7654)] [New Thread -1369162864 (LWP 7655)] [Thread -1369162864 (LWP 7655) exited] [New Thread -1584268400 (LWP 7789)] [New Thread -1744942192 (LWP 7790)] [Thread -1360770160 (LWP 7654) exited] [Thread -1744942192 (LWP 7790) exited] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1584268400 (LWP 7789)] 0xb7e9eccb in cimg_library::CImg<float>::greycstoration_thread (arg=0x8c7a1dc) at greycstoration.h:144 144 for (unsigned int x=0; x<source.width && !*(p.stop_request); x+=p.tile) (gdb) info threads * 8 Thread -1584268400 (LWP 7789) 0xb7e9eccb in cimg_library::CImg<float>::greycstoration_thread (arg=0x8c7a1dc) at greycstoration.h:144 5 Thread -1247376496 (LWP 7635) 0xb7fa3410 in __kernel_vsyscall () 4 Thread -1255769200 (LWP 7628) 0xb7fa3410 in __kernel_vsyscall () 1 Thread -1245477200 (LWP 7553) 0xb7fa3410 in __kernel_vsyscall () (gdb) bt #0 0xb7e9eccb in cimg_library::CImg<float>::greycstoration_thread (arg=0x8c7a1dc) at greycstoration.h:144 #1 0xb5f494bb in start_thread () from /lib/libpthread.so.0 #2 0xb5d0676e in clone () from /lib/libc.so.6 (gdb) thread 5 [Switching to thread 5 (Thread -1247376496 (LWP 7635))]#0 0xb7fa3410 in __kernel_vsyscall () (gdb) bt #0 0xb7fa3410 in __kernel_vsyscall () #1 0xb5f4db5c in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0xb65224ca in ?? () from /usr/qt/3/lib/libqt-mt.so.3 #3 0xb5a67684 in ?? () #4 0xb5a676b4 in ?? () #5 0xb5a676f0 in ?? () #6 0xb68221b4 in QMutex::unlock () from /usr/qt/3/lib/libqt-mt.so.3 #7 0xb6522567 in QThread::usleep () from /usr/qt/3/lib/libqt-mt.so.3 #8 0xb7e82d12 in Digikam::GreycstorationIface::iterationLoop (this=0x8dcb9f0, iter=1) at greycstorationiface.cpp:416 #9 0xb7e832a4 in Digikam::GreycstorationIface::resize (this=0x8dcb9f0) at greycstorationiface.cpp:384 #10 0xb7e83d78 in Digikam::GreycstorationIface::filterImage (this=0x8dcb9f0) at greycstorationiface.cpp:203 #11 0xb7e57546 in Digikam::DImgThreadedFilter::startComputation (this=0x8dcb9f0) at dimgthreadedfilter.cpp:143 #12 0xb7e5059f in Digikam::DImgThreadedFilter::run (this=0x8dcb9f0) at ../../../digikam/libs/dimg/filters/dimgthreadedfilter.h:101 #13 0xb65228e3 in QThreadInstance::start () from /usr/qt/3/lib/libqt-mt.so.3 #14 0xb5f494bb in start_thread () from /lib/libpthread.so.0 #15 0xb5d0676e in clone () from /lib/libc.so.6 (gdb) thread 4 [Switching to thread 4 (Thread -1255769200 (LWP 7628))]#0 0xb7fa3410 in __kernel_vsyscall () (gdb) bt #0 0xb7fa3410 in __kernel_vsyscall () #1 0xb5f4db5c in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0xb68232b9 in QWaitCondition::wait () from /usr/qt/3/lib/libqt-mt.so.3 #3 0xb7e7b53c in Digikam::LoadSaveThread::run (this=0xb5f4140) at loadsavethread.cpp:115 #4 0xb65228e3 in QThreadInstance::start () from /usr/qt/3/lib/libqt-mt.so.3 #5 0xb5f494bb in start_thread () from /lib/libpthread.so.0 #6 0xb5d0676e in clone () from /lib/libc.so.6 (gdb) thread 1 [Switching to thread 1 (Thread -1245477200 (LWP 7553))]#0 0xb7fa3410 in __kernel_vsyscall () (gdb) bt #0 0xb7fa3410 in __kernel_vsyscall () #1 0xb5d000e1 in select () from /lib/libc.so.6 #2 0xb64d9618 in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3 #3 0xb65404a1 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3 #4 0xb652936f in QApplication::enter_loop () from /usr/qt/3/lib/libqt-mt.so.3 #5 0xb670db16 in QDialog::exec () from /usr/qt/3/lib/libqt-mt.so.3 #6 0xb7eff94e in Digikam::EditorWindow::slotResize (this=0x8c78528) at editorwindow.cpp:593 #7 0xb7f041f3 in Digikam::EditorWindow::qt_invoke (this=0x8c78528, _id=76, _o=0xbfa34a58) at editorwindow.moc:229 #8 0xb7f0b210 in Digikam::ImageWindow::qt_invoke (this=0x8c78528, _id=76, _o=0xbfa34be8) at imagewindow.moc:232 #9 0xb6588b49 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3 #10 0xb658979d in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3 #11 0xb6dd3f8c in KAction::activated (this=0x8d56818) at kaction.moc:176 #12 0xb6dd47a1 in KAction::slotActivated (this=0xbfa34be8) at kaction.cpp:1102 #13 0xb6dd49eb in KAction::slotPopupActivated (this=0x8d56818) at kaction.cpp:1137 #14 0xb6dd4d1c in KAction::qt_invoke (this=0x8d56818, _id=16, _o=0xbfa34d24) at kaction.moc:219 #15 0xb6588b49 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3 #16 0xb68c172e in QSignal::signal () from /usr/qt/3/lib/libqt-mt.so.3 #17 0xb65a4b05 in QSignal::activate () from /usr/qt/3/lib/libqt-mt.so.3 #18 0xb668dec9 in QPopupMenu::mouseReleaseEvent () from /usr/qt/3/lib/libqt-mt.so.3 #19 0xb6dc30a0 in KPopupMenu::mouseReleaseEvent (this=0x8d680a8, e=0xbfa3512c) at kpopupmenu.cpp:508 #20 0xb65c18be in QWidget::event () from /usr/qt/3/lib/libqt-mt.so.3 #21 0xb6529977 in QApplication::internalNotify () from /usr/qt/3/lib/libqt-mt.so.3 #22 0xb652a748 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3 #23 0xb6b3d86b in KApplication::notify (this=0xbfa355c0, receiver=0x8d680a8, event=0xbfa3512c) at kapplication.cpp:550 #24 0xb64ca996 in QETWidget::translateMouseEvent () from /usr/qt/3/lib/libqt-mt.so.3 ---Type <return> to continue, or q <return> to quit--- #25 0xb64c9940 in QApplication::x11ProcessEvent () from /usr/qt/3/lib/libqt-mt.so.3 #26 0xb64d9831 in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3 #27 0xb65404a1 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3 #28 0xb6540326 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3 #29 0xb65293ff in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3 #30 0x0804b1d0 in main (argc=-1079814060, argv=0xb7fb24a9) at main.cpp:321 _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
yes, it crash here too sometimes. Look like the backtrace is different now. The cras appear inside CImg::greystoration.
I suspect a problem in the thread management of algorithm witch not stop properlly the threads at each iterations (resize use 3 iterations , this is why it crash at 33%). I don't know why the code is more stable here when i use CImg::wait() instead QThread::usleep() in my interface. I'm in contact with David to investiguate. Wait and seen feedback from him. Gilles 2007/3/27, Thorsten Schnebeck <[hidden email]>: Am Dienstag 27 März 2007 schrieben Sie: _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Am Dienstag 27 März 2007 schrieb Gilles Caulier:
> I don't know why the code is more stable here when i use CImg::wait() > instead QThread::usleep() in my interface. I'm in contact with David to > investiguate. Wait and seen feedback from him. > Just curious, do you use a hyperthreading CPU? Could be a reason, that your threading is different than mine (Athlon64 as x86). Bye Thorsten _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
2007/3/27, Thorsten Schnebeck <[hidden email]>: Am Dienstag 27 März 2007 schrieb Gilles Caulier: Both. my laptop is dual core, my desktops are hyperthreading or not. All are x86. I never use AMD. Gilles _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Thorsten,
in svn, i have fixed the delay time from 100us to 100ms using QThread::usleep(). In fact, in CImg example code given by library, David use the CImg::wait(100) method where 100 are in ms, not in us (:=))) In my computer, the crash cannot be reproduce now. Of course, this fix is not right, because the disynchronism between CImg threads is not fixed... but it's work better. I'm waiting David feedback for a real fix from CImg. The digiKam 0.9.2 CImg interface is very clean now. To update Cimg implemetation, i have just to copy 2 file from the library and recompile all. The algorithm is in Greystoration implementation is in CImg, not in digiKam (like 0.9.1 does) Please checkout source code again and give me a feedback Gilles 2007/3/28, Gilles Caulier <[hidden email]>:
_______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Bugzilla from thorsten.schnebeck@gmx.net
Big hacking today with David. CImg have been updated. Please checkout and try again...
Please test Restoration, Inpainting, and Resize tools to check if no crash appears... Thanks in advance Gilles 2007/3/27, Thorsten Schnebeck <[hidden email]>: Am Dienstag 27 März 2007 schrieb Gilles Caulier: _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Am Mittwoch 28 März 2007 schrieb Gilles Caulier:
> Big hacking today with David. CImg have been updated. Please checkout and > try again... > > Please test Restoration, Inpainting, and Resize tools to check if no crash > appears... Ok, here are some tests: Everything now is really slow. Its seems slower than the old CImg based filters(?). My old test resizing 400x400 to 2000x2000 needs somehow 4 minutes on my machine. Now I need 1 hours. My second test was resizing 6MPixel by 120% runs nearly 4 hours. When canceling the resize process I sometimes have a crash but so far no useful BT. But only crashs when canceling, no more crashes during processing so far. Impainting a "small artefact" does not work. The filter shows no visual difference after finishing. Restauration filter dialog looks incomplete/different compared to other digikamimageplugins. Split screen preview actions are wrong. Here also the filter shows no visual difference after finishing. HTH Thorsten _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Fixed in svn. I have forget to use a new parameter in greycstoration call.
Gilles 2007/3/29, Thorsten Schnebeck <[hidden email]>: Am Mittwoch 28 März 2007 schrieb Gilles Caulier: _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Am Donnerstag 29 März 2007 schrieb Gilles Caulier:
> Fixed in svn. I have forget to use a new parameter in greycstoration call. Ok, I'm on SVN Revision 647832 While testing impaining I got (sorry) a new crash digikam: Final inpainting started... [New Thread -1248011376 (LWP 25188)] digikam: GreycstorationIface::Initialization... digikam: GreycstorationIface::Process Computation... [New Thread 1859611536 (LWP 25189)] [Thread 1859611536 (LWP 25189) exited] [New Thread 1851218832 (LWP 25200)] [Thread 1851218832 (LWP 25200) exited] [New Thread 1842826128 (LWP 25205)] [Thread 1842826128 (LWP 25205) exited] [New Thread 1582676880 (LWP 25208)] [Thread 1582676880 (LWP 25208) exited] [New Thread 1574284176 (LWP 25211)] [Thread 1574284176 (LWP 25211) exited] [New Thread 1565891472 (LWP 25216)] [Thread 1565891472 (LWP 25216) exited] [New Thread 1557498768 (LWP 25219)] [Thread 1557498768 (LWP 25219) exited] [New Thread 1549106064 (LWP 25222)] [Thread 1549106064 (LWP 25222) exited] [New Thread 1540713360 (LWP 25227)] [Thread 1540713360 (LWP 25227) exited] [New Thread 1532320656 (LWP 25230)] [Thread 1532320656 (LWP 25230) exited] [New Thread 1523927952 (LWP 25239)] [Thread 1523927952 (LWP 25239) exited] [New Thread 1515535248 (LWP 25244)] [Thread 1515535248 (LWP 25244) exited] [New Thread 1507142544 (LWP 25255)] [Thread 1507142544 (LWP 25255) exited] [New Thread 1498749840 (LWP 25260)] [Thread 1498749840 (LWP 25260) exited] [New Thread 1490357136 (LWP 25263)] [Thread 1490357136 (LWP 25263) exited] [New Thread 1481964432 (LWP 25266)] [Thread 1481964432 (LWP 25266) exited] [New Thread 1473571728 (LWP 25271)] [Thread 1473571728 (LWP 25271) exited] [New Thread 1465179024 (LWP 25274)] [Thread 1465179024 (LWP 25274) exited] [New Thread 1456786320 (LWP 25283)] [Thread 1456786320 (LWP 25283) exited] [New Thread 1448393616 (LWP 25288)] [Thread 1448393616 (LWP 25288) exited] [New Thread 1440000912 (LWP 25291)] [Thread 1440000912 (LWP 25291) exited] [New Thread 1431608208 (LWP 25296)] [Thread 1431608208 (LWP 25296) exited] [New Thread 1423215504 (LWP 25299)] [Thread 1423215504 (LWP 25299) exited] [New Thread 1414822800 (LWP 25302)] [Thread 1414822800 (LWP 25302) exited] [New Thread 1406430096 (LWP 25307)] [Thread 1406430096 (LWP 25307) exited] [New Thread 1398037392 (LWP 25310)] [Thread 1398037392 (LWP 25310) exited] [New Thread 1389644688 (LWP 25319)] [Thread 1389644688 (LWP 25319) exited] [New Thread 1381251984 (LWP 25328)] [Thread 1381251984 (LWP 25328) exited] [New Thread 1372859280 (LWP 25331)] [Thread 1372859280 (LWP 25331) exited] [New Thread 1364466576 (LWP 25334)] [Thread 1364466576 (LWP 25334) exited] [New Thread 1356073872 (LWP 25339)] [Thread 1356073872 (LWP 25339) exited] [New Thread 1347681168 (LWP 25342)] [Thread 1347681168 (LWP 25342) exited] [New Thread 1339288464 (LWP 25347)] [Thread 1339288464 (LWP 25347) exited] [New Thread 1330895760 (LWP 25350)] [Thread 1330895760 (LWP 25350) exited] [New Thread 1322503056 (LWP 25353)] [Thread 1322503056 (LWP 25353) exited] [New Thread 1314110352 (LWP 25364)] [Thread 1314110352 (LWP 25364) exited] [New Thread 1305717648 (LWP 25367)] [Thread 1305717648 (LWP 25367) exited] [New Thread 1297324944 (LWP 25372)] [Thread 1297324944 (LWP 25372) exited] [New Thread 1288932240 (LWP 25377)] [Thread 1288932240 (LWP 25377) exited] [New Thread 1280539536 (LWP 25380)] [Thread 1280539536 (LWP 25380) exited] [New Thread 1272146832 (LWP 25385)] [Thread 1272146832 (LWP 25385) exited] [New Thread 1263754128 (LWP 25388)] [Thread 1263754128 (LWP 25388) exited] [New Thread 1255361424 (LWP 25399)] [New Thread 1246968720 (LWP 25402)] [Thread 1255361424 (LWP 25399) exited] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1246968720 (LWP 25402)] 0xb7e10531 in cimg_library::CImg<unsigned char>::greycstoration_thread (arg=0x8e3a460) at greycstoration.h:145 145 for (unsigned int x=0; x<source.width && !*(p.stop_request); x+=p.tile) (gdb) bt #0 0xb7e10531 in cimg_library::CImg<unsigned char>::greycstoration_thread (arg=0x8e3a460) at greycstoration.h:145 #1 0xb5eae4bb in start_thread () from /lib/libpthread.so.0 #2 0xb5c6b76e in clone () from /lib/libc.so.6 (gdb) info threads * 215 Thread 1246968720 (LWP 25402) 0xb7e10531 in cimg_library::CImg<unsigned char>::greycstoration_thread (arg=0x8e3a460) at greycstoration.h:145 214 Thread 1255361424 (LWP 25399) (Exiting) 0xb5eadcc1 in __nptl_death_event () from /lib/libpthread.so.0 171 Thread -1248011376 (LWP 25188) 0xb7f16410 in __kernel_vsyscall () 4 Thread -1256404080 (LWP 24917) 0xb7f16410 in __kernel_vsyscall () 1 Thread -1246112080 (LWP 24896) 0xb7f16410 in __kernel_vsyscall () (gdb) thread 214 [Switching to thread 214 (Thread 1255361424 (LWP 25399))]#0 0xb5eadcc1 in __nptl_death_event () from /lib/libpthread.so.0 (gdb) bt #0 0xb5eadcc1 in __nptl_death_event () from /lib/libpthread.so.0 #1 0xb5eae646 in start_thread () from /lib/libpthread.so.0 #2 0xb5c6b76e in clone () from /lib/libc.so.6 (gdb) thread 171 [Switching to thread 171 (Thread -1248011376 (LWP 25188))]#0 0xb7f16410 in __kernel_vsyscall () (gdb) bt #0 0xb7f16410 in __kernel_vsyscall () #1 0xb5eb2b5c in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0xb64874ca in ?? () from /usr/qt/3/lib/libqt-mt.so.3 #3 0xb59cc134 in ?? () #4 0xb59cc164 in ?? () #5 0xb59cc1a0 in ?? () #6 0xb67871b4 in QMutex::unlock () from /usr/qt/3/lib/libqt-mt.so.3 #7 0xb6487567 in QThread::usleep () from /usr/qt/3/lib/libqt-mt.so.3 #8 0xb7de90b4 in Digikam::GreycstorationIface::iterationLoop (this=0xb59cc164, iter=43) at greycstorationiface.cpp:549 #9 0xb7de9de2 in Digikam::GreycstorationIface::inpainting (this=0x8dfe840) at greycstorationiface.cpp:421 #10 0xb7dea4af in Digikam::GreycstorationIface::filterImage (this=0x8dfe840) at greycstorationiface.cpp:227 #11 0xb7dbd966 in Digikam::DImgThreadedFilter::startComputation (this=0x8dfe840) at dimgthreadedfilter.cpp:143 #12 0xb7db69bf in Digikam::DImgThreadedFilter::run (this=0x8dfe840) at ../../../digikam/libs/dimg/filters/dimgthreadedfilter.h:84 #13 0xb64878e3 in QThreadInstance::start () from /usr/qt/3/lib/libqt-mt.so.3 #14 0xb5eae4bb in start_thread () from /lib/libpthread.so.0 #15 0xb5c6b76e in clone () from /lib/libc.so.6 (gdb) thread 4 [Switching to thread 4 (Thread -1256404080 (LWP 24917))]#0 0xb7f16410 in __kernel_vsyscall () (gdb) bt #0 0xb7f16410 in __kernel_vsyscall () #1 0xb5eb2b5c in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0xb67882b9 in QWaitCondition::wait () from /usr/qt/3/lib/libqt-mt.so.3 #3 0xb7de193c in Digikam::LoadSaveThread::run (this=0x8ac0050) at loadsavethread.cpp:115 #4 0xb64878e3 in QThreadInstance::start () from /usr/qt/3/lib/libqt-mt.so.3 #5 0xb5eae4bb in start_thread () from /lib/libpthread.so.0 #6 0xb5c6b76e in clone () from /lib/libc.so.6 (gdb) thread 1 [Switching to thread 1 (Thread -1246112080 (LWP 24896))]#0 0xb7f16410 in __kernel_vsyscall () (gdb) bt #0 0xb7f16410 in __kernel_vsyscall () #1 0xb5c650e1 in select () from /lib/libc.so.6 #2 0xb643e618 in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3 #3 0xb64a54a1 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3 #4 0xb648e36f in QApplication::enter_loop () from /usr/qt/3/lib/libqt-mt.so.3 #5 0xb6672b16 in QDialog::exec () from /usr/qt/3/lib/libqt-mt.so.3 #6 0xb3873b78 in DigikamInPaintingImagesPlugin::ImageEffect_InPainting::inPainting (parent=0x8c5d2c8) at imageeffect_inpainting.cpp:120 #7 0xb386fc13 in ImagePlugin_InPainting::slotInPainting (this=0x8b864f8) at imageplugin_inpainting.cpp:66 #8 0xb387032b in ImagePlugin_InPainting::qt_invoke (this=0x8b864f8, _id=2, _o=0xbfa85438) at imageplugin_inpainting.moc:82 #9 0xb64edb49 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3 #10 0xb64ee79d in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3 #11 0xb6d38f8c in KAction::activated (this=0x8b8ffe0) at kaction.moc:176 #12 0xb6d397a1 in KAction::slotActivated (this=0xbfa85438) at kaction.cpp:1102 #13 0xb6d399eb in KAction::slotPopupActivated (this=0x8b8ffe0) at kaction.cpp:1137 #14 0xb6d39d1c in KAction::qt_invoke (this=0x8b8ffe0, _id=16, _o=0xbfa85574) at kaction.moc:219 #15 0xb64edb49 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3 #16 0xb682672e in QSignal::signal () from /usr/qt/3/lib/libqt-mt.so.3 #17 0xb6509b05 in QSignal::activate () from /usr/qt/3/lib/libqt-mt.so.3 #18 0xb65f2ec9 in QPopupMenu::mouseReleaseEvent () from /usr/qt/3/lib/libqt-mt.so.3 #19 0xb6d280a0 in KPopupMenu::mouseReleaseEvent (this=0x8da6110, e=0xbfa8597c) at kpopupmenu.cpp:508 #20 0xb65268be in QWidget::event () from /usr/qt/3/lib/libqt-mt.so.3 #21 0xb648e977 in QApplication::internalNotify () from /usr/qt/3/lib/libqt-mt.so.3 #22 0xb648f748 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3 #23 0xb6aa286b in KApplication::notify (this=0xbfa85e10, receiver=0x8da6110, event=0xbfa8597c) at kapplication.cpp:550 #24 0xb642f996 in QETWidget::translateMouseEvent () from /usr/qt/3/lib/libqt-mt.so.3 ---Type <return> to continue, or q <return> to quit--- #25 0xb642e940 in QApplication::x11ProcessEvent () from /usr/qt/3/lib/libqt-mt.so.3 #26 0xb643e831 in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3 #27 0xb64a54a1 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3 #28 0xb64a5326 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3 #29 0xb648e3ff in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3 #30 0x0804b1d0 in main (argc=-1079484252, argv=0xb7f254a9) at main.cpp:321 Bye Thorsten _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Yes, i can reproduce the crash in inpainting, sometimes, but never in Restoration and Resize tools.
Dirty memory backtrace can be reproduce in my computer too. It relevant of CImg dysfunctions. Investiguation in progress with David Gilles 2007/3/29, Thorsten Schnebeck <[hidden email]>: Am Donnerstag 29 März 2007 schrieb Gilles Caulier: _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Bugzilla from thorsten.schnebeck@gmx.net
Ok,
Try again. Checkout all, and important, cleanup all before to recompile digiKam. Gilles 2007/3/29, Thorsten Schnebeck <[hidden email]>: Am Donnerstag 29 März 2007 schrieb Gilles Caulier: _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Am Freitag 30 März 2007 schrieb Gilles Caulier:
> Ok, > > Try again. Checkout all, and important, cleanup all before to recompile > digiKam. > > Gilles Hmm, I'm on SVN Revision 648163 Before compliling I made a make distclean. Crash stays: digikam: Final inpainting started... [New Thread -1361941616 (LWP 9884)] digikam: GreycstorationIface::Initialization... digikam: GreycstorationIface::Process Computation... [New Thread -1248048240 (LWP 9885)] [New Thread -1421657200 (LWP 9886)] [Thread -1421657200 (LWP 9886) exited] [Thread -1248048240 (LWP 9885) exited] [New Thread -1430049904 (LWP 9891)] [New Thread -1438442608 (LWP 9892)] [Thread -1438442608 (LWP 9892) exited] [Thread -1430049904 (LWP 9891) exited] [New Thread -1446835312 (LWP 9897)] [New Thread -1455228016 (LWP 9898)] [Thread -1455228016 (LWP 9898) exited] [Thread -1446835312 (LWP 9897) exited] [New Thread -1463620720 (LWP 9907)] [New Thread -1472013424 (LWP 9908)] [Thread -1472013424 (LWP 9908) exited] [Thread -1463620720 (LWP 9907) exited] [New Thread -1480406128 (LWP 9913)] [New Thread -1488798832 (LWP 9914)] [Thread -1488798832 (LWP 9914) exited] [Thread -1480406128 (LWP 9913) exited] [New Thread -1497191536 (LWP 9917)] [New Thread -1505584240 (LWP 9918)] [Thread -1505584240 (LWP 9918) exited] [Thread -1497191536 (LWP 9917) exited] [New Thread -1513976944 (LWP 9923)] [New Thread -1522369648 (LWP 9924)] [Thread -1522369648 (LWP 9924) exited] [Thread -1513976944 (LWP 9923) exited] [New Thread -1530762352 (LWP 9927)] [New Thread -1539155056 (LWP 9928)] [Thread -1539155056 (LWP 9928) exited] [Thread -1530762352 (LWP 9927) exited] [New Thread -1547547760 (LWP 9931)] [New Thread -1555940464 (LWP 9932)] [Thread -1555940464 (LWP 9932) exited] [Thread -1547547760 (LWP 9931) exited] [New Thread -1564333168 (LWP 9937)] [New Thread -1572725872 (LWP 9938)] [Thread -1572725872 (LWP 9938) exited] [Thread -1564333168 (LWP 9937) exited] [New Thread -1581118576 (LWP 9941)] [New Thread -1589511280 (LWP 9942)] [Thread -1589511280 (LWP 9942) exited] [Thread -1581118576 (LWP 9941) exited] [New Thread -1597903984 (LWP 10010)] [New Thread -1606296688 (LWP 10011)] [Thread -1606296688 (LWP 10011) exited] [Thread -1597903984 (LWP 10010) exited] [New Thread -1614689392 (LWP 10016)] [New Thread -1623082096 (LWP 10017)] [Thread -1623082096 (LWP 10017) exited] [Thread -1614689392 (LWP 10016) exited] [New Thread -1631474800 (LWP 10020)] [New Thread -1639867504 (LWP 10021)] [Thread -1639867504 (LWP 10021) exited] [Thread -1631474800 (LWP 10020) exited] [New Thread -1648260208 (LWP 10024)] [New Thread -1656652912 (LWP 10025)] [Thread -1656652912 (LWP 10025) exited] [Thread -1648260208 (LWP 10024) exited] [New Thread -1665045616 (LWP 10047)] [New Thread -1673438320 (LWP 10048)] [Thread -1673438320 (LWP 10048) exited] [Thread -1665045616 (LWP 10047) exited] [New Thread -1681831024 (LWP 10051)] [New Thread -1690223728 (LWP 10052)] [Thread -1690223728 (LWP 10052) exited] [Thread -1681831024 (LWP 10051) exited] [New Thread -1698616432 (LWP 10081)] [New Thread -1707009136 (LWP 10082)] [Thread -1707009136 (LWP 10082) exited] [New Thread -1715401840 (LWP 10093)] [New Thread -1723794544 (LWP 10094)] [Thread -1698616432 (LWP 10081) exited] [Thread -1723794544 (LWP 10094) exited] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1715401840 (LWP 10093)] 0xb7dfad00 in cimg_library::CImg<float>::greycstoration_thread (arg=0x8de50b8) at greycstoration.h:145 145 for (unsigned int x=0; x<source.width && !*(p.stop_request); x+=p.tile) (gdb) bt #0 0xb7dfad00 in cimg_library::CImg<float>::greycstoration_thread (arg=0x8de50b8) at greycstoration.h:145 #1 0xb5ea54bb in start_thread () from /lib/libpthread.so.0 #2 0xb5c6276e in clone () from /lib/libc.so.6 It crashed valgrind, too: digikam: Final inpainting started... digikam: GreycstorationIface::Initialization... digikam: GreycstorationIface::Process Computation... ==10297== ==10297== Thread 5: ==10297== Invalid read of size 4 ==10297== at 0x1BBF3044: cimg_library::CImg<float>::is_empty() const (CImg.h:6840) ==10297== Address 0x2718103C is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBF304B: cimg_library::CImg<float>::is_empty() const (CImg.h:6840) ==10297== Address 0x27181028 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBF3051: cimg_library::CImg<float>::is_empty() const (CImg.h:6840) ==10297== Address 0x2718102C is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBF3058: cimg_library::CImg<float>::is_empty() const (CImg.h:6840) ==10297== Address 0x27181030 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBF3066: cimg_library::CImg<float>::is_empty() const (CImg.h:6840) ==10297== Address 0x27181034 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBF29C4: cimg_library::CImg<float>::dimx() const (CImg.h:6755) ==10297== Address 0x27181028 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBF29D4: cimg_library::CImg<float>::dimy() const (CImg.h:6763) ==10297== Address 0x2718102C is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBF33B4: cimg_library::CImg<float>::dimz() const (CImg.h:6771) ==10297== Address 0x27181030 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBF33C4: cimg_library::CImg<float>::dimv() const (CImg.h:6779) ==10297== Address 0x27181034 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBFF111: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11287) ==10297== Address 0x27181028 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBFF144: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11288) ==10297== Address 0x2718102C is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBFF181: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11289) ==10297== Address 0x27181030 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBF2C12: cimg_library::CImg<float>::offset(int, int, int, int) const (CImg.h:6861) ==10297== Address 0x27181028 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBF2C14: cimg_library::CImg<float>::offset(int, int, int, int) const (CImg.h:6861) ==10297== Address 0x2718102C is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBF2C2E: cimg_library::CImg<float>::offset(int, int, int, int) const (CImg.h:6861) ==10297== Address 0x27181030 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBF31E2: cimg_library::CImg<float>::ptr(unsigned, unsigned, unsigned, unsigned) (CImg.h:6884) ==10297== Address 0x2718103C is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid write of size 1 ==10297== at 0x1B90A7DD: memcpy (mac_replace_strmem.c:285) ==10297== by 0x1BBFF397: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==10297== Address 0x2A65444B is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid write of size 1 ==10297== at 0x1B90A7E4: memcpy (mac_replace_strmem.c:286) ==10297== by 0x1BBFF397: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==10297== Address 0x2A65444A is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid write of size 1 ==10297== at 0x1B90A7EB: memcpy (mac_replace_strmem.c:287) ==10297== by 0x1BBFF397: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==10297== Address 0x2A654449 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid write of size 1 ==10297== at 0x1B90A7F2: memcpy (mac_replace_strmem.c:288) ==10297== by 0x1BBFF397: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==10297== Address 0x2A654448 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 4 ==10297== at 0x1BBFF3AD: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==10297== Address 0x27181028 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Thread 6: ==10297== Invalid read of size 1 ==10297== at 0x1BC0C31C: cimg_library::CImg<float>& cimg_library::CImg<float>::blur_anisotropic<unsigned char>(cimg_library::CImg<unsigned char> const&, float, float, float, float, float, float, float, float, unsigned, bool, float) (CImg.h:14606) ==10297== Address 0x1DD59170 is not stack'd, malloc'd or (recently) free'd ==10297== ==10297== Invalid read of size 1 ==10297== at 0x1BC0A557: cimg_library::CImg<float>& cimg_library::CImg<float>::blur_anisotropic<float>(cimg_library::CImg<float> const&, float, float, float, float, unsigned, bool) (CImg.h:14518) ==10297== Address 0x1DD59170 is not stack'd, malloc'd or (recently) free'd ==10297== Stack overflow in thread 5: can't grow stack to 0x41F00004 --10297-- INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting --10297-- si_code=1 Fault EIP: 0xB0030A00; Faulting address: 0x41F00004 --10297-- esp=0xBAACADF0 valgrind: the `impossible' happened: Killed by fatal signal Basic block ctr is approximately 4113339384 ==10297== at 0xB0030A00: swizzle (vg_malloc2.c:254) ==10297== by 0xB0031720: unlinkBlock (vg_malloc2.c:938) ==10297== by 0xB0031DEB: vgPlain_arena_free (vg_malloc2.c:1100) ==10297== by 0xB0032949: vgPlain_cli_free (vg_malloc2.c:1400) ==10297== by 0xB7C1B5B3: die_and_free_mem (mac_malloc_wrappers.c:113) ==10297== by 0xB7C1B90A: vgSkin___builtin_vec_delete (mac_malloc_wrappers.c:320) ==10297== by 0xB007C4F0: vgSkinInternal___builtin_vec_delete (vg_toolint.c:547) ==10297== by 0xB00181EF: do_client_request (vg_scheduler.c:862) ==10297== by 0xB0017D96: vgPlain_scheduler (vg_scheduler.c:746) ==10297== by 0xB0095339: vgArch_thread_wrapper (core_os.c:69) ==10297== by 0xB009296E: start_thread (syscalls.c:240) ==10297== by 0xB0092450: ??? (syscall.S:104) sched status: running_tid=5 _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Am Freitag 30 März 2007 schrieb Thorsten Schnebeck:
> Am Freitag 30 März 2007 schrieb Gilles Caulier: > > Ok, > > > > Try again. Checkout all, and important, cleanup all before to recompile > > digiKam. > > > > Gilles > > Hmm, I'm on SVN Revision 648163 > Before compliling I made a make distclean. Crash stays: I updated valgrind to get rid of the a valgrind crash. Now I have a complete valgrind report: digikam: Final inpainting started... digikam: GreycstorationIface::Initialization... digikam: GreycstorationIface::Process Computation... ==22176== ==22176== Thread 6: ==22176== Invalid read of size 1 ==22176== at 0x432431C: cimg_library::CImg<float>& cimg_library::CImg<float>::blur_anisotropic<unsigned char>(cimg_library::CImg<unsigned char> const&, float, float, float, float, float, float, float, float, unsigned, bool, float) (CImg.h:14606) ==22176== by 0x4324E5C: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:155) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x975f220 is 0 bytes inside a block of size 1 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BED: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:174) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 1 ==22176== at 0x4322557: cimg_library::CImg<float>& cimg_library::CImg<float>::blur_anisotropic<float>(cimg_library::CImg<float> const&, float, float, float, float, unsigned, bool) (CImg.h:14518) ==22176== by 0x432447E: cimg_library::CImg<float>& cimg_library::CImg<float>::blur_anisotropic<unsigned char>(cimg_library::CImg<unsigned char> const&, float, float, float, float, float, float, float, float, unsigned, bool, float) (CImg.h:14610) ==22176== by 0x4324E5C: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:155) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x975f220 is 0 bytes inside a block of size 1 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BED: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:174) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Thread 5: ==22176== Invalid read of size 4 ==22176== at 0x430B044: cimg_library::CImg<float>::is_empty() const (CImg.h:6840) ==22176== Address 0x9e8d8fc is 20 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x430B04B: cimg_library::CImg<float>::is_empty() const (CImg.h:6840) ==22176== Address 0x9e8d8e8 is 0 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x430B051: cimg_library::CImg<float>::is_empty() const (CImg.h:6840) ==22176== Address 0x9e8d8ec is 4 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x430B058: cimg_library::CImg<float>::is_empty() const (CImg.h:6840) ==22176== Address 0x9e8d8f0 is 8 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x430B066: cimg_library::CImg<float>::is_empty() const (CImg.h:6840) ==22176== Address 0x9e8d8f4 is 12 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x430A9C4: cimg_library::CImg<float>::dimx() const (CImg.h:6755) ==22176== Address 0x9e8d8e8 is 0 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x430A9D4: cimg_library::CImg<float>::dimy() const (CImg.h:6763) ==22176== Address 0x9e8d8ec is 4 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x430B3B4: cimg_library::CImg<float>::dimz() const (CImg.h:6771) ==22176== Address 0x9e8d8f0 is 8 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x430B3C4: cimg_library::CImg<float>::dimv() const (CImg.h:6779) ==22176== Address 0x9e8d8f4 is 12 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x4317111: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11287) ==22176== by 0x4324ECC: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:157) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x9e8d8e8 is 0 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x4317144: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11288) ==22176== by 0x4324ECC: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:157) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x9e8d8ec is 4 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x4317181: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11289) ==22176== by 0x4324ECC: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:157) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x9e8d8f0 is 8 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x430AC12: cimg_library::CImg<float>::offset(int, int, int, int) const (CImg.h:6861) ==22176== Address 0x9e8d8e8 is 0 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x430AC14: cimg_library::CImg<float>::offset(int, int, int, int) const (CImg.h:6861) ==22176== Address 0x9e8d8ec is 4 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x430AC2E: cimg_library::CImg<float>::offset(int, int, int, int) const (CImg.h:6861) ==22176== Address 0x9e8d8f0 is 8 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 4 ==22176== at 0x430B1E2: cimg_library::CImg<float>::ptr(unsigned, unsigned, unsigned, unsigned) (CImg.h:6884) ==22176== Address 0x9e8d8fc is 20 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid write of size 1 ==22176== at 0x40233BA: memcpy (mc_replace_strmem.c:402) ==22176== by 0x4317397: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==22176== by 0x4324ECC: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:157) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x152a1858 is not stack'd, malloc'd or (recently) free'd ==22176== ==22176== Invalid write of size 1 ==22176== at 0x40233C2: memcpy (mc_replace_strmem.c:402) ==22176== by 0x4317397: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==22176== by 0x4324ECC: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:157) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x152a1859 is not stack'd, malloc'd or (recently) free'd ==22176== ==22176== Invalid write of size 1 ==22176== at 0x40233CB: memcpy (mc_replace_strmem.c:402) ==22176== by 0x4317397: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==22176== by 0x4324ECC: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:157) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x152a185a is not stack'd, malloc'd or (recently) free'd ==22176== ==22176== Invalid write of size 1 ==22176== at 0x40233D4: memcpy (mc_replace_strmem.c:402) ==22176== by 0x4317397: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==22176== by 0x4324ECC: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:157) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x152a185b is not stack'd, malloc'd or (recently) free'd ==22176== ==22176== Invalid read of size 4 ==22176== at 0x43173AD: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==22176== by 0x4324ECC: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:157) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x9e8d8e8 is 0 bytes inside a block of size 1,368 free'd ==22176== at 0x4020F01: operator delete(void*) (vg_replace_malloc.c:336) ==22176== by 0x4324BD7: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:173) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== Invalid read of size 1 ==22176== at 0x4324D00: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:145) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x0 is not stack'd, malloc'd or (recently) free'd KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = digikam path = <unknown> pid = 22176 ==22176== ==22176== Thread 6: ==22176== Invalid write of size 1 ==22176== at 0x4023336: memcpy (mc_replace_strmem.c:402) ==22176== by 0x4317397: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==22176== by 0x4324ECC: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:157) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x152a21e7 is not stack'd, malloc'd or (recently) free'd ==22176== ==22176== Invalid write of size 1 ==22176== at 0x402333C: memcpy (mc_replace_strmem.c:402) ==22176== by 0x4317397: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==22176== by 0x4324ECC: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:157) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x152a21e6 is not stack'd, malloc'd or (recently) free'd ==22176== ==22176== Invalid write of size 1 ==22176== at 0x4023343: memcpy (mc_replace_strmem.c:402) ==22176== by 0x4317397: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==22176== by 0x4324ECC: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:157) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x152a21e5 is not stack'd, malloc'd or (recently) free'd ==22176== ==22176== Invalid write of size 1 ==22176== at 0x402334D: memcpy (mc_replace_strmem.c:402) ==22176== by 0x4317397: cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, int, int, int, float) (CImg.h:11296) ==22176== by 0x4324ECC: cimg_library::CImg<float>::greycstoration_thread(void*) (greycstoration.h:157) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== Address 0x152a21e4 is not stack'd, malloc'd or (recently) free'd QSocketNotifier: invalid socket 18 and type 'Read', disabling... QSocketNotifier: invalid socket 14 and type 'Read', disabling... QSocketNotifier: invalid socket 8 and type 'Read', disabling... QSocketNotifier: invalid socket 17 and type 'Read', disabling... QSocketNotifier: invalid socket 12 and type 'Read', disabling... digikam: Fatal IO error: client killed ==22176== ==22176== ERROR SUMMARY: 4578261 errors from 38 contexts (suppressed: 17 from 1) ==22176== malloc/free: in use at exit: 127,324,728 bytes in 423,587 blocks. ==22176== malloc/free: 3,053,726 allocs, 2,630,139 frees, 409,343,278 bytes allocated. ==22176== For counts of detected errors, rerun with: -v ==22176== searching for pointers to 423,587 not-freed blocks. ==22176== checked 169,749,932 bytes. ==22176== ==22176== Thread 1: ==22176== ==22176== 1 bytes in 1 blocks are definitely lost in loss record 4 of 2,286 ==22176== at 0x4021D75: operator new(unsigned) (vg_replace_malloc.c:221) ==22176== by 0x4319992: cimg_library::CImg<float>::greycstoration_run(cimg_library::CImg<unsigned char> const&, float, float, float, float, float, float, float, float, float, unsigned, bool, unsigned, unsigned, unsigned) (greycstoration.h:258) ==22176== by 0x4309685: Digikam::GreycstorationIface::inpainting() (greycstorationiface.cpp:366) ==22176== by 0x4309D36: Digikam::GreycstorationIface::filterImage() (greycstorationiface.cpp:219) ==22176== by 0x42DD695: Digikam::DImgThreadedFilter::startComputation() (dimgthreadedfilter.cpp:143) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== ==22176== 20 bytes in 1 blocks are possibly lost in loss record 244 of 2,286 ==22176== at 0x40215D0: malloc (vg_replace_malloc.c:207) ==22176== by 0x5D76AAF: (within /usr/lib/libfontconfig.so.1.2.0) ==22176== ==22176== ==22176== 152 bytes in 1 blocks are definitely lost in loss record 1,038 of 2,286 ==22176== at 0x402090F: calloc (vg_replace_malloc.c:391) ==22176== by 0x4010898: allocate_dtv (in /lib/ld-2.5.so) ==22176== by 0x401095B: _dl_allocate_tls (in /lib/ld-2.5.so) ==22176== by 0x6071CD6: pthread_create@@GLIBC_2.1 (in /lib/libpthread-2.5.so) ==22176== by 0x57DBA54: QThread::start(QThread::Priority) (in /usr/qt/3/lib/libqt-mt.so.3.3.6) ==22176== by 0x57DBC05: QThread::start() (in /usr/qt/3/lib/libqt-mt.so.3.3.6) ==22176== by 0x42C2A55: Digikam::ImageHistogram::setup(unsigned char*, unsigned, unsigned, bool, QObject*) (imagehistogram.cpp:117) ==22176== ==22176== ==22176== 208 (128 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 1,079 of 2,286 ==22176== at 0x40215D0: malloc (vg_replace_malloc.c:207) ==22176== by 0x5D762BB: (within /usr/lib/libfontconfig.so.1.2.0) ==22176== ==22176== ==22176== 216 bytes in 1 blocks are definitely lost in loss record 1,092 of 2,286 ==22176== at 0x40215D0: malloc (vg_replace_malloc.c:207) ==22176== by 0x5FDF209: _XimOpenIM (in /usr/lib/libX11.so.6.2.0) ==22176== ==22176== ==22176== 312 (72 direct, 240 indirect) bytes in 2 blocks are definitely lost in loss record 1,149 of 2,286 ==22176== at 0x40215D0: malloc (vg_replace_malloc.c:207) ==22176== by 0x6322799: (within /lib/libc-2.5.so) ==22176== by 0x6322E85: __nss_database_lookup (in /lib/libc-2.5.so) ==22176== by 0x6AA9079: ??? ==22176== by 0x6AA9DAA: ??? ==22176== by 0x62E0294: getpwuid_r (in /lib/libc-2.5.so) ==22176== by 0x62DFC98: getpwuid (in /lib/libc-2.5.so) ==22176== by 0x578023C: (within /usr/qt/3/lib/libqt-mt.so.3.3.6) ==22176== by 0x5780B21: (within /usr/qt/3/lib/libqt-mt.so.3.3.6) ==22176== by 0x5F4BE27: _SmcProcessMessage (in /usr/lib/libSM.so.6.0.0) ==22176== ==22176== ==22176== 104 bytes in 2 blocks are definitely lost in loss record 1,216 of 2,286 ==22176== at 0x40215D0: malloc (vg_replace_malloc.c:207) ==22176== by 0x5D53FC3: XftDrawCreate (in /usr/lib/libXft.so.2.1.2) ==22176== ==22176== ==22176== 228 bytes in 1 blocks are possibly lost in loss record 1,353 of 2,286 ==22176== at 0x4021A05: operator new[](unsigned) (vg_replace_malloc.c:265) ==22176== by 0x468ED44: QValueVectorPrivate<QRegExp>::growAndCopy(unsigned, QRegExp*, QRegExp*) (qvaluevector.h:223) ==22176== ==22176== ==22176== 268 (8 direct, 260 indirect) bytes in 2 blocks are definitely lost in loss record 1,396 of 2,286 ==22176== at 0x4021D75: operator new(unsigned) (vg_replace_malloc.c:221) ==22176== by 0x438BE49: Digikam::ImageIface::getPreviewImage() (imageiface.cpp:173) ==22176== ==22176== ==22176== 744 bytes in 5 blocks are possibly lost in loss record 1,852 of 2,286 ==22176== at 0x402090F: calloc (vg_replace_malloc.c:391) ==22176== by 0x4010898: allocate_dtv (in /lib/ld-2.5.so) ==22176== by 0x401095B: _dl_allocate_tls (in /lib/ld-2.5.so) ==22176== by 0x6071CD6: pthread_create@@GLIBC_2.1 (in /lib/libpthread-2.5.so) ==22176== by 0x4475BAD: (within /usr/lib/libsqlite3.so.0.8.6) ==22176== ==22176== ==22176== 1,368 bytes in 1 blocks are definitely lost in loss record 1,955 of 2,286 ==22176== at 0x4021D75: operator new(unsigned) (vg_replace_malloc.c:221) ==22176== by 0x4319AE1: cimg_library::CImg<float>::greycstoration_run(cimg_library::CImg<unsigned char> const&, float, float, float, float, float, float, float, float, float, unsigned, bool, unsigned, unsigned, unsigned) (greycstoration.h:255) ==22176== by 0x4309685: Digikam::GreycstorationIface::inpainting() (greycstorationiface.cpp:366) ==22176== by 0x4309D36: Digikam::GreycstorationIface::filterImage() (greycstorationiface.cpp:219) ==22176== by 0x42DD695: Digikam::DImgThreadedFilter::startComputation() (dimgthreadedfilter.cpp:143) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== ==22176== 29,364 (10,368 direct, 18,996 indirect) bytes in 27 blocks are definitely lost in loss record 2,226 of 2,286 ==22176== at 0x40216CB: realloc (vg_replace_malloc.c:420) ==22176== by 0x5D761D3: (within /usr/lib/libfontconfig.so.1.2.0) ==22176== ==22176== ==22176== 18,238 bytes in 5 blocks are definitely lost in loss record 2,233 of 2,286 ==22176== at 0x40215D0: malloc (vg_replace_malloc.c:207) ==22176== by 0x5D90BBA: (within /usr/lib/libfreetype.so.6.3.8) ==22176== ==22176== ==22176== 25,224 bytes in 6 blocks are definitely lost in loss record 2,237 of 2,286 ==22176== at 0x40216CB: realloc (vg_replace_malloc.c:420) ==22176== by 0x5D90C42: (within /usr/lib/libfreetype.so.6.3.8) ==22176== ==22176== ==22176== 687,232 bytes in 2 blocks are possibly lost in loss record 2,277 of 2,286 ==22176== at 0x4021A05: operator new[](unsigned) (vg_replace_malloc.c:265) ==22176== by 0x42B17D3: Digikam::DImg::allocateData() (dimg.cpp:258) ==22176== ==22176== ==22176== 3,985,344 bytes in 1 blocks are possibly lost in loss record 2,284 of 2,286 ==22176== at 0x4021A05: operator new[](unsigned) (vg_replace_malloc.c:265) ==22176== by 0x430F729: cimg_library::CImg<float>::CImg(cimg_library::CImg<float> const&) (CImg.h:6420) ==22176== by 0x4319AF1: cimg_library::CImg<float>::greycstoration_run(cimg_library::CImg<unsigned char> const&, float, float, float, float, float, float, float, float, float, unsigned, bool, unsigned, unsigned, unsigned) (greycstoration.h:255) ==22176== by 0x4309685: Digikam::GreycstorationIface::inpainting() (greycstorationiface.cpp:366) ==22176== by 0x4309D36: Digikam::GreycstorationIface::filterImage() (greycstorationiface.cpp:219) ==22176== by 0x42DD695: Digikam::DImgThreadedFilter::startComputation() (dimgthreadedfilter.cpp:143) ==22176== by 0x60714BA: start_thread (in /lib/libpthread-2.5.so) ==22176== by 0x631376D: clone (in /lib/libc-2.5.so) ==22176== ==22176== LEAK SUMMARY: ==22176== definitely lost: 55,879 bytes in 49 blocks. ==22176== indirectly lost: 19,576 bytes in 976 blocks. ==22176== possibly lost: 4,673,568 bytes in 10 blocks. ==22176== still reachable: 122,575,705 bytes in 422,552 blocks. ==22176== suppressed: 0 bytes in 0 blocks. ==22176== Reachable blocks (those to which a pointer was found) are not shown. Bye Thorsten _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Ok, i have find the problem. It really a unsynchronism between Greycstoration thread. I have add a delay between thread creation instance, and the dirty memory trace reported by valgrind disapear.
Luke, a developper from digiKam team have the same problem than you. The CImg based tools crashed. Since my fix from tady, nothing crash. My fix is a temporaly solution. CImg lib must be fixed about this problem. Can you try again and give me a report ? A nice WE. Gilles 2007/3/30, Thorsten Schnebeck <
[hidden email]>: Am Freitag 30 März 2007 schrieb Thorsten Schnebeck: _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Am Sonntag 01 April 2007 schrieb Gilles Caulier:
> Ok, i have find the problem. It really a unsynchronism between > Greycstoration thread. I have add a delay between thread creation instance, > and the dirty memory trace reported by valgrind disapear. > > Luke, a developper from digiKam team have the same problem than you. The > CImg based tools crashed. Since my fix from tady, nothing crash. > > My fix is a temporaly solution. CImg lib must be fixed about this problem. > > Can you try again and give me a report ? > > A nice WE. > > Gilles Hi Gilles, I tested a three CImg plugins. And everthing looks stable :-) Of course your temporally fix leeds to slower processing, is'nt it? A question about the Impainting plugin. Is it possible to have here a process bar, too? Bye Thorsten _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
2007/4/1, Thorsten Schnebeck <[hidden email]>: Am Sonntag 01 April 2007 schrieb Gilles Caulier: AAAhhhh. Thanks... Good news (:=))) Of course your A little bit. I have added a delay of 100ms per iterations. A question about the Impainting plugin. Is it possible to have here a process Well, there is already one in dialog (:=))) Gilles _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Free forum by Nabble | Edit this page |