Bug 396985

Summary: Assertion error when using Image > Image Split or Layer > Import/Export > Export Group Layers
Product: [Applications] krita Reporter: beuc
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: cuervonicolas, freebox64, halla
Priority: NOR    
Version: 4.1.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description beuc 2018-07-30 14:12:34 UTC
When splitting any image and exporting as PNGs through Image > Image Split, I get:

Krita has encountered an internal error:

SAFE ASSERT (krita): "!sanityCheckPointer.isValid()" in file /home/appimage/workspace/Krita_Release_Appimage_Build/krita/libs/ui/KisDocument.cpp, line 504

Please report a bug to developers!


Hitting "Ignore" leads to the same assertion several times (one per exported frame), but the export appears to be correct.

Hope this helps!
Comment 1 Nicolas Cuervo 2018-08-30 18:41:06 UTC
I have also faced this. In order to reproduce, just follow the instructions from the documentation for splitting image: https://docs.krita.org/en/user_manual/animation.html#importing-animation-frames

I am running the krita-4.1.1-x86_64.appimage on Ubuntu 18.04.

Text from UI:
Krita has encountered an internal error:

SAFE ASSERT (krita): "!sanityCheckPointer.isValid()" in file /home/appimage/workspace/Krita_Release_Appimage_Build/krita/libs/ui/KisDocument.cpp, line 504

Please report a bug to developers!

Press Ignore to try to continue.
Press Abort to see developers information (all unsaved data will be lost)


Text from the terminal
Comment 2 mvowada 2018-08-31 06:54:27 UTC
(I can confirm using 4.2.0-pre-alpha (git 0ebf6d9) on Ubuntu 14.04)
Comment 3 beuc 2018-11-01 15:54:30 UTC
This error still occurrs in 4.1.5, and also happens in Layer > Import/Export > Export Group Layers.
Interestingly the Debian package hides the popup window and only prints the failed assertions in the console output, which is less annoying but also hides the problem.
Comment 4 Halla Rempt 2018-11-01 15:56:58 UTC
Yes -- there are two ways to build Krita, one that shows the error in a message box, one that shows it on the command line. The latter is the default.
Comment 5 beuc 2018-12-20 11:57:59 UTC
At the risk of my sanity I tirelessly delved into the arcane KisSharedPtr class.
I believe I emerged with a fix for both cases:
https://phabricator.kde.org/D17708
Comment 6 Halla Rempt 2019-05-09 13:06:42 UTC
And that fix was pushed, too.