Bug 438806 - Assert on layer styles -> local stroke resources
Summary: Assert on layer styles -> local stroke resources
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (other bugs)
Version First Reported In: git master (please specify the git hash!)
Platform: Mint (Ubuntu based) Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-17 15:26 UTC by Tiar
Modified: 2021-07-27 07:35 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiar 2021-06-17 15:26:56 UTC
SUMMARY
safe assert in local stroke resources not containing a specific pointer.

STEPS TO REPRODUCE
1. Add a custom layer style to the layer: make sure to use a pattern and a gradient. (I even used new custom ones) - open the dialog, press OK.
2. Open the dialog again.
3. Use "New" to save the layer style to your local resources.

OBSERVED RESULT
SAFE ASSERT (krita): "!localResources.contains(KoResourceSP())" in file /home/tymon/kritadev/krita/libs/resources/KisLocalStrokeResources.cpp, line 73

Note: the layer style is in fact added and working correctly.

EXPECTED RESULT
No safe assert.

SOFTWARE/OS VERSIONS
git 7abe84bc3c

Krita

 Version: 5.0.0-prealpha (git 7abe84b)
 Languages: en_US, en, en_US, en, en_US, en, pl, pl_PL, pl
 Hidpi: true

Qt

  Version (compiled): 5.12.8
  Version (loaded): 5.12.8

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.4.0-58-generic
  Pretty Productname: Linux Mint 20.1
  Product Type: linuxmint
  Product Version: 20.1
  Desktop: X-Cinnamon
Comment 1 Halla Rempt 2021-07-27 07:35:24 UTC
I cannot reproduce this with 33ad445df9405e4f12c3357cdcb508dde7bdf00a