Bug 396985 - Assertion error when using Image > Image Split or Layer > Import/Export > Export Group Layers
Summary: Assertion error when using Image > Image Split or Layer > Import/Export > Exp...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.1.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-30 14:12 UTC by beuc
Modified: 2019-05-09 13:06 UTC (History)
3 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 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.