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

            Bug ID: 461230
           Summary: 100% CPU loop on a system with bidirectional locale
    Classification: Applications
           Product: kasts
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: b...@mogwai.be
          Reporter: tz...@cohens.org.il
  Target Milestone: ---

I installed kasts 22.06   (stable) on a Mobian (Debian Unstable, gnome,
wayland) system.

After a while, everything I did took ages, including closing the app. Basically
the problem seems to start after I included the first podcast. I used one that
has many episodes and the description is almost always in Hebrew (specifically:
Geekonomy: https://feeds.podbean.com/geekonomy/feed.xml ).

Looking further, I saw that in the journal I keep getting the following
message:

org.kde.kasts.desktop[5230]: <Unknown File>: QML QQuickAnchors: Binding loop
detected for property "right"
org.kde.kasts.desktop[5230]: qml: Don't override the leftPadding or
rightPadding on a SwipeListItem!
org.kde.kasts.desktop[5230]: This makes it impossible for me to adjust my
layout as I need to for various usecases.
org.kde.kasts.desktop[5230]: I'll try to fix the mistake for you, but you
should remove your overrides from your app's code entirely.
org.kde.kasts.desktop[5230]: If I can't fix the paddings, I'll fall back to a
default layout, but it'll be slightly incorrect and lacks
org.kde.kasts.desktop[5230]: adaptations needed for touch screens and
right-to-left languages, among other things.

(It's in a loop, so I'm not completely sure what is the first line)

I used the following workaround to fix the issue:

sudo mv
/var/lib/flatpak/app/org.kde.kasts/aarch64/stable/$FLATPAK_HASH/files/bin/kasts{,.real}
cat <<EOF | tee -a
/var/lib/flatpak/app/org.kde.kasts/aarch64/stable/$FLATPAK_HASH/files/bin/kasts
#!/bin/sh
export LANG=C
exec "$0.real" "$@"
EOF
sudo chmod +x
/var/lib/flatpak/app/org.kde.kasts/aarch64/stable/$FLATPAK_HASH/files/bin/kasts

And with that, kasts now works fine.

The following values for LANG are problematic:
he_IL.UTF-8
ar_JO.UTF-8

The following values work OK:
C
en_IL.UTF-8


My locale is:
$ locale
LANG=he_IL.UTF-8
LANGUAGE=
LC_CTYPE="he_IL.UTF-8"
LC_NUMERIC="he_IL.UTF-8"
LC_TIME="he_IL.UTF-8"
LC_COLLATE="he_IL.UTF-8"
LC_MONETARY="he_IL.UTF-8"
LC_MESSAGES="he_IL.UTF-8"
LC_PAPER="he_IL.UTF-8"
LC_NAME="he_IL.UTF-8"
LC_ADDRESS="he_IL.UTF-8"
LC_TELEPHONE="he_IL.UTF-8"
LC_MEASUREMENT="he_IL.UTF-8"
LC_IDENTIFICATION="he_IL.UTF-8"
LC_ALL=

$ flatpak list
Name                         Application ID                 Version Branch    
Installation
Mesa                         …eedesktop.Platform.GL.default 21.3.9  21.08     
system
GNOME Application Platform … org.gnome.Platform                     42        
system
Podcasts                     org.gnome.Podcasts             0.5.1   stable    
system
Adwaita theme                org.kde.KStyle.Adwaita                 5.15-21.08
system
KDE Application Platform     org.kde.Platform                       5.15-21.08
system
Kasts                        org.kde.kasts                  22.06   stable    
system

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

Reply via email to