ModelEngine on Paper 1.21.3 error spam leading to crash
When downloading the texturepack modelengine created, every users on 1.21.4 will get kicked with this client log error. After reporting the issue to itemsadder here is what he said:
https://github.com/PluginBugs/Issues-ItemsAdder/issues/4242
I can confirm that removing the modelengine part from my pack is fixing the issue.
Here is the client side crash log:
---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3
Time: 2024-12-12 20:49:11
Description: Rendering entity in world
java.lang.ArrayIndexOutOfBoundsException: Index -2 out of bounds for length 0
at net.minecraft.client.renderer.entity.ItemRenderer.getLayerColorSafe(SourceFile:124)
at net.minecraft.client.renderer.entity.ItemRenderer.renderQuadList(SourceFile:137)
at net.minecraft.client.renderer.entity.ItemRenderer.renderModelLists(SourceFile:65)
at net.minecraft.client.renderer.entity.ItemRenderer.renderItem(SourceFile:83)
at net.minecraft.client.renderer.item.ItemStackRenderState$LayerRenderState.render(SourceFile:170)
at net.minecraft.client.renderer.item.ItemStackRenderState.render(SourceFile:94)
at net.minecraft.client.renderer.entity.DisplayRenderer$ItemDisplayRenderer.renderInner(SourceFile:207)
at net.minecraft.client.renderer.entity.DisplayRenderer$ItemDisplayRenderer.extractRenderState(SourceFile:176)
at net.minecraft.client.renderer.entity.DisplayRenderer.render(SourceFile:105)
at net.minecraft.client.renderer.entity.DisplayRenderer$ItemDisplayRenderer.extractRenderState(SourceFile:176)
at net.minecraft.client.renderer.entity.EntityRenderDispatcher.render(SourceFile:162)
at net.minecraft.client.renderer.entity.EntityRenderDispatcher.render(SourceFile:149)
at net.minecraft.client.renderer.LevelRenderer.renderEntity(SourceFile:987)
at net.minecraft.client.renderer.LevelRenderer.renderEntities(SourceFile:864)
at net.minecraft.client.renderer.LevelRenderer.addMainPass(SourceFile:642)
at com.mojang.blaze3d.framegraph.FrameGraphBuilder.execute(SourceFile:67)
at net.minecraft.client.renderer.LevelRenderer.renderLevel(SourceFile:552)
at net.minecraft.client.renderer.GameRenderer.renderLevel(SourceFile:733)
at net.minecraft.client.renderer.GameRenderer.render(SourceFile:493)
at net.minecraft.client.Minecraft.runTick(SourceFile:1341)
at net.minecraft.client.Minecraft.run(SourceFile:922)
at net.minecraft.client.main.Main.main(SourceFile:267)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at net.minecraft.client.renderer.entity.ItemRenderer.getLayerColorSafe(SourceFile:124)
at net.minecraft.client.renderer.entity.ItemRenderer.renderQuadList(SourceFile:137)
at net.minecraft.client.renderer.entity.ItemRenderer.renderModelLists(SourceFile:65)
at net.minecraft.client.renderer.entity.ItemRenderer.renderItem(SourceFile:83)
at net.minecraft.client.renderer.item.ItemStackRenderState$LayerRenderState.render(SourceFile:170)
at net.minecraft.client.renderer.item.ItemStackRenderState.render(SourceFile:94)
at net.minecraft.client.renderer.entity.DisplayRenderer$ItemDisplayRenderer.renderInner(SourceFile:207)
at net.minecraft.client.renderer.entity.DisplayRenderer$ItemDisplayRenderer.extractRenderState(SourceFile:176)
at net.minecraft.client.renderer.entity.DisplayRenderer.render(SourceFile:105)
at net.minecraft.client.renderer.entity.DisplayRenderer$ItemDisplayRenderer.extractRenderState(SourceFile:176)
at net.minecraft.client.renderer.entity.EntityRenderDispatcher.render(SourceFile:162)
at net.minecraft.client.renderer.entity.EntityRenderDispatcher.render(SourceFile:149)
at net.minecraft.client.renderer.LevelRenderer.renderEntity(SourceFile:987)
at net.minecraft.client.renderer.LevelRenderer.renderEntities(SourceFile:864)
at net.minecraft.client.renderer.LevelRenderer.addMainPass(SourceFile:642)
at com.mojang.blaze3d.framegraph.FrameGraphBuilder.execute(SourceFile:67)
at net.minecraft.client.renderer.LevelRenderer.renderLevel(SourceFile:552)
at net.minecraft.client.renderer.GameRenderer.renderLevel(SourceFile:733)
-- Entity being rendered --
Details:
Entity Type: minecraft:item_display (buk.g)
Entity ID: 8845
Entity Name: Item Display
Entity's Exact location: 9.50, 64.44, 1.50
Entity's Block location: World: (9,64,1), Section: (at 9,0,1 in 0,4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
Entity's Momentum: 0.00, 0.00, 0.00
Entity's Passengers: []
Entity's Vehicle: buf['Area Effect Cloud'/8844, l='ClientLevel', x=9.50, y=63.94, z=1.50]
Stacktrace:
at net.minecraft.client.renderer.entity.EntityRenderDispatcher.render(SourceFile:162)
at net.minecraft.client.renderer.entity.EntityRenderDispatcher.render(SourceFile:149)
at net.minecraft.client.renderer.LevelRenderer.renderEntity(SourceFile:987)
at net.minecraft.client.renderer.LevelRenderer.renderEntities(SourceFile:864)
at net.minecraft.client.renderer.LevelRenderer.addMainPass(SourceFile:642)
at com.mojang.blaze3d.framegraph.FrameGraphBuilder.execute(SourceFile:67)
at net.minecraft.client.renderer.LevelRenderer.renderLevel(SourceFile:552)
at net.minecraft.client.renderer.GameRenderer.renderLevel(SourceFile:733)
at net.minecraft.client.renderer.GameRenderer.render(SourceFile:493)
at net.minecraft.client.Minecraft.runTick(SourceFile:1341)
at net.minecraft.client.Minecraft.run(SourceFile:922)
at net.minecraft.client.main.Main.main(SourceFile:267)
-- Renderer details --
Details:
Assigned renderer: grt$b@2c409522
Location: 9.00,-0.59,1.06 - World: (8,-1,1), Section: (at 8,15,1 in 0,-1,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
Delta: 0.6000013
Stacktrace:
at net.minecraft.client.renderer.entity.EntityRenderDispatcher.render(SourceFile:162)
at net.minecraft.client.renderer.entity.EntityRenderDispatcher.render(SourceFile:149)
at net.minecraft.client.renderer.LevelRenderer.renderEntity(SourceFile:987)
at net.minecraft.client.renderer.LevelRenderer.renderEntities(SourceFile:864)
at net.minecraft.client.renderer.LevelRenderer.addMainPass(SourceFile:642)
at com.mojang.blaze3d.framegraph.FrameGraphBuilder.execute(SourceFile:67)
at net.minecraft.client.renderer.LevelRenderer.renderLevel(SourceFile:552)
at net.minecraft.client.renderer.GameRenderer.renderLevel(SourceFile:733)
at net.minecraft.client.renderer.GameRenderer.render(SourceFile:493)
at net.minecraft.client.Minecraft.runTick(SourceFile:1341)
at net.minecraft.client.Minecraft.run(SourceFile:922)
at net.minecraft.client.main.Main.main(SourceFile:267)
-- Uptime --
Details:
JVM uptime: 19.684s
Wall uptime: 15.689s
High-res time: 15.482s
Client ticks: 269 ticks / 13.450s
Stacktrace:
at net.minecraft.client.Minecraft.fillReport(SourceFile:2371)
at net.minecraft.client.Minecraft.emergencySaveAndCrash(SourceFile:991)
at net.minecraft.client.Minecraft.run(SourceFile:943)
at net.minecraft.client.main.Main.main(SourceFile:267)
-- Affected level --
Details:
All players: 3 total; [gkx['LuluxosTacos'/66716, l='ClientLevel', x=0.50, y=63.41, z=0.44], gky['xdLulux'/8564, l='ClientLevel', x=-0.90, y=79.83, z=-6.52], gky['Auctioneer'/2054, l='ClientLevel', x=-46.50, y=67.00, z=-19.50]]
Chunk stats: 361, 201
Level dimension: minecraft:overworld
Level spawn location: World: (-6,65,-8), Section: (at 10,1,8 in -1,4,-1; chunk contains blocks -16,-64,-16 to -1,319,-1), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,-64,-512 to -1,319,-1)
Level time: 148408934 game time, 30000 day time
Server brand: Paper (Velocity)
Server type: Non-integrated multiplayer server
Tracked entity count: 594
-- Last reload --
Details:
Reload number: 2
Reload reason: manual
Finished: No
Packs: vanilla, server/00000000/d69238f2-b7ce-30b0-8262-17cd9490f29d
-- System Details --
Details:
Minecraft Version: 1.21.4
Minecraft Version ID: 1.21.4
Operating System: Windows 11 (amd64) version 10.0
Java Version: 21.0.3, Microsoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
Memory: 460547424 bytes (439 MiB) / 1140850688 bytes (1088 MiB) up to 2147483648 bytes (2048 MiB)
CPUs: 32
Processor Vendor: GenuineIntel
Processor Name: 13th Gen Intel(R) Core(TM) i9-13900KF
Identifier: Intel64 Family 6 Model 183 Stepping 1
Microarchitecture: Raptor Lake
Frequency (GHz): 3.00
Number of physical packages: 1
Number of physical CPUs: 24
Number of logical CPUs: 32
Graphics card #0 name: Microsoft Basic Display Adapter
Graphics card #0 vendor: Microsoft
Graphics card #0 VRAM (MiB): 0.00
Graphics card #0 deviceId: VideoController1
Graphics card #0 versionInfo: 10.0.22621.1
Graphics card #1 name: NVIDIA GeForce RTX 4080
Graphics card #1 vendor: NVIDIA
Graphics card #1 VRAM (MiB): 16376.00
Graphics card #1 deviceId: VideoController2
Graphics card #1 versionInfo: 32.0.15.6636
Memory slot #0 capacity (MiB): 32768.00
Memory slot #0 clockSpeed (GHz): 5.60
Memory slot #0 type: DDR5
Memory slot #1 capacity (MiB): 32768.00
Memory slot #1 clockSpeed (GHz): 5.60
Memory slot #1 type: DDR5
Virtual memory max (MiB): 69444.79
Virtual memory used (MiB): 44741.26
Swap memory total (MiB): 4096.00
Swap memory used (MiB): 67.25
Space in storage for jna.tmpdir (MiB): available: 291515.09, total: 953031.00
Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): available: 291515.09, total: 953031.00
Space in storage for io.netty.native.workdir (MiB): available: 291515.09, total: 953031.00
Space in storage for java.io.tmpdir (MiB): available: 291515.09, total: 953031.00
Space in storage for workdir (MiB): available: 291515.09, total: 953031.00
JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Launched Version: 1.21.4
Launcher name: minecraft-launcher
Backend library: LWJGL version 3.3.3+5
Backend API: NVIDIA GeForce RTX 4080/PCIe/SSE2 GL version 3.2.0 NVIDIA 566.36, NVIDIA Corporation
Window size: 854x480
GFLW Platform: win32
GL Caps: Using framebuffer using OpenGL 3.2
GL debug messages:
Is Modded: Probably not. Client jar signature and brand is untouched
Universe: 400921fb54442d18
Type: Client (map_client.txt)
Graphics mode: fancy
Render Distance: 6/29 chunks
Resource Packs: vanilla, server/00000000/d69238f2-b7ce-30b0-8262-17cd9490f29d (incompatible)
Current Language: en_us
Locale: fr_FR
System encoding: Cp1252
File encoding: UTF-8
CPU: 32x 13th Gen Intel(R) Core(TM) i9-13900KF
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information