Bug 515619

Summary: Qt6: Fetching News crashes on Windows
Product: [Applications] krita Reporter: Freya Lupen <penguinflyer2222>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: dimula73, 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+.
Comment 3 Dmitry Kazakov 2026-02-11 10:50:35 UTC
Git commit 05a047196fb798550cc4536aca525711f5b574fd by Dmitry Kazakov.
Committed on 11/02/2026 at 10:50.
Pushed by dkazakov into branch 'transition.now/qt6'.

[ext_qt] Fix the crash when Krita tries to fetch news on Qt6

A cherry-pick of this upstream patch:
https://codereview.qt-project.org/c/qt/qtbase/+/597083

M  +1    -1    ext_qt/CMakeLists.txt

https://invent.kde.org/packaging/krita-deps-management/-/commit/05a047196fb798550cc4536aca525711f5b574fd
Comment 4 Dmitry Kazakov 2026-02-12 15:59:28 UTC
Hi, Freya!

Could you please check the latest nightly if you still have a crash for it? I have cherry-picked the Qt patch into our build of Qt, so this build should have it now.

https://origin.cdn.kde.org/ci-builds/graphics/krita/krita-6.0/windows/
Comment 5 Freya Lupen 2026-02-12 18:50:06 UTC
Yes, the News works fine in 6.0.1-prealpha-0ee42d29.
Comment 6 Dmitry Kazakov 2026-02-13 10:57:39 UTC
Thanks a lot for testing! :)