Bug 461699 - Crash when adding a reference image
Summary: Crash when adding a reference image
Status: RESOLVED DUPLICATE of bug 461556
Alias: None
Product: krita
Classification: Applications
Component: Tools/Reference Images (show other bugs)
Version: git master (please specify the git hash!)
Platform: Compiled Sources macOS
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-11 12:44 UTC by Halla Rempt
Modified: 2022-11-11 12:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Halla Rempt 2022-11-11 12:44:55 UTC
When adding a reference image, I get the following crash:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               krita [73319]
Path:                  /Users/USER/*/krita.app/Contents/MacOS/krita
Identifier:            org.krita
Version:               5.2.0 (5.2.0)
Code Type:             ARM-64 (Native)
Parent Process:        zsh [48361]
Responsible:           Terminal [458]
User ID:               501

Date/Time:             2022-11-11 13:41:48.6870 +0100
OS Version:            macOS 12.6 (21G115)
Report Version:        12
Anonymous UUID:        5B5BCE1A-E4C0-5EE0-5B98-C826442FDD77

Sleep/Wake UUID:       2B6BFAEE-CDC1-478A-AA42-4D3015062AB3

Time Awake Since Boot: 270000 seconds
Time Since Wake:       233 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000020
Exception Codes:       0x0000000000000001, 0x0000000000000020
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [73319]

VM Region Info: 0x20 is not in any region.  Bytes before following region: 105553518919648
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      MALLOC_NANO (reserved)   600018000000-600020000000 [128.0M] rw-/rwx SM=NUL  ...(unallocated)

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libkritaimage.19.0.0.dylib    	       0x10550ff18 KisPaintDevice::setDefaultBounds(KisSharedPtr<KisDefaultBoundsBase>) + 16 (kis_paint_device.cc:1223)
1   libkritaui.19.0.0.dylib       	       0x10469ae04 KisShapeLayer::setImage(KisWeakSharedPtr<KisImage>) + 528 (kis_shape_layer.cc:287)
2   libkritaui.19.0.0.dylib       	       0x10469ae04 KisShapeLayer::setImage(KisWeakSharedPtr<KisImage>) + 528 (kis_shape_layer.cc:287)
3   libkritaimage.19.0.0.dylib    	       0x10550492c KisNode::add(KisSharedPtr<KisNode>, KisSharedPtr<KisNode>) + 1108 (kis_node.cpp:502)
4   libkritaimage.19.0.0.dylib    	       0x105508d64 KisNodeFacade::addNode(KisSharedPtr<KisNode>, KisSharedPtr<KisNode>) + 544 (kis_node_facade.cpp:101)
5   libkritaui.19.0.0.dylib       	       0x104a24480 KisDocument::setReferenceImagesLayer(KisSharedPtr<KisReferenceImagesLayer>, bool) + 224 (KisDocument.cpp:2591)
6   libkritaui.19.0.0.dylib       	       0x104ac060c AddReferenceImagesCommand::redo() + 120 (KisReferenceImagesLayer.cpp:33)
7   libkritacommand.19.0.0.dylib  	       0x1038c5c90 KUndo2Command::redo() + 64 (kundo2stack.cpp:224)
8   libkritacommand.19.0.0.dylib  	       0x1038c63f8 KUndo2Command::redoMergedCommands() + 492 (kundo2stack.cpp:407)
9   libkritacommand.19.0.0.dylib  	       0x1038c75b4 KUndo2QStack::push(KUndo2Command*) + 56 (kundo2stack.cpp:720)
10  libkritaimage.19.0.0.dylib    	       0x10556d2c0 KisLegacyUndoAdapter::addCommand(KUndo2Command*) + 124 (kis_legacy_undo_adapter.cpp:39)
11  libkritaui.19.0.0.dylib       	       0x1045c4920 KisCanvas2::addCommand(KUndo2Command*) + 88 (kis_canvas2.cpp:434)
12  krita_flaketools.so           	       0x11894dda0 ToolReferenceImages::addReferenceImage() + 1000 (ToolReferenceImages.cpp:112)
13  QtCore                        	       0x10837d5bc QMetaObject::activate(QObject*, int, int, void**) + 2396
14  QtWidgets                     	       0x106a5f840 0x10697c000 + 931904
15  QtWidgets                     	       0x106a5f6c0 0x10697c000 + 931520
16  QtWidgets                     	       0x106a60640 QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 256
17  QtWidgets                     	       0x106b4b058 QToolButton::mouseReleaseEvent(QMouseEvent*) + 20
18  QtWidgets                     	       0x1069c3f64 QWidget::event(QEvent*) + 128
19  QtWidgets                     	       0x106b4b5a0 QToolButton::event(QEvent*) + 296
20  QtWidgets                     	       0x10698dbe0 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 292
21  QtWidgets                     	       0x1069904f0 QApplication::notify(QObject*, QEvent*) + 6032
22  libkritaui.19.0.0.dylib       	       0x104a05c30 KisApplication::notify(QObject*, QEvent*) + 332 (KisApplication.cpp:757)
23  QtCore                        	       0x10834d3b8 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 288
24  QtWidgets                     	       0x10698e54c QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 976
25  QtWidgets                     	       0x1069e2590 0x10697c000 + 419216
26  QtWidgets                     	       0x1069e14f0 0x10697c000 + 414960
27  QtWidgets                     	       0x10698dbe0 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 292
28  QtWidgets                     	       0x10698ef84 QApplication::notify(QObject*, QEvent*) + 548
29  libkritaui.19.0.0.dylib       	       0x104a05c30 KisApplication::notify(QObject*, QEvent*) + 332 (KisApplication.cpp:757)
30  QtCore                        	       0x10834d3b8 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 288
31  QtGui                         	       0x1077258f8 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 2992
32  QtGui                         	       0x107729100 QGuiApplicationPrivate::processTabletEvent(QWindowSystemInterfacePrivate::TabletEvent*) + 1224
33  QtGui                         	       0x10770cfe4 QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 248
34  libqcocoa.dylib               	       0x10a664fa8 0x10a630000 + 217000
35  CoreFoundation                	       0x182578f94 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
36  CoreFoundation                	       0x182578ee0 __CFRunLoopDoSource0 + 208
37  CoreFoundation                	       0x182578be0 __CFRunLoopDoSources0 + 268
38  CoreFoundation                	       0x182577560 __CFRunLoopRun + 828
39  CoreFoundation                	       0x182576a84 CFRunLoopRunSpecific + 600
40  HIToolbox                     	       0x18b1b6338 RunCurrentEventLoopInMode + 292
41  HIToolbox                     	       0x18b1b5fc4 ReceiveNextEventCommon + 324
42  HIToolbox                     	       0x18b1b5e68 _BlockUntilNextEventMatchingListInModeWithFilter + 72
43  AppKit                        	       0x1850de51c _DPSNextEvent + 860
44  AppKit                        	       0x1850dce14 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
45  AppKit                        	       0x1850cefe0 -[NSApplication run] + 596
46  libqcocoa.dylib               	       0x10a663df0 0x10a630000 + 212464
47  QtCore                        	       0x108348c24 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 524
48  QtCore                        	       0x10834da78 QCoreApplication::exec() + 128
49  krita                         	       0x102f3ba10 main + 10564 (main.cc:727)
50  dyld                          	       0x1036c108c start + 520
Comment 1 amyspark 2022-11-11 12:46:36 UTC

*** This bug has been marked as a duplicate of bug 461556 ***