Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Building WASM samples #342

Closed
giordi91 opened this issue Jun 2, 2020 · 9 comments
Closed

Building WASM samples #342

giordi91 opened this issue Jun 2, 2020 · 9 comments
Labels
question Further information is requested

Comments

@giordi91
Copy link

giordi91 commented Jun 2, 2020

Good afternoon, I have been trying to build the samples to run in the browser and failed so far. here is what I tried.

I have been using the following browsers:
Firefox Nightly :
image

Chrome with wgpu enabled:
image

Enviroment:
Windows 10 latest.
CPU: 2700x
GPU1 : 5700XT
GPU2 : 2080ti
Latest graphics drivers.
32 GB ram
rustc:  1.43.1 (8d69840ab 2020-05-04)

From master:
I have simply cloned master and built hello-triangle and describe. In order to get a successful compilation I had to downgrade cc package as per: gfx-rs/wgpu#464

I have been trying to run hello-triangle and describe.

** Firefox / describe sample**
If I run with the suggested python server I get a mime mismatch for JS and flat out fail. So I decided to run with npx http-server path/to/code/, which seems to address the js MIME but not the WASM one, giving the following warning:

image

From the sounds of it, it seems like it should still be able to run, but does not seem the case. Nothing happens no other errors

** Chrome / describe sample**
image
It seems like no adapter was found?

** Firefox / hello-triangle samle**
Here I get the same warning from the MIME of the WASM and a black screen, plus the control flow exceptions:
image

From time to time I also get a closure error:
image

I am fairly new to Rust and the error is possibly related to this? https://www.reddit.com/r/WebAssembly/comments/e2rclj/beginner_wasm_rust_throw_closure_invoked/

** Chrome / hello-triangle sample**

image
Seems to still be hanging on the same problem.

I have been compiling this with the nightly toolchain as well, did not make any difference.

I also tried to compile for v0.5 but compilation fails. (There are no instructions in the readme for v0.5 about WASM so I am not sure if it is supported).
Here compilation log:

C:\WORK_IN_PROGRESS\compile\wgpu-rs>git checkout v0.5
Switched to a new branch 'v0.5'
Branch 'v0.5' set up to track remote branch 'v0.5' from 'origin'.

C:\WORK_IN_PROGRESS\compile\wgpu-rs>echo %RUSTFLAGS%
--cfg=web_sys_unstable_apis

C:\WORK_IN_PROGRESS\compile\wgpu-rs>cargo build --target wasm32-unknown-unknown --example hello-triangle
    Updating crates.io index
  Downloaded glsl-to-spirv v0.1.7
  Downloaded zerocopy v0.3.0
  Downloaded sha2 v0.7.1
  Downloaded block-buffer v0.3.3
  Downloaded byte-tools v0.2.0
  Downloaded fake-simd v0.1.2
  Downloaded digest v0.7.6
  Downloaded arrayref v0.3.6
  Downloaded generic-array v0.9.0
  Downloaded zerocopy-derive v0.2.0
   Compiling typenum v1.12.0
   Compiling getrandom v0.1.14
   Compiling atom v0.3.5
   Compiling byte-tools v0.2.0
   Compiling arrayref v0.3.6
   Compiling fake-simd v0.1.2
   Compiling vec_map v0.8.2
   Compiling copyless v0.1.5
   Compiling quick-error v1.2.3
   Compiling remove_dir_all v0.5.2
   Compiling regex-syntax v0.6.18
   Compiling instant v0.1.4
   Compiling termcolor v1.1.0
   Compiling atty v0.2.14
   Compiling thread_local v1.0.1
   Compiling cmake v0.1.44
   Compiling fxhash v0.2.1
   Compiling aho-corasick v0.7.10
   Compiling gfx-hal v0.5.0
   Compiling humantime v1.3.0
   Compiling hibitset v0.6.3
   Compiling zerocopy-derive v0.2.0
   Compiling block-buffer v0.3.3
   Compiling wgpu-types v0.5.1
   Compiling winit v0.22.2
error: Please select a feature to build for web: `web-sys`, `stdweb`
  --> C:\Users\marco\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\web\mod.rs:35:1
   |
35 | compile_error!("Please select a feature to build for web: `web-sys`, `stdweb`");
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved import `super::backend`
 --> C:\Users\marco\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\web\event_loop\runner.rs:1:13
  |
1 | use super::{backend, state::State};
  |             ^^^^^^^ no `backend` in `platform_impl::platform::event_loop`

error[E0432]: unresolved import `super::backend`
 --> C:\Users\marco\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\web\event_loop\state.rs:1:5
  |
1 | use super::backend;
  |     ^^^^^^^^^^^^^^ no `backend` in `platform_impl::platform::event_loop`

error[E0432]: unresolved import `super::backend`
 --> C:\Users\marco\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\web\event_loop\window_target.rs:1:13
  |
1 | use super::{backend, device, proxy::Proxy, runner, window};
  |             ^^^^^^^ no `backend` in `platform_impl::platform::event_loop`

error[E0432]: unresolved import `super::backend`
 --> C:\Users\marco\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\web\event_loop\mod.rs:9:13
  |
9 | use super::{backend, device, monitor, window};
  |             ^^^^^^^ no `backend` in `platform_impl::platform`

error[E0432]: unresolved import `super::backend`
 --> C:\Users\marco\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\web\window.rs:9:13
  |
9 | use super::{backend, monitor, EventLoopWindowTarget};
  |             ^^^^^^^ no `backend` in `platform_impl::platform`

error[E0433]: failed to resolve: could not find `backend` in `super`
   --> C:\Users\marco\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\web\window.rs:123:1
6
    |
123 |         super::backend::scale_factor()
    |                ^^^^^^^ could not find `backend` in `super`

error[E0283]: type annotations needed
   --> C:\Users\marco\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\web\window.rs:286:5
    |
286 |     pub(crate) canvas: Option<backend::RawCanvasType>,
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
    |
    = note: cannot resolve `_: std::default::Default`
    = note: required by `std::default::Default::default`
    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

   Compiling rand_core v0.5.1
error: aborting due to 8 previous errors

Some errors have detailed explanations: E0283, E0432, E0433.
For more information about an error, try `rustc --explain E0283`.
error: could not compile `winit`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

Any idea of what I might be doing wrong or how to proceed in debugging this? In my specific case, I am trying to get a simple example working for both rust native and wasm such that I can build on top of.

Thank you very much

@grovesNL
Copy link
Collaborator

grovesNL commented Jun 2, 2020

Hi! The examples will only build on master, so the build error is expected when using 0.5.

In Chrome Canary, the requestAdapter error sounds like WebGPU isn't enabled. Are you using Canary with the experimental WebGPU flag enabled?

In Firefox Nightly, do you have both WebGPU (dom.webgpu.enabled) and WebRender enabled (gfx.webrender.all)?

There are some details in https://github.com/gpuweb/gpuweb/wiki/Implementation-Status#implementation-status about how to configure each browser with experimental WebGPU support.

The MIME type warning is related the npm package you're using (http-server) not sending the correct MIME type for wasm files, but that should be ok.

I see the closure invoked recursively error occasionally so we still need to look into that and see where it's coming from. Although this doesn't seem to stop the examples from running ok -- you should be able to see some output at https://wgpu.rs/examples/ by clicking through the examples at (you might need to refresh the page if they don't load, or restart your browser).

@grovesNL grovesNL added the question Further information is requested label Jun 2, 2020
@giordi91
Copy link
Author

giordi91 commented Jun 2, 2020

Ok interesting findings here.
My firefox was setup properly. I am able to run the samples. Interestingly enough they all work fine no problem, except hello-triangle takes an obscene amount of time to load (if it loads at all). I was not able to time it but we are talking about several minutes. Same reproduced on localhost.

I am trying to run another example locally but so far I am failing. I will report details later while I have a better understanding. Just to double check is the nightly toolchain required to run such samples?

M.

@kvark
Copy link
Member

kvark commented Jun 2, 2020

@giordi91 the hello-triangle just has a problem with presentation on Gecko, it's filed as https://bugzilla.mozilla.org/show_bug.cgi?id=1628400 . It doesn't actually do anything, just the logic of showing the results isn't fleshed out yet. Notably, it's easy to work around in your app by just requesting the redraw constantly.

@giordi91
Copy link
Author

giordi91 commented Jun 2, 2020

@kvark Interesting. I will have a look at the other samples then.
I have been having huge issues running anything else though. For example running the cube on native fails big time. I have debugged it, initialization goes fine,but as soon as it tries to go into the event loop it dies. I failed to pinpoint the exact issue, but the last breakpoint I am able to hit is line 127. I am finding the stack trace a bit hard to digest. Most likely due to my inexperience with Rust.
I have run the executable with backtrace, please see below.

![image](https://user-images.githubusercontent.com/2525797/83544612-176ab280-a4f6-11ea-873a-1196767d8623.png)

C:\WORK_IN_PROGRESS\compile\wgpu-rs>cargo run --example cube
Compiling winapi v0.3.8
Compiling cfg-if v0.1.10
Compiling bitflags v1.2.1
Compiling proc-macro2 v1.0.18
Compiling unicode-xid v0.2.0
Compiling syn v1.0.30
Compiling libc v0.2.71
Compiling cc v1.0.50
Compiling byteorder v1.3.4
Compiling log v0.4.8
Compiling rand_core v0.4.2
Compiling autocfg v0.1.7
Compiling memchr v2.3.3
Compiling autocfg v1.0.0
Compiling smallvec v1.4.0
Compiling lazy_static v1.4.0
Compiling proc-macro-nested v0.1.4
Compiling scopeguard v1.1.0
Compiling slab v0.4.2
Compiling once_cell v1.4.0
Compiling futures-core v0.3.5
Compiling getrandom v0.1.14
Compiling proc-macro-hack v0.5.16
Compiling futures-sink v0.3.5
Compiling futures-io v0.3.5
Compiling range-alloc v0.1.1
Compiling atom v0.3.5
Compiling pin-utils v0.1.0
Compiling crc32fast v1.2.0
Compiling adler32 v1.0.4
Compiling quick-error v1.2.3
Compiling arrayvec v0.5.1
Compiling regex-syntax v0.6.18
Compiling ppv-lite86 v0.2.8
Compiling cgmath v0.17.0
Compiling copyless v0.1.5
Compiling vec_map v0.8.2
Compiling instant v0.1.4
Compiling bytemuck v1.2.0
Compiling thread_local v1.0.1
Compiling lock_api v0.3.4
Compiling rand_core v0.3.1
Compiling futures-task v0.3.5
Compiling futures-channel v0.3.5
Compiling hibitset v0.6.3
Compiling humantime v1.3.0
Compiling inflate v0.4.5
Compiling rand_pcg v0.1.2
Compiling rand_chacha v0.1.1
Compiling rand v0.6.5
Compiling num-traits v0.2.11
Compiling rand_xorshift v0.1.1
Compiling rand_isaac v0.1.1
Compiling rand_hc v0.1.0
Compiling raw-window-handle v0.3.3
Compiling rand_core v0.5.1
Compiling gfx-hal v0.5.0
Compiling aho-corasick v0.7.10
Compiling fxhash v0.2.1
Compiling deflate v0.7.20
Compiling quote v1.0.6
Compiling rand_chacha v0.2.2
Compiling spirv_headers v1.4.2
Compiling regex v1.3.9
Compiling approx v0.3.2
Compiling png v0.15.3
Compiling libloading v0.5.2
Compiling spirv_cross v0.20.0
Compiling rand v0.7.3
Compiling naga v0.1.0 (https://github.com/gfx-rs/naga?rev=bce6358eb1026c13d2f1c6d365af37afe8869a86#bce6358e)
Compiling gfx-descriptor v0.1.0
Compiling gfx-backend-empty v0.5.0
Compiling gfx-memory v0.1.3
Compiling parking_lot_core v0.7.2
Compiling winapi-util v0.1.5
Compiling wio v0.2.2
Compiling rand_os v0.1.3
Compiling rand_jitter v0.1.4
Compiling atty v0.2.14
Compiling ash v0.30.0
Compiling d3d12 v0.3.0
Compiling termcolor v1.1.0
Compiling parking_lot v0.10.2
Compiling env_logger v0.7.1
Compiling winit v0.22.2
Compiling synstructure v0.12.3
Compiling pin-project-internal v0.4.17
Compiling peek-poke-derive v0.2.1
Compiling futures-macro v0.3.5
Compiling peek-poke v0.2.0
Compiling wgpu-types v0.5.0 (https://github.com/gfx-rs/wgpu?rev=fbc2c87de61b0e7bab2583ddf305742e3cbf85e8#fbc2c87d)
Compiling pin-project v0.4.17
Compiling futures-util v0.3.5
Compiling gfx-backend-vulkan v0.5.6
Compiling futures-executor v0.3.5
Compiling futures v0.3.5
Compiling gfx-auxil v0.4.0
Compiling gfx-backend-dx12 v0.5.5
Compiling gfx-backend-dx11 v0.5.1
Compiling wgpu-core v0.5.0 (https://github.com/gfx-rs/wgpu?rev=fbc2c87de61b0e7bab2583ddf305742e3cbf85e8#fbc2c87d)
Compiling wgpu v0.5.0 (C:\WORK_IN_PROGRESS\compile\wgpu-rs)
Finished dev [unoptimized + debuginfo] target(s) in 1m 17s
Running target\debug\examples\cube.exe
thread 'main' panicked at 'assertion failed: (left == right)
left: Ok(()),
right: Err(ERROR_DEVICE_LOST)', <::std::macros::panic macros>:5:6
stack backtrace:
0: backtrace::backtrace::trace_unsynchronized
at C:\Users\VssAdministrator.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.44\src\backtrace\mod.rs:66
1: std::sys_common::backtrace::_print_fmt
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\sys_common\backtrace.rs:78
2: std::sys_common::backtrace::_print::{{impl}}::fmt
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\sys_common\backtrace.rs:59
3: core::fmt::write
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libcore\fmt\mod.rs:1063
4: std::io::Write::write_fmtstd::sys::windows::stdio::Stderr
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\io\mod.rs:1426
5: std::sys_common::backtrace::_print
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\sys_common\backtrace.rs:62
6: std::sys_common::backtrace::print
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\sys_common\backtrace.rs:49
7: std::panicking::default_hook::{{closure}}
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:204
8: std::panicking::default_hook
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:224
9: std::panicking::rust_panic_with_hook
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:470
10: std::panicking::begin_panic_handler
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:378
11: std::panicking::begin_panic_fmt
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:332
12: gfx_backend_vulkan::{{impl}}::submit<gfx_backend_vulkan::command::CommandBuffer,core::iter::adapters::chain::Chain<core::option::IntoIter<gfx_backend_vulkan::command::CommandBuffer*>, core::iter::adapters::flatten::FlatMap<core::slice::Iter<wgpu_core::id:
at <::std::macros::panic macros>:5
13: wgpu_core::hub::Global<wgpu_core::hub::IdentityManagerFactory>::queue_submit<wgpu_core::hub::IdentityManagerFactory,gfx_backend_vulkan::Backend>
at C:\Users\marco.cargo\git\checkouts\wgpu-53e70f8674b08dd4\fbc2c87\wgpu-core\src\device\queue.rs:466
14: wgpu::backend::direct::{{impl}}::queue_submit<core::iter::adapters::Map<core::option::IntoIterwgpu::CommandBuffer, closure-0>>
at .\src\backend\direct.rs:17
15: wgpu::Queue::submit<core::option::Optionwgpu::CommandBuffer>
at .\src\lib.rs:1641
16: cube::framework::run_async::{{closure}}::{{closure}}cube::Example
at .\examples\framework.rs:177
17: winit::platform_impl::platform::event_loop::{{impl}}::run_return::{{closure}}<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:200
18: alloc::boxed::{{impl}}::call_mut<(winit::event::Event<()>, mut winit::event_loop::ControlFlow*),FnMut<(winit::event::Event<()>, mut winit::event_loop::ControlFlow*)>>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\liballoc\boxed.rs:1024
19: winit::platform_impl::platform::event_loop::runner::{{impl}}::call_event_handler::{{closure}}<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:239
20: std::panic::{{impl}}::call_once<(),closure-0>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panic.rs:318
21: std::panicking::try::do_call<std::panic::AssertUnwindSafe,()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panicking.rs:303
22: panic_unwind::__rust_maybe_catch_panic
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libpanic_unwind\lib.rs:86
23: std::panicking::try<(),std::panic::AssertUnwindSafe>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panicking.rs:281
24: std::panic::catch_unwind<std::panic::AssertUnwindSafe,()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panic.rs:394
25: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<()>::catch_unwind<(),(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:150
26: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<()>::call_event_handler<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:233
27: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<()>::send_event<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:208
28: winit::platform_impl::platform::event_loop::SubclassInput<()>::send_event<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:90
29: winit::platform_impl::platform::event_loop::public_window_callback::{{closure}}<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:819
30: core::ops::function::FnOnce::call_once<closure-0,()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libcore\ops\function.rs:232
31: std::panic::{{impl}}::call_once<isize,closure-0>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panic.rs:318
32: std::panicking::try::do_call<std::panic::AssertUnwindSafe,isize>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panicking.rs:303
33: panic_unwind::__rust_maybe_catch_panic
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libpanic_unwind\lib.rs:86
34: std::panicking::try<isize,std::panic::AssertUnwindSafe>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panicking.rs:281
35: std::panic::catch_unwind<std::panic::AssertUnwindSafe,isize>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panic.rs:394
36: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<()>::catch_unwind<(),isize,closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:150
37: winit::platform_impl::platform::event_loop::public_window_callback<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:1893
38: DefSubclassProc
39: DefSubclassProc
40: CallWindowProcW
41: CallWindowProcW
42: glPushClientAttrib
43: CallWindowProcW
44: DispatchMessageW
45: IsWindowVisible
46: KiUserCallbackDispatcher
47: NtUserDispatchMessage
48: DispatchMessageW
49: winit::platform_impl::platform::event_loop::flush_paint_messages::{{closure}}<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:681
50: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<()>::owned_windows<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:188
51: winit::platform_impl::platform::event_loop::flush_paint_messages<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:665
52: winit::platform_impl::platform::event_loop::thread_event_target_callback::{{closure}}<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:1938
53: std::panic::{{impl}}::call_once<isize,closure-0>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panic.rs:318
54: std::panicking::try::do_call<std::panic::AssertUnwindSafe,isize>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panicking.rs:303
55: panic_unwind::__rust_maybe_catch_panic
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libpanic_unwind\lib.rs:86
56: std::panicking::try<isize,std::panic::AssertUnwindSafe>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panicking.rs:281
57: std::panic::catch_unwind<std::panic::AssertUnwindSafe,isize>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panic.rs:394
58: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<()>::catch_unwind<(),isize,closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:150
59: winit::platform_impl::platform::event_loop::thread_event_target_callback<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:2120
60: DefSubclassProc
61: DefSubclassProc
62: CallWindowProcW
63: DispatchMessageW
64: IsWindowVisible
65: KiUserCallbackDispatcher
66: NtUserDispatchMessage
67: DispatchMessageW
68: winit::platform_impl::platform::event_loop::EventLoop<()>::run_return<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:215
69: winit::platform_impl::platform::event_loop::EventLoop<()>::run<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:185
70: winit::event_loop::EventLoop<()>::run<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\event_loop.rs:149
71: cube::framework::run_async::{{closure}}cube::Example
at .\examples\framework.rs:112
72: std::future::{{impl}}::poll
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\future.rs:44
73: futures_executor::local_pool::block_on::{{closure}}<std::future::GenFuture>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\futures-executor-0.3.5\src\local_pool.rs:317
74: futures_executor::local_pool::run_executor::{{closure}}<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\futures-executor-0.3.5\src\local_pool.rs:87
75: std::thread::local::LocalKey<alloc::sync::Arc<futures_executor::local_pool::ThreadNotify>>::try_with<alloc::sync::Arc<futures_executor::local_pool::ThreadNotify>,closure-0,()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\thread\local.rs:262
76: std::thread::local::LocalKey<alloc::sync::Arc<futures_executor::local_pool::ThreadNotify>>::with<alloc::sync::Arc<futures_executor::local_pool::ThreadNotify>,closure-0,()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\thread\local.rs:239
77: futures_executor::local_pool::run_executor<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\futures-executor-0.3.5\src\local_pool.rs:83
78: futures_executor::local_pool::block_on<std::future::GenFuture>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\futures-executor-0.3.5\src\local_pool.rs:317
79: cube::framework::runcube::Example
at .\examples\framework.rs:198
80: cube::main
at .\examples\cube\main.rs:357
81: std::rt::lang_start::{{closure}}<()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\rt.rs:67
82: std::rt::lang_start_internal::{{closure}}
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\rt.rs:52
83: std::panicking::try::do_call<closure-0,i32>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:303
84: panic_unwind::__rust_maybe_catch_panic
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libpanic_unwind\lib.rs:86
85: std::panicking::try
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:281
86: std::panic::catch_unwind
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panic.rs:394
87: std::rt::lang_start_internal
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\rt.rs:51
88: std::rt::lang_start<()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\rt.rs:67
89: main
90: invoke_main
at d:\agent_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
91: __scrt_common_main_seh
at d:\agent_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
92: BaseThreadInitThunk
93: RtlUserThreadStart
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
thread 'main' panicked at 'called Result::unwrap() on an Err value: DeviceLost', C:\Users\marco.cargo\git\checkouts\wgpu-53e70f8674b08dd4\fbc2c87\wgpu-core\src\device\life.rs:269:37
stack backtrace:
0: 0x7ff7597a20bf - backtrace::backtrace::trace_unsynchronized
at C:\Users\VssAdministrator.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.44\src\backtrace\mod.rs:66
1: 0x7ff7597a20bf - std::sys_common::backtrace::_print_fmt
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\sys_common\backtrace.rs:78
2: 0x7ff7597a20bf - std::sys_common::backtrace::_print::{{impl}}::fmt
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\sys_common\backtrace.rs:59
3: 0x7ff7597b67cb - core::fmt::write
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libcore\fmt\mod.rs:1063
4: 0x7ff75979f47c - std::io::Write::write_fmtstd::sys::windows::stdio::Stderr
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\io\mod.rs:1426
5: 0x7ff7597a525c - std::sys_common::backtrace::_print
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\sys_common\backtrace.rs:62
6: 0x7ff7597a525c - std::sys_common::backtrace::print
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\sys_common\backtrace.rs:49
7: 0x7ff7597a525c - std::panicking::default_hook::{{closure}}
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:204
8: 0x7ff7597a4eaf - std::panicking::default_hook
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:224
9: 0x7ff7597a5a37 - std::panicking::rust_panic_with_hook
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:470
10: 0x7ff7597a55bf - std::panicking::begin_panic_handler
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:378
11: 0x7ff7597b4e40 - core::panicking::panic_fmt
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libcore\panicking.rs:85
12: 0x7ff7597b4c63 - core::option::expect_none_failed
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libcore\option.rs:1211
13: 0x7ff7592792a3 - core::result::Result<bool, gfx_hal::device::DeviceLost>::unwrap<bool,gfx_hal::device::DeviceLost>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libcore\result.rs:1003
14: 0x7ff75924e9b7 - wgpu_core::device::life::{{impl}}::triage_submissions::{{closure}}<gfx_backend_vulkan::Backend>
at C:\Users\marco.cargo\git\checkouts\wgpu-53e70f8674b08dd4\fbc2c87\wgpu-core\src\device\life.rs:269
15: 0x7ff758f4a30a - core::slice::{{impl}}::position::{{closure}}<wgpu_core::device::life::ActiveSubmission<gfx_backend_vulkan::Backend>,closure-0>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libcore\slice\mod.rs:3329
16: 0x7ff758f2d736 - core::iter::traits::iterator::Iterator::try_fold<core::slice::Iter<wgpu_core::device::life::ActiveSubmission<gfx_backend_vulkan::Backend>>,usize,closure-0,core::result::Result<usize, usize>>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libcore\iter\traits\iterator.rs:1877
17: 0x7ff758f496ce - core::slice::{{impl}}::position<wgpu_core::device::life::ActiveSubmission<gfx_backend_vulkan::Backend>,closure-0>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libcore\slice\mod.rs:3328
18: 0x7ff75924d87f - wgpu_core::device::life::LifetimeTracker<gfx_backend_vulkan::Backend>::triage_submissions<gfx_backend_vulkan::Backend>
at C:\Users\marco.cargo\git\checkouts\wgpu-53e70f8674b08dd4\fbc2c87\wgpu-core\src\device\life.rs:266
19: 0x7ff759164e31 - wgpu_core::device::Device<gfx_backend_vulkan::Backend>::maintain<gfx_backend_vulkan::Backend,wgpu_core::hub::IdentityManagerFactory>
at C:\Users\marco.cargo\git\checkouts\wgpu-53e70f8674b08dd4\fbc2c87\wgpu-core\src\device\mod.rs:318
20: 0x7ff759064eb6 - wgpu_core::hub::Global<wgpu_core::hub::IdentityManagerFactory>::device_poll<wgpu_core::hub::IdentityManagerFactory,gfx_backend_vulkan::Backend>
at C:\Users\marco.cargo\git\checkouts\wgpu-53e70f8674b08dd4\fbc2c87\wgpu-core\src\device\mod.rs:2375
21: 0x7ff7593b819e - wgpu::backend::direct::{{impl}}::device_drop
at C:\WORK_IN_PROGRESS\compile\wgpu-rs\src\backend\direct.rs:589
22: 0x7ff7590148b6 - wgpu::{{impl}}::drop
at C:\WORK_IN_PROGRESS\compile\wgpu-rs\src\lib.rs:1165
23: 0x7ff758d06fcf - core::ptr::drop_in_placewgpu::Device
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libcore\ptr\mod.rs:177
24: 0x7ff758d07430 - core::ptr::drop_in_place
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libcore\ptr\mod.rs:177
25: 0x7ff758d072ee - core::ptr::drop_in_place
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libcore\ptr\mod.rs:177
26: 0x7ff75972b489 - core::ptr::drop_in_place<alloc::boxed::Box<FnMut<(winit::event::Event<()>, mut winit::event_loop::ControlFlow*)>>>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libcore\ptr\mod.rs:177
27: 0x7ff75972edcc - winit::platform_impl::platform::event_loop::runner::{{impl}}::call_event_handler::{{closure}}<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:246
28: 0x7ffe44431030 -
29: 0x7ffe44434a2b - is_exception_typeof
30: 0x7ffe4443e3d4 - _C_specific_handler
31: 0x7ffe44433cb0 - is_exception_typeof
32: 0x7ffe4443ed01 - _CxxFrameHandler3
33: 0x7ffe6780124f - _chkstk
34: 0x7ffe6777d9b2 - RtlUnwindEx
35: 0x7ffe4443e892 - _C_specific_handler
36: 0x7ffe44432941 - is_exception_typeof
37: 0x7ffe44432d6d - is_exception_typeof
38: 0x7ffe44433dac - is_exception_typeof
39: 0x7ffe4443ed01 - _CxxFrameHandler3
40: 0x7ffe678011cf - _chkstk
41: 0x7ffe677ca209 - RtlRaiseException
42: 0x7ffe677c9fc3 - RtlRaiseException
43: 0x7ffe6514a799 - RaiseException
44: 0x7ffe444361e0 - CxxThrowException
45: 0x7ff7597a8bd1 - panic_unwind::imp::panic
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libpanic_unwind\seh.rs:308
46: 0x7ff7597a8b59 - panic_unwind::__rust_start_panic
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libpanic_unwind\lib.rs:111
47: 0x7ff7597a5c28 - std::panicking::rust_panic
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:522
48: 0x7ff7597a5af1 - std::panicking::rust_panic_with_hook
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:492
49: 0x7ff7597a55bf - std::panicking::begin_panic_handler
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:378
50: 0x7ff7597a552c - std::panicking::begin_panic_fmt
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:332
51: 0x7ff758cedf03 - gfx_backend_vulkan::{{impl}}::submit<gfx_backend_vulkan::command::CommandBuffer,core::iter::adapters::chain::Chain<core::option::IntoIter<gfx_backend_vulkan::command::CommandBuffer*>, core::iter::adapters::flatten::FlatMap<core::slice::Iter<wgpu_core::i
d:
at <::std::macros::panic macros>:5
52: 0x7ff758ce930d - wgpu_core::hub::Global<wgpu_core::hub::IdentityManagerFactory>::queue_submit<wgpu_core::hub::IdentityManagerFactory,gfx_backend_vulkan::Backend>
at C:\Users\marco.cargo\git\checkouts\wgpu-53e70f8674b08dd4\fbc2c87\wgpu-core\src\device\queue.rs:466
53: 0x7ff758ce2f3c - wgpu::backend::direct::{{impl}}::queue_submit<core::iter::adapters::Map<core::option::IntoIterwgpu::CommandBuffer, closure-0>>
at C:\WORK_IN_PROGRESS\compile\wgpu-rs\src\backend\direct.rs:17
54: 0x7ff758d2b25e - wgpu::Queue::submit<core::option::Optionwgpu::CommandBuffer>
at C:\WORK_IN_PROGRESS\compile\wgpu-rs\src\lib.rs:1641
55: 0x7ff758d1da08 - cube::framework::run_async::{{closure}}::{{closure}}cube::Example
at C:\WORK_IN_PROGRESS\compile\wgpu-rs\examples\framework.rs:177
56: 0x7ff758cfe398 - winit::platform_impl::platform::event_loop::{{impl}}::run_return::{{closure}}<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:200
57: 0x7ff75973d3e3 - alloc::boxed::{{impl}}::call_mut<(winit::event::Event<()>, mut winit::event_loop::ControlFlow*),FnMut<(winit::event::Event<()>, mut winit::event_loop::ControlFlow*)>>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\liballoc\boxed.rs:1024
58: 0x7ff75972ec5b - winit::platform_impl::platform::event_loop::runner::{{impl}}::call_event_handler::{{closure}}<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:239
59: 0x7ff759739366 - std::panic::{{impl}}::call_once<(),closure-0>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panic.rs:318
60: 0x7ff759745490 - std::panicking::try::do_call<std::panic::AssertUnwindSafe,()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panicking.rs:303
61: 0x7ff7597a8ad2 - panic_unwind::__rust_maybe_catch_panic
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libpanic_unwind\lib.rs:86
62: 0x7ff759745096 - std::panicking::try<(),std::panic::AssertUnwindSafe>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panicking.rs:281
63: 0x7ff759739f36 - std::panic::catch_unwind<std::panic::AssertUnwindSafe,()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panic.rs:394
64: 0x7ff75972dcb9 - winit::platform_impl::platform::event_loop::runner::EventLoopRunner<()>::catch_unwind<(),(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:150
65: 0x7ff75972e9f1 - winit::platform_impl::platform::event_loop::runner::EventLoopRunner<()>::call_event_handler<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:233
66: 0x7ff75972e790 - winit::platform_impl::platform::event_loop::runner::EventLoopRunner<()>::send_event<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:208
67: 0x7ff758cfe4ea - winit::platform_impl::platform::event_loop::SubclassInput<()>::send_event<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:90
68: 0x7ff758cfee90 - winit::platform_impl::platform::event_loop::public_window_callback::{{closure}}<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:819
69: 0x7ff758d05ca7 - core::ops::function::FnOnce::call_once<closure-0,()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libcore\ops\function.rs:232
70: 0x7ff758d1d0d3 - std::panic::{{impl}}::call_once<isize,closure-0>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panic.rs:318
71: 0x7ff758d1590e - std::panicking::try::do_call<std::panic::AssertUnwindSafe,isize>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panicking.rs:303
72: 0x7ff7597a8ad2 - panic_unwind::__rust_maybe_catch_panic
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libpanic_unwind\lib.rs:86
73: 0x7ff758d157d6 - std::panicking::try<isize,std::panic::AssertUnwindSafe>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panicking.rs:281
74: 0x7ff758d1d12e - std::panic::catch_unwind<std::panic::AssertUnwindSafe,isize>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panic.rs:394
75: 0x7ff758cfc683 - winit::platform_impl::platform::event_loop::runner::EventLoopRunner<()>::catch_unwind<(),isize,closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:150
76: 0x7ff758cfe69f - winit::platform_impl::platform::event_loop::public_window_callback<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:1893
77: 0x7ffe55acb762 - DefSubclassProc
78: 0x7ffe55acb625 - DefSubclassProc
79: 0x7ffe662a5c0d - CallWindowProcW
80: 0x7ffe662a58de - CallWindowProcW
81: 0x7ffe212a3919 - glPushClientAttrib
82: 0x7ffe662a5c0d - CallWindowProcW
83: 0x7ffe662a57dc - DispatchMessageW
84: 0x7ffe662b1f73 - IsWindowVisible
85: 0x7ffe677ffde4 - KiUserCallbackDispatcher
86: 0x7ffe64f91764 - NtUserDispatchMessage
87: 0x7ffe662a56ec - DispatchMessageW
88: 0x7ff75974c629 - winit::platform_impl::platform::event_loop::flush_paint_messages::{{closure}}<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:681
89: 0x7ff75972e4b4 - winit::platform_impl::platform::event_loop::runner::EventLoopRunner<()>::owned_windows<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:188
90: 0x7ff75974c563 - winit::platform_impl::platform::event_loop::flush_paint_messages<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:665
91: 0x7ff75974ca28 - winit::platform_impl::platform::event_loop::thread_event_target_callback::{{closure}}<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:1938
92: 0x7ff7597392f3 - std::panic::{{impl}}::call_once<isize,closure-0>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panic.rs:318
93: 0x7ff7597454fe - std::panicking::try::do_call<std::panic::AssertUnwindSafe,isize>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panicking.rs:303
94: 0x7ff7597a8ad2 - panic_unwind::__rust_maybe_catch_panic
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libpanic_unwind\lib.rs:86
95: 0x7ff759745226 - std::panicking::try<isize,std::panic::AssertUnwindSafe>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panicking.rs:281
96: 0x7ff759739ebe - std::panic::catch_unwind<std::panic::AssertUnwindSafe,isize>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\panic.rs:394
97: 0x7ff75972e0d3 - winit::platform_impl::platform::event_loop::runner::EventLoopRunner<()>::catch_unwind<(),isize,closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop\runner.rs:150
98: 0x7ff75974c89f - winit::platform_impl::platform::event_loop::thread_event_target_callback<()>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:2120
99: 0x7ffe55acb762 - DefSubclassProc
100: 0x7ffe55acb625 - DefSubclassProc
101: 0x7ffe662a5c0d - CallWindowProcW
102: 0x7ffe662a57dc - DispatchMessageW
103: 0x7ffe662b1f73 - IsWindowVisible
104: 0x7ffe677ffde4 - KiUserCallbackDispatcher
105: 0x7ffe64f91764 - NtUserDispatchMessage
106: 0x7ffe662a56ec - DispatchMessageW
107: 0x7ff758cfe066 - winit::platform_impl::platform::event_loop::EventLoop<()>::run_return<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:215
108: 0x7ff758cfe416 - winit::platform_impl::platform::event_loop::EventLoop<()>::run<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\platform_impl\windows\event_loop.rs:185
109: 0x7ff758cfa62d - winit::event_loop::EventLoop<()>::run<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.22.2\src\event_loop.rs:149
110: 0x7ff758d1e883 - cube::framework::run_async::{{closure}}cube::Example
at C:\WORK_IN_PROGRESS\compile\wgpu-rs\examples\framework.rs:112
111: 0x7ff758d09ab1 - std::future::{{impl}}::poll
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\future.rs:44
112: 0x7ff758d2bcd6 - futures_executor::local_pool::block_on::{{closure}}<std::future::GenFuture>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\futures-executor-0.3.5\src\local_pool.rs:317
113: 0x7ff758d2bb0f - futures_executor::local_pool::run_executor::{{closure}}<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\futures-executor-0.3.5\src\local_pool.rs:87
114: 0x7ff758ced6c5 - std::thread::local::LocalKey<alloc::sync::Arc<futures_executor::local_pool::ThreadNotify>>::try_with<alloc::sync::Arc<futures_executor::local_pool::ThreadNotify>,closure-0,()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\thread\local.rs:262
115: 0x7ff758ced3e3 - std::thread::local::LocalKey<alloc::sync::Arc<futures_executor::local_pool::ThreadNotify>>::with<alloc::sync::Arc<futures_executor::local_pool::ThreadNotify>,closure-0,()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\thread\local.rs:239
116: 0x7ff758d2ba3a - futures_executor::local_pool::run_executor<(),closure-0>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\futures-executor-0.3.5\src\local_pool.rs:83
117: 0x7ff758d2bc47 - futures_executor::local_pool::block_on<std::future::GenFuture>
at C:\Users\marco.cargo\registry\src\github.com-1ecc6299db9ec823\futures-executor-0.3.5\src\local_pool.rs:317
118: 0x7ff758d1f429 - cube::framework::runcube::Example
at C:\WORK_IN_PROGRESS\compile\wgpu-rs\examples\framework.rs:198
119: 0x7ff758cf9818 - cube::main
at C:\WORK_IN_PROGRESS\compile\wgpu-rs\examples\cube\main.rs:357
120: 0x7ff758d2a92b - std::rt::lang_start::{{closure}}<()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\rt.rs:67
121: 0x7ff7597a5457 - std::rt::lang_start_internal::{{closure}}
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\rt.rs:52
122: 0x7ff7597a5457 - std::panicking::try::do_call<closure-0,i32>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:303
123: 0x7ff7597a8ad2 - panic_unwind::__rust_maybe_catch_panic
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libpanic_unwind\lib.rs:86
124: 0x7ff7597a5d88 - std::panicking::try
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panicking.rs:281
125: 0x7ff7597a5d88 - std::panic::catch_unwind
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\panic.rs:394
126: 0x7ff7597a5d88 - std::rt::lang_start_internal
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src\libstd\rt.rs:51
127: 0x7ff758d2a903 - std::rt::lang_start<()>
at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libstd\rt.rs:67
128: 0x7ff758cf9840 - main
129: 0x7ff759a04894 - invoke_main
at d:\agent_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
130: 0x7ff759a04894 - __scrt_common_main_seh
at d:\agent_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
131: 0x7ffe672c7bd4 - BaseThreadInitThunk
132: 0x7ffe677cce51 - RtlUserThreadStart
thread panicked while panicking. aborting.
error: process didn't exit successfully: target\debug\examples\cube.exe (exit code: 0xc000041d)

 Any ideas?

@kvark
Copy link
Member

kvark commented Jun 2, 2020

This is a problem on our side that I introduced, fixing at the moment (sorry about inconvenience!). Please don't mix native and WASM issues in the same issue here.

@kvark
Copy link
Member

kvark commented Jun 2, 2020

@giordi91 the issue I'm looking at will be fixed when #344 lands. It may not be exactly what you are seeing. Please try running when it lands and open a new issue if the problem persists.

@giordi91
Copy link
Author

giordi91 commented Jun 2, 2020

@kvark apologies for hijacking the issue. In general is it fine to open wasm related issues on this repository or is there a different place suited for that?

@kvark
Copy link
Member

kvark commented Jun 2, 2020

It's totally appropriate to file WASM issues here. Most native issues would go to https://github.com/gfx-rs/wgpu, although we can move an issue with no problem if you create it here.

@giordi91
Copy link
Author

giordi91 commented Jun 3, 2020

Thank you for al the help. Closing now.

@giordi91 giordi91 closed this as completed Jun 3, 2020
kejor pushed a commit to kejor/wgpu-rs that referenced this issue Nov 28, 2020
342: Fallback to D32 when D24 isn't available r=kvark a=grovesNL

The rationale is that D32 seems to be supported on more devices. Using D24 could be a future memory/performance optimization instead.

Otherwise if it's fairly trivial I could add the fallback path for D32 here instead, but I'm not sure how we intend for values in the `D24Unorm` depth range to work in general (i.e. compared to `D32Sfloat`). Maybe I missed some discussion about this, but I don't see it in the minutes.

cc @Yatekii 

Co-authored-by: Joshua Groves <josh@joshgroves.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants