Temperamental 'Tesselating Block In World' Crash #1882
-
Hi all, Since upgrading to 1.18 (but also before that in a few other versions) I've occasionally run into a crash where the game will try to load, and then as soon as it tries to load one of my custom model blocks in the world it will crash, providing the error:
The frustrating part is that the crash is a little bit different every time, and I'm not well enough acquainted with the MC render system to understand the underlying issue. Crash log 1: Crash log 2: The crash always seems to revolve around my Here is the DynamicCuboid file, although the rest of the code is public too. Thanks! EDIT
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
This sounds similar to this bug report? I can't say for sure, I know little about MC rendering and Indigo even less. |
Beta Was this translation helpful? Give feedback.
-
I’m getting kind of the same crashes but not related to my mod, but other mods, like something is null all of a sudden without changing anything |
Beta Was this translation helpful? Give feedback.
-
The first crash seems to be caused by some sort of mismatch in the data length and stored index. There are checks in place to ensure this does not happen, but it looks like it did anyway. After looking at your code more closely, I am 99% sure both of these are the result of concurrency issues that your models experience. You are sharing a |
Beta Was this translation helpful? Give feedback.
The first crash seems to be caused by some sort of mismatch in the data length and stored index. There are checks in place to ensure this does not happen, but it looks like it did anyway.
The second crash makes no sense because the
nominalFace()
result is null-checked before being used. Storing it in a local variable would probably fix it, but I also have no idea how this happens in the first place.After looking at your code more closely, I am 99% sure both of these are the result of concurrency issues that your models experience. You are sharing a
Collection<DynamicCuboid>
across a single model, which is rendered on multiple threads at once. A single cuboid is then modified across those…