https://bugs.kde.org/show_bug.cgi?id=521665

            Bug ID: 521665
           Summary: Discover freezes with high CPU usage when resize
                    window in home screen, if locale is Chinese
    Classification: Applications
           Product: Discover
      Version First 6.7.0
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: discover
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION
This seems to be related to bug 517091 where Discover misbehave itself when
LANGUAGE=zh_CN. When I open Discover and enter the home screen, resizing the
window when window is somehow large enough will cause Discover to freeze, with
high CPU usage. I have to wait for the "Terminate [application]?" window or hit
Ctrl-C in terminal.

I don't think this happened in 6.6.5.

It doesn't seem to freeze when Discover is in other pages, like "Installed" or
app category pages. Also, when this happens no log is being printed, unlike bug
517091. Anyway here is the full log, the freeze happened before the ^C, and
seconds after "QIODevice::read (QSslSocket): device not open" line:

> % LANGUAGE=zh_CN plasma-discover 
> org.kde.plasma.libdiscover: OdrsReviewsBackend: Fetch ratings: false
> org.kde.plasma.libdiscover: error loading "packagekit-backend" "无法加载库 
> /usr/lib/qt6/plugins/discover/packagekit-backend.so:libpackagekitqt6.so.2: 
> 无法打开共享目标文件: 没有那个文件或目录" 
> QJsonObject({"IID":"org.kde.discover.6.7.0.AbstractResourcesBackendFactory","archlevel":1,"className":"PackageKitBackendFactory","debug":false,"version":396032})
> qrc:/qt/qml/org/kde/discover/qml/DiscoverWindow.qml:124:5: QML Shortcut: 
> Shortcut: Only binding to one of multiple key bindings associated with 15. 
> Use 'sequences: [ <key> ]' to bind to all of them.
> qt.qpa.services: Failed to register with host portal 
> QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: 
> Connection already associated with an application ID")
> fwupd: Device not supported: UEFI dbx No releases found
> QIODevice::read (QSslSocket): device not open
> ^C
> LANGUAGE=zh_CN plasma-discover  14.10s user 7.13s system 86% cpu 24.614 total

STEPS TO REPRODUCE
1. Open Discover with `LANGUAGE=zh_CN plasma-discover`
2. Stay in home screen, make the window bigger, then keep resizing it.
3. Discover freezes.

OBSERVED RESULT
Discover window freezes with high CPU usage.

EXPECTED RESULT
Shouldn't freeze.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.7.0
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 7.0.12-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 6850HS with Radeon Graphics
Memory: 16 GiB of RAM (14.9 GiB usable)
Graphics Processor: AMD Radeon Graphics

ADDITIONAL INFORMATION
Could my font and font size matter in this case, similar to how it did in bug
517091? I've set all fonts in System Settings to generic font names like "Sans
Serif 10pt" or "Monospace 8pt", and here should be what is actually used:

> % pacman -Q adwaita-fonts noto-fonts adobe-source-han-sans-otc-fonts 
> ttf-inconsolata  
> adwaita-fonts 50.0-1
> noto-fonts 1:2026.06.01-1
> adobe-source-han-sans-otc-fonts 2.005-2
> ttf-inconsolata 1:3.000-5

> % fc-match -s 'sans-serif' | head
> AdwaitaSans-Regular.ttf: "Adwaita Sans" "Regular"
> AdwaitaSans-Italic.ttf: "Adwaita Sans" "Italic"
> NotoSans-Regular.ttf: "Noto Sans" "Regular"
> SourceHanSans.ttc: "思源黑体" "Regular"
> NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
> NotoSansBengali-Regular.ttf: "Noto Sans Bengali" "Regular"
> NotoSansAdlamUnjoined-Regular.ttf: "Noto Sans Adlam Unjoined" "Regular"
> NotoSansDuployan-Regular.ttf: "Noto Sans Duployan" "Regular"
> NotoSansMongolian-Regular.ttf: "Noto Sans Mongolian" "Regular"
> NotoSansWarangCiti-Regular.ttf: "Noto Sans Warang Citi" "Regular"

> % fc-match -s 'monospace' | head 
> Inconsolata-Regular.ttf: "Inconsolata" "Regular"
> SourceHanSans.ttc: "思源黑体" "Regular"
> NotoSansMono-Regular.ttf: "Noto Sans Mono" "Regular"
> NimbusMonoPS-Regular.otf: "Nimbus Mono PS" "Regular"
> AdwaitaMono-Regular.ttf: "Adwaita Mono" "Regular"
> InconsolataNerdFontMono-Regular.ttf: "Inconsolata Nerd Font Mono" "Regular"
> LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
> NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"
> SourceSerif4-Regular.otf: "Source Serif 4" "Regular"
> Inter.ttc: "Inter" "Regular"

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to