DrexHD / AntiXray

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

Getting crashes when using alongside mod Universal Graves #11

Closed kiddthejuice closed 2 years ago

kiddthejuice commented 2 years ago

Hello, I'm new to posting so I hope I'm doing this correctly, apologies ahead of time.

I recently started a modded Minecraft server and after about a week or two of running it, I had decided to place an Anti-Xray, coming across yours. I have been using the mod Universal Graves since almost the beginning so I haven't ran into this issue yet. I'm also no expert so I hope I am seeing this right and it's these two that are causing issues.

I've noticed that when a player dies and their grave spawns, that chunk that they died in becomes almost unplayable. All players are affected in that chunk and will be timed out indefinitely until the grave is broken or destroys on its own. Now this sounds like a Universal Graves mod problem but I have yet to have this kind of issues with it until I added the Anti X-Ray today. It's been crashing my server non stop it seems like when players die and I'm getting this crash message every time it happens, pointing to Anti X-Ray and Universal Graves.

Here is the crash report:

---- Minecraft Crash Report ----
// I blame Dinnerbone.

Time: 11/22/21, 5:44 AM
Description: Ticking block entity

java.lang.ArrayIndexOutOfBoundsException: Index 33554438 out of bounds for length 81223
    at me.drex.antixray.util.ChunkPacketBlockControllerAntiXray.onBlockChange(ChunkPacketBlockControllerAntiXray.java:545)
    at net.minecraft.class_1937.redirect$zzd000$onBlockChanged(class_1937.java:1101)
    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_8501(class_1937.java:311)
    at eu.pb4.graves.grave.GraveBlockEntity.tick(GraveBlockEntity.java:193)
    at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:886)
    at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:941)
    at net.minecraft.class_1937.method_18471(class_1937.java:474)
    at net.minecraft.class_3218.method_18765(class_3218.java:422)
    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.method_29741(MinecraftServer.java:697)
    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$zzd000$onBlockChanged(class_1937.java:1101)
    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_8501(class_1937.java:311)
    at eu.pb4.graves.grave.GraveBlockEntity.tick(GraveBlockEntity.java:193)

-- Block entity being ticked --
Details:
    Name: universal_graves:grave // eu.pb4.graves.grave.GraveBlockEntity
    Block: Block{universal_graves:grave}[is_locked=false,rotation=7]
    Block location: World: (735,78,655), Section: (at 15,14,15 in 45,4,40; chunk contains blocks 720,-64,640 to 735,319,655), Region: (1,1; contains chunks 32,32 to 63,63, blocks 512,-64,512 to 1023,319,1023)
    Block: Block{universal_graves:grave}[is_locked=false,rotation=7]
    Block location: World: (735,78,655), Section: (at 15,14,15 in 45,4,40; chunk contains blocks 720,-64,640 to 735,319,655), Region: (1,1; contains chunks 32,32 to 63,63, blocks 512,-64,512 to 1023,319,1023)
Stacktrace:
    at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:886)
    at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:941)
    at net.minecraft.class_1937.method_18471(class_1937.java:474)
    at net.minecraft.class_3218.method_18765(class_3218.java:422)

-- Affected level --
Details:
    All players: 3 total; [class_3222['Zeromega89'/374, l='ServerLevel[world]', x=-167.12, y=63.00, z=-663.82], class_3222['JayXReaper'/846, l='ServerLevel[world]', x=-596.91, y=60.00, z=-755.03], class_3222['KiddTheJuice'/3331, l='ServerLevel[world]', x=706.26, y=78.23, z=643.90]]
    Chunk stats: 5822
    Level dimension: minecraft:overworld
    Level spawn location: World: (-595,65,160), Section: (at 13,1,0 in -38,4,10; chunk contains blocks -608,-64,160 to -593,319,175), Region: (-2,0; contains chunks -64,0 to -33,31, blocks -1024,-64,0 to -513,319,511)
    Level time: 18450380 game time, 25452427 day time
    Level name: world
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
    Level weather: Rain time: 10803 (now: false), thunder time: 133714 (now: false)
    Known server brands: 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.method_29741(MinecraftServer.java:697)
    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.4.232-1.el7.elrepo.x86_64
    Java Version: 16.0.1, AdoptOpenJDK
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), AdoptOpenJDK
    Memory: 2480667136 bytes (2365 MiB) / 7549747200 bytes (7200 MiB) up to 16466837504 bytes (15704 MiB)
    CPUs: 5
    Processor Vendor: GenuineIntel
    Processor Name: Intel(R) Xeon(R) E-2288G CPU @ 3.70GHz
    Identifier: Intel64 Family 6 Model 158 Stepping 13
    Microarchitecture: unknown
    Frequency (GHz): 3.70
    Number of physical packages: 1
    Number of physical CPUs: 8
    Number of logical CPUs: 16
    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): 163664.72
    Virtual memory used (MB): 118491.75
    Swap memory total (MB): 99325.98
    Swap memory used (MB): 24344.47
    JVM Flags: 2 total; -Xmx15700M -Xms128M
    Fabric Mods: 
        amecsapi: Amecs API 1.1.5+mc21w16a
        antixray: AntiXray 1.1.0
        appleskin: AppleSkin mc1.17.1-2.2.0
        architectury: Architectury 2.6.35
        attributefix: Attribute Fix {FABRIC} 1.0.3
        backslot: BackSlot 1.2.2
        backslotaddon: BackSlot Addon 1.0.7
        balm-fabric: Balm 1.8.0+0
        bannerpp: Banner++ 2.0.3+mc.1.17-rc1
        bclib: BCLib 0.5.2
        bedbenefitsfabric: Bed Benefits 1.17.1-0.1.1
        betterend: Better End 0.12.3
        bettermineshafts: YUNG's Better Mineshafts 1.17-1.0.1
        betternether: Better Nether 5.1.3
        blue_endless_jankson: jankson 1.2.1
        boatcontainer: BoatContainer 1.0.3
        bountiful: Bountiful 1.0.0
        caelus: Caelus API 0.0.16-1.17
        cardinal-components-base: Cardinal Components API (base) 3.1.1
        cardinal-components-entity: Cardinal Components API (entities) 3.1.1
        chat_plus: Chat+ 2.1.5
        cloth-basic-math: cloth-basic-math 0.6.0
        cloth-config2: Cloth Config v5 5.1.40
        clumps: Clumps 7.0.10
        collective-fabric: Collective (Fabric) 1.64
        com_moandjiezana_toml_toml4j: toml4j 0.7.2
        comforts: Comforts 0.0.7-1.17.1
        copperarmorandtools: Copper Armor & Tools 1.4.5
        croptopia: Croptopia 1.6.3
        dripstone_fluid_lib: Dripstone Fluid Lib 1.0.0
        dual_riders: DualRiders 1.0.5
        dummmmmmy: MmmMmmMmmMmm 1.17-1.4.1
        dungeons_arise: When Dungeons Arise 2.1.47-fabric
        elytratrinket: Elytra Trinket 2.0.1-1.17
        enchant_giver: Enchant Giver 1.1.0
        enchantmentdescriptions: Enchantment Descriptions 4.0.1
        endrem: End Remastered 4.1.0
        entitybanners: Entity Banners 1.0.2-BETA+1.17
        fabric: Fabric API 0.42.1+1.17
        fabric-api-base: Fabric API Base 0.4.0+5847535018
        fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.3.1+5847535018
        fabric-biome-api-v1: Fabric Biome API (v1) 3.2.2+5847535018
        fabric-command-api-v1: Fabric Command API (v1) 1.1.4+5847535018
        fabric-commands-v0: Fabric Commands (v0) 0.2.3+5847535018
        fabric-containers-v0: Fabric Containers (v0) 0.1.13+5847535018
        fabric-content-registries-v0: Fabric Content Registries (v0) 0.3.1+5847535018
        fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.6+5847535018
        fabric-dimensions-v1: Fabric Dimensions API (v1) 2.0.13+5847535018
        fabric-entity-events-v1: Fabric Entity Events (v1) 1.3.1+5847535018
        fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.11+5847535018
        fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.2+5847535018
        fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.8+5847535018
        fabric-item-api-v1: Fabric Item API (v1) 1.2.5+5847535018
        fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.1+5847535018
        fabric-language-kotlin: Fabric Language Kotlin 1.6.5+kotlin.1.5.31
        fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.4.5+5847535018
        fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.5+5847535018
        fabric-mining-level-api-v1: Fabric Mining Level API (v1) 1.0.2+6d0fac4218
        fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.5+6d0fac4218
        fabric-networking-api-v1: Fabric Networking API (v1) 1.0.14+5847535018
        fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.12+5847535018
        fabric-networking-v0: Fabric Networking (v0) 0.3.3+5847535018
        fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.10.11+6d0fac4218
        fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.5+6d0fac4218
        fabric-particles-v1: Fabric Particles (v1) 0.2.5+5847535018
        fabric-permissions-api-v0: fabric-permissions-api 0.1-SNAPSHOT
        fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.7.13+5847535018
        fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.6+5847535018
        fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.2.1+6d0fac4218
        fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.9+5847535018
        fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.9+5847535018
        fabric-structure-api-v1: Fabric Structure API (v1) 1.1.14+5847535018
        fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.2.2+5847535018
        fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.3.1+eb76084f18
        fabric-transfer-api-v1: Fabric Transfer API (v1) 1.5.1+6d0fac4218
        fabricloader: Fabric Loader 0.12.5
        fiber: fiber 0.23.0-2
        flan: Flan 1.17.1-1.6.2
        flytre-lib-base: Flytre Lib - Base Module 1.3.0
        flytre-lib-compat: Flytre Lib - Compat Module 1.0.0
        flytre-lib-config: Flytre Lib - Config Module 1.1.0
        flytre-lib-event: Flytre Lib - Event Module 1.0.1
        flytre-lib-gui: Flytre Lib - GUI Module 1.0.0
        flytre-lib-storage: Flytre Lib - Storage Module 2.3.2
        flytre_lib: Flytre Lib 1.4.2
        hologram-api: Hologram API 0.2.1+1.17.1
        hookshot: Hookshot 22.0
        iceberg: Iceberg 1.0.23
        interactic: Interactic 0.1.6-1.17
        inventorysorter: Inventory Sorter 1.8.0-1.17
        jankson: Jankson 3.0.1+j1.2.0
        java: OpenJDK 64-Bit Server VM 16
        justplayerheads-fabric: Just Player Heads (Fabric) 1.8
        kambrik: Kambrik 1.1.0
        keeptherain: Keep The Rain! 0.2.0
        kyrptconfig: Kytpt Config 1.1.10-1.17
        levelz: LevelZ 1.0.15
        libgui: LibGui 4.1.6+1.17.1
        libninepatch: LibNinePatch 1.1.0
        lovely_snails: Lovely Snails 1.0.3+1.17
        maybe-data: Maybe data 1.0.1-1.17
        mcda: MC Dungeons Armors 1.7.15
        mcdar: MC Dungeons Artifacts 1.4.2
        mcdw: MC Dungeons Weapons 3.6.0
        milk_plus: Milk+ 1.2.1
        minecraft: Minecraft 1.17.1
        morebannerfeatures: More Banner Features 1.1.1
        morevillagers-fabric: MoreVillagersFabric 2.1.1-SNAPSHOT
        mostructures: Mo' Structures 1.3.0-pre1-1.17.1
        omega-config: OmegaConfig 1.0.8
        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
        packet_tweaker: Packet Tweaker 0.2.0+1.17.1
        placeholder-api: Placeholder API 1.1.1+1.17.1
        player-data-api: Player Data API 0.1.0+1.17.1
        polymer: Polymer 0.1.8+1.17.1
        quickspyglasser: Quick Spyglasser 0.3.0
        reach-entity-attributes: Reach Entity Attributes 2.1.1
        repurposed_structures: Repurposed Structures 2.5.7+1.17.1
        rotten: FleshZ 1.4.3
        roughlyenoughitems: Roughly Enough Items 6.2.335
        secondchance: Second Chance 1.2.0
        seedy-behavior: Seedy Behavior 1.0.2+1.17.1
        server_translations_api: Server Translations API 1.4.6+1.17
        sgui: SGui 1.0.0-rc4+1.17.1
        sit: Sit 1.17.1-13
        somnus: Somnus API 0.0.13-1.17.1
        sound_physics_remastered: Sound Physics Remastered 1.17.1-1.0.2
        static-content: Static Content 1.0.1-1.16.2
        staticdata: Static Data 1.1.2
        stoneholm: Stoneholm 1.3
        styled-nicknames: Styled Nicknames 1.0.0
        terralith: Terralith for Fabric 1.6.1
        travelersbackpack: Traveler's Backpack 1.17.1-6.0.0
        treeharvester-fabric: Tree Harvester (Fabric) 4.0
        trinkets: Trinkets 3.0.4
        universal-graves: Universal Graves 1.1.3+1.17.1
        villagernames: Villager Names 2.0.1
        voicechat: Simple Voice Chat 1.17.1-2.1.12
        waystones: Waystones 8.2.0+0
        wolveswitharmor: Wolves With Armor 1.6.1-1.17.1
        worldedit: WorldEdit 7.2.7+9f3e795
        xaerominimap: Xaero's Minimap 21.22.2
        xaeroworldmap: Xaero's World Map 1.15.0.1
        yungsapi: YUNG's API 1.17-Fabric-19
    Player Count: 3 / 100; [class_3222['Zeromega89'/374, l='ServerLevel[world]', x=-167.12, y=63.00, z=-663.82], class_3222['JayXReaper'/846, l='ServerLevel[world]', x=-596.91, y=60.00, z=-755.03], class_3222['KiddTheJuice'/3331, l='ServerLevel[world]', x=706.26, y=78.23, z=643.90]]
    Data Packs: vanilla, Fabric Mods, file/kiddocraft, file/VanillaTweaks_c944383.zip, file/afk display v1.1.0.zip, file/custom nether portals v2.3.2.zip, file/durability ping v1.1.0.zip, file/kill empty boats v1.1.1.zip, file/larger phantoms v1.2.1.zip, file/tag v2.1.0.zip, file/track raw statistics v1.5.0.zip, file/1.16_Datapack_ChainmailArmorCraft (incompatible)
    Is Modded: Definitely; Server brand changed to 'fabric'
    Type: Dedicated Server (map_server.txt)
DrexHD commented 2 years ago

Hello, Thanks for the detailed issue. I have just uploaded a commit that should fix the described issue. 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 issue.

Kind regards, Drex

kiddthejuice commented 2 years ago

Oh crap brother! I am just now seeing this, I checked your GitHub earlier but haven't been in my email today.

I actually did some testing with another mod and was able to get things working on my server with my set up that I have going. I will however try to test yours out when I get a chance to. At the moment I have things fixed with the current mod list but I appreciate you looking into the issue. When I bring my server back down for maintenance, I'll run your mod with it and test your new fix.

I apologize brother!

On Mon, Nov 22, 2021 at 3:21 PM Drex @.***> wrote:

Hello, Thanks for the detailed issue. I have just uploaded a commit that should fix the described issue. 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 https://github.com/DrexHD/AntiXray/actions/runs/1492166032 and test your issue.

Kind regards, Drex

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DrexHD/AntiXray/issues/11#issuecomment-975929490, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWTN6X673MQZWKIAR6SGBGDUNKX6JANCNFSM5IQE75TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Kind Regards, Matthew Hasley | KiddSisco Content Creator | Twitch Affiliate @.*** Twitter: @kiddsiscotv https://twitter.com/KiddSiscoTV Instagram: @kiddsiscotv https://instagram.com/KiddSiscoTV Facebook: KiddSisco TV https://www.facebook.com/kiddsiscotv/

kiddthejuice commented 2 years ago

DrexHD/AntiXray

Lovely news, just got through testing out the Anti-Xray with my modpack and it seems to be working great! I am not getting the lag I was previously. I am about to release this to the public and let the players test it out so fingers crossed! Thank you again!

On Mon, Nov 22, 2021 at 3:21 PM Drex @.***> wrote:

Hello, Thanks for the detailed issue. I have just uploaded a commit that should fix the described issue. 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 https://github.com/DrexHD/AntiXray/actions/runs/1492166032 and test your issue.

Kind regards, Drex

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DrexHD/AntiXray/issues/11#issuecomment-975929490, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWTN6X673MQZWKIAR6SGBGDUNKX6JANCNFSM5IQE75TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.