Bug 353708 - Wrong displayed image when open it just after Krita start
Summary: Wrong displayed image when open it just after Krita start
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Layer Stack (show other bugs)
Version: git master (please specify the git hash!)
Platform: Debian stable Linux
: NOR major
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-09 08:26 UTC by sghpunk
Modified: 2016-05-04 14:56 UTC (History)
2 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 sghpunk 2015-10-09 08:26:52 UTC
When I open saved image (http://filebin.net/jmfe6crq9k/DSC_4735.kra) just after Krita start, Krita displays it incorrectly (see screenshot http://i.imgur.com/Nwxg0qGb.jpg), but when I close image and open it again, then image start display normally (screenshot http://i.imgur.com/iuDwlSEb.jpg)

Reproducible: Always

Steps to Reproduce:
1. Start Krita (close it and restart if it was running)
2. Open image (http://filebin.net/jmfe6crq9k/DSC_4735.kra)
3. Wait for adjustment layer to recalculate
4. See wrong displayed image (screenshot http://i.imgur.com/Nwxg0qGb.jpg)
5. Close image (but leave Krita running)
6. open image again (http://filebin.net/jmfe6crq9k/DSC_4735.kra)
7. Wait for adjustment layer to recalculate
8. See image is displayed correctly now (screenshot http://i.imgur.com/iuDwlSEb.jpg)

Actual Results:  
Wrong displayed image when open it just after Krita start

Expected Results:  
Krita must always display images correctly.

I tried to disable openGL rendering, but bug appears in both cases.
Comment 1 sghpunk 2015-10-09 08:29:21 UTC
Ooops.
Links to big screenshots:
wrong: http://i.imgur.com/Nwxg0qG.png
correct: http://i.imgur.com/iuDwlSE.png
Comment 2 Halla Rempt 2015-10-09 10:15:25 UTC
Hm... I don't see the same thing you do, I do get unpainted strips of image showing up until the masks are done rendering, though that is to be expected while the initial rendering pass is going on.
Comment 3 sghpunk 2015-10-09 10:30:50 UTC
I do get unpainted strips to, but it is not so critical...
So, you have screenshots. How can I confim this more?
Comment 4 Halla Rempt 2015-10-09 11:24:58 UTC
Well, I am sure this happens. It's now my task to try to figure out what can be going on. Since it happens for you both with opengl and cpu canvas, it's not a display issue. Do you have any special color management setup?
Comment 5 sghpunk 2015-10-09 12:13:15 UTC
Here is screenshot of my Color Management settings
http://imgur.com/XIrD578
Comment 6 Halla Rempt 2015-10-09 13:55:45 UTC
Hm, no, nothing really wrong there either. I'm still puzzled!
Comment 7 sghpunk 2015-10-09 14:56:48 UTC
Hm... I don't understand, why you cannot reproduce it.
I just build same version of Krita on completely another (AMD vs Intel) mashine (but the same Debian 8), and I have same bug... Maybe some broken libs in Debian 8 ?
Or my optimization flags?
-march=amdfam10 -mtune=amdfam10 -O2
Comment 8 Halla Rempt 2015-10-10 07:15:20 UTC
Hm... I just checked on Windows, and there it loaded fine as well. I don't have debian around atm, but it's beginning to look like it could be a library problem. Which version of lcms is installed?
Comment 9 sghpunk 2015-10-10 07:19:27 UTC
$ apt-cache policy liblcms2-2
liblcms2-2:
  Installed: 2.6-3+b3
Comment 10 sghpunk 2015-10-10 19:59:59 UTC
I just tried to install lcms2 2.5 and 2.7 and no difference... Seems like lcms2 is not the case...
Comment 11 Dmitry Kazakov 2015-11-14 11:20:55 UTC
The wrong image looks as if some whitish blur filter is applied on top of it
Comment 12 Dmitry Kazakov 2016-05-04 14:56:39 UTC
Git commit c2a10021f8ad182e5da32027b0c9880fc454e177 by Dmitry Kazakov.
Committed on 04/05/2016 at 14:39.
Pushed by dkazakov into branch 'master'.

Initialize color space of the Group Layers correctly

All the group layers in Krita use the color space of the image
and this color space might be initialized with the profile *after*
all the layers are created. So we need to initialize group layers
as well as usual layers, but not with saved profile, but with the
updated profile of the image.

Fixes T2416

M  +4    -0    libs/ui/kra/kis_kra_load_visitor.cpp

http://commits.kde.org/krita/c2a10021f8ad182e5da32027b0c9880fc454e177