Bug 381176

Summary: Krita crashes in the color selector dialog when you paste an #rrggbb color in the "color name" field
Product: [Applications] krita Reporter: Joshua Kinard <kumba>
Component: Color SelectorsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: halla, nicholaslapointe8
Priority: NOR    
Version First Reported In: 3.1.4   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: kritacrash.log

Description Joshua Kinard 2017-06-14 02:29:56 UTC
Created attachment 106090 [details]
kritacrash.log

I am able to trigger a crash in Krita 3.1.4, on Windows Server 2008 R2 x64 (basically Windows 7, NT version is 6.1), by the following steps:

1. Open Krita.
2. Open any image (I used a small PNG from the "Fugue" icon set, v3.5.6).
3. Click on the color palette icon on the top toolbar to select a foreground/background color.
4. Click into the "Color name" field and select all existing text.
5. Paste a new #rrggbb color hex string already in the clipboard.
6. Click out of the field into any other field.
7. Crash.

I'll attach the kritacrash file as well, as the crash is happening in Qt5Widgets.dll, and I cannot locate a debug symbol file for that to use with the Windows Debugger.  Looks like the crash log has a pretty complete backtrace anyways.
Comment 1 Nicholas LaPointe 2017-06-22 11:19:09 UTC
Thanks for your report! I can reproduce the issue.
Pasting is actually unnecessary -- clicking the color name field and then any other field will cause the crash. However, the crash will only occur if a color has not yet been selected (using any color selector) in the running instance of Krita.
Comment 2 Halla Rempt 2017-09-26 17:29:34 UTC
I cannot reproduce this in master or in 3.3 anymore -- I think wolthera fixed this this summer.