ruscalworld / fabric-exporter

Fabric mod that adds a Prometheus exporter with general metrics of your server
https://modrinth.com/mod/fabricexporter
MIT License
33 stars 6 forks source link

Index -1 out of bounds for length 65537 #5

Closed LacticWhale closed 2 years ago

LacticWhale commented 2 years ago

FabricExporter version: 1.0.7 Spark version: 1.9.26

The error seems to be related to FabricExporter. The error can be reproduced by exploding large amount of tnt. (To get the error below, a sphere of TNT with a radius of 20 was blown up)

Console:

[11:31:13 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 65537
[11:31:13 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]:        at it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap$1.forEach(Int2ObjectLinkedOpenHashMap.java:1766)
[11:31:13 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]:        at com.google.common.collect.Iterables$UnmodifiableIterable.forEach(Iterables.java:110)
[11:31:13 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]:        at ru.ruscalworld.fabricexporter.metrics.Entities.update(Entities.java:22)
[11:31:13 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]:        at ru.ruscalworld.fabricexporter.MetricUpdater.run(MetricUpdater.java:21)
[11:31:13 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]:        at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
[11:31:13 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]:        at java.base/java.util.TimerThread.run(Timer.java:516)
[11:31:15 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:20 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:26 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:31 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:35 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:41 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:42 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:43 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:44 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:45 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:46 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:47 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:49 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:50 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:51 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException
[11:31:52 INFO] [Timer-1]: [LoggedPrintStream] [STDERR]: java.lang.ArrayIndexOutOfBoundsException