Bug 414258

Summary: Seg fault crash when opening text editor through double-click
Product: [Applications] krita Reporter: M <manuel.snudl.zeidler>
Component: Tool/TextAssignee: Kuntal Majumder <hellozee>
Status: RESOLVED FIXED    
Severity: normal CC: acc4commissions, ahab.greybeard, hellozee, nikola.knezevic.mne
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: GDB backtrace

Description M 2019-11-18 09:30:33 UTC
Created attachment 123981 [details]
GDB backtrace

SUMMARY
Trying to edit a text container with the Text Tool using the double-left-click shortcut results in a crash, while Enter and the button in the tool options work fine. Only master seems cause it, 4.2.7 doesn't crash here. I'll attach a backtrace.

STEPS TO REPRODUCE
1. Open a document, create some text on a vector layer and close the editor.
2. Try to reopen it using double-click on the text.

OBSERVED RESULT
Immediate crash.

EXPECTED RESULT
Editor opening normally.

SOFTWARE/OS VERSIONS
Tested in master and newest AppImage (git 938bf9e) and 4.2.7 from distro.
Comment 1 nikola 2019-11-26 22:40:43 UTC
Same here on windows 10 and 4.3.0 (git e27ab3a).
Comment 2 Ahab Greybeard 2019-11-27 08:20:20 UTC
The 4.2.8-beta1 appimage does not crash
Comment 3 Kuntal Majumder 2019-11-27 11:39:46 UTC
It is definitely my patch
Comment 4 Kuntal Majumder 2019-11-30 10:43:51 UTC
Bug fixed as for, commit hash : fcb5c280af2d485d713202d0dc477e0838671b5f

Accidentally put the wrong bug number in the commit message, :P
Comment 5 Kuntal Majumder 2019-11-30 20:30:32 UTC
*** Bug 414642 has been marked as a duplicate of this bug. ***