GUI not working

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
Spectre5
Posts: 5
Joined: Sun Oct 02, 2022 4:38 am

GUI not working

Post by Spectre5 »

I'm running Ubuntu 22.04 and tried installing FreeCAD from the software repositories. I found that the GUI was not showing correctly to the point of being unusable. I then removed that and downloaded the latest AppImage from the FreeCAD website (FreeCAD_0.20-1-2022-08-20-conda-Linux-x86_64-py310.AppImage) and unfortunately experienced the same issue. A screen shot is shown below. What can I do to debug this issue?
Attachments
Screenshot from 2022-10-01 21-35-45.png
Screenshot from 2022-10-01 21-35-45.png (10.38 KiB) Viewed 1256 times
chrisb
Veteran
Posts: 54144
Joined: Tue Mar 17, 2015 9:14 am

Re: GUI not working

Post by chrisb »

Hi and welcome to the forum!

Looks like an issue with the graphics card/driver. Did you check the Known OS specific issues?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Spectre5
Posts: 5
Joined: Sun Oct 02, 2022 4:38 am

Re: GUI not working

Post by Spectre5 »

I figured it must be a graphics driver issue too. I'm using a fairly old card, a GeForce GTX 650 Ti Boost running the latest nvidia-driver-470 proprietary driver. I have no other issues with my graphics in any other programs.

I did notice that thread, but I didn't find anything that seemed to be relevant to my situation. However, I did dig deeper into the first time regarding fractional scaling. I don't use it, so I didn't think it was an issue. However, I decided to play with those settings a little bit and found out something weird! If I turn fractional scaling on and leave it at 100%, then there is no change. But if I have it on and scale the screen to 125%, then the FreeCAD GUI appears normal. So, there is some progress there! But I don't want to use fractional scaling, it causes other issues for my system (and I like the larger screen real estate without it). But at least this is some clue....

I have run many other programs through AppImage and other containers and never experienced an issue like this though.
Spectre5
Posts: 5
Joined: Sun Oct 02, 2022 4:38 am

Re: GUI not working

Post by Spectre5 »

In case it is relevant, but screen has resolution of 2560x1440 with 96x96 dpi and 24 bit depth. It is a Dell U2713HM monitor connected via dual DVI.

And just changing the display resolution to other besides 2560x1440 (but with fractional scaling still off) does not fix the GUI issue. The only fix I can find is turning fractional scaling on and using something greater than 100%.
User avatar
adrianinsaval
Veteran
Posts: 5544
Joined: Thu Apr 05, 2018 5:15 pm

Re: GUI not working

Post by adrianinsaval »

please post full version information as explained in the guidelines, this looks like a dpi issue. Where have you configured 96dpi? Where do you configure fractional scaling? Is this running under wayland? What is your DE? Several people running on xfce had this issue with a custom dpi setting.
Spectre5
Posts: 5
Joined: Sun Oct 02, 2022 4:38 am

Re: GUI not working

Post by Spectre5 »

Here is the FreeCAD version information:

Code: Select all

OS: Ubuntu 22.04.1 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20.1)
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United States (en_US)
I'm running Ubuntu with GNOME and the fraction scaling options are part of gnome. I'm running X11 and I've never specially set the DPI - but the 96x96 is as reported by the NVIDIA driver. This information is available in the attached screenshots, as well as some additional information.
Attachments
Screenshot from 2022-10-03 20-47-07.png
Screenshot from 2022-10-03 20-47-07.png (35.21 KiB) Viewed 965 times
Screenshot from 2022-10-03 20-46-14.png
Screenshot from 2022-10-03 20-46-14.png (87.8 KiB) Viewed 965 times
Screenshot from 2022-10-03 20-47-37.png
Screenshot from 2022-10-03 20-47-37.png (68.98 KiB) Viewed 965 times
jeno
Veteran
Posts: 1848
Joined: Sun Jun 29, 2014 10:41 am

Re: GUI not working

Post by jeno »

Spectre5 wrote: Tue Oct 04, 2022 3:51 am ...
I'm running Ubuntu with GNOME and the fraction scaling options are part of gnome. I'm running X11 and I've never specially set the DPI - but the 96x96 is as reported by the NVIDIA driver. This information is available in the attached screenshots, as well as some additional information.
I doubt that this information is correct
According to the information from Dell the physical dimensions of the panel is

Code: Select all

Preset display area: 596.7 (H) X 335.7 (V) mm
Horizontal 596.7 mm (23.49 inches)
Vertical 335.7 mm (13.22 inches)
With given resolution of 2560x1440 the system has ~109x109 dpi
What is the output of

Code: Select all

xrandr -q | grep connected
cheers
User avatar
adrianinsaval
Veteran
Posts: 5544
Joined: Thu Apr 05, 2018 5:15 pm

Re: GUI not working

Post by adrianinsaval »

try some of the stuff from here: https://wiki.archlinux.org/title/HiDPI#Qt_5
check if one those options is already set. Check also the X Resources and X Server sections.
Spectre5
Posts: 5
Joined: Sun Oct 02, 2022 4:38 am

Re: GUI not working

Post by Spectre5 »

Ah, I've found the culprit. In the Gnome Tweaks tool under the "Fonts" section there is a scaling factor for fonts. I have that set at 0.80 to reduce the font size on my screen. If I change this to 1.00, then FreeCAD displays correctly with fraction scaling turned off. I'd prefer to keep it at 0.80 instead of 1.0, but its a simple enough setting to change "on the fly" when using FreeCAD.

Thank you everyone for the helpful comments!
User avatar
adrianinsaval
Veteran
Posts: 5544
Joined: Thu Apr 05, 2018 5:15 pm

Re: GUI not working

Post by adrianinsaval »

Doesn't Gnome have settings for font size??? Use that instead if it exist. Otherwise you could set the Qt specific env variables or edit your FreeCAD desktop files so it launches with those variables.
Post Reply