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

Closed
jelling opened this issue Sep 16, 2024 · 3 comments
Closed

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/three@0.168.0/node_modules/three/build/three.module.js (6577:1)
Mesh.updateMatrix
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7734:1)
Mesh.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7742:1)
Group.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
TransformControls.eval [as updateMatrixWorld]
../../node_modules/.pnpm/three-stdlib@2.33.0_three@0.168.0/node_modules/three-stdlib/controls/TransformControls.js (109:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Group.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (12479:1)
TransformControls.eval [as updateMatrixWorld]
../../node_modules/.pnpm/three-stdlib@2.33.0_three@0.168.0/node_modules/three-stdlib/controls/TransformControls.js (119:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Group.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (12479:1)
TransformControls.eval [as updateMatrixWorld]
../../node_modules/.pnpm/three-stdlib@2.33.0_three@0.168.0/node_modules/three-stdlib/controls/TransformControls.js (119:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Group.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (12479:1)
TransformControls.eval [as updateMatrixWorld]
../../node_modules/.pnpm/three-stdlib@2.33.0_three@0.168.0/node_modules/three-stdlib/controls/TransformControls.js (119:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Group.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
PerspectiveCamera.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (12479:1)
TransformControls.eval [as updateMatrixWorld]
../../node_modules/.pnpm/three-stdlib@2.33.0_three@0.168.0/node_modules/three-stdlib/controls/TransformControls.js (119:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/node_modules/three/build/three.module.js (7774:1)
Object3D.updateMatrixWorld
../../node_modules/.pnpm/three@0.168.0/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 :)

@jelling
Copy link
Author

jelling commented Oct 15, 2024

I'm closing this because I decided not to use uikit for my current project.

That said, even after the "maximum call stack" issue went away - I changed a lot of things in my project - I had other issues with both TransformControls and PivotControls within uikit <Container>. Issues I saw were Y axis movement worked but no other axis. And the sizing seemed completely off.

@jelling jelling closed this as completed Oct 15, 2024
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