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

UI cant display in windows virtual machine #1982

Open
b23r0 opened this issue Aug 29, 2022 · 7 comments
Open

UI cant display in windows virtual machine #1982

b23r0 opened this issue Aug 29, 2022 · 7 comments
Labels
bug Something is broken

Comments

@b23r0
Copy link

b23r0 commented Aug 29, 2022

Describe the bug

I compiled the hello_world example in Windows 11, then i copied target program to the VMware virtual machine(Windows 10) to run, then i found that the UI cant be displayed normally.

To Reproduce
Steps to reproduce the behavior:

  1. Compile in Windows11
  2. move to Windows 10 ( VMware )
  3. Run

Expected behavior
normal display

Screenshots

0HQ9%BM6_ }0`OZKPK81P K

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 21H2

Additional context

  • VMware 16.1.2 build-17966106
  • egui 0.19.0
@b23r0 b23r0 added the bug Something is broken label Aug 29, 2022
@ar37-rs
Copy link
Contributor

ar37-rs commented Aug 29, 2022

What version opengl on your windows 10 VM?

@b23r0
Copy link
Author

b23r0 commented Aug 29, 2022

1661772843944

@SimonAkers
Copy link

I have also recently experienced a similar issue when running egui applications on an Ubuntu VirtualBox VM (tested both 18.04 and 22.04). For me, the GUI is visible but incredibly dark, as if the whole screen was tinted. This does not happen to any other applications that I can tell.

@coderedart
Copy link
Contributor

If the issue is openGL driver, software impl might be relevant https://fdossena.com/?p=mesa/index.frag

@ar37-rs
Copy link
Contributor

ar37-rs commented Sep 1, 2022

VirtualBox VM issue fixed on #2071

@s-nie
Copy link
Contributor

s-nie commented Nov 6, 2023

This has gotten worse with the update to wgpu 0.17. Running cargo run --bin egui_demo_app --no-default-features --features wgpu results in

[2023-11-06T15:49:53Z ERROR wgpu_hal::dx12] ResizeBuffers failed: 0x887A0001
[2023-11-06T15:49:53Z ERROR wgpu_core::device::global] surface configuration failed: window is in use
thread 'main' panicked at 'Error in Surface::configure: Validation Error

Caused by:
    Invalid surface
', C:\Users\Sven\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.17.0\src\backend\direct.rs:771:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\egui_demo_app.exe` (exit code: 101)

The wgpu 0.18 update seems to "fix" this again and I'm seeing the empty window described in this issue.

@s-nie
Copy link
Contributor

s-nie commented Nov 7, 2023

The culprit seems to be the 3D support. The demo works in the VM without the Custom3d demo. Not sure if supporting 3D is possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

No branches or pull requests

5 participants