Summary: | Crash when using text tool, possibly caused by LibreOffice latest version? | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | arthezarthez1 |
Component: | Tool/Text | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | REPORTED --- | ||
Severity: | crash | CC: | halla |
Priority: | NOR | ||
Version First Reported In: | 5.2.9 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
arthezarthez1
2025-06-08 12:27:16 UTC
I think that this version of Libreoffice pulled in a font that breaks Krita's font handling. Truetype fonts are actually complete programs (and on Windows run directly in the kernel), and sometimes when accessing a font's features, the font will crash a running application. You could try the latest nightly build (https://cdn.kde.org/ci-builds/graphics/krita/master/) which has a completely rewritten text object and see whether that is also susceptible to the issue. (In reply to Halla Rempt from comment #1) > I think that this version of Libreoffice pulled in a font that breaks > Krita's font handling. Truetype fonts are actually complete programs (and on > Windows run directly in the kernel), and sometimes when accessing a font's > features, the font will crash a running application. > > You could try the latest nightly build > (https://cdn.kde.org/ci-builds/graphics/krita/master/) which has a > completely rewritten text object and see whether that is also susceptible to > the issue. Hello, just tried the built and the issue still persist. the only difference is that the "edit text" button on tool options window does nothing when clicked instead of crashing. krita.exe caused an Access Violation at location 00007FF985827005 in module libkritaflake.dll Reading from location 0000000000000000. Thanks for checking. I guess the next step should be sharing all .ttf files on your system with me (probably best to do that through kritafoundation@gmail.org, to keep it private) so we can try to figure out which font is responsible for the issue. You could also, alternatively, try to backup all krita's settings and clear them: https://docs.krita.org/en/KritaFAQ.html#resetting-krita-configuration , it might be that it's just the currently selected font that causes the problem. (In reply to Halla Rempt from comment #3) > Thanks for checking. I guess the next step should be sharing all .ttf files > on your system with me (probably best to do that through > kritafoundation@gmail.org, to keep it private) so we can try to figure out > which font is responsible for the issue. > > You could also, alternatively, try to backup all krita's settings and clear > them: https://docs.krita.org/en/KritaFAQ.html#resetting-krita-configuration > , it might be that it's just the currently selected font that causes the > problem. Hello, thanks for replying i`ve tried the alternative months ago by resetting krita and it didnt solve it. just want to inform that.. also i`ve sent the files ๐๐งน Thanks for your comment! Automatically switching the status to REPORTED so the team can perform further triage. In the future you may also do this yourself when providing needed information. Hi, something must've gone wrong with sending the font files, since i cannot find them, not even in the spam or trash folder. Could you resend them? I updated to the latest libreoffice and I know it installed some fonts, but after a reboot, I could still Krita's text shape. (In reply to Halla Rempt from comment #6) > Hi, something must've gone wrong with sending the font files, since i cannot > find them, not even in the spam or trash folder. Could you resend them? Sorry wasn`t it the foundation email? because i tried copying the email kritafoundation@gmail.org which didnt work so i assume its the foundation email is foundation@krita.org and sent to there instead. Should i just send it to your email? (In reply to Halla Rempt from comment #7) > I updated to the latest libreoffice and I know it installed some fonts, but > after a reboot, I could still Krita's text shape. My bad i just check my windows event log forgot what version it was (since february) which is version 24.8.2.1 so the version should be before that... May i ask for the FONTCONFIG variable something like that for temporary fix? because these happen to GIMP too not until i add "FONTCONFIG_PATH" and "FONTCONFIG_FILE" to my system environment variables which fix the crash for GIMP. gimp, as a gtk application, uses fontconfig on Windows, but Krita uses the native Windows font registry (afaik...) I'll check the foundation@krita.org mail box after I've had breakfast :-) I got the fonts now, but even after installing the fonts, I am not getting the crash :-( No, we do use fontconfig on WIndows, otherwise we wouldn't see a crash in that function. Git commit dd694c8cca178f98f6207dd1a48e623822877a68 by Halla Rempt. Committed on 13/06/2025 at 08:24. Pushed by rempt into branch 'master'. KoFontRegistry: add an assert checking fonts and lengths The code in the next block indexes the fonts array using the size of the lengths array. They should be the same, but this will crash if they aren't. Let's see whether this is the cause of M +5 -0 libs/flake/text/KoFontRegistry.cpp https://invent.kde.org/graphics/krita/-/commit/dd694c8cca178f98f6207dd1a48e623822877a68 Hi, It looks like we finally have builds with the new warning in there. Could you download https://cdn.kde.org/ci-builds/graphics/krita/master/windows/krita-x64-5.3.0-prealpha-917fed54-dbg.zip https://cdn.kde.org/ci-builds/graphics/krita/master/windows/krita-x64-5.3.0-prealpha-917fed54.zip And unzip them in the same place, then reproduce the bug. The resulting krita-crash.log and krita.log files from appdata should contain a lot more information. Sure, in a minute. (In reply to Halla Rempt from comment #14) > Hi, > > It looks like we finally have builds with the new warning in there. Could > you download > > https://cdn.kde.org/ci-builds/graphics/krita/master/windows/krita-x64-5.3.0- > prealpha-917fed54-dbg.zip > https://cdn.kde.org/ci-builds/graphics/krita/master/windows/krita-x64-5.3.0- > prealpha-917fed54.zip > > And unzip them in the same place, then reproduce the bug. The resulting > krita-crash.log and krita.log files from appdata should contain a lot more > information. Here it is, both crash log are pasted into rar in drive link. https://drive.google.com/file/d/1BskqZTQ8etGz0MwPBo5ok67E9UxEbzVr/view?usp=sharing its weird libreoffice didnt do crash on your end... maybe i shouldnt accuse libre just yet lol. ๐๐งน Thanks for your comment! Automatically switching the status to REPORTED so the team can perform further triage. In the future you may also do this yourself when providing needed information. Meh, looks like the debug symbols didn't work, so this didn't give a lot more info. Could you share the actual .kra files with me? Privately, you can do that through hallarempt@gmail.com (In reply to Halla Rempt from comment #18) > Meh, looks like the debug symbols didn't work, so this didn't give a lot > more info. Could you share the actual .kra files with me? Privately, you can > do that through hallarempt@gmail.com sure, email sent. I got the file, but I still cannot reproduce the issue :-( |