Skip to content

[BUG]: backgrounds/plasma #930

@nirraschi

Description

@nirraschi

Describe the issue

Bug Report: Plasma component fails with WebGL context loss
Component: Plasma (from React Bits)
Environment:

Vite + React
Browser: Chrome
OS: Windows

Description:
The Plasma component crashes when WebGL is unavailable or unstable. Two different errors occur depending on the situation:

When WebGL is not supported or blocked: unable to create webgl context followed by TypeError: Cannot set properties of null (setting 'renderer'), which crashes the entire component tree.
When WebGL context is lost mid-session: WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost, causing the animation to stop rendering with no recovery.

Expected behavior:
The component should handle WebGL unavailability and context loss gracefully, either by recovering automatically or falling back silently without crashing the app.

Reproduction Link

No response

Steps to reproduce

The Plasma component crashes when WebGL is unavailable or unstable.

Validations

  • I have checked other issues to see if my issue was already reported or addressed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions