Bug 374240 - Krita crashes when creating a filter layer
Summary: Krita crashes when creating a filter layer
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Filters (show other bugs)
Version: 3.1.1
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-28 08:58 UTC by Pablo
Modified: 2018-08-13 04:50 UTC (History)
4 users (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 Pablo 2016-12-28 08:58:56 UTC
Krita crashes always when creating a filter layer, it doesn't matter which filter you choose, it crashes
Comment 1 Halla Rempt 2016-12-28 09:10:04 UTC
Hi Pablo,

I'm afraid that I cannot reproduce that on my mac: there must be something more going on. What is the colorspace and channel depth of the image you are working with?
Comment 2 Pablo 2016-12-30 11:08:52 UTC
I have played a little with the issue and I think is somehow related with alphas:
If I create a new document (with default background layer and a paint layer) and then try to add a filter layer over the paint layer it crashes.
If I open any image file and then apply the filter layer it works.
But if, after opening any image file I delete an area so that it has transparent pixels, I try to create the filter layer it crashes Krita.

Do you want me to reset/disable any configuration?
Oh, I have OpenGL activated

Thanks
Comment 3 Alexandre Blondin Massé 2016-12-31 02:19:00 UTC
Hi, Pablo,

I just tried reproducing the bug you mention, without success (i.e. it doesn't crash). Could you give more details about your environment?
1. What version of Krita are you using?
2. What distribution of OSX are you using?
3. Does it crash when you deactivate OpenGL?
4. Could you be more specific by explaining what you do step-by-step?
5. In particular, does it crash when you select the filter, when you apply it by clicking on "OK", etc.?
Comment 4 Halla Rempt 2017-01-25 09:05:20 UTC
I'm sorry, I still cannot reproduce. Are you using a standard 8 bits/channel imagE?
Comment 5 Jeff Knox 2018-01-12 22:58:19 UTC
I have the same problem with a new download of Krita 3.3.  Should I file a new report since I'm not using 3.1?

1. Krita 3.3.3 release

2. macOS 10.13.2; Intel Iris Graphics 6100

3. crashes with or without "Canvas Graphics Acceleration" (OpenGL dropdown is always disabled for me.)

4a. Open Krita
 b. Create new file (All fail so far: RGBA 8-bit; RGBA 16-bit int or float; Grayscale 8-bit)
 c. Right-click layer -> Add Filter Mask
 d. Always crashes upon clicking "OK" (Tested so far with Index Color, Posterize, Oil Paint and Blur)


I'll see if I can get a better stack trace.


Apple report:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   org.qt-project.QtGui          	0x0000000103865e43 QAccessibleEvent::uniqueId() const + 163
1   libqcocoa.dylib               	0x0000000106987933 0x10694e000 + 235827
2   org.qt-project.QtWidgets      	0x0000000103133620 QTreeView::selectionChanged(QItemSelection const&, QItemSelection const&) + 880
3   org.qt-project.QtWidgets      	0x00000001030e2e8c QAbstractItemView::setSelectionModel(QItemSelectionModel*) + 1132
4   org.qt-project.QtWidgets      	0x0000000103123547 QTreeView::setSelectionModel(QItemSelectionModel*) + 119
5   org.qt-project.QtWidgets      	0x00000001030e29c5 QAbstractItemView::setModel(QAbstractItemModel*) + 1269
6   org.qt-project.QtWidgets      	0x000000010312336b QTreeView::setModel(QAbstractItemModel*) + 523
7   libkritaui.18.dylib           	0x0000000101c37e0e 0x101812000 + 4349454
8   libkritaui.18.dylib           	0x0000000101c37de8 0x101812000 + 4349416
9   org.qt-project.QtWidgets      	0x0000000102eb698c QWidget::event(QEvent*) + 1276
10  org.qt-project.QtWidgets      	0x0000000102faf46d QFrame::event(QEvent*) + 45
11  org.qt-project.QtWidgets      	0x000000010303e29c QAbstractScrollArea::event(QEvent*) + 364
12  org.qt-project.QtWidgets      	0x00000001030e51aa QAbstractItemView::event(QEvent*) + 586
13  org.qt-project.QtWidgets      	0x0000000102e7688d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 301
14  org.qt-project.QtWidgets      	0x0000000102e77c31 QApplication::notify(QObject*, QEvent*) + 369
15  libkritaui.18.dylib           	0x0000000101b61de8 KisApplication::notify(QObject*, QEvent*) + 24
16  org.qt-project.QtCore         	0x00000001040d0e54 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
17  org.qt-project.QtWidgets      	0x0000000102eb5dc3 QWidgetPrivate::hideChildren(bool) + 323
18  org.qt-project.QtWidgets      	0x0000000102eb5d8a QWidgetPrivate::hideChildren(bool) + 266
19  org.qt-project.QtWidgets      	0x0000000102eb5d8a QWidgetPrivate::hideChildren(bool) + 266
20  org.qt-project.QtWidgets      	0x0000000102eb5b89 QWidgetPrivate::hide_helper() + 249
21  org.qt-project.QtWidgets      	0x0000000102eb5f9c QWidget::setVisible(bool) + 284
22  org.qt-project.QtWidgets      	0x0000000103076400 QDialog::setVisible(bool) + 368
23  org.qt-project.QtWidgets      	0x0000000103075bcf QDialog::done(int) + 47
24  org.qt-project.QtCore         	0x00000001041028c9 QMetaObject::activate(QObject*, int, int, void**) + 3113
25  org.qt-project.QtWidgets      	0x0000000102f94db5 0x102e64000 + 1248693
26  org.qt-project.QtCore         	0x00000001041028c9 QMetaObject::activate(QObject*, int, int, void**) + 3113
27  org.qt-project.QtWidgets      	0x0000000102f63d80 0x102e64000 + 1047936
28  org.qt-project.QtWidgets      	0x0000000102f63c15 0x102e64000 + 1047573
29  org.qt-project.QtWidgets      	0x0000000102f64ca0 QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 272
30  org.qt-project.QtWidgets      	0x0000000102eb6700 QWidget::event(QEvent*) + 624
31  org.qt-project.QtWidgets      	0x0000000102f649f0 QAbstractButton::event(QEvent*) + 160
32  org.qt-project.QtWidgets      	0x0000000102e7688d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 301
33  org.qt-project.QtWidgets      	0x0000000102e79973 QApplication::notify(QObject*, QEvent*) + 7859
34  libkritaui.18.dylib           	0x0000000101b61de8 KisApplication::notify(QObject*, QEvent*) + 24
35  org.qt-project.QtCore         	0x00000001040d0e54 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
36  org.qt-project.QtWidgets      	0x0000000102e771fa QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) + 874
37  org.qt-project.QtWidgets      	0x0000000102ed7a16 0x102e64000 + 473622
38  org.qt-project.QtWidgets      	0x0000000102ed68f9 0x102e64000 + 469241
39  org.qt-project.QtWidgets      	0x0000000102e7688d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 301
40  org.qt-project.QtWidgets      	0x0000000102e77c31 QApplication::notify(QObject*, QEvent*) + 369
41  libkritaui.18.dylib           	0x0000000101b61de8 KisApplication::notify(QObject*, QEvent*) + 24
42  org.qt-project.QtCore         	0x00000001040d0e54 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
43  org.qt-project.QtGui          	0x0000000103886d9d QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 2877
44  org.qt-project.QtGui          	0x000000010386fdbb QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 155
45  libqcocoa.dylib               	0x00000001069745d1 0x10694e000 + 157137
46  com.apple.CoreFoundation      	0x00007fff57d005a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
47  com.apple.CoreFoundation      	0x00007fff57dba35c __CFRunLoopDoSource0 + 108
48  com.apple.CoreFoundation      	0x00007fff57ce3040 __CFRunLoopDoSources0 + 208
49  com.apple.CoreFoundation      	0x00007fff57ce24bd __CFRunLoopRun + 1293
50  com.apple.CoreFoundation      	0x00007fff57ce1d23 CFRunLoopRunSpecific + 483
51  com.apple.HIToolbox           	0x00007fff56ff9e26 RunCurrentEventLoopInMode + 286
52  com.apple.HIToolbox           	0x00007fff56ff9a9f ReceiveNextEventCommon + 366
53  com.apple.HIToolbox           	0x00007fff56ff9914 _BlockUntilNextEventMatchingListInModeWithFilter + 64
54  com.apple.AppKit              	0x00007fff552c4f5f _DPSNextEvent + 2085
55  com.apple.AppKit              	0x00007fff55a5ab4c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
56  com.apple.AppKit              	0x00007fff554f7267 -[NSApplication _doModalLoop:peek:] + 476
57  com.apple.AppKit              	0x00007fff556dcec1 __33-[NSApplication runModalSession:]_block_invoke_2 + 69
58  com.apple.AppKit              	0x00007fff556dce69 __33-[NSApplication runModalSession:]_block_invoke + 83
59  com.apple.AppKit              	0x00007fff55b89ee6 _NSTryRunModal + 100
60  com.apple.AppKit              	0x00007fff556dcd5a -[NSApplication runModalSession:] + 133
61  libqcocoa.dylib               	0x0000000106973276 0x10694e000 + 152182
62  org.qt-project.QtCore         	0x00000001040cd171 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 417
63  org.qt-project.QtWidgets      	0x0000000103075a79 QDialog::exec() + 377
64  libkritaui.18.dylib           	0x000000010193302e 0x101812000 + 1183790
65  libkritaui.18.dylib           	0x00000001019428a8 KisNodeManager::createNode(QString const&, bool, KisSharedPtr<KisPaintDevice>) + 1736
66  libkritaui.18.dylib           	0x0000000101c28792 0x101812000 + 4286354
67  org.qt-project.QtCore         	0x00000001041028c9 QMetaObject::activate(QObject*, int, int, void**) + 3113
68  org.qt-project.QtCore         	0x0000000104107caa QSignalMapper::map(QObject*) + 490
69  org.qt-project.QtCore         	0x00000001041028c9 QMetaObject::activate(QObject*, int, int, void**) + 3113
70  org.qt-project.QtWidgets      	0x0000000102e6ced7 QAction::activate(QAction::ActionEvent) + 263
71  org.qt-project.QtWidgets      	0x0000000102ff25bd 0x102e64000 + 1631677
72  org.qt-project.QtWidgets      	0x0000000102ff05db 0x102e64000 + 1623515
73  org.qt-project.QtWidgets      	0x0000000102eb6700 QWidget::event(QEvent*) + 624
74  org.qt-project.QtWidgets      	0x0000000102ff6f60 QMenu::event(QEvent*) + 1184
75  org.qt-project.QtWidgets      	0x0000000102e7688d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 301
76  org.qt-project.QtWidgets      	0x0000000102e79973 QApplication::notify(QObject*, QEvent*) + 7859
77  libkritaui.18.dylib           	0x0000000101b61de8 KisApplication::notify(QObject*, QEvent*) + 24
78  org.qt-project.QtCore         	0x00000001040d0e54 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
79  org.qt-project.QtWidgets      	0x0000000102e771fa QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) + 874
80  org.qt-project.QtWidgets      	0x0000000102ed7e14 0x102e64000 + 474644
81  org.qt-project.QtWidgets      	0x0000000102ed68f9 0x102e64000 + 469241
82  org.qt-project.QtWidgets      	0x0000000102e7688d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 301
83  org.qt-project.QtWidgets      	0x0000000102e77c31 QApplication::notify(QObject*, QEvent*) + 369
84  libkritaui.18.dylib           	0x0000000101b61de8 KisApplication::notify(QObject*, QEvent*) + 24
85  org.qt-project.QtCore         	0x00000001040d0e54 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
86  org.qt-project.QtGui          	0x0000000103886d9d QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 2877
87  org.qt-project.QtGui          	0x000000010386fdbb QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 155
88  libqcocoa.dylib               	0x00000001069745d1 0x10694e000 + 157137
89  com.apple.CoreFoundation      	0x00007fff57d005a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
90  com.apple.CoreFoundation      	0x00007fff57dba35c __CFRunLoopDoSource0 + 108
91  com.apple.CoreFoundation      	0x00007fff57ce3040 __CFRunLoopDoSources0 + 208
92  com.apple.CoreFoundation      	0x00007fff57ce24bd __CFRunLoopRun + 1293
93  com.apple.CoreFoundation      	0x00007fff57ce1d23 CFRunLoopRunSpecific + 483
94  com.apple.HIToolbox           	0x00007fff56ff9e26 RunCurrentEventLoopInMode + 286
95  com.apple.HIToolbox           	0x00007fff56ff9a9f ReceiveNextEventCommon + 366
96  com.apple.HIToolbox           	0x00007fff56ff9914 _BlockUntilNextEventMatchingListInModeWithFilter + 64
97  com.apple.AppKit              	0x00007fff552c4f5f _DPSNextEvent + 2085
98  com.apple.AppKit              	0x00007fff55a5ab4c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
99  com.apple.AppKit              	0x00007fff552b9d6d -[NSApplication run] + 764
100 libqcocoa.dylib               	0x0000000106973345 0x10694e000 + 152389
101 org.qt-project.QtCore         	0x00000001040cd171 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 417
102 org.qt-project.QtWidgets      	0x0000000102ff536b QMenu::exec(QPoint const&, QAction*) + 107
103 kritadefaultdockers.so        	0x0000000110855907 0x110841000 + 84231
104 org.qt-project.QtCore         	0x00000001041028c9 QMetaObject::activate(QObject*, int, int, void**) + 3113
105 libkritaui.18.dylib           	0x0000000101c177d8 KisNodeView::contextMenuRequested(QPoint const&, QModelIndex const&) + 56
106 libkritaui.18.dylib           	0x0000000101b82862 KisNodeView::contextMenuEvent(QContextMenuEvent*) + 130
107 org.qt-project.QtWidgets      	0x0000000102eb6c02 QWidget::event(QEvent*) + 1906
108 org.qt-project.QtWidgets      	0x0000000102faf46d QFrame::event(QEvent*) + 45
109 org.qt-project.QtWidgets      	0x000000010303ebb7 QAbstractScrollArea::viewportEvent(QEvent*) + 135
110 org.qt-project.QtWidgets      	0x00000001030e5949 QAbstractItemView::viewportEvent(QEvent*) + 1369
111 org.qt-project.QtWidgets      	0x0000000103127bb5 QTreeView::viewportEvent(QEvent*) + 517
112 libkritaui.18.dylib           	0x0000000101b82525 KisNodeView::viewportEvent(QEvent*) + 1909
113 org.qt-project.QtWidgets      	0x000000010303f754 0x102e64000 + 1947476
114 org.qt-project.QtCore         	0x00000001040d10eb QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 203
115 org.qt-project.QtWidgets      	0x0000000102e76878 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 280
116 org.qt-project.QtWidgets      	0x0000000102e78df6 QApplication::notify(QObject*, QEvent*) + 4918
117 libkritaui.18.dylib           	0x0000000101b61de8 KisApplication::notify(QObject*, QEvent*) + 24
118 org.qt-project.QtCore         	0x00000001040d0e54 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
119 org.qt-project.QtWidgets      	0x0000000102ed82c3 0x102e64000 + 475843
120 org.qt-project.QtWidgets      	0x0000000102ed68f9 0x102e64000 + 469241
121 org.qt-project.QtWidgets      	0x0000000102e7688d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 301
122 org.qt-project.QtWidgets      	0x0000000102e77c31 QApplication::notify(QObject*, QEvent*) + 369
123 libkritaui.18.dylib           	0x0000000101b61de8 KisApplication::notify(QObject*, QEvent*) + 24
124 org.qt-project.QtCore         	0x00000001040d0e54 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
125 org.qt-project.QtGui          	0x0000000103886d9d QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 2877
126 org.qt-project.QtGui          	0x000000010386fdbb QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 155
127 libqcocoa.dylib               	0x00000001069745d1 0x10694e000 + 157137
128 com.apple.CoreFoundation      	0x00007fff57d005a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
129 com.apple.CoreFoundation      	0x00007fff57dba35c __CFRunLoopDoSource0 + 108
130 com.apple.CoreFoundation      	0x00007fff57ce3040 __CFRunLoopDoSources0 + 208
131 com.apple.CoreFoundation      	0x00007fff57ce24bd __CFRunLoopRun + 1293
132 com.apple.CoreFoundation      	0x00007fff57ce1d23 CFRunLoopRunSpecific + 483
133 com.apple.HIToolbox           	0x00007fff56ff9e26 RunCurrentEventLoopInMode + 286
134 com.apple.HIToolbox           	0x00007fff56ff9a9f ReceiveNextEventCommon + 366
135 com.apple.HIToolbox           	0x00007fff56ff9914 _BlockUntilNextEventMatchingListInModeWithFilter + 64
136 com.apple.AppKit              	0x00007fff552c4f5f _DPSNextEvent + 2085
137 com.apple.AppKit              	0x00007fff55a5ab4c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
138 com.apple.AppKit              	0x00007fff552b9d6d -[NSApplication run] + 764
139 libqcocoa.dylib               	0x0000000106973345 0x10694e000 + 152389
140 org.qt-project.QtCore         	0x00000001040cd171 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 417
141 org.qt-project.QtCore         	0x00000001040d14c7 QCoreApplication::exec() + 343
142 org.krita                     	0x00000001013be576 main + 6070
143 libdyld.dylib                 	0x00007fff7f530115 start + 1
Comment 6 Halla Rempt 2018-01-13 09:38:13 UTC
Hi Jeff,

No, no need for a bug report & thanks for the extra information. I _still_ cannot reproduce this, and I'm running the same version of macOS as you. Just to make sure: you're using the krita.app app bundle that I build, right? Not something installed through homebew or similar?

Since the crash happens inside Qt's accessibility framework, do you have any assistive technology enabled?

Could you also test with the 4.0 beta 1 that we released this week?
Comment 7 Jeff Knox 2018-01-19 07:06:52 UTC
I downloaded the official mac build from here: https://download.kde.org/stable/krita/3.3.3/krita-3.3.3.dmg

As far as I know I don't have any assistive technology running.  I went through Sys Prefs/Accessibility and unchecked anything that was on and version 3.3.3 still crashes.

I just spend the past few days getting a build environment up to compile the latest Krita from github.  Finally got a successful mac build (this is so much easier on Linux!) just a few minutes ago and came back to report that it works fine in the 4.0 beta 1.  Now I found out you already had the beta version online all week!  Lol.

Anyway, the beta works, so probably not worth digging into it.  Thanks!
Comment 8 Raghavendra kamath 2018-08-10 05:14:01 UTC
Hi  Pablo,

Can you please check the latest version of krita and see if the bug is still present in it. As Jeff mentioned it seems to work in the latest version.
Comment 9 Pablo 2018-08-12 13:07:01 UTC
Hi Raghavendra,

I have just checked with version 4.1.0 and it works correctly, I have tried adding 2 new filter layers and they worked as expected.
=)

Do you want me to try anything else?

And, of course, thanks a lot for the bug fixing ;)
Comment 10 Raghavendra kamath 2018-08-13 04:50:34 UTC
Thanks for checking, I think we can close this bug :)

If you encounter anything in future please report a bug here, until then enjoy Krita.

P.S. thanks to developers for fixing bugs :D