Skip to content

Sable 2.0.5 crashes when Create Simulated reattaches a rope constraint #1515

Description

@isfwaf50-code

Context

The game crashes during Sable physics ticking when Create Simulated reattaches a rope constraint.

Environment:

  • Minecraft 1.21.1
  • NeoForge 21.1.248
  • Sable 2.0.5
  • Create 6.0.10
  • Create Simulated 1.3.1
  • True Impact 0.5.7-delta
  • Veil 4.3.2
  • Java 21.0.7 (Microsoft)
  • Windows 10

Crash description:
"Sable ticking physics"

The relevant exception is:

java.lang.IllegalArgumentException: Constraint validation failed

Caused by:

the second body of this constraint is not a sub-level, but the second position is in the plotgrid! Double check your coordinate spaces.

The stack trace points to:

Sable:
RapierPhysicsPipeline.addConstraint()

Create Simulated:
ServerRopeStrand.reattachConstraints()
ServerRopeStrand.prePhysicsTick()

This appears to be a coordinate-space mismatch between the PlotGrid and Sub-Level when Create Simulated creates or reattaches a rope physics constraint.

The crash happens on the Server thread during the physics tick.

This does not appear to be an out-of-memory crash. At the time of the crash, Minecraft was using about 2.5 GiB out of a 10 GiB maximum Java heap.

Crash Report

https://mclo.gs/Mj2fmhF

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: crashSomething crashes my game

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions