Skip to content

Embeddium compatibility? #208

@ChipWolf

Description

@ChipWolf

Embeddium has some GL trickery that seems to not enjoy the headless environment. It's a dependency of Iris which is in turn a dependency of our intended test-suite, so I'm keen to get this working.

I have tried swapping xvfb for the lwjgl option, but no dice. This is a 1.20.1 Fabric instance on Temurin 17 in GitHub Actions.

I'm trying to get past this error on start:

java.lang.RuntimeException: Failed to create fence object
	at knot//net.minecraft.class_310.handler$zbm000$embeddium$postRender(class_310.java:11565)
	at knot//net.minecraft.class_310.method_1523(class_310.java:1299)
	at knot//net.minecraft.class_310.method_1514(class_310.java:802)
	at knot//net.minecraft.client.main.Main.main(Main.java:250)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

It looks as though this mixin from Embeddium is to blame:

    @Inject(method = "runTick", at = @At("RETURN"))
    private void postRender(boolean tick, CallbackInfo ci) {
        var fence = GL32C.glFenceSync(GL32C.GL_SYNC_GPU_COMMANDS_COMPLETE, 0);

        if (fence == 0) {
            throw new RuntimeException("Failed to create fence object");
        }

        this.fences.enqueue(fence);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions