Skip to content

Fix viewer crash in unsupported GPU contexts#403

Open
anton-pascal wants to merge 1 commit into
mainfrom
fix/sentry-EDITOR-59
Open

Fix viewer crash in unsupported GPU contexts#403
anton-pascal wants to merge 1 commit into
mainfrom
fix/sentry-EDITOR-59

Conversation

@anton-pascal

Copy link
Copy Markdown
Contributor

Summary\n- detect browsers/environments with neither WebGPU nor WebGL before mounting the R3F Canvas\n- render a small unsupported 3D viewer fallback instead of initializing Three's WebGPU renderer\n- switch to the same fallback when renderer init still rejects, avoiding repeated failed mounts\n\n## Validation\n- bun run --filter @pascal-app/viewer build\n- bunx biome lint packages/viewer/src/components/viewer/index.tsx\n\nFixes Sentry MONOREPO-EDITOR-59.

@mintlify

mintlify Bot commented Jun 14, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
pascal 🔴 Failed Jun 14, 2026, 4:08 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@anton-pascal

Copy link
Copy Markdown
Contributor Author

Nightly Sentry triage (06-16): EDITOR-59 (getSupportedExtensions of null in three.webgpu WebGLBackend.init) still unresolved, last seen 06-16 02:21 on HeadlessChrome/no-GPU clients. Related family: EDITOR-3P Cannot read properties of null (reading 'addEventListener') in @react-three/fiber events connect (last seen 06-16 01:35, Windows prod) — same root cause (missing/torn-down GL context / canvas). Please confirm this PR's guard also covers the R3F connect() null-domElement path, or it may need a companion guard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant