Bug 368824 - Crash when inverting selection
Summary: Crash when inverting selection
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-15 00:48 UTC by Scott Petrovic
Modified: 2016-09-15 08:10 UTC (History)
0 users

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 Scott Petrovic 2016-09-15 00:48:19 UTC
Here is the gdb backtrace....

(gdb) run
Starting program: /home/scott/kf5/inst/bin/krita 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
krita.lib.pigment: Legacy integer arithmetics implementation
[New Thread 0x7fffe5595700 (LWP 26678)]
[New Thread 0x7fffdaf00700 (LWP 26679)]
[New Thread 0x7fffda6ff700 (LWP 26680)]
[New Thread 0x7fffd9ccc700 (LWP 26681)]
[New Thread 0x7fffc6b54700 (LWP 26683)]
[New Thread 0x7fffc6353700 (LWP 26684)]
Set style "fusion"
OpenGL Info
  Vendor:  Intel Open Source Technology Center
  Renderer:  Mesa DRI Intel(R) Ivybridge Mobile 
  Version:  3.0 Mesa 11.2.0
  Shading language:  1.30
  Requested format:  QSurfaceFormat(version 3.0, options QFlags(0x4), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 0, profile  2)
  Current format:    QSurfaceFormat(version 3.0, options QFlags(0x4), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 0, profile  0)
     Version: 3 . 0
     Supports deprecated functions true
krita has opengl true
Setting XDG_DATA_DIRS "/home/scott/kf5/inst/bin/../share:/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop"
Available translations QSet("en_US")
Available domain translations QSet("en_US")
Override language: ""
[Thread 0x7fffc6b54700 (LWP 26683) exited]
[New Thread 0x7fffc6b54700 (LWP 26685)]
[New Thread 0x7fffaf99f700 (LWP 26686)]
[New Thread 0x7fffaf057700 (LWP 26687)]
[New Thread 0x7fffae23b700 (LWP 26688)]
[Thread 0x7fffae23b700 (LWP 26688) exited]
void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "C&lose" under id 38
void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "&Close All" under id 39
[New Thread 0x7fffae23b700 (LWP 26691)]
[Thread 0x7fffae23b700 (LWP 26691) exited]
[Thread 0x7fffc6353700 (LWP 26684) exited]
[New Thread 0x7fffc6353700 (LWP 26692)]
[Thread 0x7fffc6353700 (LWP 26692) exited]
[New Thread 0x7fffc6353700 (LWP 26693)]
WARNING: Level of Detail functionality is available only with openGL + GLSL 1.3 support
[Thread 0x7fffc6353700 (LWP 26693) exited]
krita.lib.flake: "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+["
krita.lib.flake: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]"
krita.lib.flake: "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+["
krita.lib.flake: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]"
WARNING: Level of Detail functionality is available only with openGL + GLSL 1.3 support
[New Thread 0x7fffc6353700 (LWP 26694)]
[New Thread 0x7fffae23b700 (LWP 26695)]
[New Thread 0x7fff9a9b1700 (LWP 26696)]
[New Thread 0x7fff9a1b0700 (LWP 26697)]
[New Thread 0x7fff999af700 (LWP 26698)]
[New Thread 0x7fff991ae700 (LWP 26699)]
[New Thread 0x7fff989ad700 (LWP 26700)]
[New Thread 0x7fff83fff700 (LWP 26701)]
canvas KisCanvas2(0x6314be8)
	 display filter false
canvas KisCanvas2(0x6314be8)
	 display filter false
WARNING: Level of Detail functionality is available only with openGL + GLSL 1.3 support
canvas KisCanvas2(0x6314be8)
	 display filter false
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
[New Thread 0x7fff82ffe700 (LWP 26702)]
[New Thread 0x7fff827fd700 (LWP 26703)]
[Thread 0x7fff827fd700 (LWP 26703) exited]
[Thread 0x7fff82ffe700 (LWP 26702) exited]
[New Thread 0x7fff82ffe700 (LWP 26706)]
[New Thread 0x7fff827fd700 (LWP 26707)]

Thread 1 "krita" received signal SIGSEGV, Segmentation fault.
0x0000000000000031 in ?? ()
(gdb) backtrace
#0  0x0000000000000031 in ?? ()
#1  0x00007ffff7745815 in KisSharedPtr<KisOperationConfiguration>::deref (
    sp=0x7fffffffc8b0, t=0xc7c3a0)
    at /home/scott/kf5/src/krita/libs/global/kis_shared_ptr.h:214
#2  KisSharedPtr<KisOperationConfiguration>::deref (this=0x7fffffffc8b0)
    at /home/scott/kf5/src/krita/libs/global/kis_shared_ptr.h:221
#3  KisSharedPtr<KisOperationConfiguration>::~KisSharedPtr (
    this=0x7fffffffc8b0, __in_chrg=<optimized out>)
    at /home/scott/kf5/src/krita/libs/global/kis_shared_ptr.h:109
#4  KisActionManager::runOperation (this=0x69eef20, id=...)
    at /home/scott/kf5/src/krita/libs/ui/kis_action_manager.cpp:380
#5  0x00007ffff602dfca in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff6b3b412 in QAction::triggered(bool) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007ffff6b3d898 in QAction::activate(QAction::ActionEvent) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007ffff6cbfe22 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007ffff6cc60bc in ?? ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007ffff6cca030 in QMenu::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
---Type <return> to continue, or q <return> to quit---
#11 0x00007ffff6b87f88 in QWidget::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff6ccaa83 in QMenu::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff6b4505c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007ffff6b4ac19 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007ffff78ce657 in KisApplication::notify (this=<optimized out>, 
    receiver=0x7a99750, event=0x7fffffffd0d0)
    at /home/scott/kf5/src/krita/libs/ui/KisApplication.cpp:511
#16 0x00007ffff5fff62b in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007ffff6b49b32 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007ffff6ba28dd in ?? ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff6ba4b3b in ?? ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007ffff6b4505c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007ffff6b4a516 in QApplication::notify(QObject*, QEvent*) ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007ffff78ce657 in KisApplication::notify (this=<optimized out>, 
    receiver=0x7ef8d80, event=0x7fffffffd560)
    at /home/scott/kf5/src/krita/libs/ui/KisApplication.cpp:511
#23 0x00007ffff5fff62b in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007ffff6341521 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#25 0x00007ffff63431e5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#26 0x00007ffff6326f38 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#27 0x00007fffe7709070 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#28 0x00007fffeff6e1a7 in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fffeff6e400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fffeff6e4ac in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007ffff6055a7f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop:---Type <return> to continue, or q <return> to quit---
:ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007ffff5ffcdea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007ffff6004e8c in QCoreApplication::exec() ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x0000000000404b0f in main (argc=1, argv=<optimized out>)
    at /home/scott/kf5/src/krita/krita/main.cc:234
(gdb) 
(gdb) quit


Reproducible: Always

Steps to Reproduce:
1. create a new image
2. make a rectangular selection
3. invert the selection

Actual Results:  
crash

Expected Results:  
doesn't crash
Comment 1 Halla Rempt 2016-09-15 08:10:38 UTC
Git commit 42941927503396681ca095ad854be317d7b2959f by Boudewijn Rempt.
Committed on 15/09/2016 at 08:10.
Pushed by rempt into branch 'master'.

M  +1    -2    libs/ui/kis_action_manager.cpp

http://commits.kde.org/krita/42941927503396681ca095ad854be317d7b2959f