Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird garbled text encoding issue #65

Open
ekainz opened this issue Sep 24, 2021 · 15 comments
Open

Weird garbled text encoding issue #65

ekainz opened this issue Sep 24, 2021 · 15 comments

Comments

@ekainz
Copy link

ekainz commented Sep 24, 2021

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
Copy link
Member

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
Copy link
Author

ekainz commented Sep 25, 2021

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
Copy link

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

@alex-spataru
Copy link
Member

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
Copy link
Author

ekainz commented Oct 7, 2021

image
Started via appimage

@ekainz
Copy link
Author

ekainz commented Oct 7, 2021

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

@ekainz
Copy link
Author

ekainz commented Oct 7, 2021

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

@alex-spataru
Copy link
Member

@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
Copy link
Author

ekainz commented Oct 9, 2021

No change :c
image

@alex-spataru
Copy link
Member

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
Copy link
Member

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
Copy link
Author

ekainz commented Oct 10, 2021

No rush, I really appreciate the help!

I am using Intel Integrated graphics:
image

@bob8677
Copy link

bob8677 commented Nov 24, 2021

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
Copy link
Author

ekainz commented Nov 24, 2021

Incredible!

image

@alex-spataru
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants