Bug 381580

Summary: krita pre-alpha crashes when opening a .kra file with vector layer
Product: [Applications] krita Reporter: Thomas Pointhuber <elektronik96>
Component: File formatsAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: crash CC: elektronik96, griffinvalley, halla
Priority: NOR    
Version: 4.0 pre-alpha   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: some example file which causes a crash

Description Thomas Pointhuber 2017-06-23 14:55:50 UTC
Created attachment 106263 [details]
some example file which causes a crash

## HowTo reproduce

* Open attached file (created with krita 3.1.4), using current pre-alpha appimage for linux
* Krita crashes because of an assertion:

```
krita.lib.flake: the context stack is not empty (current count 1 , expected 0)
ASSERT (krita): "!d->gcStack.isEmpty()" in file /krita-4.0.0-prealpha/libs/flake/svg/SvgLoadingContext.cpp, line 287
Abgebrochen (Speicherabzug geschrieben)
```


## Expected behaviour

* Opening an old krita file with a vector layer included doesn't cause a crash.


## System

 * Antergos x64
 * Gnome 3.24.2 Desktop
Comment 1 Halla Rempt 2017-06-24 08:03:26 UTC
Thanks. I've added it to https://phabricator.kde.org/T6369 so Dmitry will find it.
Comment 2 Dmitry Kazakov 2018-02-24 08:59:05 UTC
Hi, Thomas!

Thank you for your report! I think I have fixed this bug last week, when deleted UnavailShape. The crash is not reproducible in the current master build.

Please try the latest nightly AppImage build, it looks it doesn't crash anymore either :)

https://binary-factory.kde.org/job/Krita_Nightly_Appimage_Build/