Chat Heads

Chat Heads

51M Downloads

Exception when loading some special skins: Invalid texture size: 8x0

LNBXS opened this issue · 3 comments

commented

When I opened the game menu, my game always appeared after a period of time, so I checked the game log and found that there was a string of exceptions when I pressed the Esc key:

[16:10:57] [Render thread/WARN]: Failed to load texture for profile 004d9b11-6033-3d75-bd80-f00a781fd593
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Invalid texture size: 8x0
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
at knot/net.minecraft.class_1255.method_18859(class_1255.java:164) [client-intermediary.jar:?]
at knot/net.minecraft.class_4093.method_18859(class_4093.java:23) [client-intermediary.jar:?]
at knot/net.minecraft.class_1255.method_16075(class_1255.java:138) [client-intermediary.jar:?]
at knot/net.minecraft.class_1255.method_5383(class_1255.java:123) [client-intermediary.jar:?]
at knot/net.minecraft.class_310.method_1523(class_310.java:1296) [client-intermediary.jar:?]
at knot/net.minecraft.class_310.method_1514(class_310.java:922) [client-intermediary.jar:?]
at knot/net.minecraft.client.main.Main.main(Main.java:267) [client-intermediary.jar:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) [fabric-loader-0.16.9.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.16.9.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.16.9.jar:?]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
at oolloo.jlw.Wrapper.invokeMain(Wrapper.java:112) [JavaWrapper.jar:?]
at oolloo.jlw.Wrapper.main(Wrapper.java:105) [JavaWrapper.jar:?]
Caused by: java.lang.IllegalArgumentException: Invalid texture size: 8x0
at knot/net.minecraft.class_1011.(class_1011.java:64) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_1011.(class_1011.java:59) ~[client-intermediary.jar:?]
at knot/dzwdz.chat_heads.ChatHeads.extractBlendedHead(ChatHeads.java:431) ~[%5B聊天头像%5D%20chat_heads-0.13.13-fabric-1.21.4.jar:?]
at knot/net.minecraft.class_10538.md7be3f2$chat_heads$lambda$chatheads$registerBlendedHeadTexture$0$0(class_10538.java:530) ~[client-intermediary.jar:?]
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
... 14 more

I repeated it a few more times, and each time I got the same exception, but the player UUID changed. This anomaly caused the game to freeze every time I pressed the Esc key before the game menu appeared

Hopefully it can be fixed.

commented

Invalid texture size: 8x0

That means the player skin has dimensions below 64x64, probably 64x32, which would be a legacy skin.
The thing is though that vanilla Minecraft automatically converts those skins to 64x64, so there has to be another mod that causes this issue.

I know that CustomSkinLoader had this issue in some older Forge versions, see #117.
Oh, and apparently this has popped up again: xfl03/MCCustomSkinLoader#332.

I'll look into it.
Might be an issue with CustomSkinLoader, but I think I'll simply implement the head extraction for legacy skins as well.

P.S.
That is the mod you're using, right? If not, I'd like a mod list so I can check what's causing it.

commented

Should be fixed in 0.13.14!

commented

Version 1.21.4
fabric 0.16.10
Oracle Java 21.0.5