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

Black rectangles instead of images when using the wgpu GLES backend #2180

Closed
2 tasks done
blazra opened this issue Jan 1, 2024 · 1 comment · Fixed by #2259
Closed
2 tasks done

Black rectangles instead of images when using the wgpu GLES backend #2180

blazra opened this issue Jan 1, 2024 · 1 comment · Fixed by #2259
Labels
bug Something isn't working wgpu
Milestone

Comments

@blazra
Copy link
Contributor

blazra commented Jan 1, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

image

You get black rectangles instead of images if the wgpu GLES backend is used.

Reproduced under Linux with:

  • Apple M1 Pro (asahi) - GLES is the default, because there is no Vulkan driver yet
  • Intel Xe - by setting WGPU_BACKEND=gl
  • AMD Radeon Vega - by setting WGPU_BACKEND=gl

I have tracked it to this wgpu issue: gfx-rs/wgpu#1614

I have tried this gfx-rs/wgpu#4665 (comment) workaround - forcing the Atlas to start with 2 layers - and it fixes the issue (at least for the sake of confirming that it's this specific wgpu problem).

Probably the same issues:

What is the expected behavior?

The images are shown the same way as with other backends.

Version

master

Operating System

Linux

Do you have any log output?

No response

@blazra blazra added the bug Something isn't working label Jan 1, 2024
@elevenhsoft
Copy link

I can confirm this bug. Currently I'm running MicroOS Aeon and I noticed that, when I run my app compiled on ubuntu container and run from there, (i guess it's vulkan backend?) it's running fine. But when the same app is running from host OS the images are black. Also I noticed something interesting related. Here is a short video explaining it:

2024-01-01_21-20-00.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wgpu
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants