bevyengine / bevyengine/bevy

Rendering panic after killing the game process on Nvidia 510 and 5.16 Kernel

Open
#3,865 9 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Bug O-Linux
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version
0.6
## Operating system & version

Garuda linux X11

## What I did

1. Updated my OS
2. Opened a game with terminal
3. Killed with super + Q
4. Tried to open it again
5. It panicked

## Additional information

WGPU examples works well.

After rebooting or log-outing all works fine until i kill app again.

--release and dynamic also doesn`t work.

It also works fine with wine

### It works after downgrading nvidia drivers to 495.

## What actually happened

Error:
`INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce GTX 1060 3GB", vendor: 4318, device: 7170, device_type: DiscreteGpu, backend: Vulkan }
thread 'main' panicked at 'Error in Surface::configure: parent device is lost', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.12.0/src/backend/direct.rs:214:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace`
`
0: rust_begin_unwind
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:517:5
1: std::panicking::begin_panic_fmt
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:460:5
2: wgpu::backend::direct::Context::handle_error_fatal
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.12.0/src/backend/direct.rs:214:9
3: ::surface_configure
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.12.0/src/backend/direct.rs:921:13
4: bevy_render::renderer::render_device::RenderDevice::configure_surface
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_render-0.6.0/src/renderer/render_device.rs:147:9
5: bevy_render::view::window::prepare_windows
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_render-0.6.0/src/view/window.rs:150:13
6: core::ops::function::FnMut::call_mut
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/ops/function.rs:150:5
7: core::ops::function::impls:: for &mut F>::call_mut
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/ops/function.rs:269:13
8: >::run::call_inner
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.6.0/src/system/function_system.rs:512:21
9: >::run
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.6.0/src/system/function_system.rs:515:17
10: as bevy_ecs::system::system::System>::run_unsafe
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.6.0/src/system/function_system.rs:442:19
11: bevy_ecs::schedule::executor_parallel::ParallelExecutor::prepare_systems::{{closure}}
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.6.0/src/schedule/executor_parallel.rs:214:30
12: as core::future::future::Future>::poll
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/future/mod.rs:80:19
13: async_executor::LocalExecutor::spawn::{{closure}}
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/async-executor-1.4.1/src/lib.rs:376:13
14: as core::future::future::Future>::poll
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/future/mod.rs:80:19
15: async_task::raw::RawTask::run
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/async-task-4.1.0/src/raw.rs:489:20
16: async_executor::Executor::try_tick
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/async-executor-1.4.1/src/lib.rs:181:17
17: async_executor::LocalExecutor::try_tick
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/async-executor-1.4.1/src/lib.rs:405:9
18: bevy_tasks::task_pool::TaskPool::scope::{{closure}}
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_tasks-0.6.0/src/task_pool.rs:223:21
19: std::thread::local::LocalKey::try_with
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/thread/local.rs:399:16
20: std::thread::local::LocalKey::with
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/thread/local.rs:375:9
21: bevy_tasks::task_pool::TaskPool::scope
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_tasks-0.6.0/src/task_pool.rs:169:9
22: ::run_systems
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.6.0/src/schedule/executor_parallel.rs:122:9
23: ::run
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.6.0/src/schedule/stage.rs:850:17
24: ::build::{{closure}}
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_render-0.6.0/src/lib.rs:226:21
25: as core::ops::function::Fn>::call
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/alloc/src/boxed.rs:1705:9
26: bevy_app::app::App::update
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_app-0.6.0/src/app.rs:114:13
27: bevy_winit::winit_runner_with::{{closure}}
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_winit-0.6.0/src/lib.rs:504:21
28: winit::platform_impl::platform::sticky_exit_callback
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.1/src/platform_impl/linux/mod.rs:753:5
29: winit::platform_impl::platform::x11::EventLoop::run_return
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.1/src/platform_impl/linux/x11/mod.rs:293:17
30: winit::platform_impl::platform::x11::EventLoop::run
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.1/src/platform_impl/linux/x11/mod.rs:392:9
31: winit::platform_impl::platform::EventLoop::run
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.1/src/platform_impl/linux/mod.rs:669:56
32: winit::event_loop::EventLoop::run
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.1/src/event_loop.rs:154:9
33: bevy_winit::run
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_winit-0.6.0/src/lib.rs:171:5
34: bevy_winit::winit_runner_with
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_winit-0.6.0/src/lib.rs:513:9
35: bevy_winit::winit_runner
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_winit-0.6.0/src/lib.rs:211:5
36: core::ops::function::Fn::call
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/ops/function.rs:70:5
37: as core::ops::function::Fn>::call
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/alloc/src/boxed.rs:1705:9
38: bevy_app::app::App::run
at /home/gaast/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_app-0.6.0/src/app.rs:130:9
39: moba::main
at ./src/main.rs:29:5
40: core::ops::function::FnOnce::call_once
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.