egui
egui copied to clipboard
UI cant display in windows virtual machine
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:
- Compile in Windows11
- move to Windows 10 ( VMware )
- Run
Expected behavior normal display
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
- Version 21H2
Additional context
- VMware 16.1.2 build-17966106
- egui 0.19.0
What version opengl on your windows 10 VM?
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.
If the issue is openGL driver, software impl might be relevant https://fdossena.com/?p=mesa/index.frag
VirtualBox VM issue fixed on #2071
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.
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.