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

Deno panicks when running webgpu example #39

Open
xynydev opened this issue Jan 13, 2025 · 0 comments
Open

Deno panicks when running webgpu example #39

xynydev opened this issue Jan 13, 2025 · 0 comments

Comments

@xynydev
Copy link

xynydev commented Jan 13, 2025

I'm trying to run examples/webgpu.ts with the import changed to import { createWindowGPU, mainloop } from "jsr:@gfx/dwm/ext/webgpu"; but Deno keeps panicking.

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: linux x86_64
Version: 2.1.5
Args: ["deno", "main.ts"]

thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-0.21.1/src/gles/egl.rs:301:14:
called `Result::unwrap()` on an `Err` value: BadAccess
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: wgpu_hal::gles::egl::EglContext::unmake_current
   4: <wgpu_hal::gles::egl::Instance as wgpu_hal::Instance>::create_surface
   5: wgpu_core::instance::<impl wgpu_core::global::Global>::instance_create_surface
   6: deno_webgpu::byow::op_webgpu_surface_create::op_webgpu_surface_create::call
   7: deno_webgpu::byow::op_webgpu_surface_create::op_webgpu_surface_create::slow_function_impl
   8: deno_webgpu::byow::op_webgpu_surface_create::op_webgpu_surface_create::v8_fn_ptr
   9: <unknown>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant