| Summary: | Copying and pasting a selection caused Krita to hang | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Kubuntiac <user581> |
| Component: | General | Assignee: | Halla Rempt <halla> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | cberger, halla, lambdae2 |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | MacPorts | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Hanging or deadlocks count as crashes for me. Judging from the backtrace, it happened when autosave kicked in.
This would have printed on the command line:
qFatal("It seems your installation is broken/incomplete cause we failed to load the native mimetype \"%s\".", nativeFormatMimeType().constData());
That suggests something is broken in your installation. Can you check whether you can manually save in Krita's native file format?
Hmmm.. I do see messages like that but not quite identical fairly often. They're usually just:
It seems your installation is broken/incomplete cause we failed to load
the native mimetype \"%s\
without the other stuff there.
I tried saving and loading in the kra format. I can't say for sure if it works, but here's what happens.
When I save everything seems to work fine, but when I try to reopen the file, 50% of the time it works.
The other 50% of the time, if I'm not running gdb it crashes outputting:
========================================================================
QLayout: Attempting to add QLayout "" to QWidget "KritaShape/KisToolBrushoption widget", which already has a layout
X Error: BadAtom (invalid Atom parameter) 5
Major opcode: 20 (X_GetProperty)
Resource id: 0x0
Enchant dict for "en_US" 0x2c71180
Enchant dict for "en_US" 0x2c71180
Enchant dict for "en_US" 0x2c71180
Enchant dict for "en_US" 0x2c71180
Enchant dict for "en_US" 0x2c71180
Segmentation fault (core dumped)
========================================================================
If I am running gdb though, it doesn't crash, it just hangs. If I kill it and run a backtrace I get:
Thread 11 (Thread 0x7fffd3d3d910 (LWP 2391)):
#0 0x00007fffefbd33c2 in select () from /lib/libc.so.6
#1 0x00007ffff7911eab in QEventDispatcherUNIX::select(int, fd_set*, fd_set*, fd_set*, timeval*) () from /usr/lib/libQtCore.so.4
#2 0x00007ffff7912e6a in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/libQtCore.so.4
#3 0x00007ffff791331b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4 0x00007ffff78e6532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5 0x00007ffff78e6904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6 0x00007ffff77fe6cb in QThread::exec() () from /usr/lib/libQtCore.so.4
#7 0x00007ffff7801445 in ?? () from /usr/lib/libQtCore.so.4
#8 0x00007fffeeffaa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9 0x00007fffefbda7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7ffff7e1b770 (LWP 2377)):
#0 0x00007ffff03ca803 in __dynamic_cast () from /usr/lib/libstdc++.so.6
#1 0x00007ffff67e4d1f in KoMainWindow::canvasObservers (this=<value optimized out>) at /media/Seagate15tb/source/koffice/libs/main/KoMainWindow.cpp:1862
#2 0x00007ffff46bfeb1 in KoCanvasController::activate (this=0x1e362d0) at /media/Seagate15tb/source/koffice/libs/flake/KoCanvasController.cpp:674
#3 0x00007ffff46d535c in KoToolManager::attachCanvas (this=0x13e45f0, controller=0x1e362d0) at /media/Seagate15tb/source/koffice/libs/flake/KoToolManager.cpp:483
#4 0x00007ffff46d577b in KoToolManager::addController (this=0x13e45f0, controller=0x1e362d0) at /media/Seagate15tb/source/koffice/libs/flake/KoToolManager.cpp:272
#5 0x00007ffff749e31a in KisView2 (this=0x1400870, doc=<value optimized out>, parent=<value optimized out>, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>)
at /media/Seagate15tb/source/koffice/krita/ui/kis_view2.cpp:212
#6 0x00007ffff742cd7b in KisDoc2::createViewInstance (this=0x8f2b70, parent=0x90ae20) at /media/Seagate15tb/source/koffice/krita/ui/kis_doc2.cc:445
#7 0x00007ffff67bd00a in KoDocument::createView (this=0x282a370, parent=0x7ffff189ca30) at /media/Seagate15tb/source/koffice/libs/main/KoDocument.cpp:345
#8 0x00007ffff67ec3c7 in KoMainWindow::setRootDocument (this=0x8f2d90, doc=0x8f2b70) at /media/Seagate15tb/source/koffice/libs/main/KoMainWindow.cpp:455
#9 0x00007ffff67bee04 in KoDocument::deleteOpenPane (this=0x8f2b70) at /media/Seagate15tb/source/koffice/libs/main/KoDocument.cpp:2336
#10 0x00007ffff67c77ed in KoDocument::openFile (this=0x8f2b70) at /media/Seagate15tb/source/koffice/libs/main/KoDocument.cpp:1346
#11 0x00007ffff2b8e0c7 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#12 0x00007ffff67c4be4 in KoDocument::openUrl (this=0x8f2b70, _url=...) at /media/Seagate15tb/source/koffice/libs/main/KoDocument.cpp:1136
#13 0x00007ffff67bd34d in KoDocument::openExistingFile (this=0x282a370, url=...) at /media/Seagate15tb/source/koffice/libs/main/KoDocument.cpp:2261
#14 0x00007ffff742c65c in KisDoc2::openExistingFile (this=0x8f2b70, url=...) at /media/Seagate15tb/source/koffice/krita/ui/kis_doc2.cc:166
#15 0x00007ffff742dd46 in KisDoc2::qt_metacall (this=0x8f2b70, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffffffb940)
at /media/Seagate15tb/koffice/build/krita/ui/kis_doc2.moc:79
#16 0x00007ffff78fcddc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#17 0x00007ffff682c7f2 in KoOpenPane::openExistingFile (this=0x282a370, _t1=<value optimized out>) at /media/Seagate15tb/koffice/build/libs/main/KoOpenPane.moc:98
#18 0x00007ffff682cc30 in KoOpenPane::qt_metacall (this=0x2a328f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffffffba70)
at /media/Seagate15tb/koffice/build/libs/main/KoOpenPane.moc:80
#19 0x00007ffff78fcddc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#20 0x00007ffff682ab12 in KoDetailsPane::openUrl (this=0x282a370, _t1=<value optimized out>) at /media/Seagate15tb/koffice/build/libs/main/KoDetailsPane.moc:99
#21 0x00007ffff683006e in KoRecentDocumentsPane::openFile (this=0x2385fc0, index=<value optimized out>) at /media/Seagate15tb/source/koffice/libs/main/KoRecentDocumentsPane.cpp:182
#22 0x00007ffff682aca4 in KoDetailsPane::openFile (this=0x2385fc0) at /media/Seagate15tb/source/koffice/libs/main/KoDetailsPane.cpp:119
#23 0x00007ffff682ad91 in KoDetailsPane::qt_metacall (this=0x2385fc0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffffffbca0)
at /media/Seagate15tb/koffice/build/libs/main/KoDetailsPane.moc:85
#24 0x00007ffff682fe80 in KoRecentDocumentsPane::qt_metacall (this=0x282a370, _c=4052339248, _id=-22000, _a=0xfffffffffffffffe)
at /media/Seagate15tb/koffice/build/libs/main/KoRecentDocumentsPane.moc:69
#25 0x00007ffff78fcddc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#26 0x00007ffff14b58e7 in QAbstractButton::clicked(bool) () from /usr/lib/libQtGui.so.4
#27 0x00007ffff121741b in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007ffff121902b in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007ffff1219275 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#30 0x00007ffff0f029c0 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#31 0x00007ffff0eb3efc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#32 0x00007ffff0ebb011 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#33 0x00007ffff22a4a66 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#34 0x00007ffff78e7c2c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#35 0x00007ffff0eba8e0 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&) () from /usr/lib/libQtGui.so.4
#36 0x00007ffff0f20a0e in ?? () from /usr/lib/libQtGui.so.4
#37 0x00007ffff0f1faa9 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#38 0x00007ffff0f49643 in ?? () from /usr/lib/libQtGui.so.4
#39 0x00007ffff78e6532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0x00007ffff78e6904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#41 0x00007ffff78e8ab9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#42 0x00007ffff7bdcaa5 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /media/Seagate15tb/source/koffice/krita/main.cc:49
#43 0x00007fffefb19abd in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>,
Hmmm... Are you totally up to date? Because I committed a fix for this yesterday. That also involves clearing away your installation directory because I've obsoleted a certain plugin. I updated day before yesterday. I didn't update before doing this backtrace, but I'll give it a shot now. Hmmm... seems revision 1032488 won't compile for me at all. I even wiped my whole source, build and install folders and started from scratch. I get to 85% on the make stage, then I get: Linking CXX shared library ../../lib/libkritaui.so CMakeFiles/kritaui.dir/opengl/kis_opengl.o: In function `KisOpenGL::initGlew()': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl.cpp:73: undefined reference to `glewInit' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl.cpp:75: undefined reference to `glewGetErrorString' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl.cpp:77: undefined reference to `glewGetString' CMakeFiles/kritaui.dir/opengl/kis_opengl.o: In function `KisOpenGL::hasShadingLanguage()': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl.cpp:90: undefined reference to `__GLEW_ARB_shader_objects' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl.cpp:90: undefined reference to `__GLEW_ARB_vertex_shader' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl.cpp:90: undefined reference to `__GLEW_ARB_fragment_shader' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl.cpp:90: undefined reference to `__GLEW_ARB_shading_language_100' CMakeFiles/kritaui.dir/opengl/kis_opengl_image_textures.o: In function `KisOpenGLImageTextures::haveHDRTextureFormat(KoColorSpace const*)': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:474: undefined reference to `__GLEW_ARB_texture_float' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:477: undefined reference to `__GLEW_ATI_texture_float' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:482: undefined reference to `__GLEW_ARB_texture_float' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:485: undefined reference to `__GLEW_ATI_texture_float' CMakeFiles/kritaui.dir/opengl/kis_opengl_image_textures.o: In function `KisOpenGLImageTextures::setImageTextureFormat()': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:509: undefined reference to `__GLEW_ARB_texture_float' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:518: undefined reference to `__GLEW_ARB_half_float_pixel' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:530: undefined reference to `__GLEW_ARB_texture_float' CMakeFiles/kritaui.dir/opengl/kis_opengl_shader.o: In function `~KisOpenGLShader': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_shader.cpp:51: undefined reference to `__glewDeleteShader' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_shader.cpp:51: undefined reference to `__glewDeleteShader' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_shader.cpp:51: undefined reference to `__glewDeleteShader' CMakeFiles/kritaui.dir/opengl/kis_opengl_shader.o: In function `KisOpenGLShader::getInfoLog()': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_shader.cpp:147: undefined reference to `__glewGetShaderiv' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_shader.cpp:154: undefined reference to `__glewGetShaderInfoLog' CMakeFiles/kritaui.dir/opengl/kis_opengl_shader.o: In function `KisOpenGLShader': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_shader.cpp:39: undefined reference to `__glewCreateShader' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_shader.cpp:39: undefined reference to `__glewCreateShader' CMakeFiles/kritaui.dir/opengl/kis_opengl_shader.o: In function `KisOpenGLShader::loadSourceCodeFromCStrings(int, char const**, int const*)': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_shader.cpp:60: undefined reference to `__glewShaderSource' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_shader.cpp:63: undefined reference to `__glewCompileShader' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_shader.cpp:68: undefined reference to `__glewGetShaderiv' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::active() const': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:214: undefined reference to `__glewGetHandleARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::deactivate()': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:205: undefined reference to `__glewUseProgramObjectARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::activate()': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:197: undefined reference to `__glewUseProgramObjectARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `~KisOpenGLProgram': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:44: undefined reference to `__glewDeleteObjectARB' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:44: undefined reference to `__glewDeleteObjectARB' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:44: undefined reference to `__glewDeleteObjectARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::detachShader(KisOpenGLShader&)': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:141: undefined reference to `__glewDetachObjectARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::attachShader(KisOpenGLShader&)': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:132: undefined reference to `__glewAttachObjectARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::uniformVariableLocation(char const*) const': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:60: undefined reference to `__glewGetUniformLocationARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::setUniformVariable(char const*, int) const': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:122: undefined reference to `__glewUniform1iARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::setUniformVariable(char const*, float) const': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:109: undefined reference to `__glewUniform1fARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::setUniformVariable(char const*, float, float) const': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:91: undefined reference to `__glewUniform2fARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::setUniformVariable(char const*, float, float, float, float) const': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:78: undefined reference to `__glewUniform4fARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::getInfoLog() const': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:176: undefined reference to `__glewGetObjectParameterivARB' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:183: undefined reference to `__glewGetInfoLogARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:32: undefined reference to `__glewCreateProgramObjectARB' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:32: undefined reference to `__glewCreateProgramObjectARB' CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::link()': /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:150: undefined reference to `__glewLinkProgramARB' /media/Seagate15tb/source/koffice/krita/ui/opengl/kis_opengl_program.cpp:155: undefined reference to `__glewGetObjectParameterivARB' Oh, and: collect2: ld returned 1 exit status make[2]: *** [lib/libkritaui.so.6.0.0] Error 1 make[1]: *** [krita/ui/CMakeFiles/kritaui.dir/all] Error 2 make: *** [all] Error 2 That's weird... On my kubuntu system it compiles fine, and nothing has changed in the opengl code, but those opengl dependencies are always weird. Maybe an apt update removed glew? I heard you could recompile again -- can you check whether this issue is really fixed? This crash didn't happen every time, but either way, I haven't managed to get it to crash with copy/paste in my latest tests. Still happening on revision 1058144.
This time I did a circle select of an a visible area on a paint layer. The paint layer had a transparency mask. I did ctrl+c which was fine and then ctrl+v. Krita crashed instantly with the following backtrace:
Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f6167e70770 (LWP 18197))]
Thread 3 (Thread 0x7f6159b3d910 (LWP 18198)):
#0 0x00007f615ee2f5a9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1 0x00007f61678514fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2 0x00007f616784d490 in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#3 0x00007f616700f00e in KisTileDataPooler::waitForWork (this=0x7f61673654a0) at /media/Seagate15tb/src/koffice/krita/image/tiles3/kis_tile_data_pooler.cc:120
#4 0x00007f616700f368 in KisTileDataPooler::run (this=0x7f61673654a0) at /media/Seagate15tb/src/koffice/krita/image/tiles3/kis_tile_data_pooler.cc:149
#5 0x00007f6167850445 in ?? () from /usr/lib/libQtCore.so.4
#6 0x00007f615ee2aa04 in start_thread () from /lib/libpthread.so.0
#7 0x00007f615fa0a7bd in clone () from /lib/libc.so.6
#8 0x0000000000000000 in ?? ()
Thread 2 (Thread 0x7f613b641910 (LWP 19724)):
#0 0x00007f615fa033c2 in select () from /lib/libc.so.6
#1 0x00007f6167960eab in QEventDispatcherUNIX::select(int, fd_set*, fd_set*, fd_set*, timeval*) () from /usr/lib/libQtCore.so.4
#2 0x00007f6167961e6a in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/libQtCore.so.4
#3 0x00007f616796231b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4 0x00007f6167935532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5 0x00007f6167935904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6 0x00007f616784d6cb in QThread::exec() () from /usr/lib/libQtCore.so.4
#7 0x00007f6167850445 in ?? () from /usr/lib/libQtCore.so.4
#8 0x00007f615ee2aa04 in start_thread () from /lib/libpthread.so.0
#9 0x00007f615fa0a7bd in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7f6167e70770 (LWP 18197)):
[KCrash Handler]
#5 KisPaintDevice (this=0x5b8e690, colorSpace=0x0, name=<value optimized out>) at /media/Seagate15tb/src/koffice/krita/image/kis_paint_device.cc:78
#6 0x00007f6167465bc9 in KisClipboard::clip (this=0x7f61543c1760) at /media/Seagate15tb/src/koffice/krita/ui/kis_clipboard.cc:180
#7 0x00007f61674dc3e5 in KisSelectionManager::paste (this=0x8b2ed60) at /media/Seagate15tb/src/koffice/krita/ui/kis_selection_manager.cc:464
#8 0x00007f61674dfa5f in KisSelectionManager::qt_metacall (this=0x8b2ed60, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>)
at /media/Seagate15tb/koffice/build/krita/ui/kis_selection_manager.moc:107
#9 0x00007f616794bddc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#10 0x00007f6160ce20a7 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#11 0x00007f6160ce34ef in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#12 0x00007f6160ce5fa7 in QAction::event(QEvent*) () from /usr/lib/libQtGui.so.4
#13 0x00007f61620071cd in KAction::event(QEvent*) () from /usr/lib/libkdeui.so.5
#14 0x00007f6160ce7efc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#15 0x00007f6160cef1ce in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#16 0x00007f61620d8e56 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#17 0x00007f6167936c2c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#18 0x00007f6160d1c666 in ?? () from /usr/lib/libQtGui.so.4
#19 0x00007f6160d1e4f7 in ?? () from /usr/lib/libQtGui.so.4
#20 0x00007f6160cefe6e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#21 0x00007f61620d8e56 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#22 0x00007f6167936c2c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#23 0x00007f6160d78dfa in ?? () from /usr/lib/libQtGui.so.4
#24 0x00007f6160d7b370 in ?? () from /usr/lib/libQtGui.so.4
#25 0x00007f6160d53493 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#26 0x00007f6160d7d643 in ?? () from /usr/lib/libQtGui.so.4
#27 0x00007f6167935532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#28 0x00007f6167935904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#29 0x00007f6167937ab9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#30 0x00007f6167c2bb65 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /media/Seagate15tb/src/koffice/krita/main.cc:49
#31 0x00007f615f949abd in __libc_start_main () from /lib/libc.so.6
#32 0x0000000000400929 in _start () at ../sysdeps/x86_64/elf/start.S:113
OK. I have 100% reproducibility... but it's a weird one! To reproduce: 1. Select an area (any select tool) and apply any a transparency mask, filter mask or local selection. 2. Select any another area (same tool or different. Makes no difference). 3. Do ctrl+c then ctrl+v (or copy and then paste from the menu). Crash Thanks for all the effort, I will look into it this weekend. In my first attempt, I managed to get a crash at the second selection, but I didn't follow the exact step, and now I can't remember what I did... In my second attempt, I followed precisely the step, I did not get a crash, on the other hand I got an empty layer on paste. I couldn't reproduce the crash/hang :/ but I do get an empty layer when pasting. Repeating the copy-paste yields the same result, but if I select any other layer and select again the layer I was on, copy-paste yields the expected layer. Elian, are you sure you aren't copy and pasting the transparency mask's data into new layers? That's what it looks like for me if I select a bit of a layer, create a mask, select the mask, copy and paste. Kubuntiac, could you check whether you can still reliably reproduce? There have been a lot of changes to the layers/masks code, and I cannot reproduce the crash anymore. Following Cyrille's refactoring in revision 1081459 (2010-01-28), this can no longer happen. |
Version: revision 1031621 (using KDE 4.3.1) OS: Linux Installed from: Ubuntu Packages I've had Krita hang a few times recently. This time, I'd just opened a jpg, made a selection, copied and pasted with ctrl+c and ctrl+v. On pasting, I got the following hang / backtrace: Thread 2 (Thread 0x7fffd6abe910 (LWP 9489)): #0 0x00007fffefbd13c2 in select () from /lib/libc.so.6 #1 0x00007ffff7911eab in QEventDispatcherUNIX::select(int, fd_set*, fd_set*, fd_set*, timeval*) () from /usr/lib/libQtCore.so.4 #2 0x00007ffff7912e6a in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/libQtCore.so.4 #3 0x00007ffff791331b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #4 0x00007ffff78e6532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #5 0x00007ffff78e6904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #6 0x00007ffff77fe6cb in QThread::exec() () from /usr/lib/libQtCore.so.4 #7 0x00007ffff7801445 in ?? () from /usr/lib/libQtCore.so.4 #8 0x00007fffeeff8a04 in start_thread () from /lib/libpthread.so.0 #9 0x00007fffefbd87bd in clone () from /lib/libc.so.6 #10 0x0000000000000000 in ?? () Thread 1 (Thread 0x7ffff7e1c770 (LWP 9486)): #0 0x00007fffefb2c4b5 in raise () from /lib/libc.so.6 #1 0x00007fffefb2ff50 in abort () from /lib/libc.so.6 #2 0x00007ffff77f9864 in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4 #3 0x00007ffff77f99b6 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4 #4 0x00007ffff67bfe16 in KoDocument::autoSaveFile (this=0x8d3900, path=...) at /media/Seagate15tb/source/koffice/libs/main/KoDocument.cpp:1028 #5 0x00007ffff67c1889 in KoDocument::slotAutoSave (this=0x8d3900) at /media/Seagate15tb/source/koffice/libs/main/KoDocument.cpp:577 #6 0x00007ffff67c1b88 in KoDocument::qt_metacall (this=0x8d3900, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffffffd5f0) at /media/Seagate15tb/koffice/build/libs/main/KoDocument.moc:120 #7 0x00007ffff742dc90 in KisDoc2::qt_metacall (this=0x250e, _c=9486, _id=6, _a=0xffffffffffffffff) at /media/Seagate15tb/koffice/build/krita/ui/kis_doc2.moc:72 #8 0x00007ffff78fcddc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4 #9 0x00007ffff78f6d83 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4 #10 0x00007ffff0eb3efc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #11 0x00007ffff0ebb1ce in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #12 0x00007ffff22a4db6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5 #13 0x00007ffff78e7c2c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #14 0x00007ffff7912862 in ?? () from /usr/lib/libQtCore.so.4 #15 0x00007ffff791332c in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #16 0x00007ffff0f49727 in ?? () from /usr/lib/libQtGui.so.4 #17 0x00007ffff78e6532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #18 0x00007ffff78e6904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #19 0x00007ffff78e8ab9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 #20 0x00007ffff7bdcaa5 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /media/Seagate15tb/source/koffice/krita/main.cc:49 #21 0x00007fffefb17abd in __libc_start_main () from /lib/libc.so.6 #22 0x0000000000400929 in _start () at ../sysdeps/x86_64/elf/start.S:113