<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>484783</bug_id>
          
          <creation_ts>2024-03-30 21:39:31 +0000</creation_ts>
          <short_desc>Krita recorder causes freehand selection and shapes to complete early before brush stroke is complete</short_desc>
          <delta_ts>2024-11-08 10:48:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>General</component>
          <version>5.2.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="LKS">menjah_transactions</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          <cc>info</cc>
    
    <cc>moult</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/krita/-/commit/c99b19450ccbe79356597afe1fe4213a9791378d</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2307140</commentid>
    <comment_count>0</comment_count>
    <who name="LKS">menjah_transactions</who>
    <bug_when>2024-03-30 21:39:31 +0000</bug_when>
    <thetext>***
If you&apos;re not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you&apos;re reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
When Krita recorder is on, it seems that lasso selections and brush strokes are interrupted by the recorder, causing selections to complete early before pen tip is raised off tablet. Similar with non-freehand shape brushes, like rectangle circle etc

STEPS TO REPRODUCE
1. enable recorder set to small seconds interval
2. try using freehand selection/ lasso, rectangle, circle etc tool
3. usually, the selection will complete itself before your pen lifts from the surface

OBSERVED RESULT
Shapes, freehand selection tool, complete early when recorder is on

EXPECTED RESULT
recorder should not interrupt selection

SOFTWARE/OS VERSIONS
Windows: 12
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2307144</commentid>
    <comment_count>1</comment_count>
    <who name="LKS">menjah_transactions</who>
    <bug_when>2024-03-30 21:50:45 +0000</bug_when>
    <thetext>https://youtu.be/smtdxuQpros

Here&apos;s a short video of the issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2311706</commentid>
    <comment_count>2</comment_count>
    <who name="Freya Lupen">penguinflyer2222</who>
    <bug_when>2024-04-15 13:32:47 +0000</bug_when>
    <thetext>*** Bug 485506 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2338465</commentid>
    <comment_count>3</comment_count>
    <who name="moult">moult</who>
    <bug_when>2024-07-19 11:15:28 +0000</bug_when>
    <thetext>The bug is also/still present on MacOS 12.7.5/Krita 5.2.3.

For me at least, selections and shapes complete prematurely only if they&apos;re begun quickly after a previous selection/shape completes. If a few seconds are left after the previous one, the new one remains under control and completes correctly. Video: https://youtu.be/lA8SoRyQ4jQ</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372708</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2024-11-08 10:48:02 +0000</bug_when>
    <thetext>Git commit c99b19450ccbe79356597afe1fe4213a9791378d by Dmitry Kazakov, on behalf of Firstname Aqaao.
Committed on 08/11/2024 at 10:47.
Pushed by dkazakov into branch &apos;krita/5.2&apos;.

Fixed: some tools is interrupted by recorder.

Related threads:
[bug#477715](https://bugs.kde.org/show_bug.cgi?id=477715)
[bug#484783](https://bugs.kde.org/show_bug.cgi?id=484783)

According to my tests, half of tools are affected.

This MR expanded tool blacklist and divide tools into two categories.

One is done in one step(like Line Tool), just disable recorder when such tools are activated(left button pressed on canvas).

One is done in multiple steps(like FreeHand Selection Tool), we need disable recorder in such tools all lifetime.
Related: bug 488472, bug 477715

M  +2    -0    libs/ui/canvas/kis_tool_proxy.cpp
M  +4    -1    libs/ui/canvas/kis_tool_proxy.h
M  +55   -8    plugins/dockers/recorder/recorder_writer.cpp
M  +1    -0    plugins/dockers/recorder/recorder_writer.h

https://invent.kde.org/graphics/krita/-/commit/c99b19450ccbe79356597afe1fe4213a9791378d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>