On page redirect ▶️ Uncaught Error: null pointer passed to rust

Open
#31 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Domain
frontend, game-dev

Research direction

Start with the linked CodeSandbox reproduction and the browser console, then trace the redirect interaction through the ecctrl, @react-three/rapier, and KeyboardControls components named in the error. Done means clicking the tree to redirect no longer produces the null-pointer error.

Written by the indexing model from the issue text.

Description

I am getting the following error when redirecting on a page.
Uncaught Error: null pointer passed to rust

I created a code sandbox here: https://codesandbox.io/p/sandbox/jovial-tdd-njw3j3
Here, when clicking on the tree I implemented a redirect. You will see the error as well in the Browser Dev Tools (not the built-in Dev Tools of Codesandbox, even though it will probably show there as well)

Here's some more of the error message:

The above error occurred in the <ForwardRef> component: at eval (webpack-internal:///(app-pages-browser)/./node_modules/ecctrl/dist/Ecctrl.js:1093:11) at KeyboardControls (webpack-internal:///(app-pages-browser)/./node_modules/@react-three/drei/web/KeyboardControls.js:19:11) at Physics (webpack-internal:///(app-pages-browser)/./node_modules/@react-three/rapier/dist/react-three-rapier.esm.js:747:13) at Suspense at Suspense at ErrorBoundary (webpack-internal:///(app-pages-browser)/./node_modules/@react-three/fiber/dist/index-8afac004.esm.js:441:9) at FiberProvider (webpack-internal:///(app-pages-browser)/./node_modules/its-fine/dist/index.js:66:1) at Provider (webpack-internal:///(app-pages-browser)/./node_modules/@react-three/fiber/dist/index-8afac004.esm.js:1982:11)

Any idea how to prevent this error?

Dominant language
TypeScript
Stars
823
Forks
102
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pmndrs/ecctrl

All issues in pmndrs/ecctrl

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.