DrexHD / AntiXray

Lightweight fabric mod that allows server owners to combat xrayers
MIT License
36 stars 7 forks source link

Exception in server tick loop after upgrading Fabric API #9

Closed dmitriy-bodroff closed 2 years ago

dmitriy-bodroff commented 2 years ago
---- Minecraft Crash Report ----
// I blame Dinnerbone.

Time: 09.10.2021, 23:00
Description: Exception in server tick loop

java.lang.IndexOutOfBoundsException: Index 20342 out of bounds for length 20342
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source)
        at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source)
        at java.base/java.util.Objects.checkIndex(Unknown Source)
        at java.base/java.util.ArrayList.get(Unknown Source)
        at eu.pb4.polymer.other.DualList.get(DualList.java:151)
        at net.minecraft.class_2361.method_10200(class_2361.java:57)
        at net.minecraft.class_2816.method_12288(class_2816.java:31)
        at me.drex.antixray.util.ChunkPacketBlockControllerAntiXray.<init>(ChunkPacketBlockControllerAntiXray.java:130)
        at net.minecraft.class_1937.initValues(class_1937.java:5084)
        at net.minecraft.class_3218.handler$baa000$onInit(class_3218.java:6091)
        at net.minecraft.class_3218.<init>(class_3218.java:160)
        at net.minecraft.server.MinecraftServer.method_3786(MinecraftServer.java:383)
        at net.minecraft.server.MinecraftServer.method_3735(MinecraftServer.java:350)
        at net.minecraft.class_3176.method_3823(class_3176.java:184)
        at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:670)
        at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
        at java.base/java.lang.Thread.run(Unknown Source)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
        Minecraft Version: 1.17.1
        Minecraft Version ID: 1.17.1
        Operating System: Linux (amd64) version 4.19.0-17-amd64
        Java Version: 16.0.1, AdoptOpenJDK
        Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), AdoptOpenJDK
        Memory: 695636480 bytes (663 MiB) / 2778726400 bytes (2650 MiB) up to 2778726400 bytes (2650 MiB)
        CPUs: 2
        Processor Vendor: GenuineIntel
        Processor Name: Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz
        Identifier: Intel64 Family 6 Model 79 Stepping 1
        Microarchitecture: Broadwell (Server)
        Frequency (GHz): 3,60
        Number of physical packages: 2
        Number of physical CPUs: 2
        Number of logical CPUs: 2
        Graphics card #0 name: unknown
        Graphics card #0 vendor: unknown
        Graphics card #0 VRAM (MB): 0,00
        Graphics card #0 deviceId: unknown
        Graphics card #0 versionInfo: unknown
        Virtual memory max (MB): 1973,44
        Virtual memory used (MB): 2879,38
        Swap memory total (MB): 0,00
        Swap memory used (MB): 0,00
        JVM Flags: 4 total; -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -Xms2650M -Xmx2650M
        Fabric Mods: 
                antixray: AntiXray 1.1.0
                bfapi: BFAPI 1.1.8
                cloth-basic-math: Cloth Basic Math 0.5.1
                cloth-config2: Cloth Config v5 5.0.38
                club_minnced_discord-webhooks: discord-webhooks 0.5.8
                cmdspy: Command Spy 1.2.3
                com_fasterxml_jackson_core_jackson-annotations: jackson-annotations 2.10.1
                com_fasterxml_jackson_core_jackson-core: jackson-core 2.10.1
                com_fasterxml_jackson_core_jackson-databind: jackson-databind 2.10.1
                com_github_shevek_parallelgzip: parallelgzip af5f5c297e735f3f2df7aa4eb0e19a5810b8aff6
                com_moandjiezana_toml_toml4j: toml4j 0.7.2
                com_neovisionaries_nv-websocket-client: nv-websocket-client 2.14
                com_squareup_okhttp3_okhttp: okhttp 3.14.9
                com_squareup_okio_okio: okio 1.17.2
                com_vdurmont_emoji-java: emoji-java 5.1.1
                dynmap: Dynmap 3.2.1
                editsign: EditSign 2.2.4
                fabric: Fabric API 0.40.6+1.17
                fabric-api-base: Fabric API Base 0.3.0+a02b446318
                fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.3.0+cbda931818
                fabric-biome-api-v1: Fabric Biome API (v1) 3.2.0+cbda931818
                fabric-command-api-v1: Fabric Command API (v1) 1.1.3+5ab9934c18
                fabric-commands-v0: Fabric Commands (v0) 0.2.2+92519afa18
                fabric-containers-v0: Fabric Containers (v0) 0.1.12+cbda931818
                fabric-content-registries-v0: Fabric Content Registries (v0) 0.3.0+cbda931818
                fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.5+be9da31018
                fabric-dimensions-v1: Fabric Dimensions API (v1) 2.0.11+6cefd57718
                fabric-entity-events-v1: Fabric Entity Events (v1) 1.2.3+87cc6e4c18
                fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.10+fc40aa9d18
                fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.1+92519afa18
                fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.7+cbda931818
                fabric-item-api-v1: Fabric Item API (v1) 1.2.4+cbda931818
                fabric-item-groups-v0: Fabric Item Groups (v0) 0.2.10+b7ab612118
                fabric-language-kotlin: Fabric Language Kotlin 1.6.5+kotlin.1.5.31
                fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.4.4+a02b446318
                fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.4+a02b446318
                fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.3+92519afa18
                fabric-networking-api-v1: Fabric Networking API (v1) 1.0.13+cbda931818
                fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.11+a02b446318
                fabric-networking-v0: Fabric Networking (v0) 0.3.2+92519afa18
                fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.10.9+cbda931818
                fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.3+a02b446318
                fabric-particles-v1: Fabric Particles (v1) 0.2.4+a02b446318
                fabric-permissions-api-v0: fabric-permissions-api 0.1-SNAPSHOT
                fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.7.11+7931163218
                fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.5+a02b446318
                fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.1.14+4658223018
                fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.8+a00e834b18
                fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.8+cbda931818
                fabric-structure-api-v1: Fabric Structure API (v1) 1.1.13+5ab9934c18
                fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.2.1+b06cb95b18
                fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.2.12+b7ab612118
                fabric-transfer-api-v1: Fabric Transfer API (v1) 1.4.0+7931163218
                fabricloader: Fabric Loader 0.11.7
                fabricsit: FabricSit 1.6.3
                fallingtree: FallingTree 2.14.0
                farsighted-mobs: Farsighted Mobs 1.1-1.17
                fdlink: Fabric <-> Discord Link 0.9.8
                fdlink_1_12_2: Fabric <-> Discord Link 0.9.8
                fdlink_1_15_2: Fabric <-> Discord Link 0.9.8
                fdlink_1_16: Fabric <-> Discord Link 0.9.8
                fdlink_1_7_10: Fabric <-> Discord Link 0.9.8
                fdlink_1_8_9: Fabric <-> Discord Link 0.9.8
                fdlink_api: Fabric <-> Discord Link API 0.1.1
                fdlink_common: Fabric <-> Discord Link 0.9.8
                golfiv: Golf IV 0.4.0
                hologram-api: Hologram API 0.2.1+1.17.1
                java: OpenJDK 64-Bit Server VM 16
                ledger: Ledger 1.1.1
                lithium: Lithium 0.7.4
                luckperms: LuckPerms 5.3.69
                minecraft: Minecraft 1.17.1
                net_dv8tion_jda: JDA 4.3.0_323
                net_sf_trove4j_trove4j: trove4j 3.0.3
                org_apache_commons_commons-collections4: commons-collections4 4.1
                org_apache_commons_commons-compress: commons-compress 1.19
                org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.5.31
                org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.5.31
                org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.5.31
                org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.5.31
                org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.5.2
                org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.5.2
                org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.3.0
                org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.3.0
                org_json_json: json 20210307
                org_slf4j_slf4j-api: slf4j-api 1.7.25
                org_slf4j_slf4j-nop: slf4j-nop 1.7.25
                org_tukaani_xz: xz 1.8
                packet_tweaker: Packet Tweaker 0.2.0+1.17.1
                placeholder-api: Placeholder API 1.1.1+1.17.1
                polymer: Polymer 0.1.5+1.17.1
                server_translations_api: Server Translations API 1.4.5+1.17
                sgui: SGui 1.0.0-rc4+1.17.1
                spark: spark 1.6.2
                textile_backup: Textile Backup 2.2.0-1.17
                universal-graves: Universal Graves 1.1.1+1.17.1
                voicechat: Simple Voice Chat 1.17.1-1.1.9
        Player Count: 0 / 20; []
        Data Packs: vanilla, Fabric Mods
        Is Modded: Definitely; Server brand changed to 'fabric'
        Type: Dedicated Server (map_server.txt)
DrexHD commented 2 years ago

I am unable to reproduce this bug with anti-xray-mc1.17.1-1.1.0.jar and fabric-api-0.40.8+1.17. Does this happen on startup or maybe at a certain time?

Nakijama commented 2 years ago

Welcome I have a similar problem with the All of Fabric 4 package when I remove the server from the antiXray server starting normal Fabric version 0.11.6 1.17.1 fabric-api-0.40.8+1.17 As it loads / creates a new world

dmitriy-bodroff commented 2 years ago

I upgraded from Fabric API 0.40.6 to 0.40.8, but the error persists.

...
[21:54:07] [Server thread/INFO]: Loading storage provider... [H2]
[21:54:08] [Server thread/INFO]: Loading internal permission managers...
[21:54:08] [Server thread/INFO]: Performing initial data load...
[21:54:08] [Server thread/INFO]: Successfully enabled. (took 980ms)
[21:54:08] [Server thread/INFO]: Starting minecraft server version 1.17.1
[21:54:08] [Server thread/INFO]: Loading properties
[21:54:08] [Server thread/INFO]: Default game type: SURVIVAL
[21:54:08] [Server thread/INFO]: Generating keypair
[21:54:08] [Server thread/INFO]: Starting Minecraft server on *:25565
[21:54:08] [Server thread/INFO]: Using epoll channel type
[21:54:09] [Server thread/INFO]: Preparing level "world"
[21:54:10] [Server thread/INFO]: [Dynmap] Mod Support processing completed
[21:54:11] [Server thread/INFO]: [Dynmap] Loaded 25 shaders.
[21:54:11] [Server thread/INFO]: [Dynmap] Loaded 82 perspectives.
[21:54:11] [Server thread/INFO]: [Dynmap] Loaded 22 lightings.
[21:54:11] [Server thread/INFO]: [Dynmap] Starting enter/exit processing
[21:54:11] [Dynmap Render Thread/INFO]: [Dynmap] Finish marker initialization
[21:54:12] [Server thread/INFO]: [Dynmap] Web server started on address 0.0.0.0:8123
[21:54:12] [Server thread/INFO]: [Dynmap] version 3.2.1 is enabled - core version 3.2.1-531
[21:54:12] [Server thread/INFO]: [Dynmap] For support, visit https://reddit.com/r/Dynmap or our Discord at https://discord.gg/s3rd5qn
[21:54:12] [Server thread/INFO]: [Dynmap] To report or track bugs, visit https://github.com/webbukkit/dynmap/issues
[21:54:12] [Server thread/INFO]: [Dynmap] If you'd like to donate, please visit https://www.patreon.com/dynmap or https://ko-fi.com/michaelprimm
[21:54:12] [Server thread/INFO]: [Dynmap] Loaded 3 maps of world 'world'.
[21:54:12] [Server thread/INFO]: [Dynmap] Loaded 2 maps of world 'DIM-1'.
[21:54:12] [Server thread/INFO]: [Dynmap] Loaded 2 maps of world 'DIM1'.
[21:54:12] [Server thread/INFO]: [Dynmap] Register events
[21:54:12] [Server thread/INFO]: [Dynmap] Enabled
[21:54:12] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.IndexOutOfBoundsException: Index 20342 out of bounds for length 20342
    at jdk.internal.util.Preconditions.outOfBounds(Unknown Source) ~[?:?]
    at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source) ~[?:?]
    at jdk.internal.util.Preconditions.checkIndex(Unknown Source) ~[?:?]
    at java.util.Objects.checkIndex(Unknown Source) ~[?:?]
    at java.util.ArrayList.get(Unknown Source) ~[?:?]
    at eu.pb4.polymer.other.DualList.get(DualList.java:151) ~[c14564a0-1f14-4d2d-b906-065dd345fe5c.jar:?]
    at net.minecraft.class_2361.method_10200(class_2361.java:57) ~[intermediary-server.jar:?]
    at net.minecraft.class_2816.method_12288(class_2816.java:31) ~[intermediary-server.jar:?]
    at me.drex.antixray.util.ChunkPacketBlockControllerAntiXray.<init>(ChunkPacketBlockControllerAntiXray.java:130) ~[anti-xray-mc1.17.1-1.1.0.jar:?]
    at net.minecraft.class_1937.initValues(class_1937.java:5084) ~[intermediary-server.jar:?]
    at net.minecraft.class_3218.handler$bad000$onInit(class_3218.java:6091) ~[intermediary-server.jar:?]
    at net.minecraft.class_3218.<init>(class_3218.java:160) ~[intermediary-server.jar:?]
    at net.minecraft.server.MinecraftServer.method_3786(MinecraftServer.java:383) ~[intermediary-server.jar:?]
    at net.minecraft.server.MinecraftServer.method_3735(MinecraftServer.java:350) ~[intermediary-server.jar:?]
    at net.minecraft.class_3176.method_3823(class_3176.java:184) ~[intermediary-server.jar:?]
    at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:670) ~[intermediary-server.jar:?]
    at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270) ~[intermediary-server.jar:?]
    at java.lang.Thread.run(Unknown Source) [?:?]
[21:54:12] [Server thread/ERROR]: This crash report has been saved to: /data/./crash-reports/crash-2021-10-13_21.54.12-server.txt

crash-2021-10-13_21.54.12-server.txt

---- Minecraft Crash Report ----
// I'm sorry, Dave.

Time: 13.10.2021, 21:54
Description: Exception in server tick loop

java.lang.IndexOutOfBoundsException: Index 20342 out of bounds for length 20342
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source)
        at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source)
        at java.base/java.util.Objects.checkIndex(Unknown Source)
        at java.base/java.util.ArrayList.get(Unknown Source)
        at eu.pb4.polymer.other.DualList.get(DualList.java:151)
        at net.minecraft.class_2361.method_10200(class_2361.java:57)
        at net.minecraft.class_2816.method_12288(class_2816.java:31)
        at me.drex.antixray.util.ChunkPacketBlockControllerAntiXray.<init>(ChunkPacketBlockControllerAntiXray.java:130)
        at net.minecraft.class_1937.initValues(class_1937.java:5084)
        at net.minecraft.class_3218.handler$bad000$onInit(class_3218.java:6091)
        at net.minecraft.class_3218.<init>(class_3218.java:160)
        at net.minecraft.server.MinecraftServer.method_3786(MinecraftServer.java:383)
        at net.minecraft.server.MinecraftServer.method_3735(MinecraftServer.java:350)
        at net.minecraft.class_3176.method_3823(class_3176.java:184)
        at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:670)
        at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
        at java.base/java.lang.Thread.run(Unknown Source)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
        Minecraft Version: 1.17.1
        Minecraft Version ID: 1.17.1
        Operating System: Linux (amd64) version 4.19.0-17-amd64
        Java Version: 16.0.1, AdoptOpenJDK
        Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), AdoptOpenJDK
        Memory: 700357120 bytes (667 MiB) / 2778726400 bytes (2650 MiB) up to 2778726400 bytes (2650 MiB)
        CPUs: 2
        Processor Vendor: GenuineIntel
        Processor Name: Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz
        Identifier: Intel64 Family 6 Model 79 Stepping 1
        Microarchitecture: Broadwell (Server)
        Frequency (GHz): 3,60
        Number of physical packages: 2
        Number of physical CPUs: 2
        Number of logical CPUs: 2
        Graphics card #0 name: unknown
        Graphics card #0 vendor: unknown
        Graphics card #0 VRAM (MB): 0,00
        Graphics card #0 deviceId: unknown
        Graphics card #0 versionInfo: unknown
        Virtual memory max (MB): 1973,44
        Virtual memory used (MB): 2934,35
        Swap memory total (MB): 0,00
        Swap memory used (MB): 0,00
        JVM Flags: 4 total; -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -Xms2650M -Xmx2650M
        Fabric Mods: 
                antixray: AntiXray 1.1.0
                bfapi: BFAPI 1.1.8
                cloth-basic-math: Cloth Basic Math 0.5.1
                cloth-config2: Cloth Config v5 5.0.38
                club_minnced_discord-webhooks: discord-webhooks 0.5.8
                cmdspy: Command Spy 1.2.3
                com_electronwill_night-config_core: core 3.6.3
                com_electronwill_night-config_toml: toml 3.6.3
                com_fasterxml_jackson_core_jackson-annotations: jackson-annotations 2.10.1
                com_fasterxml_jackson_core_jackson-core: jackson-core 2.10.1
                com_fasterxml_jackson_core_jackson-databind: jackson-databind 2.10.1
                com_github_shevek_parallelgzip: parallelgzip af5f5c297e735f3f2df7aa4eb0e19a5810b8aff6
                com_moandjiezana_toml_toml4j: toml4j 0.7.2
                com_neovisionaries_nv-websocket-client: nv-websocket-client 2.14
                com_squareup_okhttp3_okhttp: okhttp 3.14.9
                com_squareup_okio_okio: okio 1.17.2
                com_vdurmont_emoji-java: emoji-java 5.1.1
                couplings: Couplings 1.5.0+1.17
                dynmap: Dynmap 3.2.1
                editsign: EditSign 2.2.4
                fabric: Fabric API 0.40.8+1.17
                fabric-api-base: Fabric API Base 0.3.0+a02b446313
                fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.3.0+cbda931818
                fabric-biome-api-v1: Fabric Biome API (v1) 3.2.0+cbda931818
                fabric-command-api-v1: Fabric Command API (v1) 1.1.3+5ab9934c18
                fabric-commands-v0: Fabric Commands (v0) 0.2.2+92519afa18
                fabric-containers-v0: Fabric Containers (v0) 0.1.12+cbda931818
                fabric-content-registries-v0: Fabric Content Registries (v0) 0.3.0+cbda931818
                fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.5+be9da31018
                fabric-dimensions-v1: Fabric Dimensions API (v1) 2.0.11+6cefd57718
                fabric-entity-events-v1: Fabric Entity Events (v1) 1.2.3+87cc6e4c18
                fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.10+fc40aa9d18
                fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.1+92519afa18
                fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.7+cbda931818
                fabric-item-api-v1: Fabric Item API (v1) 1.2.4+cbda931818
                fabric-item-groups-v0: Fabric Item Groups (v0) 0.2.10+b7ab612118
                fabric-language-kotlin: Fabric Language Kotlin 1.6.5+kotlin.1.5.31
                fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.4.4+a02b446318
                fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.4+a02b446318
                fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.3+92519afa18
                fabric-networking-api-v1: Fabric Networking API (v1) 1.0.13+cbda931818
                fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.11+a02b446318
                fabric-networking-v0: Fabric Networking (v0) 0.3.2+92519afa18
                fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.10.9+cbda931818
                fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.3+a02b446318
                fabric-particles-v1: Fabric Particles (v1) 0.2.4+a02b446318
                fabric-permissions-api-v0: fabric-permissions-api 0.1-SNAPSHOT
                fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.7.11+7931163218
                fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.5+a02b446318
                fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.1.14+4658223018
                fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.8+a00e834b18
                fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.8+cbda931818
                fabric-structure-api-v1: Fabric Structure API (v1) 1.1.13+5ab9934c18
                fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.2.1+b06cb95b18
                fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.2.12+b7ab612118
                fabric-transfer-api-v1: Fabric Transfer API (v1) 1.4.0+7931163218
                fabricloader: Fabric Loader 0.11.7
                fabricsit: FabricSit 1.6.3
                fallingtree: FallingTree 2.14.0
                farsighted-mobs: Farsighted Mobs 1.1-1.17
                fdlink: Fabric <-> Discord Link 0.9.8
                fdlink_1_12_2: Fabric <-> Discord Link 0.9.8
                fdlink_1_15_2: Fabric <-> Discord Link 0.9.8
                fdlink_1_16: Fabric <-> Discord Link 0.9.8
                fdlink_1_7_10: Fabric <-> Discord Link 0.9.8
                fdlink_1_8_9: Fabric <-> Discord Link 0.9.8
                fdlink_api: Fabric <-> Discord Link API 0.1.1
                fdlink_common: Fabric <-> Discord Link 0.9.8
                golfiv: Golf IV 0.4.0
                hologram-api: Hologram API 0.2.1+1.17.1
                java: OpenJDK 64-Bit Server VM 16
                ledger: Ledger 1.1.1
                lithium: Lithium 0.7.4
                luckperms: LuckPerms 5.3.69
                minecraft: Minecraft 1.17.1
                net_dv8tion_jda: JDA 4.3.0_323
                net_sf_trove4j_trove4j: trove4j 3.0.3
                org_apache_commons_commons-collections4: commons-collections4 4.1
                org_apache_commons_commons-compress: commons-compress 1.19
                org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.5.31
                org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.5.31
                org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.5.31
                org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.5.31
                org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.5.2
                org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.5.2
                org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.3.0
                org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.3.0
                org_json_json: json 20210307
                org_slf4j_slf4j-api: slf4j-api 1.7.25
                org_slf4j_slf4j-nop: slf4j-nop 1.7.25
                org_tukaani_xz: xz 1.8
                packet_tweaker: Packet Tweaker 0.2.0+1.17.1
                placeholder-api: Placeholder API 1.1.1+1.17.1
                polymer: Polymer 0.1.5+1.17.1
                server_translations_api: Server Translations API 1.4.5+1.17
                sgui: SGui 1.0.0-rc4+1.17.1
                spark: spark 1.6.2
                textile_backup: Textile Backup 2.2.0-1.17
                universal-graves: Universal Graves 1.1.1+1.17.1
                voicechat: Simple Voice Chat 1.17.1-1.1.9
        Player Count: 0 / 20; []
        Data Packs: vanilla, Fabric Mods
        Is Modded: Definitely; Server brand changed to 'fabric'
        Type: Dedicated Server (map_server.txt)
Altirix commented 2 years ago
11:02:24] [Server thread/INFO]: Altirix fell out of the world
[11:02:24] [Server thread/INFO]: [Altirix: Killed Altirix]
[11:02:30] [Server thread/FATAL]: Error executing task on Server
java.lang.ArrayIndexOutOfBoundsException: Index 33554432 out of bounds for length 20374
        at me.drex.antixray.util.ChunkPacketBlockControllerAntiXray.onBlockChange(ChunkPacketBlockControllerAntiXray.java:545) ~[anti-xray-mc1.17.1-1.1.0.jar:?]
        at net.minecraft.class_1937.redirect$zpi000$onBlockChanged(class_1937.java:5101) ~[intermediary-server.jar:?]
        at net.minecraft.class_1937.method_30092(class_1937.java:211) ~[intermediary-server.jar:?]
        at net.minecraft.class_1937.method_8652(class_1937.java:196) ~[intermediary-server.jar:?]
        at net.minecraft.class_1937.method_8650(class_1937.java:271) ~[intermediary-server.jar:?]
        at net.minecraft.class_3225.method_14266(class_3225.java:249) ~[intermediary-server.jar:?]
        at net.minecraft.class_3225.method_21717(class_3225.java:221) ~[intermediary-server.jar:?]
        at net.minecraft.class_3225.method_14263(class_3225.java:154) ~[intermediary-server.jar:?]
        at net.minecraft.class_3244.method_12066(class_3244.java:1012) ~[intermediary-server.jar:?]
        at net.minecraft.class_2846.method_12361(class_2846.java:34) ~[intermediary-server.jar:?]
        at net.minecraft.class_2846.method_11054(class_2846.java:8) ~[intermediary-server.jar:?]
        at net.minecraft.class_2600.method_11072(class_2600.java:21) ~[intermediary-server.jar:?]
        at net.minecraft.class_3738.run(class_3738.java:18) ~[intermediary-server.jar:?]
        at net.minecraft.class_1255.method_18859(class_1255.java:151) ~[intermediary-server.jar:?]
        at net.minecraft.class_4093.method_18859(class_4093.java:23) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_24306(MinecraftServer.java:788) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_18859(MinecraftServer.java:164) ~[intermediary-server.jar:?]
        at net.minecraft.class_1255.method_16075(class_1255.java:125) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:770) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:764) ~[intermediary-server.jar:?]
        at net.minecraft.class_1255.method_18857(class_1255.java:134) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:749) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.handler$bbh000$modifiedRunLoop(MinecraftServer.java:5399) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:676) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270) ~[intermediary-server.jar:?]
        at java.lang.Thread.run(Thread.java:831) [?:?]
---- Minecraft Crash Report ----
// I let you down. Sorry :(

Time: 10/21/21, 11:16 AM
Description: Ticking entity

java.lang.ArrayIndexOutOfBoundsException: Index 33554434 out of bounds for length 20374
    at me.drex.antixray.util.ChunkPacketBlockControllerAntiXray.onBlockChange(ChunkPacketBlockControllerAntiXray.java:545)
    at net.minecraft.class_1937.redirect$zpi000$onBlockChanged(class_1937.java:5101)
    at net.minecraft.class_1937.method_30092(class_1937.java:211)
    at net.minecraft.class_1937.method_8652(class_1937.java:196)
    at net.minecraft.class_1937.method_8650(class_1937.java:271)
    at net.minecraft.class_3225.method_14266(class_3225.java:249)
    at net.minecraft.class_3225.method_21717(class_3225.java:221)
    at net.minecraft.class_3225.handler$zba000$polymer_breakIfTakingTooLong(class_3225.java:561)
    at net.minecraft.class_3225.method_21716(class_3225.java:127)
    at net.minecraft.class_3225.method_14264(class_3225.java:113)
    at net.minecraft.class_3222.method_5773(class_3222.java:425)
    at net.minecraft.class_3218.method_18762(class_3218.java:655)
    at net.minecraft.class_1937.method_18472(class_1937.java:483)
    at net.minecraft.class_3218.method_31420(class_3218.java:417)
    at net.minecraft.class_5574.method_31791(class_5574.java:54)
    at net.minecraft.class_3218.method_18765(class_3218.java:392)
    at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:891)
    at net.minecraft.class_3176.method_3813(class_3176.java:335)
    at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:831)
    at net.minecraft.server.MinecraftServer.handler$bbh000$modifiedRunLoop(MinecraftServer.java:5390)
    at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:676)
    at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
    at java.base/java.lang.Thread.run(Thread.java:831)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Server thread
Stacktrace:
    at me.drex.antixray.util.ChunkPacketBlockControllerAntiXray.onBlockChange(ChunkPacketBlockControllerAntiXray.java:545)
    at net.minecraft.class_1937.redirect$zpi000$onBlockChanged(class_1937.java:5101)
    at net.minecraft.class_1937.method_30092(class_1937.java:211)
    at net.minecraft.class_1937.method_8652(class_1937.java:196)
    at net.minecraft.class_1937.method_8650(class_1937.java:271)
    at net.minecraft.class_3225.method_14266(class_3225.java:249)
    at net.minecraft.class_3225.method_21717(class_3225.java:221)
    at net.minecraft.class_3225.handler$zba000$polymer_breakIfTakingTooLong(class_3225.java:561)
    at net.minecraft.class_3225.method_21716(class_3225.java:127)
    at net.minecraft.class_3225.method_14264(class_3225.java:113)
    at net.minecraft.class_3222.method_5773(class_3222.java:425)
    at net.minecraft.class_3218.method_18762(class_3218.java:655)

-- Entity being ticked --
Details:
    Entity Type: minecraft:player (net.minecraft.class_3222)
    Entity ID: 40
    Entity Name: Altirix
    Entity's Exact location: -1101.61, 88.00, -299.73
    Entity's Block location: World: (-1102,88,-300), Section: (at 2,8,4 in -69,5,-19; chunk contains blocks -1104,0,-304 to -1089,255,-289), Region: (-3,-1; contains chunks -96,-32 to -65,-1, blocks -1536,0,-512 to -1025,255,-1)
    Entity's Momentum: 0.00, -0.08, 0.00
    Entity's Passengers: []
    Entity's Vehicle: null
Stacktrace:
    at net.minecraft.class_1937.method_18472(class_1937.java:483)
    at net.minecraft.class_3218.method_31420(class_3218.java:417)
    at net.minecraft.class_5574.method_31791(class_5574.java:54)
    at net.minecraft.class_3218.method_18765(class_3218.java:392)

-- Affected level --
Details:
    All players: 1 total; [class_3222['Altirix'/40, l='ServerLevel[world]', x=-1101.61, y=88.00, z=-299.73]]
    Chunk stats: 3706
    Level dimension: minecraft:overworld
    Level spawn location: World: (-256,74,-528), Section: (at 0,10,0 in -16,4,-33; chunk contains blocks -256,0,-528 to -241,255,-513), Region: (-1,-2; contains chunks -32,-64 to -1,-33, blocks -512,0,-1024 to -1,255,-513)
    Level time: 8484921 game time, 2061420 day time
    Level name: world
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
    Level weather: Rain time: 14041 (now: false), thunder time: 21371 (now: false)
    Known server brands: Paper, fabric
    Level was modded: true
    Level storage version: 0x04ABD - Anvil
Stacktrace:
    at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:891)
    at net.minecraft.class_3176.method_3813(class_3176.java:335)
    at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:831)
    at net.minecraft.server.MinecraftServer.handler$bbh000$modifiedRunLoop(MinecraftServer.java:5390)
    at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:676)
    at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
    at java.base/java.lang.Thread.run(Thread.java:831)

-- System Details --
Details:
    Minecraft Version: 1.17.1
    Minecraft Version ID: 1.17.1
    Operating System: Linux (amd64) version 4.15.0-159-generic
    Java Version: 16.0.2, Oracle Corporation
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
    Memory: 1291993088 bytes (1232 MiB) / 1962934272 bytes (1872 MiB) up to 20971520000 bytes (20000 MiB)
    CPUs: 8
    Processor Vendor: GenuineIntel
    Processor Name: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
    Identifier: Intel64 Family 6 Model 158 Stepping 9
    Microarchitecture: Kaby Lake
    Frequency (GHz): 3.60
    Number of physical packages: 1
    Number of physical CPUs: 4
    Number of logical CPUs: 8
    Graphics card #0 name: unknown
    Graphics card #0 vendor: unknown
    Graphics card #0 VRAM (MB): 0.00
    Graphics card #0 deviceId: unknown
    Graphics card #0 versionInfo: unknown
    Virtual memory max (MB): 32342.78
    Virtual memory used (MB): 3352.24
    Swap memory total (MB): 16367.00
    Swap memory used (MB): 2.00
    JVM Flags: 20 total; -Xms128M -Xmx20000M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1
    Fabric Mods: 
        adventure-platform-fabric: adventure-platform-fabric 4.1.0-SNAPSHOT
        antixray: AntiXray 1.1.0
        autoconfig1u: Auto Config v1 Updated 3.3.1
        better_dispensers: Better Dispensers 1.17.1_v2
        bfapi: BFAPI 1.1.8
        carpet: Carpet Mod 1.4.48
        cloud: Cloud 1.5.0
        cloud_commandframework_cloud-brigadier_: cloud-brigadier 1.5.0
        cloud_commandframework_cloud-core_: cloud-core 1.5.0
        cloud_commandframework_cloud-minecraft-extras: cloud-minecraft-extras 1.5.0
        cloud_commandframework_cloud-services_: cloud-services 1.5.0
        com_electronwill_night-config_core: core 3.6.3
        com_electronwill_night-config_toml: toml 3.6.3
        com_moandjiezana_toml_toml4j: toml4j 0.7.2
        com_typesafe_config: config 1.4.1
        couplings: Couplings 1.5.0+1.17
        fabric: Fabric API 0.41.0+1.17
        fabric-api-base: Fabric API Base 0.3.0+a02b446313
        fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.3.0+cbda931818
        fabric-biome-api-v1: Fabric Biome API (v1) 3.2.0+cbda931818
        fabric-command-api-v1: Fabric Command API (v1) 1.1.3+5ab9934c18
        fabric-commands-v0: Fabric Commands (v0) 0.2.2+92519afa18
        fabric-containers-v0: Fabric Containers (v0) 0.1.12+cbda931818
        fabric-content-registries-v0: Fabric Content Registries (v0) 0.3.0+cbda931818
        fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.5+be9da31018
        fabric-dimensions-v1: Fabric Dimensions API (v1) 2.0.11+6cefd57718
        fabric-entity-events-v1: Fabric Entity Events (v1) 1.3.0+57bef5a318
        fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.10+fc40aa9d18
        fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.1+92519afa18
        fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.7+cbda931818
        fabric-item-api-v1: Fabric Item API (v1) 1.2.4+cbda931818
        fabric-item-groups-v0: Fabric Item Groups (v0) 0.2.10+b7ab612118
        fabric-language-kotlin: Fabric Language Kotlin 1.6.5+kotlin.1.5.31
        fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.4.4+a02b446318
        fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.4+a02b446318
        fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.3+92519afa18
        fabric-networking-api-v1: Fabric Networking API (v1) 1.0.13+cbda931818
        fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.11+a02b446318
        fabric-networking-v0: Fabric Networking (v0) 0.3.2+92519afa18
        fabric-no-mob-grief: Fabric No Mob Grief 1.0.1
        fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.10.9+cbda931818
        fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.3+a02b446318
        fabric-particles-v1: Fabric Particles (v1) 0.2.4+a02b446318
        fabric-permissions-api-v0: fabric-permissions-api 0.1-SNAPSHOT
        fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.7.11+7931163218
        fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.5+a02b446318
        fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.1.14+4658223018
        fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.8+a00e834b18
        fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.8+cbda931818
        fabric-structure-api-v1: Fabric Structure API (v1) 1.1.13+5ab9934c18
        fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.2.1+b06cb95b18
        fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.2.12+b7ab612118
        fabric-transfer-api-v1: Fabric Transfer API (v1) 1.4.0+7931163218
        fabricloader: Fabric Loader 0.11.7
        fabricsit: FabricSit 1.6.3
        ferritecore: FerriteCore 3.1.0
        harvest: Harvest 1.2.12
        hologram-api: Hologram API 0.2.1+1.17.1
        image2map: Image2Map 0.2.1
        io_leangen_geantyref_geantyref: geantyref 1.3.11
        java: OpenJDK 64-Bit Server VM 16
        ledger: Ledger 1.1.1
        lithium: Lithium 0.7.5-SNAPSHOT
        minecraft: Minecraft 1.17.1
        net_kyori_adventure-api: adventure-api 4.8.1
        net_kyori_adventure-key: adventure-key 4.8.1
        net_kyori_adventure-platform-api: adventure-platform-api 4.0.0-SNAPSHOT
        net_kyori_adventure-serializer-configurate4: adventure-serializer-configurate4 4.8.1
        net_kyori_adventure-text-feature-pagination: adventure-text-feature-pagination 4.0.0-SNAPSHOT
        net_kyori_adventure-text-minimessage: adventure-text-minimessage 4.2.0-SNAPSHOT
        net_kyori_adventure-text-serializer-gson: adventure-text-serializer-gson 4.8.1
        net_kyori_adventure-text-serializer-legacy: adventure-text-serializer-legacy 4.8.1
        net_kyori_adventure-text-serializer-plain: adventure-text-serializer-plain 4.8.1
        net_kyori_examination-api: examination-api 1.1.0
        net_kyori_examination-string: examination-string 1.1.0
        org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.5.31
        org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.5.31
        org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.5.31
        org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.5.31
        org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.5.2
        org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.5.2
        org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.3.0
        org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.3.0
        org_spongepowered_configurate-core: configurate-core 4.1.1
        org_spongepowered_configurate-hocon: configurate-hocon 4.1.1
        packet_tweaker: Packet Tweaker 0.2.0+1.17.1
        placeholder-api: Placeholder API 1.1.1+1.17.1
        polymer: Polymer 0.1.8+1.17.1
        recipecache: recipecache 0.2.1-1.17.1
        server_translations_api: Server Translations API 1.4.6+1.17
        sgui: SGui 1.0.0-rc4+1.17.1
        starlight: Starlight 1.0.0+fabric.73f6d37
        tabtps-fabric: TabTPS 1.3.10
        trampledisablerfabric: Trample Disabler 1.0.3
        universal-graves: Universal Graves 1.1.3+1.17.1
        unlimiteddragoneggs: Unlimited Dragon Eggs 1.2.1
        wires: Wires 1.0.3
    Player Count: 1 / 40; [class_3222['Altirix'/40, l='ServerLevel[world]', x=-1101.61, y=88.00, z=-299.73]]
    Data Packs: vanilla, file/bukkit, Fabric Mods
    Is Modded: Definitely; Server brand changed to 'fabric'
    Type: Dedicated Server (map_server.txt)

got this when i broke a Universal death grave from https://modrinth.com/mod/universal-graves

Patbox commented 2 years ago

Oh yeah, it looks like incompatibility with Polymer library. The best way to fix it (from my really quick look at the class itself) would be usage of Identity/any other Map with BlockState -> boolean. It should ideally have the same performance as MC's implementation is backed by one anyway

DrexHD commented 2 years ago

Hello, Thanks for the detailed issues. I have just uploaded a commit that should fix them. Before officially releasing this though I would love to hear back from you, wherever this actually fixed your issue. Please make sure to grab the latest version from Github actions and test your issues. @the-english-breaker @Nakijama @Altirix

Kind regards, Drex