Bug 294235

Summary: Krita crashed afterclose Windows
Product: [Applications] krita Reporter: Pawel Jaworski <pawel.jaworski>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: halla
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Pawel Jaworski 2012-02-16 13:48:30 UTC
Application: krita (2.3.3)
KDE Platform Version: 4.8.00 (4.8.0
Qt Version: 4.7.4
Operating System: Linux 3.0.0-16-generic-pae i686
Distribution: Ubuntu 11.10

-- Information about the crash:
After editing the picture I closed the program. Overwrite the existing file and the program crashed. The problem was repeated at the repetition of the operation.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4399720 (LWP 19196))]

Thread 2 (Thread 0xaf7fab70 (LWP 19403)):
#0  0xb4fd1d10 in __GI_clock_gettime (clock_id=1, tp=0xaf7fa058) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb65d37d5 in do_gettime (frac=0xaf7fa050, sec=0xaf7fa048) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb66a64b6 in QTimerInfoList::updateCurrentTime (this=0xcd0c5c8) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb66a7eab in QEventDispatcherUNIXPrivate::doSelect (this=0xcd0bf28, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:182
#5  0xb66a8454 in QEventDispatcherUNIX::processEvents (this=0xc716fa0, flags=...) at kernel/qeventdispatcher_unix.cpp:918
#6  0xb66761dd in QEventLoop::processEvents (this=0xaf7fa2a0, flags=...) at kernel/qeventloop.cpp:149
#7  0xb6676421 in QEventLoop::exec (this=0xaf7fa2a0, flags=...) at kernel/qeventloop.cpp:201
#8  0xb657990b in QThread::exec (this=0xc72f558) at thread/qthread.cpp:498
#9  0xb6656e2d in QInotifyFileSystemWatcherEngine::run (this=0xc72f558) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb657c7b3 in QThreadPrivate::start (arg=0xc72f558) at thread/qthread_unix.cpp:331
#11 0xb553dd31 in start_thread (arg=0xaf7fab70) at pthread_create.c:304
#12 0xb775c0ce in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xb4399720 (LWP 19196)):
[KCrash Handler]
#7  0x00000000 in ?? ()
#8  0xb669000b in QObject::~QObject (this=0x9d78e20, __in_chrg=<optimized out>) at kernel/qobject.cpp:861
#9  0xb6690642 in QObject::~QObject (this=0x9d78e20, __in_chrg=<optimized out>) at kernel/qobject.cpp:964
#10 0xb55c9d54 in QDBusConnectionPrivate::deleteYourself (this=0x9d78e20) at qdbusintegrator.cpp:1028
#11 0xb55c20ae in QDBusConnection::~QDBusConnection (this=0x9d72c00, __in_chrg=<optimized out>) at qdbusconnection.cpp:294
#12 0xb55e499d in ~QDBusAbstractInterfacePrivate (this=0x9d72bb0, __in_chrg=<optimized out>) at qdbusabstractinterface_p.h:87
#13 QDBusAbstractInterfacePrivate::~QDBusAbstractInterfacePrivate (this=0x9d72bb0, __in_chrg=<optimized out>) at qdbusabstractinterface_p.h:87
#14 0xb6690491 in cleanup (pointer=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:62
#15 ~QScopedPointer (this=0x9d72adc, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:100
#16 QObject::~QObject (this=0x9d72ad8, __in_chrg=<optimized out>) at kernel/qobject.cpp:818
#17 0xb55df656 in ~QDBusAbstractInterfaceBase (this=0x9d72ad8, __in_chrg=<optimized out>) at qdbusabstractinterface.h:67
#18 QDBusAbstractInterface::~QDBusAbstractInterface (this=0x9d72ad8, __in_chrg=<optimized out>) at qdbusabstractinterface.cpp:327
#19 0xb55c5b36 in QDBusConnectionInterface::~QDBusConnectionInterface (this=0x9d72ad8, __in_chrg=<optimized out>) at qdbusconnectioninterface.cpp:177
#20 0xb55c5b62 in QDBusConnectionInterface::~QDBusConnectionInterface (this=0x9d72ad8, __in_chrg=<optimized out>) at qdbusconnectioninterface.cpp:179
#21 0xb668b841 in QObjectPrivate::deleteChildren (this=0x9d78ea0) at kernel/qobject.cpp:1955
#22 0xb6690439 in QObject::~QObject (this=0x9d78e20, __in_chrg=<optimized out>) at kernel/qobject.cpp:946
#23 0xb55d021a in QDBusConnectionPrivate::~QDBusConnectionPrivate (this=0x9d78e20, __in_chrg=<optimized out>) at qdbusintegrator.cpp:998
#24 0xb55d0542 in QDBusConnectionPrivate::~QDBusConnectionPrivate (this=0x9d78e20, __in_chrg=<optimized out>) at qdbusintegrator.cpp:1016
#25 0xb55c9d54 in QDBusConnectionPrivate::deleteYourself (this=0x9d78e20) at qdbusintegrator.cpp:1028
#26 0xb55c20ae in QDBusConnection::~QDBusConnection (this=0x9d79320, __in_chrg=<optimized out>) at qdbusconnection.cpp:294
#27 0xb55c51b6 in ~QDBusDefaultConnection (this=<optimized out>, __in_chrg=<optimized out>) at qdbusconnection.cpp:993
#28 QGlobalStaticDeleter<QDBusDefaultConnection>::~QGlobalStaticDeleter (this=0xb562b980, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1825
#29 0xb76bc981 in __run_exit_handlers (status=0, listp=0xb7802324, run_list_atexit=true) at exit.c:78
#30 0xb76bca0d in __GI_exit (status=0) at exit.c:100
#31 0xb76a311b in __libc_start_main (main=0x80484e0, argc=2, ubp_av=0xbf8848d4, init=0x80485d0 <__libc_csu_init>, fini=0x8048630 <__libc_csu_fini>, rtld_fini=0xb783abc0, stack_end=0xbf8848cc) at libc-start.c:258
#32 0x08048521 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2012-02-19 10:41:08 UTC
Hi Pawel,

Thank you for your report. I've seen this issue before, even on Linux. I'm still not sure what's actually happening, because it's very hard to reproduce for me. It doesn't happen here with the Windows installer packages, for instance, even when I try to close and overwrite a file on close... It's very mysterious :-(
Comment 2 Halla Rempt 2012-02-24 08:52:59 UTC
I think I've found a way to reproduce... Now for a fix.
Comment 3 Halla Rempt 2012-02-29 10:57:15 UTC
Ah, fixed this last week, but forgot to close the bug.