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

crash on start #890

Closed
NemuiSen opened this issue May 23, 2021 · 5 comments
Closed

crash on start #890

NemuiSen opened this issue May 23, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@NemuiSen
Copy link

NemuiSen commented May 23, 2021

when I run any example or create a new project the application crashes and the console prints this:

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `-2005270523`,
 right: `0`: error on command list creation: 887a0005', C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\gfx-backend-dx12-0.7.1\src\pool.rs:105:17
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53\/library\std\src\panicking.rs:493
   1: core::panicking::panic_fmt
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53\/library\core\src\panicking.rs:92
   2: core::fmt::Arguments::new_v1
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53\/library\core\src\fmt\mod.rs:314
   3: core::panicking::assert_failed::inner
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53\/library\core\src\panicking.rs:129
   4: core::panicking::assert_failed<i32,i32>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\panicking.rs:143
   5: gfx_backend_dx12::pool::PoolShared::acquire
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\gfx-backend-dx12-0.7.1\src\pool.rs:105
   6: gfx_backend_dx12::command::{{impl}}::begin
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\gfx-backend-dx12-0.7.1\src\command.rs:1198
   7: gfx_hal::command::CommandBuffer::begin_primary<gfx_backend_dx12::command::CommandBuffer,gfx_backend_dx12::Backend>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\gfx-hal-0.7.0\src\command\mod.rs:119
   8: wgpu_core::hub::Global<wgpu_core::hub::IdentityManagerFactory>::device_create_command_encoder<wgpu_core::hub::IdentityManagerFactory,gfx_backend_dx12::Backend>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.7.1\src\device\mod.rs:3557
   9: wgpu::backend::direct::{{impl}}::device_create_command_encoder
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-0.7.1\src\backend\direct.rs:1209
  10: wgpu::Device::create_command_encoder
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-0.7.1\src\lib.rs:1513
  11: iced_wgpu::window::compositor::{{impl}}::draw<alloc::string::String>
             at .\wgpu\src\window\compositor.rs:141
  12: iced_winit::application::run_instance::{{closure}}<iced::application::Instance<qr_code::QRGenerator>,iced_futures::executor::null::Null,iced_wgpu::window::compositor::Compositor>
             at .\winit\src\application.rs:350
  13: core::future::from_generator::{{impl}}::poll<generator-0>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\future\mod.rs:80
  14: iced_winit::application::run::{{closure}}<iced::application::Instance<qr_code::QRGenerator>,iced_futures::executor::null::Null,iced_wgpu::window::compositor::Compositor>
             at .\winit\src\application.rs:193
  15: winit::platform_impl::platform::event_loop::{{impl}}::run_return::{{closure}}<qr_code::Message,closure-1>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:203
  16: alloc::boxed::{{impl}}::call_mut<tuple<winit::event::Event<qr_code::Message>, mut winit::event_loop::ControlFlow*>,FnMut<tuple<winit::event::Event<qr_code::Message>, mut winit::event_loop::ControlFlow*>>,alloc::alloc::Global>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\alloc\src\boxed.rs:1553
  17: winit::platform_impl::platform::event_loop::runner::{{impl}}::call_event_handler::{{closure}}<qr_code::Message>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:245
  18: std::panic::{{impl}}::call_once<tuple<>,closure-0>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:344
  19: std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure-0>,tuple<>>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:379
  20: iced_wgpu::window::compositor::{{impl}}::request::{{closure}}::{{closure}}<winit::window::Window>
  21: std::panicking::try<tuple<>,std::panic::AssertUnwindSafe<closure-0>>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:343
  22: std::panic::catch_unwind<std::panic::AssertUnwindSafe<closure-0>,tuple<>>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:431
  23: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<qr_code::Message>::catch_unwind<qr_code::Message,tuple<>,closure-0>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:152
  24: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<qr_code::Message>::call_event_handler<qr_code::Message>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:239
  25: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<qr_code::Message>::send_event<qr_code::Message>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:210
  26: winit::platform_impl::platform::event_loop::SubclassInput<qr_code::Message>::send_event<qr_code::Message>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:93
  27: winit::platform_impl::platform::event_loop::public_window_callback::{{closure}}<qr_code::Message>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:835
  28: core::ops::function::FnOnce::call_once<closure-0,tuple<>>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:227
  29: std::panic::{{impl}}::call_once<isize,closure-0>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:344
  30: std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure-0>,isize>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:379
  31: iced_wgpu::window::compositor::{{impl}}::request::{{closure}}::{{closure}}<winit::window::Window>
  32: std::panicking::try<isize,std::panic::AssertUnwindSafe<closure-0>>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:343
  33: std::panic::catch_unwind<std::panic::AssertUnwindSafe<closure-0>,isize>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:431
  34: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<qr_code::Message>::catch_unwind<qr_code::Message,isize,closure-0>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:152
  35: winit::platform_impl::platform::event_loop::public_window_callback<qr_code::Message>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:1912
  36: DefSubclassProc
  37: DefSubclassProc
  38: CallWindowProcW
  39: DispatchMessageW
  40: SendMessageTimeoutW
  41: KiUserCallbackDispatcher
  42: NtUserDispatchMessage
  43: DispatchMessageW
  44: winit::platform_impl::platform::event_loop::flush_paint_messages::{{closure}}<qr_code::Message>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:694
  45: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<qr_code::Message>::owned_windows<qr_code::Message,closure-0>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:190
  46: winit::platform_impl::platform::event_loop::flush_paint_messages<qr_code::Message>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:678
  47: winit::platform_impl::platform::event_loop::thread_event_target_callback::{{closure}}<qr_code::Message>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:1967
  48: std::panic::{{impl}}::call_once<isize,closure-0>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:344
  49: std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure-0>,isize>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:379
  50: iced_wgpu::window::compositor::{{impl}}::request::{{closure}}::{{closure}}<winit::window::Window>
  51: std::panicking::try<isize,std::panic::AssertUnwindSafe<closure-0>>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:343
  52: std::panic::catch_unwind<std::panic::AssertUnwindSafe<closure-0>,isize>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:431
  53: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<qr_code::Message>::catch_unwind<qr_code::Message,isize,closure-0>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop\runner.rs:152
  54: winit::platform_impl::platform::event_loop::thread_event_target_callback<qr_code::Message>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:2151
  55: DefSubclassProc
  56: DefSubclassProc
  57: CallWindowProcW
  58: DispatchMessageW
  59: SendMessageTimeoutW
  60: KiUserCallbackDispatcher
  61: NtUserDispatchMessage
  62: DispatchMessageW
  63: winit::platform_impl::platform::event_loop::EventLoop<qr_code::Message>::run_return<qr_code::Message,closure-1>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:218
  64: winit::platform_impl::platform::event_loop::EventLoop<qr_code::Message>::run<qr_code::Message,closure-1>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\platform_impl\windows\event_loop.rs:188
  65: winit::event_loop::EventLoop<qr_code::Message>::run<qr_code::Message,closure-1>
             at C:\Users\MRM\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.24.0\src\event_loop.rs:154
  66: iced_winit::application::run<iced::application::Instance<qr_code::QRGenerator>,iced_futures::executor::null::Null,iced_wgpu::window::compositor::Compositor>
             at .\winit\src\application.rs:168
  67: iced::application::Application::run<qr_code::QRGenerator>
             at .\src\application.rs:219
  68: iced::sandbox::Sandbox::run<qr_code::QRGenerator>
             at .\src\sandbox.rs:145
  69: qr_code::main
             at .\examples\qr_code\src\main.rs:8
  70: core::ops::function::FnOnce::call_once<fn() -> core::result::Result<tuple<>, iced::error::Error>,tuple<>>
             at C:\Users\MRM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:227
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: process didn't exit successfully: `target\debug\qr_code.exe` (exit code: 101)
@Dispersia
Copy link
Contributor

Can you try against master? It upgrades wgpu, just to rule out if that's the issue or not, otherwise best guess is there is a fault in your driver, i would check if you have an update. It failed acquiring a command pool in directx, I don't think that's possible without running out of video memory or a bad driver.

@NemuiSen
Copy link
Author

NemuiSen commented May 25, 2021

update everything and the problem still continues, I also tried to compile an example with the GFX-RS library with directx 12 and the same problem appears, the only exception is the "compute" example that only prints what is entered.
Another thing to mention is that other programs or games that use directx 12 like Nuclear Throne work fine.

@hecrj
Copy link
Member

hecrj commented May 27, 2021

@NemuiSen In that case, we should report the issue to the gfx-rs maintainers.

@hecrj hecrj added the bug Something isn't working label May 27, 2021
@nathaniel-daniel
Copy link

Looks like it's already tracked by gfx-rs/wgpu#1382. At the very least, it seems like the same underlying error.

@NemuiSen
Copy link
Author

Well, it turns out that the problem was the graphics drivers but for having the latest version of the drivers since it turns out that in the 3rd generation intel processors directx12 support was removed for security reasons. Sorry for the inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants