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

Web Demo doesn't work on Windows/Chrome 122 #495

Closed
simbleau opened this issue Mar 4, 2024 · 1 comment
Closed

Web Demo doesn't work on Windows/Chrome 122 #495

simbleau opened this issue Mar 4, 2024 · 1 comment
Labels
bug Something isn't working O-WASM Applicable specifically to the wasm32 target O-Windows Applicable specifically to the Windows target

Comments

@simbleau
Copy link
Member

simbleau commented Mar 4, 2024

Posting for @xStrom

The demo doesn't seem to work for me. I have Chrome 122.0.6261.95 on Windows 11. Other WebGPU sites work.
I saw a comment in a wgpu issue talking about web-sys and stating:
write_timestamp was removed fairly recently, this was before chrome shipped the timestamp feature.
That's exactly the method that is being called by this example but not found.

with_winit_bin.js:1286 Uncaught TypeError: getObject(...).writeTimestamp is not a function
    at imports.wbg.__wbg_writeTimestamp_a36ba108891c9491 (with_winit_bin.js:1286:25)
    at web_sys::features::gen_GpuCommandEncoder::GpuCommandEncoder::write_timestamp::hc04980a6c6c0a560 (with_winit_bin_bg.wasm:0x2be5fd)
    at <T as wgpu::context::DynContext>::command_encoder_write_timestamp::h341843ef2312ba8f (with_winit_bin_bg.wasm:0x2b48b4)
    at wgpu::CommandEncoder::write_timestamp::hdc743a111a19b160 (with_winit_bin_bg.wasm:0x2a985e)
    at <wgpu::CommandEncoder as wgpu_profiler::profiler_command_recorder::ProfilerCommandRecorder>::write_timestamp::h371bed9620e016b4 (with_winit_bin_bg.wasm:0x2bf317)
    at wgpu_profiler::profiler::GpuProfiler::begin_query::h51dd4b508aa26c19 (with_winit_bin_bg.wasm:0x223e0c)
    at vello::wgpu_engine::WgpuEngine::run_recording::h10328973bb07778a (with_winit_bin_bg.wasm:0x47518)
    at vello::Renderer::render_to_texture::h60899975c694b1fd (with_winit_bin_bg.wasm:0x23f437)
    at vello::Renderer::render_to_surface::h1263f84f542bef9c (with_winit_bin_bg.wasm:0x158b90)
    at winit::platform_impl::platform::event_loop::EventLoop<T>::run::{{closure}}::hc5018c790fcf1933 (with_winit_bin_bg.wasm:0x69c94)
imports.wbg.__wbg_writeTimestamp_a36ba108891c9491   @   with_winit_bin.js:1286
$web_sys::features::gen_GpuCommandEncoder::GpuCommandEncoder::write_timestamp::hc04980a6c6c0a560    @   with_winit_bin_bg.wasm:0x2be5fd
$<T as wgpu::context::DynContext>::command_encoder_write_timestamp::h341843ef2312ba8f   @   with_winit_bin_bg.wasm:0x2b48b4
$wgpu::CommandEncoder::write_timestamp::hdc743a111a19b160   @   with_winit_bin_bg.wasm:0x2a985e
$<wgpu::CommandEncoder as wgpu_profiler::profiler_command_recorder::ProfilerCommandRecorder>::write_timestamp::h371bed9620e016b4    @   with_winit_bin_bg.wasm:0x2bf317
$wgpu_profiler::profiler::GpuProfiler::begin_query::h51dd4b508aa26c19   @   with_winit_bin_bg.wasm:0x223e0c
$vello::wgpu_engine::WgpuEngine::run_recording::h10328973bb07778a   @   with_winit_bin_bg.wasm:0x47518
$vello::Renderer::render_to_texture::h60899975c694b1fd  @   with_winit_bin_bg.wasm:0x23f437
$vello::Renderer::render_to_surface::h1263f84f542bef9c  @   with_winit_bin_bg.wasm:0x158b90
$winit::platform_impl::platform::event_loop::EventLoop<T>::run::{{closure}}::hc5018c790fcf1933  @   with_winit_bin_bg.wasm:0x69c94
$winit::platform_impl::platform::event_loop::runner::Shared::handle_event::h75b74ccbc82d1ca4    @   with_winit_bin_bg.wasm:0x186394
$winit::platform_impl::platform::event_loop::runner::Shared::set_listener::hdb653fd17bd31882    @   with_winit_bin_bg.wasm:0x9ffe6
$winit::platform_impl::platform::event_loop::window_target::EventLoopWindowTarget<T>::run::h128045b0a7018bd0    @   with_winit_bin_bg.wasm:0x2bc7b2
$winit::platform_impl::platform::event_loop::EventLoop<T>::run::hae52ee5a18803b96   @   with_winit_bin_bg.wasm:0x2ac765
$with_winit::main::{{closure}}::h25f47348c2844206   @   with_winit_bin_bg.wasm:0x64a8a
$wasm_bindgen_futures::queue::Queue::new::{{closure}}::hd9b5f57ec5224f57    @   with_winit_bin_bg.wasm:0x2193c0
$<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h22ad83e018fc1110   @   with_winit_bin_bg.wasm:0x2bbdde
__wbg_adapter_68    @   with_winit_bin.js:248
real    @   with_winit_bin.js:209
@simbleau simbleau added O-Windows Applicable specifically to the Windows target O-WASM Applicable specifically to the wasm32 target bug Something isn't working labels Mar 4, 2024
@xStrom
Copy link
Member

xStrom commented Mar 5, 2024

Since #497 was merged this issue has been resolved. 🎉

@xStrom xStrom closed this as completed Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working O-WASM Applicable specifically to the wasm32 target O-Windows Applicable specifically to the Windows target
Projects
None yet
Development

No branches or pull requests

2 participants