Bug 305950 - Krita crashed when using alt+tab to switch program
Summary: Krita crashed when using alt+tab to switch program
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-28 21:55 UTC by marko.dekker
Modified: 2012-09-27 13:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marko.dekker 2012-08-28 21:55:16 UTC
Application: krita (2.4.0)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-29-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
I was painting a quite a big image (6000x4000 pixels). Maybe it had something to do with it.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f40496ff780 (LWP 3116))]

Thread 8 (Thread 0x7f4030ba9700 (LWP 3119)):
#0  0x00007f4048c78b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f4041e34036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4041e3449a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4030bae98b in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007f4041e559e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f4042300e9a in start_thread (arg=0x7f4030ba9700) at pthread_create.c:308
#6  0x00007f4048c844bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f402bdfa700 (LWP 3120)):
#0  0x00007f4048c770bd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f4041e6e8cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4041e33ba4 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4041e33fd6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4041e3449a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f4037b04406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007f4041e559e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f4042300e9a in start_thread (arg=0x7f402bdfa700) at pthread_create.c:308
#8  0x00007f4048c844bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f4010797700 (LWP 3137)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4046bbb4db in wait (time=18446744073709551615, this=0x9431940) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x94318f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f4046bb7314 in QSemaphore::acquire (this=0x9431640, n=1) at thread/qsemaphore.cpp:144
#4  0x00007f4020986c8e in KisTileDataPooler::waitForWork (this=0x9431630) at /build/buildd/calligra-2.4.0/krita/image/tiles3/kis_tile_data_pooler.cc:162
#5  0x00007f4020987374 in KisTileDataPooler::run (this=0x9431630) at /build/buildd/calligra-2.4.0/krita/image/tiles3/kis_tile_data_pooler.cc:184
#6  0x00007f4046bbafcb in QThreadPrivate::start (arg=0x9431630) at thread/qthread_unix.cpp:298
#7  0x00007f4042300e9a in start_thread (arg=0x7f4010797700) at pthread_create.c:308
#8  0x00007f4048c844bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f400ff96700 (LWP 3138)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4046bbb4db in wait (time=18446744073709551615, this=0x9431cd0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x9431c80, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f4046bb7759 in QSemaphore::tryAcquire (this=0x94319b0, n=1, timeout=-1) at thread/qsemaphore.cpp:221
#4  0x00007f40209a7e9a in KisTileDataSwapper::run (this=0x9431668) at /build/buildd/calligra-2.4.0/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007f4046bbafcb in QThreadPrivate::start (arg=0x9431668) at thread/qthread_unix.cpp:298
#6  0x00007f4042300e9a in start_thread (arg=0x7f400ff96700) at pthread_create.c:308
#7  0x00007f4048c844bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f400e4a4700 (LWP 3145)):
#0  0x00007f4048c7d823 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f4046ce6366 in qt_safe_select (nfds=31, fdread=0x7f3ff8000ac8, fdwrite=0x7f3ff8000d60, fdexcept=0x7f3ff8000ff8, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:83
#2  0x00007f4046ceb7b2 in QEventDispatcherUNIXPrivate::doSelect (this=0x7f3ff8000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007f4046cebca3 in QEventDispatcherUNIX::processEvents (this=0x7f3ff80008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007f4046cb8c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f4046cb8ed7 in QEventLoop::exec (this=0x7f400e4a3dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f4046bb7fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f4046c989ff in QInotifyFileSystemWatcherEngine::run (this=0x9919660) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f4046bbafcb in QThreadPrivate::start (arg=0x9919660) at thread/qthread_unix.cpp:298
#9  0x00007f4042300e9a in start_thread (arg=0x7f400e4a4700) at pthread_create.c:308
#10 0x00007f4048c844bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f4005662700 (LWP 3158)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4046bbb4db in wait (time=18446744073709551615, this=0x2e6703b0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2e66ff30, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f4047bbe354 in QFileInfoGatherer::run (this=0x2e66ff20) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007f4046bbafcb in QThreadPrivate::start (arg=0x2e66ff20) at thread/qthread_unix.cpp:298
#5  0x00007f4042300e9a in start_thread (arg=0x7f4005662700) at pthread_create.c:308
#6  0x00007f4048c844bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f3fef8e5700 (LWP 3159)):
#0  0x00007f4048c7d823 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f4046ce6366 in qt_safe_select (nfds=41, fdread=0x7f3ff4000ac8, fdwrite=0x7f3ff4000d60, fdexcept=0x7f3ff4000ff8, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:83
#2  0x00007f4046ceb7b2 in QEventDispatcherUNIXPrivate::doSelect (this=0x7f3ff4000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007f4046cebca3 in QEventDispatcherUNIX::processEvents (this=0x7f3ff40008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007f4046cb8c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f4046cb8ed7 in QEventLoop::exec (this=0x7f3fef8e4dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f4046bb7fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f4046c989ff in QInotifyFileSystemWatcherEngine::run (this=0x2e670650) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f4046bbafcb in QThreadPrivate::start (arg=0x2e670650) at thread/qthread_unix.cpp:298
#9  0x00007f4042300e9a in start_thread (arg=0x7f3fef8e5700) at pthread_create.c:308
#10 0x00007f4048c844bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f40496ff780 (LWP 3116)):
[KCrash Handler]
#6  data (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qshareddata.h:145
#7  QFont::QFont (this=0x7fff0edbbbe0, font=...) at text/qfont.cpp:846
#8  0x00007f4016ea929d in ArtisticTextRange::font (this=<optimized out>) at /build/buildd/calligra-2.4.0/plugins/artistictextshape/ArtisticTextRange.cpp:64
#9  0x00007f4016ea15b4 in ArtisticTextShape::charExtentsAt (this=<optimized out>, charIndex=<optimized out>) at /build/buildd/calligra-2.4.0/plugins/artistictextshape/ArtisticTextShape.cpp:851
#10 0x00007f4016eab99b in ArtisticTextTool::createTextCursorShape (this=0x2ed1f060) at /build/buildd/calligra-2.4.0/plugins/artistictextshape/ArtisticTextTool.cpp:684
#11 0x00007f4016eae4f6 in ArtisticTextTool::setTextCursorInternal (this=0x2ed1f060, textCursor=1) at /build/buildd/calligra-2.4.0/plugins/artistictextshape/ArtisticTextTool.cpp:674
#12 0x00007f4016eae603 in setTextCursor (textCursor=<optimized out>, this=0x2ed1f060, textShape=<optimized out>) at /build/buildd/calligra-2.4.0/plugins/artistictextshape/ArtisticTextTool.cpp:641
#13 ArtisticTextTool::setTextCursor (this=0x2ed1f060, textShape=<optimized out>, textCursor=<optimized out>) at /build/buildd/calligra-2.4.0/plugins/artistictextshape/ArtisticTextTool.cpp:632
#14 0x00007f4016eae9ee in keyPressEvent (event=<optimized out>, this=0x2ed1f060) at /build/buildd/calligra-2.4.0/plugins/artistictextshape/ArtisticTextTool.cpp:441
#15 ArtisticTextTool::keyPressEvent (this=0x2ed1f060, event=<optimized out>) at /build/buildd/calligra-2.4.0/plugins/artistictextshape/ArtisticTextTool.cpp:347
#16 0x00007f4020e2b4d1 in KisCanvasWidgetBase::processKeyPressEvent (this=0x2e8a4f18, e=0x7fff0edbc5e0) at /build/buildd/calligra-2.4.0/krita/ui/canvas/kis_canvas_widget_base.cpp:272
#17 0x00007f40477051c8 in QWidget::event (this=0x2e8a4ef0, event=0x7fff0edbc5e0) at kernel/qwidget.cpp:8397
#18 0x00007f40476b4894 in notify_helper (e=0x7fff0edbc5e0, receiver=0x2e8a4ef0, this=0x1240ed0) at kernel/qapplication.cpp:4559
#19 QApplicationPrivate::notify_helper (this=0x1240ed0, receiver=0x2e8a4ef0, e=0x7fff0edbc5e0) at kernel/qapplication.cpp:4531
#20 0x00007f40476b9dd5 in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fff0edbc5e0) at kernel/qapplication.cpp:4000
#21 0x00007f40483ee9e6 in KApplication::notify (this=0x7fff0edbd370, receiver=0x2e8a4ef0, event=0x7fff0edbc5e0) at ../../kdeui/kernel/kapplication.cpp:311
#22 0x00007f4046cb9e9c in QCoreApplication::notifyInternal (this=0x7fff0edbd370, receiver=0x2e8a4ef0, event=0x7fff0edbc5e0) at kernel/qcoreapplication.cpp:876
#23 0x00007f4047758c49 in QKeyMapper::sendKeyEvent (keyWidget=0x2e8a4ef0, grab=<optimized out>, type=QEvent::KeyPress, code=16777220, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=36, nativeVirtualKey=65293, nativeModifiers=0) at kernel/qkeymapper_x11.cpp:1866
#24 0x00007f40477590bb in QKeyMapperPrivate::translateKeyEvent (this=0x12785e0, keyWidget=0x2e8a4ef0, event=0x7fff0edbd0e0, grab=false) at kernel/qkeymapper_x11.cpp:1836
#25 0x00007f4047733637 in QApplication::x11ProcessEvent (this=0x7fff0edbd370, event=0x7fff0edbd0e0) at kernel/qapplication_x11.cpp:3625
#26 0x00007f404775db3a in QEventDispatcherX11::processEvents (this=0x11c5b30, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#27 0x00007f4046cb8c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#28 0x00007f4046cb8ed7 in QEventLoop::exec (this=0x7fff0edbd330, flags=...) at kernel/qeventloop.cpp:204
#29 0x00007f4046cbdf67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#30 0x00007f404912021d in kdemain (argc=<optimized out>, argv=<optimized out>) at /build/buildd/calligra-2.4.0/krita/main.cc:71
#31 0x00007f4048bb376d in __libc_start_main (main=0x400630 <main(int, char**)>, argc=1, ubp_av=0x7fff0edbd538, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff0edbd528) at libc-start.c:226
#32 0x0000000000400661 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2012-08-29 07:14:13 UTC
Thanks for your report. I'm not too sure what's going on here -- it must have something to do with the text tool. It seems you were using that when switching windows, but how that can cause this crash, I don't understand yet.
Comment 2 Halla Rempt 2012-09-27 13:24:59 UTC
Hi Marko,

I'm afraid I'm going to have to close your report. I'm grateful that you took the effort to report the issue, but by now we're working on Krita 2.6 and I haven't been able to reproduce this issue. There have been several fixes committed to the artistic text tool, and those actually might have fixed the issue already.