egui icon indicating copy to clipboard operation
egui copied to clipboard

UI cant display in windows virtual machine

Open b23r0 opened this issue 2 years ago • 5 comments

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 avatar Aug 29 '22 09:08 b23r0

What version opengl on your windows 10 VM?

ar37-rs avatar Aug 29 '22 11:08 ar37-rs

1661772843944

b23r0 avatar Aug 29 '22 11:08 b23r0

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.

SimonAkers avatar Aug 29 '22 14:08 SimonAkers

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

coderedart avatar Sep 01 '22 06:09 coderedart

VirtualBox VM issue fixed on #2071

ar37-rs avatar Sep 01 '22 13:09 ar37-rs

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 avatar Nov 06 '23 16:11 s-nie

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.

s-nie avatar Nov 07 '23 12:11 s-nie