WearBlackAllDay / DimensionalThreading

An attempt to optimize the fabric server, by assigning each dimension their own thread.
MIT License
255 stars 22 forks source link

Something wrong here? #58

Open GoodDay360 opened 2 years ago

GoodDay360 commented 2 years ago
---- Minecraft Crash Report ----
// You're mean.

Time: 3/12/22, 5:01 PM
Description: Ticking entity

java.lang.ClassCastException

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

-- Head --
Thread: Server thread
Stacktrace:
    at net.minecraft.class_1937.method_18472(class_1937.java:490)

-- Entity being ticked --
Details:
    Entity Type: minecraft:enderman (net.minecraft.class_1560)
    Entity ID: 467
    Entity Name: Enderman
    Entity's Exact location: 43.76, 71.00, -12.77
    Entity's Block location: World: (43,71,-13), Section: (at 11,7,3 in 2,4,-1; chunk contains blocks 32,0,-16 to 47,255,-1), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,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:490)
    at net.minecraft.class_3218.method_31420(class_3218.java:360)
    at net.minecraft.class_5574.method_31791(class_5574.java:54)
    at net.minecraft.class_3218.method_18765(class_3218.java:328)
    at net.minecraft.server.MinecraftServer.md124137$lambda$tickWorlds$0$3(MinecraftServer.java:3286)
    at wearblackallday.dimthread.DimThread.swapThreadsAndRun(DimThread.java:34)
    at net.minecraft.server.MinecraftServer.md124137$lambda$tickWorlds$1$2(MinecraftServer.java:3284)
    at wearblackallday.util.ThreadPool.lambda$execute$1(ThreadPool.java:49)
    at wearblackallday.util.ThreadPool.lambda$execute$0(ThreadPool.java:43)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)

-- Affected level --
Details:
    All players: 1 total; [class_3222['BloodyInside'/119, l='ServerLevel[Data_Harder_Ender_Dragon]', x=5.72, y=74.00, z=-12.07]]
    Chunk stats: 2005
    Level dimension: minecraft:the_end
    Derived: true
    Level spawn location: World: (0,-60,0), Section: (at 0,4,0 in 0,-4,0; chunk contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 3431 game time, 3431 day time
    Level name: Data_Harder_Ender_Dragon
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
    Level weather: Rain time: 29143 (now: false), thunder time: 112809 (now: false)
    Known server brands: fabric
    Level was modded: true
    Level storage version: 0x04ABD - Anvil

-- System Details --
Details:
    Minecraft Version: 1.18.1
    Minecraft Version ID: 1.18.1
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 17.0.1, Microsoft
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
    Memory: 3390567456 bytes (3233 MiB) / 5335154688 bytes (5088 MiB) up to 5335154688 bytes (5088 MiB)
    CPUs: 4
    Processor Vendor: GenuineIntel
    Processor Name: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
    Identifier: Intel64 Family 6 Model 142 Stepping 9
    Microarchitecture: Amber Lake
    Frequency (GHz): 2.71
    Number of physical packages: 1
    Number of physical CPUs: 2
    Number of logical CPUs: 4
    Graphics card #0 name: Radeon (TM) R7 M445
    Graphics card #0 vendor: Advanced Micro Devices, Inc. (0x1002)
    Graphics card #0 VRAM (MB): 2048.00
    Graphics card #0 deviceId: 0x6900
    Graphics card #0 versionInfo: DriverVersion=27.20.20904.4000
    Graphics card #1 name: Intel(R) HD Graphics 620
    Graphics card #1 vendor: Intel Corporation (0x8086)
    Graphics card #1 VRAM (MB): 1024.00
    Graphics card #1 deviceId: 0x5916
    Graphics card #1 versionInfo: DriverVersion=27.20.100.9664
    Memory slot #0 capacity (MB): 4096.00
    Memory slot #0 clockSpeed (GHz): 2.40
    Memory slot #0 type: DDR4
    Memory slot #1 capacity (MB): 4096.00
    Memory slot #1 clockSpeed (GHz): 2.67
    Memory slot #1 type: DDR4
    Virtual memory max (MB): 18261.19
    Virtual memory used (MB): 14898.65
    Swap memory total (MB): 10170.55
    Swap memory used (MB): 1243.30
    JVM Flags: 10 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmn128M -Xmx5057M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    Fabric Mods: 
        advanced_runtime_resource_pack: Runtime Resource Pack 0.2.9
        advancednetherite: Advanced Netherite 1.4.0-1.18.1
        adventurez: AdventureZ 1.4.7
        amecsapi: Amecs API 1.3.3+mc1.18-pre1
        arcanus: Arcanus 1.27
        architectury: Architectury 3.7.31
        axolotlitemfix: Axolotl Item Fix 1.1.3
        balm-fabric: Balm 2.4.3+0
        bcdt_expansion: BCDT Expansion 1.18.1-1.1.1
        bclib: BCLib 1.3.5
        bedbenefitsfabric: Bed Benefits 1.18-0.1.0
        betterend: Better End 1.0.3
        betternether: Better Nether 6.0.11
        blue_endless_jankson: jankson 1.2.1
        boatcontainer: BoatContainer 1.0.4
        caffeineconfig: CaffeineConfig 1.0.0
        cardinal-components-base: Cardinal Components API (base) 4.1.3
        cardinal-components-entity: Cardinal Components API (entities) 4.1.3
        carrier: Carrier 1.9.1
        cloth-basic-math: cloth-basic-math 0.6.0
        cloth-config: Cloth Config v6 6.2.57
        clumps: Clumps 8.0.0+5
        coat: Coat 1.0.0-beta.15
        collective-fabric: Collective (Fabric) 4.9
        com_electronwill_night-config_core: core 3.6.3
        com_electronwill_night-config_toml: toml 3.6.3
        com_eliotlash_mclib_mclib: mclib 18
        com_eliotlash_molang_molang: molang 18
        com_github_wearblackallday_javautils: JavaUtils bd58640372
        comforts: Comforts 1.0.1-1.18.1
        copperequipment: Copper Equipment 1.8.2
        cosmetica: Cosmetica 0.3.2
        crowdin-translate: CrowdinTranslate 1.4+1.18
        dark-enchanting: Dark Enchanting 0.6.2+1.18
        dimthread: DimensionalThreading 1.2.6
        dual_riders: DualRiders 1.0.5
        dungeons_arise: When Dungeons Arise 2.1.49b-fabric
        easymagic: Easy Magic 3.2.1
        effective: Effective 1.1
        eldritch_mobs: Eldritch Mobs 1.10.2
        enchant_giver: Enchant Giver 1.1.0
        enchantinginfuser: Enchanting Infuser 3.1.1
        enchantment_lore: Enchantment Lore 1.2.4+MC1.18-1.18.1
        enhancedcelestials: Enhanced Celestials 2.0.6
        expandedstorage: Expanded Storage 7.3.4
        fabric: Fabric API 0.46.4+1.18
        fabric-api-base: Fabric API Base 0.4.2+d7c144a865
        fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.5.3+d7c144a865
        fabric-biome-api-v1: Fabric Biome API (v1) 6.0.2+d7c144a865
        fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.10+3ac43d9565
        fabric-command-api-v1: Fabric Command API (v1) 1.1.7+d7c144a865
        fabric-commands-v0: Fabric Commands (v0) 0.2.6+b4f4f6cd65
        fabric-containers-v0: Fabric Containers (v0) 0.1.19+d7c144a865
        fabric-content-registries-v0: Fabric Content Registries (v0) 0.4.8+d7c144a865
        fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.9+3ac43d9565
        fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.10+a1d9bbf565
        fabric-entity-events-v1: Fabric Entity Events (v1) 1.4.6+d7c144a865
        fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.17+d7c144a865
        fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.9+d7c144a865
        fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.11+d7c144a865
        fabric-item-api-v1: Fabric Item API (v1) 1.3.1+691a79b565
        fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.6+3ac43d9565
        fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.9+d7c144a865
        fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.7+b4f4f6cd65
        fabric-language-kotlin: Fabric Language Kotlin 1.7.1+kotlin.1.6.10
        fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.4.13+713c266865
        fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.9+d7c144a865
        fabric-mining-level-api-v1: Fabric Mining Level API (v1) 1.0.6+d7c144a865
        fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.11+b4f4f6cd65
        fabric-models-v0: Fabric Models (v0) 0.3.4+d7c144a865
        fabric-networking-api-v1: Fabric Networking API (v1) 1.0.19+d7c144a865
        fabric-networking-v0: Fabric Networking (v0) 0.3.6+b4f4f6cd65
        fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.11.4+d7c144a865
        fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.12+d7c144a865
        fabric-particles-v1: Fabric Particles (v1) 0.2.10+526dc1ac65
        fabric-permissions-api-v0: fabric-permissions-api 0.1-SNAPSHOT
        fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.9.2+ad01bfbd65
        fabric-renderer-api-v1: Fabric Renderer API (v1) 0.4.11+b0b66fc365
        fabric-renderer-indigo: Fabric Renderer - Indigo 0.4.15+6825030165
        fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.10+b4f4f6cd65
        fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.5+d7c144a865
        fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.1.19+3ac43d9565
        fabric-rendering-v0: Fabric Rendering (v0) 1.1.12+b4f4f6cd65
        fabric-rendering-v1: Fabric Rendering (v1) 1.10.6+713c266865
        fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 1.0.2+d7c144a865
        fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.14+713c266865
        fabric-screen-api-v1: Fabric Screen API (v1) 1.0.8+d7c144a865
        fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.12+d7c144a865
        fabric-structure-api-v1: Fabric Structure API (v1) 2.1.3+d7c144a865
        fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.2.8+d7c144a865
        fabric-textures-v0: Fabric Textures (v0) 1.0.10+3ac43d9565
        fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.3.8+fb3b57b465
        fabric-transfer-api-v1: Fabric Transfer API (v1) 1.5.9+d7c144a865
        fabricenchantments: Fabric Enchantments 0.7.0
        fabricloader: Fabric Loader 0.13.3
        farmingforblockheads: Farming for Blockheads 9.0.3
        feature_nbt_deadlock_be_gone: Feature NBT Deadlock Be Gone - Fabric 1.0.1+1.18.1
        ferritecore: FerriteCore 4.0.0
        fiber: fiber 0.23.0-2
        forgeconfigapiport: Forge Config API Port 3.1.1
        friendsandfoes: Friends&Foes 1.2.4
        furnacerecycle-fabric: Furnace Recycle (Fabric) 1.0
        geckolib3: Geckolib 3.0.32
        goosik-config: goosik-config 0.2.0
        guild: Guild 0.3.8
        hologram-api: Hologram API 0.2.1+1.18-pre5
        hookshot: Hookshot 24.0
        hwg: Happiness is a Warm Gun 1.1.0
        illuminations: Illuminations 1.10.2
        iris: Iris 1.2.0-pre
        jankson: Jankson 4.0.0+j1.2.0
        java: OpenJDK 64-Bit Server VM 17
        lambdynlights: LambDynamicLights 2.1.0+1.17
        libgui: LibGui 5.1.0+1.18
        libninepatch: LibNinePatch 1.1.0
        libzoomer: LibZoomer 0.3.0+1.17.1
        lithium: Lithium 0.7.7
        lovely_snails: Lovely Snails 1.0.3+1.18
        mavm: More Axolotl Variants Mod 1.0.7a
        mcda: MC Dungeons Armors 2.0.0
        mcdw: MC Dungeons Weapons 4.0.4
        minecraft: Minecraft 1.18.1
        modmenu: Mod Menu 3.0.1
        more-axolotls: More Axolotls 1.0.2
        morevillagers-fabric: MoreVillagersFabric 3.1.1-SNAPSHOT
        mostructures: Mo' Structures 1.3.0-pre1+1.18
        mousewheelie: Mouse Wheelie 1.8.0+mc1.18-pre5
        mythic-mounts: Mythic Mounts 1.18-4.0
        ninjaphenix_container_lib: NinjaPhenix's Container Library 1.2.10
        no_null_processors: No Null Processors - Fabric 2.0.1+1.18.1
        nukes: Nukes 1.0.1
        okzoomer: Ok Zoomer 5.0.0-beta.3+1.17.1
        omega-config: OmegaConfig 1.2.2-1.18.1
        org_anarres_jcpp: jcpp 1.4.14
        org_aperlambda_lambdajcommon: lambdajcommon 1.8.1
        org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.6.10
        org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.6.10
        org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.6.10
        org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.6.10
        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-cbor-jvm: kotlinx-serialization-cbor-jvm 1.3.1
        org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.3.1
        org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.3.1
        org_joml_joml: joml 1.10.2
        org_quiltmc_quilt-json5: quilt-json5 1.0.0
        org_slf4j_slf4j-api: slf4j-api 1.7.12
        packet_tweaker: Packet Tweaker 0.2.0+1.18-pre1
        phosphor: Phosphor 0.8.1
        pickupnotifier: Pick Up Notifier 3.1.0
        placeholder-api: Placeholder API 1.1.3+1.17.1
        polymer: Polymer (Core) 0.2.0-beta.21+1.18.1
        polymer-legacy: Polymer (Compatibility) 0.1.9+0.2.0-beta.21+1.18.1
        pride: Pride Lib 1.1.0+1.17
        puzzleslib: Puzzles Lib 3.2.0
        ratsmischief: Rat's Mischief 1.3.4
        reach-entity-attributes: Reach Entity Attributes 2.1.1
        repurposed_structures: Repurposed Structures 3.3.6+1.18.1
        roughlyenoughitems: Roughly Enough Items 7.3.443
        seasons: Fabric Seasons 1.3-BETA+1.18
        server_translations_api: Server Translations API 1.4.8+1.18-pre1
        sgui: sgui 1.0.0-rc6+1.18-pre5
        simple_backpack: SimpleBackpack 1.2.29
        sit: Sit 1.18.1-16
        sodium: Sodium 0.4.0-alpha6+build.14
        sodium-extra: Sodium Extra 0.3.9
        sound_physics_remastered: Sound Physics Remastered 1.18.1-1.0.4
        spruceui: SpruceUI 3.3.0+1.17
        terra: Terra 6.0.0-BETA+2a4e6830
        terrarianslimes: Terrarian Slimes 1.1-BETA+1.18
        tinyskeletons: Tiny Skeletons 3.1.0
        tlskincape: TLSkinCape 1.18.1-1.24
        towers_of_the_wild_reworked: Towers of the Wild: Reworked 2.1.1
        tweed4_annotated: tweed4_annotated 1.2.0
        tweed4_base: tweed4_base 1.3.1
        tweed4_data: tweed4_data 1.2.0
        tweed4_data_hjson: tweed4_data_hjson 1.1.0
        tweed4_tailor_coat: tweed4_tailor_coat 1.0.2
        tweed4_tailor_screen: tweed4_tailor_screen 1.0.2
        universal-graves: Universal Graves 2.0.0-rc.1+1.18.1
        visuality: Visuality 0.4.0
        visualworkbench: Visual Workbench 3.1.0
        wandering_collector: Wandering Collector 1.1.1+mc1.18.1
        waystones: Waystones 2.4.0
    Server Running: true
    Player Count: 1 / 8; [class_3222['BloodyInside'/119, l='ServerLevel[Data_Harder_Ender_Dragon]', x=5.72, y=74.00, z=-12.07]]
    Data Packs: vanilla, file/better-ender-dragon-datapack-v3-0.zip, file/hard-ender-dragon-ex-2-6-2-16-1-18.zip, Fabric Mods
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fabric'; Server brand changed to 'fabric'