Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

PackedIntegerArray: Invalid length given for storage, got: 320 but expected: 342 #9

Closed
lhns opened this issue Aug 12, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@lhns
Copy link
Owner

lhns commented Aug 12, 2020

bitsperblock = 320
statelist.length = 320
[21:07:49] [Dynmap Render Thread/FATAL]: [Dynmap] Exception during render job: world=world, map=org.dynmap.hdmap.HDMap@442affef
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: java.lang.RuntimeException: Invalid length given for storage, got: 320 but expected: 342
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at net.minecraft.class_3508.<init>(class_3508.java:111)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at org.dynmap.fabric_1_16_1.ChunkSnapshot.<init>(ChunkSnapshot.java:186)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at org.dynmap.fabric_1_16_1.FabricMapChunkCache.prepChunkSnapshot(FabricMapChunkCache.java:1000)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at org.dynmap.fabric_1_16_1.FabricMapChunkCache.readChunks(FabricMapChunkCache.java:1151)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at org.dynmap.fabric_1_16_1.FabricServer.createMapChunkCache(FabricServer.java:418)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at org.dynmap.MapManager$FullWorldRenderState.processTile(MapManager.java:761)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at org.dynmap.MapManager$FullWorldRenderState.run(MapManager.java:720)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at org.dynmap.MapManager$DynmapScheduledThreadPoolExecutor$1.run(MapManager.java:229)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at org.dynmap.MapManager$DynmapScheduledThreadPoolExecutor$2.run(MapManager.java:245)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[21:07:49] [Dynmap Render Thread/INFO]: [STDERR]: 	at java.lang.Thread.run(Thread.java:745)
@lhns lhns added the bug Something isn't working label Aug 12, 2020
@lhns
Copy link
Owner Author

lhns commented Aug 12, 2020

I built a workaround for this in 230ed83 that expands the statelist if it doesn't match expected length but I currently don't know if it's the right thing to do.
It seems to work fine but for now it issues a warning in the console.
EDIT: Replaced by #22 and #23

For continued discussion see #19 (comment)
TLDR: this is not a bug of the fabric port but affects all platforms on 1.16 (forge, spigot, fabric)

@lhns lhns added enhancement New feature or request and removed bug Something isn't working labels Aug 13, 2020
@lhns lhns added bug Something isn't working and removed enhancement New feature or request labels Aug 15, 2020
@lhns
Copy link
Owner Author

lhns commented Aug 15, 2020

properly fixed in 0.12.2

@lhns lhns closed this as completed Aug 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant