Bug 427402

Summary: Paste as reference image crashes Krita
Product: [Applications] krita Reporter: Anna Medonosova <anna.medonosova>
Component: Tools/Reference ImagesAssignee: sh_zam <shzam>
Status: RESOLVED FIXED    
Severity: normal CC: dimula73, shzam
Priority: NOR Keywords: release_blocker
Version: 4.4.0-beta2   
Target Milestone: ---   
Platform: Android   
OS: Android 10.x   
Latest Commit: Version Fixed In:
Attachments: backtrace of the crash

Description Anna Medonosova 2020-10-06 20:42:21 UTC
Created attachment 132179 [details]
backtrace of the crash

SUMMARY
'Paste as reference image' button in the tool options of the reference image tool causes Krita to crash.

STEPS TO REPRODUCE
1. Open a document
2. Select the reference image tool
3. Click the 'Paste as reference image' button in the tool options

OBSERVED RESULT
A crash.

EXPECTED RESULT
I would expect it to either work, or not crash and display an error message.
Comment 1 sh_zam 2020-10-07 05:22:13 UTC
Assigning it to myself.
Comment 2 sh_zam 2020-10-07 07:49:40 UTC
Git commit 3f7272aaf39b7c89afc80c86525e3643c06d36d9 by Sharaf Zaman.
Committed on 07/10/2020 at 06:24.
Pushed by rempt into branch 'krita/4.3'.

Bugfix: Paste as reference image crashes Krita

M  +6    -6    plugins/tools/defaulttool/referenceimagestool/ToolReferenceImages.cpp

https://invent.kde.org/graphics/krita/commit/3f7272aaf39b7c89afc80c86525e3643c06d36d9
Comment 3 sh_zam 2020-10-07 08:00:39 UTC
Git commit 774cf1768fa2f9f0d80bc98098d4d5a6fec5d971 by Sharaf Zaman.
Committed on 07/10/2020 at 08:00.
Pushed by szaman into branch 'master'.

Bugfix: Paste as reference image crashes Krita


(cherry picked from commit 3f7272aaf39b7c89afc80c86525e3643c06d36d9)

M  +6    -6    plugins/tools/defaulttool/referenceimagestool/ToolReferenceImages.cpp

https://invent.kde.org/graphics/krita/commit/774cf1768fa2f9f0d80bc98098d4d5a6fec5d971
Comment 4 Dmitry Kazakov 2020-10-07 09:06:32 UTC
Git commit a8a18174a2fd233bd7d1ffbe2affd2615c79bb0f by Dmitry Kazakov, on behalf of Sharaf Zaman.
Committed on 07/10/2020 at 09:04.
Pushed by dkazakov into branch 'krita/4.4.0'.

Bugfix: Paste as reference image crashes Krita

M  +6    -6    plugins/tools/defaulttool/referenceimagestool/ToolReferenceImages.cpp

https://invent.kde.org/graphics/krita/commit/a8a18174a2fd233bd7d1ffbe2affd2615c79bb0f