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

The window pops up and disappears immediately #9599

Closed
mucahitkurtlar opened this issue Aug 27, 2023 · 4 comments
Closed

The window pops up and disappears immediately #9599

mucahitkurtlar opened this issue Aug 27, 2023 · 4 comments
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior O-Linux Specific to the Linux desktop operating system

Comments

@mucahitkurtlar
Copy link

Bevy version

0.11.2

Relevant system information

Cargo Version

1.72.0

Rendering Platform

`AdapterInfo { name: "AMD Radeon RX Graphics", vendor: 4098, device: 26607, device_type: DiscreteGpu, driver: "AMD open-source driver", driver_info: "2023.Q2.3 (LLPC)", backend: Vulkan }`

What you did

I tried some window application examples but none of them worked on my machine. It just creates a window and breaks.

What went wrong

The window pops up and disappears immediately.

Additional information

The outout of cargo run --example clear_color is here.

2023-08-27T19:51:55.754191Z  INFO bevy_winit::system: Creating new window "App" (0v0)
2023-08-27T19:51:55.754706Z  INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1.1666666666666667    
ac_compute_device_uuid's output is based on invalid pci bus info.
2023-08-27T19:51:56.381952Z  INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon RX Graphics", vendor: 4098, device: 26607, device_type: DiscreteGpu, driver: "AMD open-source driver", driver_info: "2023.Q2.3 (LLPC)", backend: Vulkan }
2023-08-27T19:51:56.556052Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux rolling Arch Linux", kernel: "6.4.11-arch1-1", cpu: "AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx", core_count: "4", memory: "13.6 GiB" }
thread 'main' panicked at 'Error in Surface::configure: Validation Error

Caused by:
    Parent device is lost
', /home/allesfresser/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:734:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::view::window::prepare_windows`!
thread 'Compute Task Pool (2)' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', crates/bevy_render/src/pipelined_rendering.rs:143:45

This issue seems related my problem.

@mucahitkurtlar mucahitkurtlar added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Aug 27, 2023
@alice-i-cecile
Copy link
Member

Which OS are you on?

@mucahitkurtlar
Copy link
Author

Which OS are you on?

Arch GNU Linux

@alice-i-cecile
Copy link
Member

Can you get the examples in either winit or wgpu working?

@mucahitkurtlar
Copy link
Author

Can you get the examples in either winit or wgpu working?

Thanks for assist to find the problem. I tried few winit example without a problem. Then tried cube example on wgpu but no luck. It throws an error like

ac_compute_device_uuid's output is based on invalid pci bus info.
Using AMD Radeon RX Graphics (Vulkan)
thread 'main' panicked at 'Error in Surface::configure: Validation Error

Caused by:
    Parent device is lost
', wgpu/src/backend/direct.rs:771:18

So I searched for the ac_compute_device_uuid's output is based on invalid pci bus info and saw this thread on Arch Forum. I understand it's about the AMD Vulkan drivers. I've read this and this posts on Reddit. So in summary switching AMDVLK to RADV fixed my problem.

Now I know it's not Bevy related problem but I wrote it in detail in case it happens to anyone else. Thanks again. 😃

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen O-Linux Specific to the Linux desktop operating system and removed S-Needs-Triage This issue needs to be labelled labels Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior O-Linux Specific to the Linux desktop operating system
Projects
None yet
Development

No branches or pull requests

2 participants