Bug 380955 - Krita will crash on applying translation (transform)
Summary: Krita will crash on applying translation (transform)
Status: RESOLVED DUPLICATE of bug 369549
Alias: None
Product: krita
Classification: Applications
Component: Tools/Transform (show other bugs)
Version: 3.1.4
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-08 03:02 UTC by formless
Modified: 2017-06-09 09:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description formless 2017-06-08 03:02:41 UTC
When applying a translation (transform) operation Krita will will sometimes immediately crash with no prompt what so ever beforehand. Running Krita through the terminal gives me: *** Error in `/home/user/Documents/krita-3.1.4.appimage': malloc(): memory corruption (fast): 0x00000000175862ff ***

Due to the rarity of this bug I can't add an attachment or ask any maintainers to reproduce the bug due to its severity so if there are any easy ways for me to grab more information out of the crashes for you please let me know.
Comment 1 formless 2017-06-08 03:05:20 UTC
Correction on the second paragraph:

*, but due to its severity this should no be ignored. So if there are any easy ways for me to grab more information out of the crashes for you please let me know.
Comment 2 Halla Rempt 2017-06-08 07:24:41 UTC
Which distribution are you on? Appimages don't have debug info, but distro packages do, and some distributions like (k)ubuntu and opensuse tumbleweed have recent Krita builds. This looks like it could be caught with valgrind, but for that, debug symbols are needed.
Comment 3 Halla Rempt 2017-06-08 07:46:08 UTC
I gues I've found a way to reproduce: drag and drop still works absolutely fine for me, but click and then draw an outline causes a big recursive crash if the current layer isn't a vector layer. This still worked in 3.1.2.
Comment 4 Halla Rempt 2017-06-08 07:53:14 UTC
Git commit 3e53dbf915a6799160090be3cc5594d29473514a by Boudewijn Rempt.
Committed on 08/06/2017 at 07:49.
Pushed by rempt into branch 'krita/3.2'.

Revert "Fix a crash after switching tools while running color picking"

This reverts commit daa136675d54877780bd136225e77e611347c223.
Related: bug 373883, bug 373883

This commit caused an infinite loop when creating a new shape by
clicking in the add-shape docker and then dragging an outline.

CCMAIL:dimula73@gmail.com
Date:   Mon Mar 27 13:56:39 2017 +0300

    Fix a crash after switching tools while running color picking

    The input manager should finish the action before the tool is
    switched, otherwise the tool may be left with dangling KoStrokeId
    pointers and crash after the next execution.
    Fixes T4962

I'm not sure how to fix both issues; reverting for now.

M  +0    -1    libs/flake/KoToolManager.cpp
M  +0    -6    libs/flake/KoToolManager.h
M  +0    -10   libs/ui/input/kis_input_manager.cpp
M  +0    -1    libs/ui/input/kis_input_manager.h

https://commits.kde.org/krita/3e53dbf915a6799160090be3cc5594d29473514a
Comment 5 formless 2017-06-08 08:34:19 UTC
This has actually been an issue for me for multiple versions now, though they may all be different issues with the same result. I'm on Ubuntu 15.10 (I know I should be using 16.04 but I have specific things preventing an upgrade). If you could give me a link to what debug build I should use I could compile that and run it.
Comment 6 Halla Rempt 2017-06-08 09:00:15 UTC
It would be best to build the last source release, I guess: it's in https://download.kde,.org/stable/krita
Comment 7 Raghavendra kamath 2017-06-09 03:19:56 UTC
Is this somehow related to this -> bug https://bugs.kde.org/show_bug.cgi?id=369549
Comment 8 Halla Rempt 2017-06-09 09:47:51 UTC
Very likely, let's consolidate the reports.

*** This bug has been marked as a duplicate of bug 369549 ***