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

window: (minimize, 0 size, oom) crashes #2299

Closed
NathanSWard opened this issue Jun 3, 2021 · 7 comments
Closed

window: (minimize, 0 size, oom) crashes #2299

NathanSWard opened this issue Jun 3, 2021 · 7 comments
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior P-Crash A sudden unexpected crash

Comments

@NathanSWard
Copy link
Contributor

There are a set of issues:
#170
#899
#1664
#1882
#2018

That all deal with a window crash when either a window is minimized or the size is set the zero.
All of these issues are related so I'm coalescing them into this issue to centralize discussion here :)

There's been talk that the issue lies withing wgpu, so bevy is unable to do anyting currently about it.
However, if there is more information please feel free to post here and update the progress of this crash.

@NathanSWard NathanSWard added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled P-Crash A sudden unexpected crash help wanted A-Windowing Platform-agnostic interface layer to run your app in and removed S-Needs-Triage This issue needs to be labelled labels Jun 3, 2021
@trolleyman
Copy link
Contributor

The resizing the window to 0-width/height is fixed by #1409, however minimizing the window still causes a crash on Windows, caused by requesting a 0-width/height texture.

Looks like this can be fixed by this comment I left a while back: #170 (comment). I can look at creating a PR with those changes.

@trolleyman
Copy link
Contributor

trolleyman commented Jun 3, 2021

Opened #2300 to fix.

@bors bors bot closed this as completed in a40ec1c Jun 9, 2021
ostwilkens pushed a commit to ostwilkens/bevy that referenced this issue Jul 27, 2021
# Objective
- Fixes bevyengine#2299

## Solution
- Ensures that textures are never requested with 0 height/width.
@kotx
Copy link

kotx commented Aug 10, 2021

I seem to have the same issue despite the fix.

wgpu error: Validation Error

Caused by:
    In Device::create_texture
    Dimension X is zero


thread 'main' panicked at 'Handling wgpu errors as fatal by default', C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\wgpu-0.7.1\src\backend\direct.rs:1896:5
stack backtrace:
   0:     0x7ff7434ebdae - std::backtrace_rs::backtrace::dbghelp::trace
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\..\..\backtrace\src\backtrace\dbghelp.rs:98
   1:     0x7ff7434ebdae - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ff7434ebdae - std::sys_common::backtrace::_print_fmt
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\sys_common\backtrace.rs:67
   3:     0x7ff7434ebdae - std::sys_common::backtrace::_print::impl$0::fmt
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\sys_common\backtrace.rs:46
   4:     0x7ff7434fcffa - core::fmt::write
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\core\src\fmt\mod.rs:1117
   5:     0x7ff7434e85e8 - std::io::Write::write_fmt<std::sys::windows::stdio::Stderr>
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\io\mod.rs:1667
   6:     0x7ff7434ee996 - std::sys_common::backtrace::_print
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\sys_common\backtrace.rs:49
   7:     0x7ff7434ee996 - std::sys_common::backtrace::print
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\sys_common\backtrace.rs:36
   8:     0x7ff7434ee996 - std::panicking::default_hook::closure$1
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\panicking.rs:210
   9:     0x7ff7434ee479 - std::panicking::default_hook
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\panicking.rs:227
  10:     0x7ff7434eeff5 - std::panicking::rust_panic_with_hook
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\panicking.rs:624
  11:     0x7ff7435e6471 - std::panicking::begin_panic::closure$0<str>
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\std\src\panicking.rs:544
  12:     0x7ff743c1f8df - std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic::closure$0,never$>
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\std\src\sys_common\backtrace.rs:141
  13:     0x7ff7435e63bd - std::panicking::begin_panic<str>
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\std\src\panicking.rs:543
  14:     0x7ff7447262b4 - wgpu::backend::direct::default_error_handler
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\wgpu-0.7.1\src\backend\direct.rs:1896
  15:     0x7ff7443eb03e - core::ops::function::Fn::call<void (*)(enum$<wgpu::Error>),tuple$<enum$<wgpu::Error> > >
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\core\src\ops\function.rs:70
  16:     0x7ff7445d4ebc - alloc::boxed::impl$46::call<tuple$<enum$<wgpu::Error> >,dyn$<wgpu::UncapturedErrorHandler,assoc$<Output,tuple$<> > > >,alloc::alloc::Global>
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\alloc\src\boxed.rs:1650
  17:     0x7ff7447261b0 - wgpu::backend::direct::ErrorSinkRaw::handle_error
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\wgpu-0.7.1\src\backend\direct.rs:1883
  18:     0x7ff74471cf6a - wgpu::backend::direct::Context::handle_error<enum$<wgpu_core::resource::CreateTextureError> >
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\wgpu-0.7.1\src\backend\direct.rs:109  
  19:     0x7ff7447216ec - wgpu::backend::direct::impl$3::device_create_texture
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\wgpu-0.7.1\src\backend\direct.rs:1132 
  20:     0x7ff743edcdf6 - wgpu::Device::create_texture
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\wgpu-0.7.1\src\lib.rs:1591
  21:     0x7ff743e25159 - bevy_wgpu::renderer::wgpu_render_resource_context::impl$1::create_texture
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_wgpu-0.5.0\src\renderer\wgpu_render_resource_context.rs:258
  22:     0x7ff743bc2333 - bevy_render::render_graph::nodes::window_texture_node::impl$1::update
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_render-0.5.0\src\render_graph\nodes\window_texture_node.rs:72
  23:     0x7ff743e34ddf - bevy_wgpu::renderer::wgpu_render_graph_executor::WgpuRenderGraphExecutor::execute
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_wgpu-0.5.0\src\renderer\wgpu_render_graph_executor.rs:75
  24:     0x7ff743e40abf - bevy_wgpu::wgpu_renderer::impl$0::run_graph::closure$0
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_wgpu-0.5.0\src\wgpu_renderer.rs:115
  25:     0x7ff743e66520 - bevy_ecs::world::World::resource_scope<bevy_render::render_graph::graph::RenderGraph,tuple$<>,bevy_wgpu::wgpu_renderer::impl$0::run_graph::closure$0>
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_ecs-0.5.0\src\world\mod.rs:695
  26:     0x7ff743e4098a - bevy_wgpu::wgpu_renderer::WgpuRenderer::run_graph
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_wgpu-0.5.0\src\wgpu_renderer.rs:104
  27:     0x7ff743e40ba2 - bevy_wgpu::wgpu_renderer::WgpuRenderer::update
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_wgpu-0.5.0\src\wgpu_renderer.rs:121
  28:     0x7ff74398f799 - bevy_wgpu::get_wgpu_render_system::closure$0
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_wgpu-0.5.0\src\lib.rs:112        
  29:     0x7ff7434755fe - alloc::boxed::impl$45::call_mut<tuple$<ref_mut$<bevy_ecs::world::World> >,dyn$<core::ops::function::FnMut<tuple$<ref_mut$<bevy_ecs::world::World> >,assoc$<Output,tuple$<> > >,core::marker::Send,core::marker::Sync>,alloc::alloc::Global>
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\alloc\src\boxed.rs:1643
  30:     0x7ff7434c1a00 - bevy_ecs::system::exclusive_system::impl$0::run
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_ecs-0.5.0\src\system\exclusive_system.rs:41
  31:     0x7ff7434c10b4 - bevy_ecs::schedule::stage::impl$1::run
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_ecs-0.5.0\src\schedule\stage.rs:812
  32:     0x7ff74344bb3e - bevy_ecs::schedule::Schedule::run_once
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_ecs-0.5.0\src\schedule\mod.rs:201
  33:     0x7ff74344bb95 - bevy_ecs::schedule::impl$1::run
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_ecs-0.5.0\src\schedule\mod.rs:219
  34:     0x7ff74343d8d6 - bevy_app::app::App::update
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_app-0.5.0\src\app.rs:58
  35:     0x7ff7439b59f1 - bevy_winit::winit_runner_with::closure$1
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_winit-0.5.0\src\lib.rs:485
  36:     0x7ff744036aeb - winit::platform_impl::platform::event_loop::impl$2::run_return::closure$0<tuple$<>,bevy_winit::winit_runner_with::closure$1>     
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:203
  37:     0x7ff7449eb4ec - alloc::boxed::impl$45::call_mut<tuple$<enum$<winit::event::Event<tuple$<> > >,ref_mut$<enum$<winit::event_loop::ControlFlow> > >,dyn$<core::ops::function::FnMut<tuple$<enum$<winit::event::Event<tuple$<> > >,ref_mut$<enum$<winit::event_loop::ControlFlow> >
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\alloc\src\boxed.rs:1643
  38:     0x7ff74404e8b5 - winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$0<tuple$<> >
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:245
  39:     0x7ff74406cbc4 - core::panic::unwind_safe::impl$23::call_once<tuple$<>,winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$0>
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\core\src\panic\unwind_safe.rs:271
  40:     0x7ff74406e669 - std::panicking::try::do_call<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$0>,tuple$<> >
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\std\src\panicking.rs:403
  41:     0x7ff74406f393 - winit::platform_impl::platform::impl$24::fmt
  42:     0x7ff74406e363 - std::panicking::try<tuple$<>,core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$0> >
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\std\src\panicking.rs:367
  43:     0x7ff744052f84 - std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$0>,tuple$<> >
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\std\src\panic.rs:129
  44:     0x7ff74404da0b - winit::platform_impl::platform::event_loop::runner::EventLoopRunner::catch_unwind<tuple$<>,tuple$<>,winit::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$0>
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:152
  45:     0x7ff74404e653 - winit::platform_impl::platform::event_loop::runner::EventLoopRunner::call_event_handler<tuple$<> >
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:239
  46:     0x7ff74404efaf - winit::platform_impl::platform::event_loop::runner::EventLoopRunner::move_state_to<tuple$<> >
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:341
  47:     0x7ff74404e5e2 - winit::platform_impl::platform::event_loop::runner::EventLoopRunner::main_events_cleared<tuple$<> >
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:227
  48:     0x7ff744050b02 - winit::platform_impl::platform::event_loop::flush_paint_messages<tuple$<> >
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:676
  49:     0x7ff744051c9b - winit::platform_impl::platform::event_loop::thread_event_target_callback::closure$0<tuple$<> >
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:1967
  50:     0x7ff74406cb91 - core::panic::unwind_safe::impl$23::call_once<isize,winit::platform_impl::platform::event_loop::thread_event_target_callback::closure$0>
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\core\src\panic\unwind_safe.rs:271
  51:     0x7ff74406e5f8 - std::panicking::try::do_call<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::platform::event_loop::thread_event_target_callback::closure$0>,isize>
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\std\src\panicking.rs:403
  52:     0x7ff74406f393 - winit::platform_impl::platform::impl$24::fmt
  53:     0x7ff74406e454 - std::panicking::try<isize,core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::platform::event_loop::thread_event_target_callback::closure$0> >
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\std\src\panicking.rs:367
  54:     0x7ff744052ffd - std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::platform::event_loop::thread_event_target_callback::closure$0>,isize>
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\std\src\panic.rs:129
  55:     0x7ff74404ddb5 - winit::platform_impl::platform::event_loop::runner::EventLoopRunner::catch_unwind<tuple$<>,isize,winit::platform_impl::platform::event_loop::thread_event_target_callback::closure$0>
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:152
  56:     0x7ff744050e21 - winit::platform_impl::platform::event_loop::thread_event_target_callback<tuple$<> >
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:2151
  57:     0x7ffef81ed6a0 - DefSubclassProc
  58:     0x7ffef81ed54c - DefSubclassProc
  59:     0x7fff15801a6c - CallWindowProcW
  60:     0x7fff158015bc - EnumChildWindows
  61:     0x7fff1581496d - IsIconic
  62:     0x7fff17a07224 - KiUserCallbackDispatcher
  63:     0x7fff154119b4 - NtUserDispatchMessage
  64:     0x7fff15800cfd - DispatchMessageW
  65:     0x7ff744036865 - winit::platform_impl::platform::event_loop::EventLoop::run_return<tuple$<>,bevy_winit::winit_runner_with::closure$1>
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:218
  66:     0x7ff744036b9f - winit::platform_impl::platform::event_loop::EventLoop::run<tuple$<>,bevy_winit::winit_runner_with::closure$1>
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:188
  67:     0x7ff7439b26d5 - winit::event_loop::EventLoop::run<tuple$<>,bevy_winit::winit_runner_with::closure$1>
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\winit-0.24.0\src\event_loop.rs:154    
  68:     0x7ff7439b5105 - bevy_winit::run<bevy_winit::winit_runner_with::closure$1>
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_winit-0.5.0\src\lib.rs:171       
  69:     0x7ff7439b564d - bevy_winit::winit_runner_with
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_winit-0.5.0\src\lib.rs:493       
  70:     0x7ff7439b51b0 - bevy_winit::winit_runner
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_winit-0.5.0\src\lib.rs:211
  71:     0x7ff74402a0b1 - core::ops::function::Fn::call<void (*)(bevy_app::app::App),tuple$<bevy_app::app::App> >
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\core\src\ops\function.rs:70
  72:     0x7ff743441462 - alloc::boxed::impl$46::call<tuple$<bevy_app::app::App>,dyn$<core::ops::function::Fn<tuple$<bevy_app::app::App>,assoc$<Output,tuple$<> > > >,alloc::alloc::Global>
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\alloc\src\boxed.rs:1650
  73:     0x7ff74343d9a1 - bevy_app::app::App::run
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_app-0.5.0\src\app.rs:68
  74:     0x7ff74343db39 - bevy_app::app_builder::AppBuilder::run
                               at C:\Users\toast\scoop\persist\rustup\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\bevy_app-0.5.0\src\app_builder.rs:49  
  75:     0x7ff743372ccf - lilium::main
                               at C:\Users\toast\source\repos\lilium\src\main.rs:18
  76:     0x7ff74337a1d6 - core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\core\src\ops\function.rs:227
  77:     0x7ff743372947 - std::sys_common::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\std\src\sys_common\backtrace.rs:125
  78:     0x7ff743373f2c - std::rt::lang_start::closure$0<tuple$<> >
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\std\src\rt.rs:63
  79:     0x7ff7434ef556 - core::ops::function::impls::impl$2::call_once
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\core\src\ops\function.rs:259
  80:     0x7ff7434ef556 - std::panicking::try::do_call
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\panicking.rs:403
  81:     0x7ff7434ef556 - std::panicking::try
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\panicking.rs:367
  82:     0x7ff7434ef556 - std::panic::catch_unwind
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\panic.rs:129
  83:     0x7ff7434ef556 - std::rt::lang_start_internal::closure$2
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\rt.rs:45
  84:     0x7ff7434ef556 - std::panicking::try::do_call
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\panicking.rs:403
  85:     0x7ff7434ef556 - std::panicking::try
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\panicking.rs:367
  86:     0x7ff7434ef556 - std::panic::catch_unwind
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\panic.rs:129
  87:     0x7ff7434ef556 - std::rt::lang_start_internal
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\/library\std\src\rt.rs:45
  88:     0x7ff743373f00 - std::rt::lang_start<tuple$<> >
                               at /rustc/ad981d58e1ca16bcf4072577934630deb11c5e14\library\std\src\rt.rs:62
  89:     0x7ff743372d36 - main
  90:     0x7ff7451b2d88 - invoke_main
                               at d:\a01\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  91:     0x7ff7451b2d88 - __scrt_common_main_seh
                               at d:\a01\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  92:     0x7fff16fe54e0 - BaseThreadInitThunk
  93:     0x7fff1796485b - RtlUserThreadStart

@Ratysz
Copy link
Contributor

Ratysz commented Jan 25, 2022

This seems to be still happening on 0.6.

@Ratysz Ratysz reopened this Jan 25, 2022
@JulianRuiseco
Copy link

JulianRuiseco commented Jan 25, 2022

Confirmed

wgpu::backend::direct: Handling wgpu errors as fatal by default    
thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In a RenderPass
      note: encoder = `<CommandBuffer-(0, 96372, Vulkan)>`
    In a set_scissor_rect command
    Invalid ScissorRect parameters


', __________\.cargo\registry\src\gh.neting.cc-1ecc6299db9ec823\wgpu-0.12.0\src\backend\direct.rs:2273:5

update: Appears to happen to our big project, but not the base bevy examples

update2: We are running into the following error

vladbat00/bevy_egui#57

@Ratysz
Copy link
Contributor

Ratysz commented Jan 25, 2022

What we're ran into appears to be caused by something downstream from Bevy, so I'll close this again. Sorry for the ruckus.

@Ratysz Ratysz closed this as completed Jan 25, 2022
@confessore
Copy link

confessore commented Mar 1, 2022

experiencing this or similar on window minimize on w10x64 with a 3060ti running vulkan

i do not experience this on the apple m1 running metal

`thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In Device::create_texture
      note: label = `sampled_color_attachment_texture`
    Dimension X is zero`

patching in wgpu branch v0.12 did not change outcome

i imagine something is trying to divide by a window dimension while it is zero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior P-Crash A sudden unexpected crash
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants