Bug 329048

Summary: Krita freeze under when trying to insert text
Product: [Applications] krita Reporter: coucout <eric.coutier>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: chrjs, dimula73, halla
Priority: NOR Keywords: release_blocker
Version: 2.8 Beta   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description coucout 2013-12-20 19:29:01 UTC
Under Windows 8.1, krita x64 v 2.8 Beta 1. I want to insert text. When i draw the rectangle to put the text into, krita seems to freeze and its memory occupation and processor occupation grow up in impressive manner.


Reproducible: Always

Steps to Reproduce:
1°) click on "T" tool
2°) defining rectangle on the layer to put the text in
3°) when terminating rectangle definition
Actual Results:  
Mouse cursor turn into prohibitory sign.
The memory occupation grow up in impressive manner (up to 2, 3 Gb) for krita.exe process. Same thing for the processor occupation.

Expected Results:  
Begin to accept typing text
Comment 1 coucout 2013-12-20 19:29:34 UTC
Windows 8.1, krita x64
Comment 2 Dmitry Kazakov 2013-12-22 10:29:48 UTC
Confirmed. The bug seems to be Windows-specific. It is not reproducible on Linux, but is present on Windows.
Comment 3 coucout 2013-12-22 23:06:11 UTC
This bug seems to be specific at Krita 64 bits. With krita 32 bits running on my windows 8 64 bits, the problem doesn't occur.
Comment 4 Dmitry Kazakov 2013-12-24 11:29:54 UTC
Then it must be some uninitialized variable issue :(
Comment 5 Halla Rempt 2014-01-02 11:31:59 UTC
Hm, with the latest builds on Windows, I actually cannot reproduce this, neither in single line nor in multiline text mode.
Comment 6 coucout 2014-01-02 14:40:22 UTC
The problem is always here (just downloaded Krita 64 bits 2.8 Beta 1 (git e4822223) KDE Platform 4.10.4)
Running on Windows 8.1 64 bits.
Comment 7 Halla Rempt 2014-01-02 16:08:24 UTC
This really is very, very strange. I must be doing something different from you when trying to reproduce the issue. Or it could be the windows version... I was testing on Win7.
Comment 8 Halla Rempt 2014-01-28 10:16:32 UTC
*** Bug 330122 has been marked as a duplicate of this bug. ***
Comment 9 Dmitry Kazakov 2014-01-31 08:08:48 UTC
A bit of update:

1) It happens on Windows 8 only
2) The most recent version does not hang completely, but takes about 20-30 seconds to create a text.
3) When closing Krita after creation of a text (with the Default Tool activated, that is no additional widgets are shown on a canvas), it hangs in ~KoToolBasePrivate() on a line qDeleteAll(optionWidgets);
Comment 10 Dmitry Kazakov 2014-01-31 11:04:19 UTC
Git commit 5820c53fe3af71b8bd530941aff6871c54aac54c by Dmitry Kazakov.
Committed on 31/01/2014 at 11:03.
Pushed by dkazakov into branch 'master'.

Fix a hangup on Windows 8 Rus when trying to use Text Tool

See a comment in KoFontComboBox.h

A  +42   -0    libs/main/KoFontComboBox.h     [License: LGPL (v2+)]
M  +3    -8    plugins/artistictextshape/ArtisticTextShapeConfigWidget.ui
M  +3    -8    plugins/formulashape/FormulaToolWidget.ui
M  +2    -1    sheets/ui/ActionOptionWidget.cpp

http://commits.kde.org/calligra/5820c53fe3af71b8bd530941aff6871c54aac54c
Comment 11 Dmitry Kazakov 2014-02-04 08:21:43 UTC
Git commit a7830b60afdc28baf4d4131d78e084959f3eb1da by Dmitry Kazakov.
Committed on 31/01/2014 at 11:03.
Pushed by dkazakov into branch 'calligra/2.8'.

Fix a hangup on Windows 8 Rus when trying to use Text Tool

See a comment in KoFontComboBox.h

A  +42   -0    libs/main/KoFontComboBox.h     [License: LGPL (v2+)]
M  +3    -8    plugins/artistictextshape/ArtisticTextShapeConfigWidget.ui
M  +3    -8    plugins/formulashape/FormulaToolWidget.ui
M  +2    -1    sheets/ui/ActionOptionWidget.cpp

http://commits.kde.org/calligra/a7830b60afdc28baf4d4131d78e084959f3eb1da