Bug 423204

Summary: Crash in KoShape::parent
Product: [Applications] krita Reporter: Jeremy Rose <nornagon>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 4.2.8   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Full crash report

Description Jeremy Rose 2020-06-19 04:54:34 UTC
Created attachment 129509 [details]
Full crash report

SUMMARY
Null dereference in KoShape::parent

STEPS TO REPRODUCE
I don't have reliable repro steps, but this happened when I toggled a layer to be invisible.

OBSERVED RESULT

Crash with SIGSEGV at address 0x0000000000000090

Truncated stack trace (full report attached):
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libkritaflake.18.dylib        	0x000000011166b598 KoShape::parent() const + 8
1   libkritaui.18.dylib           	0x000000010fc3dbae KisNodeShape::editabilityChanged() + 478
2   org.qt-project.QtCore         	0x0000000113383112 QObject::event(QEvent*) + 770
3   org.qt-project.QtWidgets      	0x000000011217c110 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
4   org.qt-project.QtWidgets      	0x000000011217d4c5 QApplication::notify(QObject*, QEvent*) + 581
5   libkritaui.18.dylib           	0x000000010ff18ada KisApplication::notify(QObject*, QEvent*) + 26


SOFTWARE/OS VERSIONS
macOS: 10.14.6
Comment 1 Halla Rempt 2020-06-19 10:27:53 UTC
Hi Jeremy,

I'm afraid we cannot do much with this report because we've just released 4.3.0 which has this part of the code refactored. Could you please update to the latest release (https://krita.org/en/item/krita-4-3-0-released/)? If the same crash happens again, please do reopen the bug report.