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 Firefox nightly #6

Open
kekeblom opened this issue Aug 25, 2023 · 4 comments
Open

Crash on Firefox nightly #6

kekeblom opened this issue Aug 25, 2023 · 4 comments

Comments

@kekeblom
Copy link

Tried to run using the brewery scene. Had to install Firefox nightly on Ubuntu 20.04 to try this.

This is the error I get in the Javascript console, right after loading the ply point cloud file.

Uncaught DOMException: GPUCanvasContext.getCurrentTexture: Canvas not configured
    draw renderer.ts:189
    animate renderer.ts:278
    t renderer.ts:137
    t renderer.ts:137
    kt renderer.ts:171
    s renderer.ts:41
    s renderer.ts:22
    a renderer.ts:13
    promise callback*c renderer.ts:15
    a renderer.ts:13
    promise callback*c renderer.ts:15
    bt renderer.ts:16
    bt renderer.ts:12
    init renderer.ts:141
    o index.ts:65
    s index.ts:32
    s index.ts:13
    <anonymous> index.ts:7
    <anonymous> index.ts:3
    promise callback* index.ts:84
    EventListener.handleEvent* index.ts:91
    <anonymous> main.js:1
   Encountered one or more errors while creating shader module

WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)

Shader validation error: 
    ┌─ :207:22
    │
207 │     let quadOffset = quadVertices[quadIndex];
    │                      ^^^^^^^^^^^^^^^^^^^^^^^ naga::Expression [8]

Error matching VERTEX shader requirements against the pipeline, caused by: Shader module is invalid
@jatentaki
Copy link
Collaborator

Thanks for your report, I wonder if that could be because of unfinished impl of webGPU in firefox. May have a look but it's currently not a priority for me :(

@kekeblom
Copy link
Author

No problem. Is there currently a known setup that works on Ubuntu or are you running this under Windows?

@jatentaki
Copy link
Collaborator

I am running on MacOS + Chrome/Chromium stable. Just tried on Ubuntu22 + FF nightly to the same effect as you. I managed to get the viewer to work correctly with Chrome dev using the instructions from here:

  1. Install chrome dev
  2. Run from command line with extra flags google-chrome-unstable --enable-features=Vulkan,UseSkiaRenderer.
  3. Go to chrome://flags/#enable-unsafe-webgpu and enable webgpu. This will require you to restart the browser (and start it again with the same flags).

Please let me know if it works for you :)

@jatentaki
Copy link
Collaborator

jatentaki commented Aug 29, 2023

For future reference: the error mentioned by @kekeblom happens at a line which performs vertex pulling which is specifically mentioned as missing for firefox/servo, albeit only for metal (and the bug occurs on ubuntu as well). Perhaps when this is fixed on FF side the renderer will start to work there.

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

2 participants