Bug 382429 - Crash when creating or opening a grayscale image
Summary: Crash when creating or opening a grayscale image
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: 3.2.0-beta.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Victor Wåhlström
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-17 12:55 UTC by Victor Wåhlström
Modified: 2017-07-17 15:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Wåhlström 2017-07-17 12:55:12 UTC
There is a Q_ASSERT in KisVisualColorSelector::slotRebuildSelectors() that triggers if you try to load (open or create) a grayscale/alpha image.

Q_ASSERT(m_d->widgetlist.size() == 2);

Only happens on the 3.2 branch for me.
Comment 1 Halla Rempt 2017-07-17 13:01:44 UTC
Can you also attach the full backtrace?
Comment 2 Victor Wåhlström 2017-07-17 15:26:21 UTC
Looking at the code this should be 100% reproducible, maybe depending on what widget is visible. I looked through the code a bit more than that assert shouldn't really be there, and no code path exists where removing it is a problem. It's also removed on the main branch.

I fixed it by removing it from the 3.2 branch in 2c28382d84ccc7de5452326ed672d0fdb699efb1 but forgot to tag this bug. Marking this as resolved.