{"action":"closed","issue":{"url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/620","repository_url":"https://api.github.com/repos/GlowstoneMC/Glowstone","labels_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/620/labels{/name}","comments_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/620/comments","events_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/620/events","html_url":"https://github.com/GlowstoneMC/Glowstone/issues/620","id":282924280,"number":620,"title":"Something appears to corrupt the overworld save","user":{"login":"smartboyathome","id":335269,"avatar_url":"https://avatars0.githubusercontent.com/u/335269?v=4","gravatar_id":"","url":"https://api.github.com/users/smartboyathome","html_url":"https://github.com/smartboyathome","followers_url":"https://api.github.com/users/smartboyathome/followers","following_url":"https://api.github.com/users/smartboyathome/following{/other_user}","gists_url":"https://api.github.com/users/smartboyathome/gists{/gist_id}","starred_url":"https://api.github.com/users/smartboyathome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartboyathome/subscriptions","organizations_url":"https://api.github.com/users/smartboyathome/orgs","repos_url":"https://api.github.com/users/smartboyathome/repos","events_url":"https://api.github.com/users/smartboyathome/events{/privacy}","received_events_url":"https://api.github.com/users/smartboyathome/received_events","type":"User","site_admin":false},"labels":[{"id":198749781,"url":"https://api.github.com/repos/GlowstoneMC/Glowstone/labels/Category:%20server%20feature","name":"Category: server feature","color":"0288d1","default":false},{"id":196108313,"url":"https://api.github.com/repos/GlowstoneMC/Glowstone/labels/Priority:%20major","name":"Priority: major","color":"d32f2f","default":false},{"id":642527171,"url":"https://api.github.com/repos/GlowstoneMC/Glowstone/labels/Status:%20needs%20investigation","name":"Status: needs investigation","color":"006b75","default":false},{"id":642527984,"url":"https://api.github.com/repos/GlowstoneMC/Glowstone/labels/Type:%20bug","name":"Type: bug","color":"f47442","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-18T15:45:15Z","updated_at":"2017-12-30T22:58:44Z","closed_at":"2017-12-30T22:58:44Z","author_association":"CONTRIBUTOR","body":"I was doing some testing of my own code and just flying around the attached world when I started to encounter some invalid length exceptions from the reader like so:\r\n\r\n```\r\n2017/12/17 21:05:35 [SEVERE] Error while loading chunk (6,20)\r\njava.io.IOException: Invalid length: 0 <= 0 \r\n\tat net.glowstone.io.anvil.RegionFile.getChunkDataInputStream(RegionFile.java:232)\r\n\tat net.glowstone.io.anvil.AnvilChunkIoService.read(AnvilChunkIoService.java:60)\r\n\tat net.glowstone.chunk.ChunkManager.loadChunk(ChunkManager.java:150)\r\n\tat net.glowstone.chunk.GlowChunk.load(GlowChunk.java:200)\r\n\tat net.glowstone.generator.populators.StructurePopulator.populate(StructurePopulator.java:35)\r\n\tat net.glowstone.chunk.ChunkManager.populateChunk(ChunkManager.java:235)\r\n\tat net.glowstone.chunk.ChunkManager.forcePopulation(ChunkManager.java:249)\r\n\tat net.glowstone.entity.GlowPlayer.lambda$streamBlocks$6(GlowPlayer.java:952)\r\n\tat java.util.ArrayList.forEach(ArrayList.java:1249)\r\n\tat net.glowstone.entity.GlowPlayer.streamBlocks(GlowPlayer.java:951)\r\n\tat net.glowstone.entity.GlowPlayer.pulse(GlowPlayer.java:787)\r\n\tat java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)\r\n\tat java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)\r\n\tat java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1235)\r\n\tat java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)\r\n\tat java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)\r\n\tat java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)\r\n\tat java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)\r\n\tat java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\r\n\tat java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)\r\n\tat net.glowstone.GlowWorld.pulsePlayers(GlowWorld.java:581)\r\n\tat net.glowstone.GlowWorld.pulse(GlowWorld.java:461)\r\n\tat net.glowstone.scheduler.WorldScheduler$WorldThread.run(WorldScheduler.java:142)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n```\r\n\r\nI switched over to the dev branch and it appears to happen there as well. I attached [the world](https://github.com/GlowstoneMC/Glowstone/files/1568536/corrupt-world.zip) that is causing this, including the configs and logs. I think that this is being caused by some problems with saving, and subsequently reading back, structures, but I haven't had enough time to properly diagnose this."}}
{"actor":{"display_login":"momothereal"}}