Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum Call Stack Sized Exceed when using TransformControls inside of Content #119

Open
jelling opened this issue Sep 16, 2024 · 2 comments

Comments

@jelling
Copy link

jelling commented Sep 16, 2024

Is it not possible to use <TransformControls> inside of a <Content>? For me it throws Maximum Call Stack Sized Exceed. PivotControls doesn't throw this error fwiw.

Code

    <Canvas
      style={{
        position: 'fixed',
        top: 100,
        left: 0,
        right: 0,
        bottom: 0,
        height: '100vh',
      }}
    >
      <Fullscreen>
        <ambientLight intensity={2} />
        <Container width="7%"></Container>
        <Container width="86%">
          <Content>
            <TransformControls>
              <RoundedBox args={[1, 1, 1]}>
                <meshPhongMaterial color="#f3f3f3" wireframe />
              </RoundedBox>
            </TransformControls>
          </Content>
        </Container>
        <Container width="7%"></Container>
      </Fullscreen>
    </Canvas>
Call Stack
Call Stack
Matrix4.compose
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (6577:1)
Mesh.updateMatrix
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7734:1)
Mesh.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7742:1)
Group.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
TransformControls.eval [as updateMatrixWorld]
../../node_modules/.pnpm/[email protected][email protected]/node_modules/three-stdlib/controls/TransformControls.js (109:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Group.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (12479:1)
TransformControls.eval [as updateMatrixWorld]
../../node_modules/.pnpm/[email protected][email protected]/node_modules/three-stdlib/controls/TransformControls.js (119:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Group.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (12479:1)
TransformControls.eval [as updateMatrixWorld]
../../node_modules/.pnpm/[email protected][email protected]/node_modules/three-stdlib/controls/TransformControls.js (119:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Group.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (12479:1)
TransformControls.eval [as updateMatrixWorld]
../../node_modules/.pnpm/[email protected][email protected]/node_modules/three-stdlib/controls/TransformControls.js (119:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Group.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (12479:1)
TransformControls.eval [as updateMatrixWorld]
../../node_modules/.pnpm/[email protected][email protected]/node_modules/three-stdlib/controls/TransformControls.js (119:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/[email protected]/node_modules/three/build/three.module.js (7774:1)
@jelling
Copy link
Author

jelling commented Sep 16, 2024

It also throws the same error when directly inside a <Container>:

        <Container width="86%">
          <TransformControls>
            <RoundedBox args={[1, 1, 1]}>
              <meshPhongMaterial color="#f3f3f3" wireframe />
            </RoundedBox>
          </TransformControls>
       </Container>

@bbohlender
Copy link
Contributor

@jelling could you please provide a codesandbox to reproduce the error :)

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

No branches or pull requests

2 participants