[SPIGOT-2453] Stream Close Error Created: 26/Jun/16  Updated: 26/Jun/16  Resolved: 26/Jun/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Seth Davis Assignee: Unassigned
Resolution: Done Votes: 0
Labels: 1.9, Spigot, bug, chunks, error, world
Environment:

Windows 10, mad good pc xD


Plugin: My Own Plugin

 Description   

[03:15:45 WARN]: java.io.IOException: Stream Closed
[03:15:45 WARN]: at java.io.RandomAccessFile.seek0(Native Method)
[03:15:45 WARN]: at java.io.RandomAccessFile.seek(Unknown Source)
[03:15:45 WARN]: at net.minecraft.server.v1_9_R1.RegionFile.a(RegionFile.java:254)
[03:15:45 WARN]: at net.minecraft.server.v1_9_R1.RegionFile.a(RegionFile.java:191)
[03:15:45 WARN]: at net.minecraft.server.v1_9_R1.RegionFile$ChunkBuffer.close(RegionFile.java:303)
[03:15:45 WARN]: at java.util.zip.DeflaterOutputStream.close(Unknown Source)
[03:15:45 WARN]: at java.io.FilterOutputStream.close(Unknown Source)
[03:15:45 WARN]: at java.io.FilterOutputStream.close(Unknown Source)
[03:15:45 WARN]: at net.minecraft.server.v1_9_R1.ChunkRegionLoader.b(ChunkRegionLoader.java:183)
[03:15:45 WARN]: at net.minecraft.server.v1_9_R1.ChunkRegionLoader.c(ChunkRegionLoader.java:164)
[03:15:45 WARN]: at net.minecraft.server.v1_9_R1.FileIOThread.c(SourceFile:37)
[03:15:45 WARN]: at net.minecraft.server.v1_9_R1.FileIOThread.run(SourceFile:30)
[03:15:45 WARN]: at java.lang.Thread.run(Unknown Source)
http://prntscr.com/bl652i <-- Picture of my spigot verion.

This error is generated only once in a rougly 20 times of my plugin copying a world from a folder in my plugin data folder then being coppied in my worlds folder and being loaded, I do this repeatedly for a minigame and when it occurs the worlds chunks are all funky and messed up, chunks for the map are improperly loaded.



 Comments   
Comment by md_5 [ 26/Jun/16 ]

Fixed in 1.10

Comment by Seth Davis [ 26/Jun/16 ]

[03:30:28 ERROR]: Failed to save chunk
java.lang.IndexOutOfBoundsException: Index: 64, Size: 2
at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.8.0_65]
at java.util.ArrayList.set(Unknown Source) ~[?:1.8.0_65]
at net.minecraft.server.v1_9_R1.RegionFile.a(RegionFile.java:196) ~[craftbukkit.jar:git-Spigot-d20369f-7fc5cd8]
at net.minecraft.server.v1_9_R1.RegionFile$ChunkBuffer.close(RegionFile.java:303) ~[craftbukkit.jar:git-Spigot-d20369f-7fc5cd8]
at java.util.zip.DeflaterOutputStream.close(Unknown Source) ~[?:1.8.0_65]
at java.io.FilterOutputStream.close(Unknown Source) ~[?:1.8.0_65]
at java.io.FilterOutputStream.close(Unknown Source) ~[?:1.8.0_65]
at net.minecraft.server.v1_9_R1.ChunkRegionLoader.b(ChunkRegionLoader.java:183) ~[craftbukkit.jar:git-Spigot-d20369f-7fc5cd8]
at net.minecraft.server.v1_9_R1.ChunkRegionLoader.c(ChunkRegionLoader.java:164) [craftbukkit.jar:git-Spigot-d20369f-7fc5cd8]
at net.minecraft.server.v1_9_R1.FileIOThread.c(SourceFile:37) [craftbukkit.jar:git-Spigot-d20369f-7fc5cd8]
at net.minecraft.server.v1_9_R1.FileIOThread.run(SourceFile:30) [craftbukkit.jar:git-Spigot-d20369f-7fc5cd8]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_65]

Update: Another error that occurs as well

Generated at Thu Apr 03 16:26:13 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.