Bug 423568 - crash on layer reorder
Summary: crash on layer reorder
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Layer Stack (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-27 03:15 UTC by nikola
Modified: 2020-07-24 11:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kritacrash.log (25.62 KB, text/plain)
2020-06-27 03:15 UTC, nikola
Details
settings for new document dialog that causes crash on my system (47.10 KB, image/png)
2020-06-27 11:25 UTC, nikola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nikola 2020-06-27 03:15:22 UTC
Created attachment 129713 [details]
kritacrash.log

This bug doesn't occur in stable version 4.3.
It is easy to reproduce on 5.0.0-prealpha (git 23be7ef) and few earlier versions.

STEPS TO REPRODUCE
1. run Krita
2. File -> new
3. Make sure the Layers docker is visible
4. Add layer
5. Drag it (or click on down-arrow) to send layer 2 below layer 1
6. Krita crash


SOFTWARE/OS VERSIONS
Krita Version: 5.0.0-prealpha (git 23be7ef), Qt version compiled: 5.12.8, loaded: 5.12.8.
Comment 1 Ahab Greybeard 2020-06-27 09:56:08 UTC
I can't reproduce this with the Jun 27 5.0.0 prealpha (git 689fe92) Windows .zip package.

There is a crash bug that has a similar trigger action but requires that the new image is created from previously copied content, using Ctrl+Shift+N:
https://bugs.kde.org/show_bug.cgi?id=423473
Comment 2 nikola 2020-06-27 11:25:59 UTC
Created attachment 129720 [details]
settings for new document dialog that causes crash on my system

Just checked with (git 689fe92) Windows .zip package.
Crash is still present on my system, so I reset everything :) and make sure that nothing is on clipboard.

I found that crash occurs when checking either:

- Background: As canvas color or
- Background: As fill layer

in Create new document dialog

Background: As raster layer - is fine
Comment 3 nikola 2020-06-27 11:35:44 UTC
The oldest package I have on my computer is ga98fccf6ef. The bug is also present there.
Comment 4 Ahab Greybeard 2020-06-27 11:46:44 UTC
I can confirm this for the Jun 27 5.0.0 prealpha (git 689fe92) Linux appimage.

As noted in Comment 2 , it happens for background as Canvas Colour or as Fill Layer.

You don't need to add a new layer.
If you create a new multilayer image, moving any layer to the bottom of the layer stack will give the crash when it gets to the bottom.

This now seems more similar to https://bugs.kde.org/show_bug.cgi?id=423473
Comment 5 nikola 2020-07-23 21:27:18 UTC
It seems that the bug is gone at least in gc2b2b792c3. g05babe088f is fine too. I don't know about https://bugs.kde.org/show_bug.cgi?id=423473
Comment 6 Ahab Greybeard 2020-07-24 11:19:56 UTC
This crash now does not happen on the Jul 23 5.0.0 prealpha (git c60995a) or the last successful Jul 20 4.3.1 alpha (git f119f41) appimages.

It doesn't happen on those Jul 15 builds either.
There must have been a mystery commit, which has also fixed:
https://bugs.kde.org/show_bug.cgi?id=423473