Bug 314005 - It is possible to start a stroke part way through loading preset (new brush, old blending mode)
Summary: It is possible to start a stroke part way through loading preset (new brush, ...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-27 22:33 UTC by Tom Hall
Modified: 2016-06-16 09:06 UTC (History)
3 users (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 Tom Hall 2013-01-27 22:33:20 UTC
It is possible (and not that improbable: I discovered this while sketching) to start a stroke immediately after pressing / to switch presets, and have the stroke use shape, size, etc. from the new preset, but the blend mode from the previous preset.

Doesn't matter what the brush blending-modes are, though of course it is only observable if they are different.

I suspect using / to switch to the previous preset is an important part of this bug only in that it permits you to begin a stroke very soon after switching presets.

It might be difficult to reproduce on a high end machine. If so, maybe try with some CPU-intensive processes in the background.

Reproducible: Always

Steps to Reproduce:
1. Select two different presets which use different blending modes, one after the other. (e.g. Basic_erase and Basic_ink_ballpen)
2. Press /
3. Begin a stroke without delay!
Actual Results:  
The stroke has the properties from the new preset, but uses the blending mode of the previous preset. (e.g. shape and size of Basic_erase, but paints colour using normal mode instead of erasing with erase mode.)

Expected Results:  
The stroke is done either with one preset or the other. The thread getting the preset information for the stroke should not be able to access the info while it is still being modified by another thread / Blend mode should be switched simultaneously with the other properties (well it should appear that way, i.e. no access to the current preset information between setting the brush and setting the mode).
Comment 1 Halla Rempt 2013-03-31 10:53:07 UTC
I couldn't reproduce :-). But that the mechanism makes it possible is clear. Maybe something for on dmitry's todo list. I don't think it should have a really high prio, though.
Comment 2 Bollebib 2014-01-16 14:54:12 UTC
can't trigger this on my system
Comment 3 Dmitry Kazakov 2015-06-21 11:14:25 UTC
Hi, Tom!

I cannot reproduce this bug anymore. Could you please check if this bug is still available in the current version of Krita?

http://nonaynever.ru/kwiki/krita/MostRecentBuilds