Bug 432978 - Krita crashes after giving text a gradient
Summary: Krita crashes after giving text a gradient
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (show other bugs)
Version: 4.4.2
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-15 17:52 UTC by hectoris.gamebeast
Modified: 2022-04-07 11:45 UTC (History)
6 users (show)

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


Attachments
screenshot of steps - krita stalls briefly then crashes after the last step (443.30 KB, image/png)
2021-02-15 17:52 UTC, hectoris.gamebeast
Details
Crash logs (111.64 KB, text/plain)
2021-02-21 00:46 UTC, hectoris.gamebeast
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hectoris.gamebeast 2021-02-15 17:52:23 UTC
Created attachment 135707 [details]
screenshot of steps - krita stalls briefly then crashes after the last step

SUMMARY


STEPS TO REPRODUCE
1. Set Snap To to Pixel, Bounding Box, Image Bounds, and Image Center
2. Make a new Text object
3. Add a gradient to the outline

OBSERVED RESULT

Krita stalls briefly then crashes


EXPECTED RESULT

Text outline should get a gradient

SOFTWARE/OS VERSIONS
Windows: 10
Krita: 4.4.2

ADDITIONAL INFORMATION

Screenshots of steps in attachments
Comment 1 tomtomtomreportingin 2021-02-15 18:57:06 UTC
I can't reproduce on Linux.
Comment 2 hectoris.gamebeast 2021-02-15 19:15:31 UTC
(In reply to tomtomtomreportingin from comment #1)
> I can't reproduce on Linux.

Did you leave the fill text fill as solid or did you have it set to something else - I had my text's fill as a solid color when this bug occured
Comment 3 tomtomtomreportingin 2021-02-15 20:02:08 UTC
Still can't reproduce it, sorry.
Did you check to see if this seems to happen with all fonts or just the certain font you used?
Comment 4 hectoris.gamebeast 2021-02-15 20:19:17 UTC
(In reply to tomtomtomreportingin from comment #3)
> Still can't reproduce it, sorry.
> Did you check to see if this seems to happen with all fonts or just the
> certain font you used?

I tested it again with the fonts Impact and Arial. These fonts did not crash Krita immediately upon giving it a gradient outline - however, once I went to change the text's font (to be precise, as soon as I clicked on the font drop-down list), the program crashed. The font I was originally using is called Adam Warren pro by the way
Comment 5 Ahab Greybeard 2021-02-20 21:44:22 UTC
I can't reproduce this with 4.4.2 on Windows 10 using Adam Warren Pro font.
Is there a kritacrash.log at -\AppData\Local ?
Comment 6 hectoris.gamebeast 2021-02-21 00:46:10 UTC
Created attachment 135989 [details]
Crash logs
Comment 7 hectoris.gamebeast 2021-02-21 00:46:55 UTC
(In reply to Ahab Greybeard from comment #5)
> I can't reproduce this with 4.4.2 on Windows 10 using Adam Warren Pro font.
> Is there a kritacrash.log at -\AppData\Local ?

I have added the crash log to the attachments of this bug report
Comment 8 Ahab Greybeard 2021-02-21 07:40:06 UTC
I can't help with the crash log but if you're running any other applications as noted in the taskbar, please close them, restart the PC and try again with krita as the only running application.
Comment 9 Dmitry Kazakov 2021-08-02 09:03:13 UTC
The bug seems to have something related to RTL support. I cannot reproduce it here though (in LTR environment).
Comment 10 Will Stephenson 2021-12-15 08:43:51 UTC
Is this report a duplicate of the crash part of #395808?
Comment 11 Halla Rempt 2021-12-15 10:17:28 UTC
I don't think so, the crash seems to be in the destructor of QSvgHandler:

00007FFF8990DCCC 000000000039004D 00000000000000F0 00000000698C62E0  ntdll.dll!0x4dccc RtlpLfhFindClearBitAndSet+0xc4
00007FFF898FB91F 0000000000180000 00007FFF00000000 00000000000000E0  ntdll.dll!0x3b91f RtlpLowFragHeapAllocFromContext+0x25f
00007FFF898FB434 0000000000000000 00000000000000E0 0000000000000001  ntdll.dll!0x3b434 RtlpAllocateHeapInternal+0x994
00007FFF88FE9DA0 00000000000000E0 00000000005F7310 00000000005F75F0  msvcrt.dll!0x19da0 malloc+0x70
000000006FD0728C 0000000000000009 00000000005F7308 000000001E6C2A68  libstdc++-6.dll!0xc728c operator new+0x1c
00007FFF4091B773 0000000000000005 00007FFF17C20AC9 0000000000000000  Qt5Svg.dll!0xb773 QSvgHandler::~QSvgHandler+0x1f03
Comment 12 Alvin Wong 2021-12-31 08:36:27 UTC
The backtrace looks sort of like heap corruption to me? Probably needs checking with memcheck or appverifier

(In reply to Dmitry Kazakov from comment #9)
> The bug seems to have something related to RTL support. I cannot reproduce
> it here though (in LTR environment).

I don't see anything related to RTL from the screenshots...
Comment 13 Alvin Wong 2021-12-31 15:32:49 UTC
I can't trigger any crashes under appverifier on nightly ac1d8bd110, even using the Adam Warren Pro font.
Comment 14 Halla Rempt 2022-04-07 11:45:36 UTC
I don't think there's anything we can do here... It's already weird that the crash in QtSvg since we don't actually use that for drawing text or shapes -- it's only used in the svg brush and in the storyboard docker. From the backtrace, it looks like rendering a certain icon for a tool button was broken, but that's deep in Qt. Let's call this a Qt bug...