Bug 446970 - Using the text tool causes the application to hang
Summary: Using the text tool causes the application to hang
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (show other bugs)
Version: 5.0.0-beta5
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-14 11:22 UTC by Michal Hazdra
Modified: 2022-03-08 14:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Happens in every file but attaching it in case something is wrong with it. (105.17 KB, application/x-krita)
2021-12-14 11:22 UTC, Michal Hazdra
Details
SystemLog (2.59 KB, text/plain)
2021-12-14 11:59 UTC, Michal Hazdra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Hazdra 2021-12-14 11:22:11 UTC
Created attachment 144538 [details]
Happens in every file but attaching it in case something is wrong with it.

STEPS TO REPRODUCE
1. Clean install of Krita 5 beta 5
2. Create a new document
3. Select text tool and drag a rectangular area
4. Application hangs

EXPECTED RESULT
The popup window where text is entered to open, but it does not open.

SOFTWARE/OS VERSIONS
Windows: 10
Qt Version: 5.12.12
Comment 1 Michal Hazdra 2021-12-14 11:28:53 UTC
After uninstalling beta 5 and going back to 4.4.8 the issue persists... So this is deeper than just Krita.
Comment 2 Michal Hazdra 2021-12-14 11:33:56 UTC
I have not done any changes to system installed fonts since I used the tool and it was working. So I believe it is not font related.
Comment 3 Halla Rempt 2021-12-14 11:35:55 UTC
Could you please 
* attach the contents of help->report bug to this bug report
* check whether it happens with a clean config (https://docs.krita.org/en/KritaFAQ.html#resetting-krita-configuration)
Comment 4 Michal Hazdra 2021-12-14 11:59:21 UTC
Created attachment 144539 [details]
SystemLog
Comment 5 Michal Hazdra 2021-12-14 12:01:10 UTC
Resetting configuration fixed it. Should I upload the backup that it created? Note that this was done on 4.4.8 now.
Comment 6 Halla Rempt 2021-12-14 12:03:31 UTC
I suspect that the dialog was shown off screen -- it stores its position in the config files. I don't think we can do much with the config file.
Comment 7 Michal Hazdra 2021-12-14 12:09:16 UTC
Tried it and Alt+C does make it work so the offscreen position is likely the culprit. With that I restored the config and even Win+LArrow makes it show... Oops. I should have tried that. Sorry
Comment 8 Halla Rempt 2021-12-14 12:19:50 UTC
The question now is... Can we detect this and make sure the dialog is always mapped to a valid screen, or not...
Comment 9 Michal Hazdra 2021-12-14 12:36:27 UTC
I just tried to connect an external display, move the text tool to it, then closed Krita, disconnected the display, opened Krita again and the text tool was correctly displayed on the single monitor... so this is already implemented in some way?
Comment 10 Michal Hazdra 2021-12-14 12:41:03 UTC
I moved it from left to right (Alt+RArrow), assuming windows handles positions TopRight = [0,0] (which I am just guessing) then the config somehow contained negative values? I cannot reproduce it now...
Comment 11 Halla Rempt 2021-12-14 12:43:19 UTC
Yes, it is properly the job of windows to place the dialog correctly.
Comment 12 Bug Janitor Service 2021-12-15 04:35:24 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.