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

prism sometimes crashes the editor #1

Open
martinetd opened this issue May 8, 2024 · 0 comments
Open

prism sometimes crashes the editor #1

martinetd opened this issue May 8, 2024 · 0 comments

Comments

@martinetd
Copy link

Hello and thanks for the fun!
I've read the blog and gave the machine another try this morning, but this happened so I'm venting out. Might not be worth fixing if the end is near :)

I couldn't reproduce 100% but sometime prism crashes the editor with the following errors (firefox, linux):

Error: recursive use of an object detected which would lead to unsafe aliasing in rust
    jt rapier_wasm2d_bg.js:4836
    createCollider rapier_wasm2d_bg.js:1033
    createCollider collider_set.js:65
    createCollider world.js:266
    tp PhysicsContext.tsx:254
    Jf PhysicsContext.tsx:237
    React 3
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
[react-dom.production.min.js:189:29](webpack://incredible/node_modules/react-dom/cjs/react-dom.production.min.js)
    React 12
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    (Async: EventHandlerNonNull)
    7463 scheduler.production.min.js:14
    Webpack 12
Uncaught Error: recursive use of an object detected which would lead to unsafe aliasing in rust
    jt rapier_wasm2d_bg.js:4836
    createCollider rapier_wasm2d_bg.js:1033
    createCollider collider_set.js:65
    createCollider world.js:266
    tp PhysicsContext.tsx:254
    Jf PhysicsContext.tsx:237
    React 3
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
[rapier_wasm2d_bg.js:4836:10](webpack://incredible/node_modules/@dimforge/rapier2d/rapier_wasm2d_bg.js)
Uncaught Error: recursive use of an object detected which would lead to unsafe aliasing in rust
    jt rapier_wasm2d_bg.js:4836
    remove rapier_wasm2d_bg.js:1051
    remove collider_set.js:87
    removeCollider world.js:343
    tp PhysicsContext.tsx:258
    setTimeout handler*tp/</< PhysicsContext.tsx:257
    React 4
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
[rapier_wasm2d_bg.js:4836:10](webpack://incredible/node_modules/@dimforge/rapier2d/rapier_wasm2d_bg.js)
Uncaught Error: recursive use of an object detected which would lead to unsafe aliasing in rust
    jt rapier_wasm2d_bg.js:4836
    free rapier_wasm2d_bg.js:335
    free collider_set.js:27
    free world.js:48
    Zf PhysicsContext.tsx:128
    setTimeout handler*Zf/</< PhysicsContext.tsx:127
    React 4
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
[rapier_wasm2d_bg.js:4836:10](webpack://incredible/node_modules/@dimforge/rapier2d/rapier_wasm2d_bg.js)
Uncaught TypeError: this.raw is undefined
    remove rigid_body_set.js:77
    removeRigidBody world.js:332
    destroy Balls.tsx:175
    setTimeout handler*destroy Balls.tsx:174
    p Balls.tsx:253
    emit mitt.mjs:1
    emit mitt.mjs:1
    f MachineContext.tsx:172
    Hg MachineTileContext.tsx:180
    castClosure collider_set.js:39
    mt rapier_wasm2d_bg.js:4773
    x rapier_wasm2d_bg.js:158
    mt rapier_wasm2d_bg.js:4772
    intersectionsWithShape rapier_wasm2d_bg.js:3089
    intersectionsWithShape query_pipeline.js:250
    intersectionsWithShape world.js:523
    Hg MachineTileContext.tsx:170
    React 4
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
9 [rigid_body_set.js:77:28](webpack://incredible/node_modules/@dimforge/rapier2d/dynamics/rigid_body_set.js)
Uncaught Error: expected instance of q
    m rapier_wasm2d_bg.js:99
    remove rapier_wasm2d_bg.js:1049
    remove collider_set.js:87
    removeCollider world.js:343
    tp PhysicsContext.tsx:258
    setTimeout handler*tp/</< PhysicsContext.tsx:257
    React 4
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
8 [rapier_wasm2d_bg.js:99:14](webpack://incredible/node_modules/@dimforge/rapier2d/rapier_wasm2d_bg.js)
Uncaught TypeError: this.raw is undefined
    remove rigid_body_set.js:77
    removeRigidBody world.js:332
    Yg MachineTileContext.tsx:229
    setTimeout handler*Yg/</< MachineTileContext.tsx:228
    React 4
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
3 [rigid_body_set.js:77:28](webpack://incredible/node_modules/@dimforge/rapier2d/dynamics/rigid_body_set.js)
Uncaught Error: expected instance of q
    m rapier_wasm2d_bg.js:99
    remove rapier_wasm2d_bg.js:1049
    remove collider_set.js:87
    removeCollider world.js:343
    tp PhysicsContext.tsx:258
    setTimeout handler*tp/</< PhysicsContext.tsx:257
    React 4
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
[rapier_wasm2d_bg.js:99:14](webpack://incredible/node_modules/@dimforge/rapier2d/rapier_wasm2d_bg.js)
Uncaught TypeError: this.raw is undefined
    remove rigid_body_set.js:77
    removeRigidBody world.js:332
    Yg MachineTileContext.tsx:229
    setTimeout handler*Yg/</< MachineTileContext.tsx:228
    React 4
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
[rigid_body_set.js:77:28](webpack://incredible/node_modules/@dimforge/rapier2d/dynamics/rigid_body_set.js)
Uncaught Error: expected instance of q
    m rapier_wasm2d_bg.js:99
    remove rapier_wasm2d_bg.js:1049
    remove collider_set.js:87
    removeCollider world.js:343
    tp PhysicsContext.tsx:258
    setTimeout handler*tp/</< PhysicsContext.tsx:257
    React 4
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
4 [rapier_wasm2d_bg.js:99:14](webpack://incredible/node_modules/@dimforge/rapier2d/rapier_wasm2d_bg.js)
Uncaught TypeError: this.raw is undefined
    remove rigid_body_set.js:77
    removeRigidBody world.js:332
    Yg MachineTileContext.tsx:229
    setTimeout handler*Yg/</< MachineTileContext.tsx:228
    React 4
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
2 [rigid_body_set.js:77:28](webpack://incredible/node_modules/@dimforge/rapier2d/dynamics/rigid_body_set.js)
Uncaught Error: expected instance of q
    m rapier_wasm2d_bg.js:99
    remove rapier_wasm2d_bg.js:1049
    remove collider_set.js:87
    removeCollider world.js:343
    tp PhysicsContext.tsx:258
    setTimeout handler*tp/</< PhysicsContext.tsx:257
    React 4
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
[rapier_wasm2d_bg.js:99:14](webpack://incredible/node_modules/@dimforge/rapier2d/rapier_wasm2d_bg.js)
Uncaught TypeError: this.raw is undefined
    remove rigid_body_set.js:77
    removeRigidBody world.js:332
    Yg MachineTileContext.tsx:229
    setTimeout handler*Yg/</< MachineTileContext.tsx:228
    React 4
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12
2 [rigid_body_set.js:77:28](webpack://incredible/node_modules/@dimforge/rapier2d/dynamics/rigid_body_set.js)
Uncaught Error: expected instance of q
    m rapier_wasm2d_bg.js:99
    remove rapier_wasm2d_bg.js:1049
    remove collider_set.js:87
    removeCollider world.js:343
    tp PhysicsContext.tsx:258
    setTimeout handler*tp/</< PhysicsContext.tsx:257
    React 4
    S scheduler.production.min.js:13
    D scheduler.production.min.js:14
    7463 scheduler.production.min.js:14
    Webpack 12

I've had good chances reproducing it by dragging the prism along the bottom when a few balls are stacked there, but it's also happened as I was finishing up a machine trying to tune its position in the middle somewhere so it was a bit annoying to loose the "work" when this happened :/

The first recursive use of an object detected seems to be consistently present when the machine crashes, rest seem to vary a bit.

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

1 participant