Skip to content

VideoTexture error on WebGPU break pipeline. #32391

@whatisor

Description

@whatisor

Description

If Video or Video Decoder return 1 or few bad frames, pipeline cannot restore when getting good frame.

Image

Issue may be from browser but I wonder if we can catch or precheck all those to avoid pipeline broken.

Reproduction steps

  1. Only in Chrome MacOS. Use 1 video with some bad frames, maybe from other reason, not video itself.
  2. Wait for onloadedData and check frame width, height
  3. Render video frame using VideoTexture.

Code

Just any VideoTexture for WebGPU

Live example

https://github.com/mrdoob/three.js/blob/master/examples/webgpu_materials_video.html
I cannot share video because of privacy.

Screenshots

No response

Version

0.181.2

Device

Desktop

Browser

Chrome

OS

MacOS

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions