bambulab / BambuStudio

PC Software for BambuLab and other 3D printers
GNU Affero General Public License v3.0
2.22k stars 297 forks source link

Text in dialogs is shown as empty squares #4538

Open joepadmiraal opened 4 months ago

joepadmiraal commented 4 months ago

Bambu Studio Version

1.9.3.50

Where is the application from?

Bambu Lab github releases

OS version

Ubuntu 24.04

Additional system information

X11 Gnome 46 Mutter 46.2-1ubuntu0.24.04.1 Kernel Linux 6.8.0-38-generic

Printer

P1S

How to reproduce

  1. open bambu studio
  2. load a model
  3. click on the model

or click on slice plate

Actual results

Screenshot from 2024-07-23 20-40-50

Screenshot from 2024-07-23 20-41-20

Expected results

I would expect letters that I can read instead of squares ;)

Project file & Debug log uploads

log.zip model.zip

Checklist of files to include

MackBambu commented 4 months ago

hi @joepadmiraal, This looks like imgui font atlas texture fails to upload to GPU. I need some info to reproduce this:

  1. GPU information
  2. using virtual machine?Enable graphics acceleration?
joepadmiraal commented 4 months ago

hi @MackBambu, these are the details of my laptop:

OS: Ubuntu 24.04 LTS x86_64 
Host: Precision 5560 
Kernel: 6.8.0-38-generic 
Resolution: 5112x3195
CPU: 11th Gen Intel i7-11850H (16) @ 4.800GHz 
GPU: Intel TigerLake-H GT1 [UHD Graphics] 
GPU: NVIDIA RTX A2000 Mobile, driver: 535.183.01

It's a 4k laptop so I have scaling set to 225%, which explains the weird resolution.

And some prime info:

➜  ~ prime-select query
on-demand

➜  ~ nvidia-smi
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      3843      G   /usr/lib/xorg/Xorg                            4MiB |
+---------------------------------------------------------------------------------------+

So its using the Intel GPU.

Some glxinfo (For Intel driver version):

➜  ~ glxinfo -B
name of display: :1
display: :1  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics (TGL GT1) (0x9a60)
    Version: 24.0.9
    Accelerated: yes
    Video memory: 31814MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2

I now noticed that when I plug in a monitor, the texts suddenly appears. Even without restarting Bambu studio, and with Bambu studio still showing on my laptop display. Unplugging the monitor makes the text disappear again. I'm not using a virtual machine.

frank-pian commented 4 months ago

I now noticed that when I plug in a monitor, the texts suddenly appears. Even without restarting Bambu studio, and with Bambu studio still showing on my laptop display. Unplugging the monitor makes the text disappear again. I'm not using a virtual machine.

Some laptops may switch to discrete graphics output when you plug in the monitor. Is the text displaying fine when you plug in the monitor, using an NVIDIA GPU?

joepadmiraal commented 4 months ago

I now found that when I set scaling to 200% instead of 225% the text also looks good. Without using the second monitor. nvidia-smi does not show the bambu studio process, before and after changing the scaling, so its running on the Intel GPU and the issue seems purely scaling related.

frank-pian commented 4 months ago

I now found that when I set scaling to 200% instead of 225% the text also looks good. Without using the second monitor. nvidia-smi does not show the bambu studio process, before and after changing the scaling, so its running on the Intel GPU and the issue seems purely scaling related.

Thanks, I'll get a 4K monitor and try to reproduce the issue.

MackBambu commented 3 months ago

图片 图片 I did some testing in a VM and I suspect it may still have something to do with the gpu

joepadmiraal commented 3 months ago

Interesting, this is with 24.04? I can try to reproduce it in a VM for you in about 2 weeks when I have access to a normal computer again.

joepadmiraal commented 3 months ago

Did you also test under X11?

I could reproduce it on a different machine: Intel NUC7i7DNHE Only 1 monitor attached GPU: Intel UHD Graphics 620 Resolution: 3840x2160 Using X11 Fractional scaling: 225% Fresh installation of Ubuntu24.04 with all apt updates applied

I also tried to create a VM and gave up after more than 10 attempts.

I tried a lot of variations of Virtualbox graphical settings, but none seem to get me past the installer.

MackBambu commented 2 months ago

Thanks, can be reproduced on x11. You could try working under wayland first, it seems to be fine.