You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reproduce this you might need to keep going through other dimension and going back very fast.
I managed to get this while on creative and going to nether and going back.
May take a while
I managed to capture a moment where entity was null and the iterator goes in infinite loop (hasNext returns always true)
AHHHHH I did experience this issue before and even managed to attach a profile, but that didn't allow me to see memory values, just that the stack seemed to move in a normal way around the thread, so I had no clue why it was behaving weirdly and fixing itself after some time (I assumed the thread crashed/deadlocked/got stuck on something, which wasn't the case). Amazing catch, will publish fixed versions later today.
this is really interesting. I fully expect getting null/ConcurrentModificationException/ArrayIndexOutOfBoundsException when iterating over the entity list in this unsafe non thread safe way, but the iterator overshooting and going through the entire int value space is certainly a new (and unexpected) one. I'll change it to instead break the loop when it gets a null value after hasNext was true.
To reproduce this you might need to keep going through other dimension and going back very fast.
I managed to get this while on creative and going to nether and going back.
May take a while
I managed to capture a moment where entity was null and the iterator goes in infinite loop (hasNext returns always true)
EntityCulling/src/main/java/dev/tr7zw/entityculling/CullTask.java
Line 95 in 4ee31d5
here is a sequence of images where it first hits null
and so on,
index
goes until it hits max int and goes into negativeThis causes CullThread to get stuck in this infinite while loop.
The text was updated successfully, but these errors were encountered: