Bug 343734 - Can't open a previously created .kra file (with steps)
Summary: Can't open a previously created .kra file (with steps)
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 2.9 Beta
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: release_blocker
Depends on:
Blocks:
 
Reported: 2015-02-03 13:00 UTC by mvowada
Modified: 2015-02-03 15:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Can't open a previously created .kra file (with steps) -VIDEO (1.25 MB, video/mp4)
2015-02-03 13:02 UTC, mvowada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mvowada 2015-02-03 13:00:40 UTC
I can't open a previously created .kra file. I don't know why. 
These are the steps to reproduce the problem:

Ubuntu 14.04 Unity - Krita 2.9 Beta 2 (git a1a90e9)

Reproducible: Always

Steps to Reproduce:
1. create a new document, let's say 1600x1200px / 100ppi
2. select the left side (800x1200px) and fill selection with the foreground color (Shift + Background)
3. Ctrl+I to invert selection and select the right side
4. go to layerbox > add > Fill layer > color > RGB: 254,235,220
5. deselect, save and close the document
6. reopen the file

Actual Results:  
I can't reopen the file I've just created.
Comment 1 mvowada 2015-02-03 13:02:55 UTC
Created attachment 90886 [details]
Can't open a previously created .kra file (with steps) -VIDEO
Comment 2 Halla Rempt 2015-02-03 13:30:38 UTC
I also noticed that with the fill layer color picker bug you previously entered -- I couldn't load your file. But when I created an image with a fill layer, it did load. It might be because I didn't add a selection -- I can confirm that krita hangs when you try to reopen a file created with your steps.
Comment 3 Halla Rempt 2015-02-03 13:39:18 UTC
Git commit 49a6cbad8726f94554c6469bac68abd82e9cc0ec by Boudewijn Rempt.
Committed on 03/02/2015 at 13:38.
Pushed by rempt into branch 'calligra/2.9'.

We don't have to update the layer while loading, that happens when the
image gets rendered.

M  +0    -10   krita/ui/kra/kis_kra_load_visitor.cpp

http://commits.kde.org/calligra/49a6cbad8726f94554c6469bac68abd82e9cc0ec
Comment 4 mvowada 2015-02-03 14:20:11 UTC
[quote]But when I created an image with a fill layer, it did load[/quote]
Yes, I can confirm.

[quote]It might be because I didn't add a selection[/quote]
Hm.. I think there's more. Actually, I've managed to reopen a file with a Fill layer created by adding a smaller selection. It seems that only by following the steps above you encounter the problem.
Comment 5 Halla Rempt 2015-02-03 14:25:06 UTC
In any case, all files with fill layers should load again now :-)
Comment 6 mvowada 2015-02-03 15:12:27 UTC
Hey, I've rechecked with a new build (git 49a6cba), and now I can reopen all files with fill layers (thank you :) There's still a glitch though, once reopen the file Fill layers appear blue colored no matter they had a different shade before:

Steps to reproduce:
1. create and save a file with a red colored Fill layer
2. reopen the file

Actual result: 
Fill layers are blue

Krita 2.9Beta 2  (git 49a6cba)