FedoraQt / MediaWriter

Fedora Media Writer - Write Fedora Images to Portable Media
GNU General Public License v2.0
715 stars 154 forks source link

Crashes on Fedora 40 Beta because of locale issue #705

Closed PJansky closed 6 months ago

PJansky commented 6 months ago

I have MediaWriter installed as a flatpak from flathub and it seems to be crashing from some weird locale issue. My locales are all UTF-8 encoded, I have no idea why it thinks its ANSI_X3.4-1968. I tried rebooting the system and reinstalling MediaWriter but to no avail.

If it is of any relevance, this system was incrementally upgraded since Fedora 37

Console output:

~ flatpak run org.fedoraproject.MediaWriter 
W@2ms: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.

(process:2): Gtk-WARNING **: 18:44:37.740: Locale not supported by C library.
    Using the fallback 'C' locale.

(mediawriter:2): Gtk-WARNING **: 18:44:37.740: cannot open display: 

Locale:

~ localectl status    
System Locale: LANG=en_US.UTF-8
               LC_NUMERIC=de_CH.UTF-8
               LC_TIME=de_CH.UTF-8
               LC_MONETARY=de_CH.UTF-8
               LC_PAPER=de_CH.UTF-8
               LC_MEASUREMENT=de_CH.UTF-8
    VC Keymap: us
   X11 Layout: us

System:

# System Details Report
---

## Report details
- **Date generated:**                              2024-04-03 18:52:15

## Hardware Information:
- **Hardware Model:**                              Dell Inc. XPS 15 9575
- **Memory:**                                      16.0 GiB
- **Processor:**                                   Intel® Core™ i7-8705G × 8
- **Graphics:**                                    Intel® HD Graphics 630 (KBL GT2)
- **Graphics 1:**                                  AMD Radeon™ RX Vega M GL Graphics
- **Disk Capacity:**                               512.1 GB

## Software Information:
- **Firmware Version:**                            1.28.0
- **OS Name:**                                     Fedora Linux 40 (Workstation Edition Prerelease)
- **OS Build:**                                    (null)
- **OS Type:**                                     64-bit
- **GNOME Version:**                               46
- **Windowing System:**                            Wayland
- **Kernel Version:**                              Linux 6.8.2-300.fc40.x86_64
grulja commented 6 months ago

I don't see such issue here. Anyway, I don't think your issue is FMW related, it probably happens with other Qt apps on KDE 6.6 runtime? Can you try that?

PJansky commented 6 months ago

I'm not surprised, it also doesn't happen in the VM I have, thats why I suspected it could be something particular to my system. As for the apps with the KDE 6.6 runtime, I tried kwrite and Kdenlive which seem to work, but produce the same issue in the logs:

~ flatpak run org.kde.kwrite                              
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.

(process:2): Gtk-WARNING **: 19:35:28.821: Locale not supported by C library.
    Using the fallback 'C' locale.
qt.qpa.qgnomeplatform: Could not find color scheme  ""
"applications.menu"  not found in  QList()

Interestingly the locales are also a problem for some GTK based applications like Loupe and not for others like Amberol.

But for some reason MediaWriter seems to be the only application outright crashing and with the log (mediawriter:2): Gtk-WARNING **: 18:44:37.740: cannot open display:

cyangalaxy commented 6 months ago

I also can't run the Flatpak-version on Fedora 40 Beta and a clean Fedora 39 VM.

The RPM version works.

Screenshot from 2024-04-05 22-01-36

This issue isn't a big deal for me, just thought I'd share.

grulja commented 6 months ago

Looks FMW is not allowed to use both --socket=x11 and --socket=wayland. Can you try removing QGnomePlatform plugin for KDE 6.6 runtime and run FMW without it?

flatpak uninstall org.kde.PlatformTheme.QGnomePlatform//6.6
flatpak uninstall org.kde.WaylandDecoration.QGnomePlatform-decoration//6.6
grulja commented 6 months ago

Alright, I can reproduce myself under Weston. I will try to figure out what is going on.