FRC-Utilities / QDriverStation

Cross-platform clone of the FRC Driver Station
https://frc-utilities.github.io
MIT License
186 stars 26 forks source link

Weird garbled text encoding issue #65

Open ekainz opened 3 years ago

ekainz commented 3 years ago

Running Arch with KDE Plasma, installed via AUR package. I presume it has something to do with character encoding schemes, but its strange its only happening with some text.

image

alex-spataru commented 3 years ago

Hi! Can you please run QDriverStation from the terminal and paste its output here? I want to see if Qt notifies anything unusual regarding the text encoding.

ekainz commented 3 years ago
00:00.1        DEBUG         Scale factor set to: 2.65567
00:00.3        WARNING       qrc:/qml/Dialogs/SettingsWindow.qml:98:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
00:00.4        WARNING       qrc:/qml/MainWindow/About.qml:35:5: QML Icon: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
00:00.4        WARNING       qrc:/qml/MainWindow/About.qml:45:5: QML Label: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
00:00.4        WARNING       qrc:/qml/MainWindow/About.qml:55:5: QML Label: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
00:00.4        WARNING       qrc:/qml/MainWindow/About.qml:70:5: QML RowLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
00:00.4        WARNING       qrc:/qml/MainWindow/Messages.qml:36:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
00:00.4        WARNING       qrc:/qml/MainWindow/Joysticks.qml:156:9: QML Icon: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
00:00.4        WARNING       qrc:/qml/MainWindow/Joysticks.qml:162:9: QML Label: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
00:00.4        WARNING       qrc:/qml/MainWindow/Joysticks.qml:169:9: QML Label: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
00:00.4        WARNING       qrc:/qml/MainWindow/Joysticks.qml:175:9: QML Button: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
00:00.4        WARNING       qrc:/qml/MainWindow/Joysticks.qml:121:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
00:00.4        WARNING       qrc:/qml/MainWindow/Joysticks.qml:91:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
00:00.4        DEBUG         DS Client: Changing team number to 5419
00:00.4        DEBUG         DS Events: Team number set to 5419
00:00.4        DEBUG         DS Client: Using new FMS address "0.0.0.0"
00:00.4        DEBUG         DS Client: Using new radio address "0.0.0.0"
00:00.4        DEBUG         DS Client: Using new robot address "0.0.0.0"
00:00.4        DEBUG         DS Client: Using new FMS address ""
00:00.4        DEBUG         DS Client: Using new radio address ""
00:00.4        DEBUG         DS Client: Using new robot address ""
00:00.4        DEBUG         DS Client: Switched to FRC 2016 Protocol
00:00.4        WARNING       qrc:/qml/MainWindow/LeftTab.qml:133:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
00:00.4        DEBUG         DS Client: Resetting joysticks...
00:00.4        DEBUG         DS Client: Using new FMS address ""
00:00.4        DEBUG         DS Client: Using new radio address ""
00:00.4        DEBUG         DS Client: Using new robot address ""
00:00.4        DEBUG         DS Client: Resetting joysticks...
00:00.4        DEBUG         DS Client: Setting position to 0
00:00.4        DEBUG         DS Client: Setting alliance to 0
00:00.4        DEBUG         Initialized in  485 milliseconds
00:01.4        DEBUG         DS Events: FMS communications set to false
00:01.4        DEBUG         DS Events: Robot code status set to false
00:01.4        DEBUG         DS Events: Robot enabled state set to false
00:01.4        DEBUG         DS Events: ESTOP set to false
00:01.4        DEBUG         DS Events: Robot communications set to false

Thanks for taking a look!

theVerySharpFlat commented 2 years ago

I have the same issue on opensuse running plasma. Could this be an issue with plasma?

alex-spataru commented 2 years ago

Does this issue occur when you are using the AppImage available in the release tab? I suspect there is a missing dependency in the aur package recipe.

ekainz commented 2 years ago

image Started via appimage

ekainz commented 2 years ago

Odd that it saved my team number, going to try fully uninstalling

ekainz commented 2 years ago

I've deleted ~/.qdriverstation but its still keeping my team number, where are the files stored?

alex-spataru commented 2 years ago

@FwappyPotato If I remember correctly, QDriverStation saves settings in the .local folder through QSettings. The .qdriverstation directory is used for saving logs.

To completely remove saved settings, run the following command:

./QDriverStation.AppImage --reset

You can see more CLI options by typing --help or directly checking the source code.

ekainz commented 2 years ago

No change :c image

alex-spataru commented 2 years ago

Damn, I truly have no idea what is causing this issue. I'll try to run the QDS on KDE Plasma on a virtual machine to investigate more on this issue.

Just please take into account that I am currently working & studying, it might take some time until I solve this out.

alex-spataru commented 2 years ago

Update: I was searching on the internet and some users with Nvidia drivers had font-related issues with Qt/QML apps as well. Are you using an Nvidia driver?

ekainz commented 2 years ago

No rush, I really appreciate the help!

I am using Intel Integrated graphics: image

bob8677 commented 2 years ago

I also had this problem, fixed it by installing the package ttf-ubuntu-font-family on Arch. Not sure why this happens as the program seems to include its own fonts, but it worked for me.

ekainz commented 2 years ago

Incredible!

image

alex-spataru commented 2 years ago

Thanks a lot for the fix! I still don't know why this happens, in theory the font family is included within the application resources, and the AppImage bundle should handle every dependency.