https://bugs.kde.org/show_bug.cgi?id=371139
Bug ID: 371139 Summary: Trim to image with local selection active crashes krita. (gdb backtrace) Product: krita Version: git master Platform: Other OS: Linux Status: UNCONFIRMED Severity: crash Priority: NOR Component: Layer Stack Assignee: krita-bugs-n...@kde.org Reporter: griffinval...@gmail.com I had a local selection which was outside of the canvas borders. It was active. I thought that the outlines outside the canvas looked a little ugly, so I went to image->trim to image. Then Krita crashed. backtrace: Thread 268 "Thread (pooled)" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffb2ad0700 (LWP 25370)] 0x00007ffff5772a30 in QMetaObject::activate(QObject*, int, int, void**) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 (gdb) thread apply all backtrace Thread 271 (Thread 0x7fffb22cf700 (LWP 25373)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225 #1 0x00007ffff5588738 in QWaitCondition::wait(QMutex*, unsigned long) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #2 0x00007ffff5584467 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #3 0x00007ffff5587c89 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #4 0x00007fffeeaa56fa in start_thread (arg=0x7fffb22cf700) at pthread_create.c:333 #5 0x00007ffff4c83b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 270 (Thread 0x7fffc0b42700 (LWP 25372)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225 #1 0x00007ffff5588738 in QWaitCondition::wait(QMutex*, unsigned long) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #2 0x00007ffff5584467 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #3 0x00007ffff5587c89 in ?? () ---Type <return> to continue, or q <return> to quit--- from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #4 0x00007fffeeaa56fa in start_thread (arg=0x7fffc0b42700) at pthread_create.c:333 #5 0x00007ffff4c83b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 269 (Thread 0x7fffb1ace700 (LWP 25371)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225 #1 0x00007ffff5588738 in QWaitCondition::wait(QMutex*, unsigned long) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #2 0x00007ffff5584467 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #3 0x00007ffff5587c89 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #4 0x00007fffeeaa56fa in start_thread (arg=0x7fffb1ace700) at pthread_create.c:333 #5 0x00007ffff4c83b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 268 (Thread 0x7fffb2ad0700 (LWP 25370)): #0 0x00007ffff5772a30 in QMetaObject::activate(QObject*, int, int, void**) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 ---Type <return> to continue, or q <return> to quit--- #1 0x00007ffff2c9dc29 in KisNodeMoveCommand2::tryNotifySelection (node=...) at /home/krita/kde/src/krita/libs/image/commands_new/kis_node_move_command2.cpp:43 #2 0x00007ffff2c9dcc2 in KisNodeMoveCommand2::redo (this=0x7fffa4012ce0) at /home/krita/kde/src/krita/libs/image/commands_new/kis_node_move_command2.cpp:30 #3 0x00007ffff136f0f6 in KUndo2Command::redoMergedCommands ( this=0x7fffa4012ce0) at /home/krita/kde/src/krita/libs/kundo2/kundo2stack.cpp:398 #4 0x00007ffff13700b8 in KUndo2QStack::push (this=0x14b387d0, cmd=0x7fffa4012ce0) at /home/krita/kde/src/krita/libs/kundo2/kundo2stack.cpp:712 #5 0x00007ffff2ca0199 in KisCropProcessingVisitor::moveNodeImpl ( this=this@entry=0x14b38250, node=node@entry=0x7fffbc008b00, undoAdapter=undoAdapter@entry=0x14b38700) at /home/krita/kde/src/krita/libs/image/processing/kis_crop_processing_visitor.cpp:55 #6 0x00007ffff2ca0478 in KisCropProcessingVisitor::visitNodeWithPaintDevice ( this=0x14b38250, node=0x7fffbc008b00, undoAdapter=0x14b38700) at /home/krita/kde/src/krita/libs/image/processing/kis_crop_processing_visitor.cpp:76 #7 0x00007ffff2c9c069 in KisProcessingCommand::redo (this=0x14b386c0) at /home/krita/kde/src/krita/libs/image/commands_new/kis_processing_command.---Type <return> to continue, or q <return> to quit--- cpp:35 #8 0x00007ffff2d229da in KisStrokeStrategyUndoCommandBased::doStrokeCallback ( this=0x14b35910, data=<optimized out>) at /home/krita/kde/src/krita/libs/image/kis_stroke_strategy_undo_command_based.cpp:118 #9 0x00007ffff2e767d1 in KisStrokeJob::run (this=<optimized out>) at /home/krita/kde/build/libs/image/../../../src/krita/libs/image/kis_stroke_job.h:44 #10 KisUpdateJobItem::run (this=0xf301c00) at /home/krita/kde/build/libs/image/../../../src/krita/libs/image/kis_update_job_item.h:66 #11 0x00007ffff558430d in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #12 0x00007ffff5587c89 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #13 0x00007fffeeaa56fa in start_thread (arg=0x7fffb2ad0700) at pthread_create.c:333 #14 0x00007ffff4c83b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 16 (Thread 0x7fff99583700 (LWP 25093)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 ---Type <return> to continue, or q <return> to quit--- #1 0x00007ffff55887eb in QWaitCondition::wait(QMutex*, unsigned long) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #2 0x00007ffff675eaa2 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Widgets.so.5 #3 0x00007ffff5587c89 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #4 0x00007fffeeaa56fa in start_thread (arg=0x7fff99583700) at pthread_create.c:333 #5 0x00007ffff4c83b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 14 (Thread 0x7fff99d84700 (LWP 25091)): #0 0x00007ffff4c488dd in nanosleep () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007ffff562ff7d in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #2 0x00007ffff5587138 in QThread::msleep(unsigned long) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #3 0x00007ffff2c6402a in KisTileDataSwapper::run ( this=0x7ffff312b8c0 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder+64>) at /home/krita/kde/src/krita/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:97 #4 0x00007ffff5587c89 in ?? () ---Type <return> to continue, or q <return> to quit--- from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #5 0x00007fffeeaa56fa in start_thread (arg=0x7fff99d84700) at pthread_create.c:333 #6 0x00007ffff4c83b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 13 (Thread 0x7fff9a585700 (LWP 25090)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007ffff55887eb in QWaitCondition::wait(QMutex*, unsigned long) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #2 0x00007ffff5581e8b in QSemaphore::acquire(int) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #3 0x00007ffff2c4a1fe in KisTileDataPooler::waitForWork ( this=0x7ffff312b880 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder>) at /home/krita/kde/src/krita/libs/image/tiles3/kis_tile_data_pooler.cc:165 #4 0x00007ffff2c4a9ba in KisTileDataPooler::run ( this=0x7ffff312b880 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder>) at /home/krita/kde/src/krita/libs/image/tiles3/kis_tile_data_pooler.cc:187 #5 0x00007ffff5587c89 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 ---Type <return> to continue, or q <return> to quit--- #6 0x00007fffeeaa56fa in start_thread (arg=0x7fff9a585700) at pthread_create.c:333 #7 0x00007ffff4c83b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 6 (Thread 0x7fffcbfff700 (LWP 25081)): #0 0x00007ffff4c77e8d in poll () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007fffee17a39c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fffee17a4ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007ffff57994fc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #4 0x00007ffff5747efa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #5 0x00007ffff558338c in QThread::exec() () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #6 0x00007fffeecd0cd5 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5DBus.so.5 #7 0x00007ffff5587c89 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #8 0x00007fffeeaa56fa in start_thread (arg=0x7fffcbfff700) at pthread_create.c:333 #9 0x00007ffff4c83b5d in clone () ---Type <return> to continue, or q <return> to quit--- at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 5 (Thread 0x7fffd903b700 (LWP 25080)): #0 0x00007ffff4c77e8d in poll () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007fffee17a39c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fffee17a722 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fffde499916 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 #4 0x00007fffee1a0bc5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007fffeeaa56fa in start_thread (arg=0x7fffd903b700) at pthread_create.c:333 #6 0x00007ffff4c83b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 4 (Thread 0x7fffd983c700 (LWP 25079)): #0 0x00007ffff4c77e8d in poll () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007fffee17a39c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fffee17a4ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fffee17a4e9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007fffee1a0bc5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007fffeeaa56fa in start_thread (arg=0x7fffd983c700) at pthread_create.c:333 ---Type <return> to continue, or q <return> to quit--- #6 0x00007ffff4c83b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 3 (Thread 0x7fffda03d700 (LWP 25078)): #0 0x00007ffff4c77e8d in poll () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007fffee17a39c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fffee17a4ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fffda04528d in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so #4 0x00007fffee1a0bc5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007fffeeaa56fa in start_thread (arg=0x7fffda03d700) at pthread_create.c:333 #6 0x00007ffff4c83b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 2 (Thread 0x7fffe48d2700 (LWP 25077)): #0 0x00007ffff4c77e8d in poll () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007ffff3388c62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1 #2 0x00007ffff338a8d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1 #3 0x00007fffe5781dc9 in ?? () from /home/krita/Qt/5.6/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5 ---Type <return> to continue, or q <return> to quit--- #4 0x00007ffff5587c89 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #5 0x00007fffeeaa56fa in start_thread (arg=0x7fffe48d2700) at pthread_create.c:333 #6 0x00007ffff4c83b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 1 (Thread 0x7ffff7f0e8c0 (LWP 25073)): #0 0x00007ffff4c79687 in ioctl () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007fffe73040f8 in drmIoctl () from /usr/lib/x86_64-linux-gnu/libdrm.so.2 #2 0x00007fffd840938c in drm_intel_gem_bo_start_gtt_access () from /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1 #3 0x00007fffcb362795 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so #4 0x00007fffcb37053d in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so #5 0x00007fffedcf2df8 in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 #6 0x00007fffdfbeee62 in ?? () from /home/krita/Qt/5.6/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so #7 0x00007ffff5d28f09 in QOpenGLContext::swapBuffers(QSurface*) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Gui.so.5 #8 0x00007ffff5fc106b in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Gui.so.5 ---Type <return> to continue, or q <return> to quit--- #9 0x00007ffff5fc17eb in QPlatformBackingStore::composeAndFlush(QWindow*, QRegion const&, QPoint const&, QPlatformTextureList*, QOpenGLContext*, bool) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Gui.so.5 #10 0x00007fffe579a597 in ?? () from /home/krita/Qt/5.6/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5 #11 0x00007ffff6546e0b in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Widgets.so.5 #12 0x00007ffff6547cd8 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Widgets.so.5 #13 0x00007ffff6549423 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Widgets.so.5 #14 0x00007ffff6549ea9 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Widgets.so.5 #15 0x00007ffff65696ef in QWidgetPrivate::syncBackingStore() () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Widgets.so.5 #16 0x00007ffff657f3d0 in QWidget::event(QEvent*) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Widgets.so.5 #17 0x00007ffff668d01b in QMainWindow::event(QEvent*) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Widgets.so.5 #18 0x00007ffff6f664f7 in KMainWindow::event (this=this@entry=0xe1a46b0, ev=ev@entry=0x14b383f0) at /home/krita/kde/src/krita/libs/widgetutils/xmlgui/kmainwindow.cpp:780 #19 0x00007ffff6f9eb09 in KXmlGuiWindow::event (this=0xe1a46b0, ev=0x14b383f0) ---Type <return> to continue, or q <return> to quit--- at /home/krita/kde/src/krita/libs/widgetutils/xmlgui/kxmlguiwindow.cpp:125 #20 0x00007ffff653d04c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Widgets.so.5 #21 0x00007ffff6541488 in QApplication::notify(QObject*, QEvent*) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Widgets.so.5 #22 0x00007ffff78d7ac7 in KisApplication::notify (this=<optimized out>, receiver=0xe1a46b0, event=0x14b383f0) at /home/krita/kde/src/krita/libs/ui/KisApplication.cpp:511 #23 0x00007ffff5749e80 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #24 0x00007ffff574c673 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #25 0x00007ffff57990f3 in ?? () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #26 0x00007fffee17a1a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #27 0x00007fffee17a400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #28 0x00007fffee17a4ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #29 0x00007ffff57994e7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #30 0x00007ffff5747efa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 ---Type <return> to continue, or q <return> to quit--- #31 0x00007ffff574fd9d in QCoreApplication::exec() () from /home/krita/Qt/5.6/gcc_64/lib/libQt5Core.so.5 #32 0x0000000000404d97 in main (argc=1, argv=<optimized out>) at /home/krita/kde/src/krita/krita/main.cc:257 (gdb) Reproducible: Didn't try -- You are receiving this mail because: You are watching all bug changes.