Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Cannot run the main executable #2

Closed
ketenburhan opened this issue Feb 17, 2022 · 4 comments
Closed

Cannot run the main executable #2

ketenburhan opened this issue Feb 17, 2022 · 4 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@ketenburhan
Copy link

Describe the bug
I just cloned the repo to my local machine (Arch Linux) and I cannot run the main executable with Cargo.

To Reproduce
Steps to reproduce the behavior:

  1. Run git clone ...
  2. Run cargo run or cargo run --release
  3. See error below

Expected behavior
Expected the window to not close.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Linux (Arch Linux) with X11
  • main branch

Additional context
output of cargo run --release (warnings skipped):

    Finished release [optimized] target(s) in 2m 41s
     Running `target/release/nodus`
2022-02-17T12:49:44.244920Z  INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1
2022-02-17T12:49:44.302552Z  INFO bevy_render::renderer: AdapterInfo { name: "Unknown AMD GPU", vendor: 4098, device: 5708, device_type: IntegratedGpu, backend: Vulkan }
2022-02-17T12:49:44.674380Z  INFO nodus::gate: NodePlugin loaded
thread 'main' panicked at 'Failed to acquire next swap chain texture!: Timeout', /home/USERNAME/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_render-0.6.0/src/view/window.rs:161:24
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@ketenburhan ketenburhan added the bug Something isn't working label Feb 17, 2022
@r4gus
Copy link
Owner

r4gus commented Feb 17, 2022

Hi, thanks for the notice.

That is probably an AMD driver issue related to Bevy - #3606.

At first glance, there are two possible solutions to the problem:

  1. In src/main.rs turn vsync off, i.e. vsync: false.
  2. You could also try to switch to RADV if you're currently using AMDVLK (maybe this can help).

@r4gus r4gus added the wontfix This will not be worked on label Feb 18, 2022
@r4gus
Copy link
Owner

r4gus commented Feb 23, 2022

This issue is probably related to Bevy so there isn't much I can do about it.

@r4gus r4gus closed this as completed Feb 23, 2022
@ketenburhan
Copy link
Author

Hi, thanks for the notice.

That is probably an AMD driver issue related to Bevy - #3606.

At first glance, there are two possible solutions to the problem:

  1. In src/main.rs turn vsync off, i.e. vsync: false.
  2. You could also try to switch to RADV if you're currently using AMDVLK (maybe this can help).

Running with AMD_VULKAN_ICD=RADV cargo run helped.

@r4gus
Copy link
Owner

r4gus commented Mar 2, 2022

Thanks for the reply

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants