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

WSL broken svg rendering #2051

Open
vyncent-t opened this issue Jun 18, 2024 · 6 comments
Open

WSL broken svg rendering #2051

vyncent-t opened this issue Jun 18, 2024 · 6 comments
Assignees
Labels
app bug Something isn't working frontend Issues related to the frontend regression Bugs for things that used to work in previous releases.

Comments

@vyncent-t
Copy link
Contributor

vyncent-t commented Jun 18, 2024

I noticed that when running headlamp in app mode there are some rendering issues with the icons. I have also tried comparing the icons to the web mode and it seems to be an app mode issue only, could be something wrong with the WSL or Electron build.

I have seen that just rendering a single svg on the app still renders a broken icon like the image below. This could impact people also using WSL as it may not be an issue for windows.

I have tried the following thus far:

  • Installing and building previous versions of the main project
  • Installing and building previous versions of the plugins
  • Updating Electron ver
  • Updating Ubuntu env
  • Clearing cache folder
  • Installing new Ubuntu

Thanks to @sniok for helping me troubleshoot!

image

The badge icons
image

Images

Cluster, Network, and Security on side bar

image

Top right icons

image

Calendar Icons

image

  • not easily screen capped but load the overview page and watch the circles load in

image

@vyncent-t vyncent-t added frontend Issues related to the frontend app labels Jun 18, 2024
@vyncent-t vyncent-t self-assigned this Jun 18, 2024
@vyncent-t
Copy link
Contributor Author

  • git bisect usage next

@illume illume added bug Something isn't working regression Bugs for things that used to work in previous releases. labels Jul 8, 2024
@illume
Copy link
Collaborator

illume commented Jul 9, 2024

@vyncent-t and I did some debugging...

  • disableGPU makes the icons work
  • The Ubuntu is at 24.04 (was also broken on 22.04)
  • We tried updating electron to 31.1.0 (didn't help)

To do:

  • We should make an environment variable to allow setting it to disabled.
  • look into package differences compared to systems where it works
  • log a bug with electron
  • check chromium does or does not have icon rendering issues

@vyncent-t
Copy link
Contributor Author

When hardware acceleration is not disabled

image

When disabled

image

@vyncent-t
Copy link
Contributor Author

electron function to return GPU info - https://www.electronjs.org/docs/latest/api/app#appgetgpuinfoinfotype

@illume
Copy link
Collaborator

illume commented Jul 30, 2024

Note to self: at least implement an environment variable to turn off GPU for headlamp app. If can not detect WSL GPU error.

@sniok
Copy link
Contributor

sniok commented Jul 31, 2024

Running using discrete GPU doesn't have this issue. Maybe integrated (intel) driver issues?

export MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA   
npm run dev-only-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app bug Something isn't working frontend Issues related to the frontend regression Bugs for things that used to work in previous releases.
Projects
Development

No branches or pull requests

3 participants