https://bugs.kde.org/show_bug.cgi?id=456586

            Bug ID: 456586
           Summary: [kpp][pattern] Could not import embedded resource
                    KoResourceSignature("patterns",
                    "e1d2f36380b34f2ebbe75d6418e937a9", "tex9.png.pat",
                    "tex9.png.pat")
           Product: krita
           Version: nightly build (please specify the git hash!)
          Platform: Appimage
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Resource Management
          Assignee: krita-bugs-n...@kde.org
          Reporter: i...@davidrevoy.com
  Target Milestone: ---

Created attachment 150535
  --> https://bugs.kde.org/attachment.cgi?id=150535&action=edit
^ the buggy KPP brush preset

Hi,
I made a derivation of a default kpp preset, saved it; but this new kpp can't
never load it's pattern... unless I click first on the original preset.

To reproduce:
===========
1. Download the KPP file in attachement
"g)_Dry_Textured_Creases_creamy.0001.kpp"
2. Open Krita, create a new document, go to Settings > Manage Resources >
Import Resources and load the KPP, Close the resources Manager.
3. In your "Brush Preset" docker, scroll to find the preset
"g)_Dry_Textured_Creases_creamy" with it's green stroke on the thumbnail. Click
on it and paint a stroke on the canvas. 

Result:
======
The terminal prints these errors:
```
Could not open
"/home/deevad/sources/krita/.share/krita/paintoppresets/g)_Dry_Textured_Creases_creamy.0001.kpp"
for reading
Could not get linked pattern
createLocalResourcesSnapshot: Could not import embedded resource
KoResourceSignature("patterns", "e1d2f36380b34f2ebbe75d6418e937a9",
"tex9.png.pat", "tex9.png.pat")
```
If you paint with the brush, you'll notice it doesn't have any texture: the
stroke is plain.
Painting this way will print many:
```
WARNING: Couldn't load the pattern for a stroke (KisTextureMaskInfo)
WARNING: Couldn't load the pattern for a stroke (KisTextureMaskInfo)
WARNING: Couldn't load the pattern for a stroke (KisTextureMaskInfo)
WARNING: Couldn't load the pattern for a stroke (KisTextureMaskInfo)
WARNING: Couldn't load the pattern for a stroke (KisTextureMaskInfo)
createLocalResourcesSnapshot: Could not import embedded resource
KoResourceSignature("patterns", "e1d2f36380b34f2ebbe75d6418e937a9",
"tex9.png.pat", "tex9.png.pat")
WARNING: Couldn't load the pattern for a stroke (KisTextureMaskInfo)
WARNING: Couldn't load the pattern for a stroke (KisTextureMaskInfo)
WARNING: Couldn't load the pattern for a stroke (KisTextureMaskInfo)
WARNING: Couldn't load the pattern for a stroke (KisTextureMaskInfo)
WARNING: Couldn't load the pattern for a stroke (KisTextureMaskInfo)
WARNING: Couldn't load the pattern for a stroke (KisTextureMaskInfo)
```

Observation:
===========
Something interesting is, if you click now on the 'original' preset part of the
default "g)_Dry_Textured_Creases" (side to side with the custom preset), paint
a little bit on the canvas (a single stroke is ok), and then pick back the
faulty preset "g)_Dry_Textured_Creases_creamy.0001.kpp" ... Then the bug is
fixed: it now  behaves correctly and there is no more issue of loading the
pattern.

Hardware and Spec:
================
2022-07-11, 13h13 nightly stable appimage:
krita-5.1.0-beta2-fd924d7c03-x86_64.appimage
Fedora 36 KDE. Mesa 
GPU: AMD ATI Radeon RX 5500/5500M / Pro 5500M
CPU: AMD Ryzen 7 3700X (16) @ 3.600GHz
VM: Kwin/X11
DE: KDE Plasma 5.24.5
Qt version compiled: 5.12.12, loaded: 5.12.12.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to