UI messed up in 2021.01 release version on Arch. Anyone else having this issue and knows a fix?

UI messed up in 2021.01 release version on Arch. Anyone else having this issue and knows a fix?

Posted May 19, 2022, 4:42 PM UTC

48
EvilTacoMan7533•

Works good for me. Maybe try updating your system (pacman -Syu).

2
LinuxdirkOP•

I of course did. It didn’t help, this is why I created this thread.

$ su -c 'pacman -Syu'
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
 there is nothing to do

$ openscad --version
OpenSCAD version 2021.01

$ uname -rms
Linux 5.17.9-arch1-1 x86_64

$ pacman -Qi nvidia | grep Version | tr -s " "
Version : 515.43.04-5

$ openbox --version | head -n1
Openbox 3.6.1

$ pacman -Qi xorg-server | grep Version | tr -s " "
Version : 21.1.3-6
1
EvilTacoMan7533•

I would try a different wm or de, and see if it it works. Works for me on DWM.

1
[deleted]•

[deleted]

1
LinuxdirkOP•

Nah, that’s not the issue. But during testing with DWM I found out that OpenSCAD chokes on UI scaling. Because I have a high resolution screen and X and all the UI toolkits have issues with basically anything greater than 96 DPI I had to add QT_SCALE_FACTOR=0.8 (and some others) to .xinitrc.

Without QT_SCALE_FACTOR=0.8 OpenSCAD and all other QT applications are absurdly scaled up. Since OpenSCAD is the only application that has issues with scaling like that, a quick solution is adding an alias.

alias openscad="QT_SCALE_FACTOR=1 /usr/bin/openscad"

With this the UI isn’t messed up and can be used. This doesn’t fix the absurd scaling, though.

1
EvilTacoMan7533•

Huh.

1
folk_science•

Good job investigating the issue. I encourage you to file a bug: https://github.com/openscad/openscad/issues/

1
LinuxdirkOP•

Also, clicking the menus and hovering the options with the mouse cursor ends up in this:

https://imgur.com/a/aTXjoIB

1