FRC-Utilities / QDriverStation

Cross-platform clone of the FRC Driver Station

Home Page:https://frc-utilities.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weird garbled text encoding issue

fwappy opened this issue · comments

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

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.

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!

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

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.

image
Started via appimage

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

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

@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.

No change :c
image

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.

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?

No rush, I really appreciate the help!

I am using Intel Integrated graphics:
image

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.

Incredible!

image

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.