Skip to content

Headless launching broken on 1.21.11 #388

@rtm516

Description

@rtm516

When trying to launch 1.21.11 with -lwjgl the game crashes at boot with the below error

This is on Headless MC 2.8.0

---- Minecraft Crash Report ----
// Daisy, daisy...

Time: 2026-01-19 09:08:25
Description: Unexpected error

java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "java.nio.ByteBuffer.position()" because "$$0" is null
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(Unknown Source)
	at bbf.a(SourceFile:59)
	at cbr.d(SourceFile:169)
	at cbv.d(SourceFile:23)
	at cbr.E(SourceFile:143)
	at cbr.bN(SourceFile:124)
	at gfj.d(SourceFile:1339)
	at gfj.j(SourceFile:966)
	at net.minecraft.client.main.Main.main(SourceFile:250)
Caused by: java.lang.NullPointerException: Cannot invoke "java.nio.ByteBuffer.position()" because "$$0" is null
	at com.mojang.blaze3d.buffers.Std140Builder.<init>(SourceFile:28)
	at com.mojang.blaze3d.buffers.Std140Builder.intoBuffer(SourceFile:32)
	at ilp.a(SourceFile:105)
	at ilo.a(SourceFile:111)
	at inl$c.a(SourceFile:168)
	at inl$d.a(SourceFile:212)
	at java.base/java.util.ArrayList.forEach(Unknown Source)
	at inl$d.a(SourceFile:212)
	at inl.a(SourceFile:146)
	at inl.a(SourceFile:142)
	... 10 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(Unknown Source)
	at bbf.a(SourceFile:59)
	at cbr.d(SourceFile:169)
	at cbv.d(SourceFile:23)
	at cbr.E(SourceFile:143)

-- Uptime --
Details:
	JVM uptime: 8.808s
	Wall uptime: 3.453s
	High-res time: 3.313s
	Client ticks: 59 ticks / 2.950s
Stacktrace:
	at gfj.d(SourceFile:2477)
	at gfj.c(SourceFile:1035)
	at gfj.j(SourceFile:990)
	at net.minecraft.client.main.Main.main(SourceFile:250)

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