Closed Bug 1890017 Opened 11 months ago Closed 5 months ago

putImageData: Invalid width or height

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 124
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: jakobgebler, Unassigned)

Details

Steps to reproduce:

I ran some wasm rust code with wasm bindings. The code should manipulate the canvas with the CanvasRendercontext2d with puImageData.

The Issue was already tracked on the wasm-binding github repo but it looks like a bug in firefox since 2021.

https://github.com/rustwasm/wasm-bindgen/issues/2439

Actual results:

Memory error with the wasm memory buffer.
ctx.puImageData results in:
Uncaught (in promise) DOMException: CanvasRenderingContext2D.putImageData: Invalid width or height.

The error is already well reproduced in the linked Github repo.

Expected results:

Same as in Chrome. It should work.

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: Canvas2D' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics: Canvas2D
Product: Firefox → Core

I don't think this is a Firefox issue, see https://github.com/rustwasm/wasm-bindgen/issues/2439#issuecomment-808237585.
Please attach a minimal reproducible example to this bug if you think otherwise.

Flags: needinfo?(jakobgebler)
Severity: -- → S4

A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Given that the bug is still UNCONFIRMED, closing the bug as incomplete.

For more information, please visit BugBot documentation.

Status: UNCONFIRMED → RESOLVED
Closed: 5 months ago
Flags: needinfo?(jakobgebler)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.