Bug 462562 - Layers inherit alpha from the wrong places
Summary: Layers inherit alpha from the wrong places
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: * Unknown (other bugs)
Version First Reported In: 5.1.3
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-02 21:11 UTC by butcher.kelly
Modified: 2023-01-07 05:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
When I saved the file, the layers were behaving badly. The file behaves normally when opened. (2.55 MB, application/x-krita)
2022-12-02 21:11 UTC, butcher.kelly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description butcher.kelly 2022-12-02 21:11:12 UTC
Created attachment 154242 [details]
When I saved the file, the layers were behaving badly. The file behaves normally when opened.

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

I hit this bug while following the tutorial here: https://www.youtube.com/watch?v=a6Sg25lfoIE. I was not able to reproduce it a second time after restarting Krita. Here is what I remember about the steps I took.

STEPS TO REPRODUCE
1. Start Krita, create a new 2000x2000 document
2. Use Basic-1 brush and set size to somewhere around 800px using Shift+mouse drag. Tap on the canvas to make a circle. Set color to a medium-value desaturated blue and use Fill to fill the circle.
2. Ctrl+Shift+G to create a clipping group. In the new mask layer, use airbrush at 1000px with dark desaturated purple to draw shading around the bottom and right of the circle. Toggle eraser mode and use it lighten a bit of the shadow around the middle of the circle. Change layer opacity to around 75%.
3. Right-click the mask layer and duplicate it. Un-toggle eraser mode. Set color to pale desaturated yellow. In the new mask layer, attempt to draw highlight along top left edge of the circle with the airbrush.

OBSERVED RESULT
Nothing is drawn. Even the mask layer's thumbnail doesn't show any content in the layer. The brush will only draw on top of the crescent shadow from the original mask layer, even though the new mask layer should also inherit alpha from the circle layer at the bottom of the clipping group.

EXPECTED RESULT
Airbrush should be able to draw on top of any part of the circle.

4. After this, I tried some other things and got more weird behavior. Unfortunately I am not sure of my exact repro steps after this point.
4a. I deleted the new mask layer and tried to perform the tutorial steps again. Once again, I duplicated the mask layer in the clipping group, cleared the new layer, and found I could not draw on it.
4b. I duplicated Paint Layer 1 (called Layer 1 in Kai's tutorial) and moved it outside the clipping group, above the background layer. When I drew on it, somehow it was inheriting its *own* alpha--I could only draw inside the circle that was already there.
4c. The original mask layer started inheriting its own alpha as well--when I tried to draw on it with a brush, I could only recolor the crescent shading on that layer.
4d. The duplicated mask layer wouldn't let me draw anything anywhere. Possibly it was also inheriting its own alpha, and it was completely transparent already.

5. Finally, I saved the file, restarted Krita, and re-opened the file. All the layers were now working as expected and I was able to follow the tutorial.

6. I created a new file and performed the same (as close as I could remember) initial steps again, but I couldn't repro the bug a second time.

SOFTWARE/OS VERSIONS
Windows: 22H2 (OS Build 22621.900)
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
The attached file is the file I saved in step 5. Unfortunately it doesn't repro the bug when it's opened.
Comment 1 Halla Rempt 2022-12-08 13:00:04 UTC
I'm sorry, but I cannot reproduce the issue. I you can reproduce this consistently, could you make a video (one showing the full krita window)?
Comment 2 Bug Janitor Service 2022-12-23 05:23:16 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2023-01-07 05:26:10 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!