Bug 515619

Summary: Qt6: Fetching News crashes on Windows
Product: [Applications] krita Reporter: Freya Lupen <penguinflyer2222>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: crash CC: halla
Priority: NOR Keywords: regression
Version First Reported In: 6.0.0-beta1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Freya Lupen 2026-02-06 13:58:23 UTC
SUMMARY
The News widget crashes Krita on startup if fetching news is enabled.

It only happens on Windows Qt6. From https://doc.qt.io/qt-6/qtimezone.html:
> Note: When Qt is built with the ICU library, it is used in preference to the Windows system APIs, bypassing all problems with those APIs using different names.

The backtrace shows this:
>    frame #17: 0x00007ffde81a80c2 Qt6Core.dll`QIcuTimeZonePrivate::data(long long) const + 130
>    frame #18: 0x00007ffde819ed8f Qt6Core.dll`QTimeZonePrivate::displayName(long long, QTimeZone::NameType, QLocale const&) const + 79
>    frame #19: 0x00007ffde819f20e Qt6Core.dll`QTimeZonePrivate::abbreviation(long long) const + 94
>    frame #20: 0x00007ffde81a812d Qt6Core.dll`QIcuTimeZonePrivate::data(long long) const + 237
>    ... (looping)
>    frame #7074: 0x00007ffde819ed8f Qt6Core.dll`QTimeZonePrivate::displayName(long long, QTimeZone::NameType, QLocale const&) const + 79
>    frame #7075: 0x00007ffde819f20e Qt6Core.dll`QTimeZonePrivate::abbreviation(long long) const + 94
>    frame #7076: 0x00007ffde81a812d Qt6Core.dll`QIcuTimeZonePrivate::data(long long) const + 237

It appears to be a Qt bug fixed by the change "Avoid infinite recurision in time-zone abbreviation look-up with ICU" https://codereview.qt-project.org/c/qt/qtbase/+/596973/3
Which is in 6.8.3 (35a82236) and 6.9.2 (f38c0fd3).

STEPS TO REPRODUCE
Open Krita with News enabled.

OBSERVED RESULT
Crashes on loading main window.

EXPECTED RESULT
Doesn't crash, shows news.

SOFTWARE/OS VERSIONS
Krita 6.0.0-beta1 (per K-A; the backtrace is from a build around March 2025, but should be the same.)

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2026-02-07 21:03:01 UTC
So it's an upstream bug that we can fix by building with a different version of Qt, right?
Comment 2 Freya Lupen 2026-02-08 15:36:50 UTC
Yes, it should be fixable by updating Qt (in theory it should be safe to update to 6.8.3...), or just backporting the few-lines patch to our current Qt until we manage to fix issues with 6.9+.