Skip to content

UnsatisfiedLinkError: Rapier3D native fails to link on dedicated server (Windows 11, Java 25) #912

@HoodBlah

Description

@HoodBlah

Bug Report

Sable version: 1.2.2
NeoForge version: 21.1.230
Minecraft version: 1.21.1
Java: Oracle Java HotSpot 64-Bit Server VM 25.0.1+8-LTS-27
OS: Windows 11 x64 (amd64)
Environment: Dedicated server (not client)

Description

Sable crashes the dedicated server during world creation when attempting to initialize the Rapier physics pipeline. The native library fails to link, crashing the server before it can finish loading the overworld. Works fine on the client side — server-only reproduction.

Error

[Server thread/ERROR] [dev.ryanhcode.sable.Sable/]: Sable has failed to link with the natives for its Rapier pipeline.

net.minecraft.ReportedException: Sable linking with Rapier natives
    at dev.ryanhcode.sable.physics.impl.rapier.RapierPhysicsPipeline.init(RapierPhysicsPipeline.java:120)
    at dev.ryanhcode.sable.sublevel.system.SubLevelPhysicsSystem.initialize(SubLevelPhysicsSystem.java:159)
    at dev.ryanhcode.sable.Sable.defaultSubLevelContainerInitializer(Sable.java:76)
    at net.minecraft.server.level.ServerLevel.sable$createPlotContainer(ServerLevel.java:18485)
    at net.minecraft.server.level.ServerLevel.<init>(ServerLevel.java:222)
    at net.minecraft.server.MinecraftServer.createLevels(MinecraftServer.java:367)
    at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:337)
    at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:193)
Caused by: java.lang.UnsatisfiedLinkError: 'void dev.ryanhcode.sable.physics.impl.rapier.Rapier3D.initialize(int, double, double, double, double)'
    at dev.ryanhcode.sable.physics.impl.rapier.Rapier3D.initialize(Native Method)
    at dev.ryanhcode.sable.physics.impl.rapier.RapierPhysicsPipeline.init(RapierPhysicsPipeline.java:116)

Steps to Reproduce

  1. Install Sable 1.2.2 on a NeoForge 21.1.230 dedicated server on Windows 11
  2. Start the server with Java 25.0.1
  3. Server crashes during ServerLevel initialization (world creation phase) — never reaches Done! For help, type "help"

Expected Behavior

Sable should successfully link its Rapier native library and initialize physics on the dedicated server.

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions