Paladin's Furniture

Paladin's Furniture

7M Downloads

ConcurrentModificationException When using MTCL (1.18.5 Embeddium)

Gurkk80 opened this issue · 0 comments

commented

Bug Description

Immediate CTD when loading a certain chunk with MCTL enabled.

From what I can see this is what happened:
The crash happens inside

com.unlikepaladin.pfm.blocks.models.forge.PFMForgeBakedModel.getQuadsWithTexture(PFMForgeBakedModel.java:109)

That method is building a HashMap/LinkedHashMap of quads while at the same time, Embeddium is trying to render the same block model on another thread and since Minecraft’s model baking/rendering isn’t thread-safe by default, the two mods end up at a ConcurrentModificationException.

Reproduction Steps

Place a stripped oak chair in a chunk, using a mod enable multithreaded chunk rendering, rapidly load the chunk. (In my case I was using the latest version of 1.18.5 embeddium.

Log File

latest.log