Bug 482885 - Exporting compositions results in corrupted images when using clone layers with filters
Summary: Exporting compositions results in corrupted images when using clone layers wi...
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: Filter Layers (other bugs)
Version First Reported In: 5.2.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-08 15:11 UTC by beholdervee
Modified: 2025-10-25 18:43 UTC (History)
2 users (show)

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


Attachments
Corruption example (93.73 KB, image/png)
2024-03-08 15:11 UTC, beholdervee
Details
Screenshot of the issue (1.78 MB, image/png)
2025-07-18 12:28 UTC, MAINIE Zhuma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description beholdervee 2024-03-08 15:11:09 UTC
Created attachment 166720 [details]
Corruption example

SUMMARY
I tried using the clone layer to create a drop shadow that changes automatically when its source is changed. This is especially useful in combination with compositions, allowing you to create many variations of an image, without having to worry about making separate shadows for each variation.
The result, however, is when I export the compositions, they come out corrupted.
The attached image is supposed to be a circle with a drop shadow. The result contains a huge artifact.
The bug doesn't seem to appear when there is only one composition or when there isn't a filter mask.


STEPS TO REPRODUCE
1. Create a group layer
2. Put a layer in it and draw something
3.  Create a clone layer of the group, add the "slope, offset, power" filter mask to it
4. Save the current composition
5. Create another layer in the group layer and draw something in it
6. Save the current composition (so you have two)
7. Export the compositions

OBSERVED RESULT
Exported images are distorted with huge background-colour squares. There can be one or multiple, they appear in random spots on the image.

EXPECTED RESULT
Proper exports.

SOFTWARE/OS VERSIONS
Krita version: 5.2.2
Kernel Type: linux
Kernel Version: 6.7.8-zen1-1-zen
Pretty Productname: EndeavourOS
QT Version (compiled): 5.15.12
Appimage build: No
Comment 1 MAINIE Zhuma 2025-07-18 00:42:45 UTC
I have a similar issue, seemingly coming from a "slope, offset, power" filter layer that creates red blobs and linings around the drawing group.
The red blobs and outlines aren't visible directly on the painting renderer but seems to appear in the overview renderer and after export.
Removing the filter layer seems to remove partially the issue : a few blobs remains.

The second thing that seems to have an impact is the use of some specific layer blending options other than "Normal".
Since there is really this many blending modes, i just tested a few at random :

> blending mode used, is there a difference between painting and overview, is exported file different too (jpg)
> It is to note that during these tests, I didn't took account of the blob that persisted between all changes and that seems to be linked to the background that did pass through som heavy modifications using filters , but since I didn't use any filter layers nor masks, I can't say from where the blob came from.

- Shade (IFS Illusions), yes, yes
- Soft Light (Photoshop), yes, no
- Overlay, no, no
- Multiply, no, no
- Saturation, no, no
- Fog Darken (IFS Illusions), no, no
- Combine Normal Map, yes, yes


SYSTEM INFO :

- Krita version : 5.2.11
- Krita build : Appimage
- Linux distribution : Mageia 9
- Kernel version : 6.6.93-desktop-1.mga9 (64-bit)
Comment 2 MAINIE Zhuma 2025-07-18 00:51:30 UTC
(In reply to MAINIE Zhuma from comment #1)
> I have a similar issue, seemingly coming from a "slope, offset, power"
> filter layer that creates red blobs and linings around the drawing group.
> The red blobs and outlines aren't visible directly on the painting renderer
> but seems to appear in the overview renderer and after export.
> Removing the filter layer seems to remove partially the issue : a few blobs
> remains.
> 
> The second thing that seems to have an impact is the use of some specific
> layer blending options other than "Normal".
> Since there is really this many blending modes, i just tested a few at
> random :
> 
> > blending mode used, is there a difference between painting and overview, is exported file different too (jpg)
> > It is to note that during these tests, I didn't took account of the blob that persisted between all changes and that seems to be linked to the background that did pass through som heavy modifications using filters , but since I didn't use any filter layers nor masks, I can't say from where the blob came from.
> 
> - Shade (IFS Illusions), yes, yes
> - Soft Light (Photoshop), yes, no
> - Overlay, no, no
> - Multiply, no, no
> - Saturation, no, no
> - Fog Darken (IFS Illusions), no, no
> - Combine Normal Map, yes, yes
> 
> 
> SYSTEM INFO :
> 
> - Krita version : 5.2.11
> - Krita build : Appimage
> - Linux distribution : Mageia 9
> - Kernel version : 6.6.93-desktop-1.mga9 (64-bit)

Link to my .kra file :
https://drive.google.com/file/d/1I8a_AAJIRwXY2Ae6Adg3Jh_dS67UaXSo/view?usp=sharing
Comment 3 MAINIE Zhuma 2025-07-18 12:28:02 UTC
Created attachment 183321 [details]
Screenshot of the issue

Took a screenshot since the kra file may be really large to work with.
Comment 4 cromachina 2025-10-25 18:43:48 UTC
I'm also experiencing this with a pixelate filter with a multiply layer below it in an animation.
Sometimes the animation viewer itself seems to be corrupted in a similar way when scrubbing frames (if you stop on a frame, it goes away), so this might indicate that there is an issue in the compositor and it's output cache?

The layout looks like this, unfortunately I can't share the Krita file:
- Group
- - Filter: Pixelate
- - Layer: Multiply
- - - Transparency Mask
- - Layer: Normal