-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
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