Skip to content

web version of tutorial5 appears to repeatedly resize canvas until is big enough to trigger a panic in wgpu #636

@mutantbob

Description

@mutantbob

I copied the tutorial5-textures beginners example and wrapped it in a simple index.html with a 400x400 <canvas id="canvas".

When I load the page in firefox the WindowEvent::Resized appears to be sent to window_event() repeatedly, increasing each time until the wgpu crate gives a validation error. It evidently doesn't like that we got resized to 2383x2383 and wants each dimension to be <= 2048 .

I am currently struggling to find a tool that will let me turn the wasm stack traces into rust function numbers, so I'm not able to investigate if there's an oddity in the wgpu framework, or some other problem. Can anyone else reproduce this problem in firefox?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions