<?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>314846</bug_id>
          
          <creation_ts>2013-02-10 19:21:54 +0000</creation_ts>
          <short_desc>Crash (segmentation fault) switching layer with unapplied transformation</short_desc>
          <delta_ts>2013-03-09 22:36:29 +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>Tools/Transform</component>
          <version>git master (please specify the git hash!)</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</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>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tom Hall">tahall256</reporter>
          <assigned_to name="Dmitry Kazakov">dimula73</assigned_to>
          <cc>dimula73</cc>
          
          <cf_commitlink>http://commits.kde.org/calligra/ddccc819070d86404e022487d686700d8e165927</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>1340115</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Hall">tahall256</who>
    <bug_when>2013-02-10 19:21:54 +0000</bug_when>
    <thetext>Beginning a transformation using the transform tool, then attempting to switch layers without applying or cancelling the transformation causes a Segmentation Fault.

The following is output to the terminal just before the crash:
WARNING: Transform Stroke: the device is absent in cache!

Reproducible: Always

Steps to Reproduce:
1. Create a document with at least 2 layers.
2. Make a selection.
3. Select the transform tool and transform the selection in some way (but don&apos;t press enter to apply the transformation).
4. Select a different layer via the layers docker.
Actual Results:  
Terminal output: &quot;WARNING: Transform Stroke: the device is absent in cache!&quot;
Segmentation Fault!!!

Expected Results:  
Don&apos;t crash, obviously.

(Not sure what it would do if it didn&apos;t segfault, but if there&apos;s any doubt, I suggest it should either discard the unfinished transformation, store it in some way so the user can continue transforming when they switch back to the layer, or show a dialog asking the user whether to apply/discard/cancel.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1340132</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2013-02-10 20:03:26 +0000</bug_when>
    <thetext>Hi!

Thank you for your report! I can reproduce this crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1349291</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2013-03-09 22:36:29 +0000</bug_when>
    <thetext>Git commit ddccc819070d86404e022487d686700d8e165927 by Dmitry Kazakov.
Committed on 09/03/2013 at 22:41.
Pushed by dkazakov into branch &apos;master&apos;.

Fix a crash in the transform tool

The currentNode() can be changed when the stroke is finished
by switching the layers.

M  +10   -8    krita/plugins/tools/tool_transform2/kis_tool_transform.cc
M  +9    -2    krita/plugins/tools/tool_transform2/transform_transaction_properties.h

http://commits.kde.org/calligra/ddccc819070d86404e022487d686700d8e165927</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>