Invisable everythink under certain complex but common conditions.
sharpenedblade opened this issue ยท 2 comments
Blocks turn invisible in canvas basic, dev, and, lumilights. to reproduce:
- fly above y=650
- travel outside render distance
- fly down
- observe no blocks but you cant go down more.
I found an easier way to reproduce (possibly) this bug:
/tp ~ 1000 ~
(todo: narrow down minimum y)/tp ~ 100 ~
- observe that loaded chunks might still render, but no new chunks (regions) will load.
- switch to third person view, walk into unrendered chunk, observe player entity disappearing.
- press f3+a, observe that nothing is rendered anymore, except the sky.
- reload world, nothing is rendered. (restart is the only solution)
Reproducible in mc117-1.17-1.0.1639-unstable (latest as of writing)
Exception:
[00:03:48] [Canvas Render Thread - 6/ERROR]: Unhandled error during rendering. Impact unknown.
java.lang.ArrayIndexOutOfBoundsException: Index 2147483647 out of bounds for length 328509
at grondag.canvas.terrain.occlusion.CameraPotentiallyVisibleRegionSet.add(CameraPotentiallyVisibleRegionSet.java:140) ~[canvas-mc117-1.17-1.0.1639.jar:?]
at grondag.canvas.terrain.region.BuiltRenderRegion.addToCameraPvsIfValid(BuiltRenderRegion.java:855) ~[canvas-mc117-1.17-1.0.1639.jar:?]
at grondag.canvas.terrain.occlusion.TerrainIterator.run(TerrainIterator.java:140) ~[canvas-mc117-1.17-1.0.1639.jar:?]
at grondag.canvas.terrain.util.TerrainExecutor$Worker.run(TerrainExecutor.java:110) [canvas-mc117-1.17-1.0.1639.jar:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
Full log: https://gist.github.com/spiralhalo/bae3c7af26e3ac69b267a2a286cba7d1