WearBlackAllDay / DimensionalThreading

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

1.18 server crash "Exception ticking world" #47

Open WhiteBrownie opened 2 years ago

WhiteBrownie commented 2 years ago

Unfortunately I don't really have to add anything besides the crash report, as I dind't notice anything weird apart from the crash itself edit: list of installed mods: image

---- Minecraft Crash Report ---- // Ooh. Shiny.

Time: 12/6/21, 11:27 AM Description: Exception ticking world

java.lang.NullPointerException: Cannot invoke "it.unimi.dsi.fastutil.longs.LongArrayList.getLong(int)" because "this.wrapped" is null at it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap$MapIterator.nextEntry(Long2ObjectOpenHashMap.java:704) at it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap$FastEntryIterator.next(Long2ObjectOpenHashMap.java:822) at it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap$FastEntryIterator.next(Long2ObjectOpenHashMap.java:816) at net.minecraft.class_3204.method_14045(class_3204.java:3047) at net.minecraft.class_3215.method_12127(class_3215.java:322) at net.minecraft.class_3218.method_18765(class_3218.java:305) at net.minecraft.server.MinecraftServer.md82e9e8$lambda$tickWorlds$0$4(MinecraftServer.java:6786) at wearblackallday.dimthread.DimThread.swapThreadsAndRun(DimThread.java:34) at net.minecraft.server.MinecraftServer.md82e9e8$lambda$tickWorlds$1$3(MinecraftServer.java:6784) 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(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 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:

-- Head -- Thread: Server thread Stacktrace: at it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap$MapIterator.nextEntry(Long2ObjectOpenHashMap.java:704) at it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap$FastEntryIterator.next(Long2ObjectOpenHashMap.java:822) at it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap$FastEntryIterator.next(Long2ObjectOpenHashMap.java:816) at net.minecraft.class_3204.method_14045(class_3204.java:3047) at net.minecraft.class_3215.method_12127(class_3215.java:322)

-- Affected level -- Details: All players: 1 total; [class_3222['PLAYER'/7145, l='ServerLevel[server_world]', x=66.17, y=128.00, z=170.11]] Chunk stats: 4489 Level dimension: minecraft:the_nether Derived: true Level spawn location: World: (-1,68,-1), Section: (at 15,4,15 in -1,4,-1; chunk contains blocks -16,0,-16 to -1,255,-1), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1) Level time: 6693354 game time, 5984854 day time Level name: server_world Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false Level weather: Rain time: 88661 (now: false), thunder time: 38361 (now: false) Known server brands: fabric Level was modded: true Level storage version: 0x04ABD - Anvil Stacktrace: at wearblackallday.dimthread.util.CrashInfo.crash(CrashInfo.java:11) at net.minecraft.server.MinecraftServer.handler$bil000$tickWorlds(MinecraftServer.java:6796) at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:868) at net.minecraft.class_3176.method_3813(class_3176.java:324) at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:823) at net.minecraft.server.MinecraftServer.handler$zbe000$modifiedRunLoop(MinecraftServer.java:2856) at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:663) at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270) at java.base/java.lang.Thread.run(Unknown Source)

-- System Details -- Details: Minecraft Version: 1.18 Minecraft Version ID: 1.18 Operating System: Linux (amd64) version 4.19.0-17-amd64 Java Version: 17, AdoptOpenJDK Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), AdoptOpenJDK Memory: 1463437480 bytes (1395 MiB) / 3816816640 bytes (3640 MiB) up to 8589934592 bytes (8192 MiB) CPUs: 2 Processor Vendor: AuthenticAMD Processor Name: Common KVM processor Identifier: AuthenticAMD Family 15 Model 6 Stepping 1 Microarchitecture: K8 / Hammer Frequency (GHz): -0.00 Number of physical packages: 1 Number of physical CPUs: 12 Number of logical CPUs: 12 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): 40916.22 Virtual memory used (MB): 59275.47 Swap memory total (MB): 8703.99 Swap memory used (MB): 8477.61 JVM Flags: 20 total; -Xms128M -Xmx8192M -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: carpet: Carpet Mod 1.4.56 carpet-extra: Carpet Extra 1.4.56 carpet-tis-addition: Carpet TIS Addition 1.26.0 chunky: Chunky 1.2.153 cloth-basic-math: cloth-basic-math 0.6.0 cloth-config: Cloth Config v6 6.0.43 collective-fabric: Collective (Fabric) 3.9 com_electronwill_night-config_core: core 3.6.4 com_electronwill_night-config_toml: toml 3.6.4 com_github_wearblackallday_javautils: JavaUtils bd58640372 com_velocitypowered_velocity-native: velocity-native 1.1.0-SNAPSHOT dimthread: DimensionalThreading 1.2.6 dynmap: Dynmap 3.3-SNAPSHOT fabric: Fabric API 0.43.1+1.18 fabric-api-base: Fabric API Base 0.4.1+b4f4f6cd14 fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.3.5+3ac43d9514 fabric-biome-api-v1: Fabric Biome API (v1) 6.0.1+3ac43d9514 fabric-command-api-v1: Fabric Command API (v1) 1.1.6+3ac43d9514 fabric-commands-v0: Fabric Commands (v0) 0.2.5+b4f4f6cd14 fabric-containers-v0: Fabric Containers (v0) 0.1.18+d154e2c614 fabric-content-registries-v0: Fabric Content Registries (v0) 0.4.5+6f53a73d14 fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.8+3ac43d9514 fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.7+43d2957114 fabric-entity-events-v1: Fabric Entity Events (v1) 1.4.5+6b21378a14 fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.15+3ac43d9514 fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.5+b4f4f6cd14 fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.10+3ac43d9514 fabric-item-api-v1: Fabric Item API (v1) 1.2.7+3ac43d9514 fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.3+3ac43d9514 fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.4.10+c15ca33514 fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.8+3ac43d9514 fabric-mining-level-api-v1: Fabric Mining Level API (v1) 1.0.3+3ac43d9514 fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.7+b4f4f6cd14 fabric-networking-api-v1: Fabric Networking API (v1) 1.0.18+3ac43d9514 fabric-networking-v0: Fabric Networking (v0) 0.3.5+b4f4f6cd14 fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.10.13+3ac43d9514 fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.7+3ac43d9514 fabric-particles-v1: Fabric Particles (v1) 0.2.9+526dc1ac14 fabric-permissions-api-v0: fabric-permissions-api 0.1-SNAPSHOT fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.8.5+3ac43d9514 fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.3+d154e2c614 fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.1.18+3ac43d9514 fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.11+3ac43d9514 fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.11+3ac43d9514 fabric-structure-api-v1: Fabric Structure API (v1) 2.0.8+295197a714 fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.2.5+3ac43d9514 fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.3.4+7de09f5514 fabric-transfer-api-v1: Fabric Transfer API (v1) 1.5.4+b4f4f6cd14 fabricloader: Fabric Loader 0.12.8 ferritecore: FerriteCore 4.0.0 fiber: fiber 0.23.0-2 glowingbanners: Glow Banners 1.1.0 hologram-api: Hologram API 0.2.1+1.18-pre5 hydrogen: Hydrogen 0.3-SNAPSHOT java: OpenJDK 64-Bit Server VM 17 krypton: Krypton 0.1.5 lazydfu: LazyDFU 0.1.2 lenientstacksize: Lenient Stack Size 1.2.0 lithium: Lithium 0.7.6-rc1 luckperms: LuckPerms 5.3.85 minecraft: Minecraft 1.18 omega-config: OmegaConfig 1.0.8 org_yaml_snakeyaml: snakeyaml 1.29 packet_tweaker: Packet Tweaker 0.2.0+1.18-pre1 phosphor: Phosphor 0.7.2 placeholder-api: Placeholder API 1.1.3+1.17.1 polymer: Polymer 0.2.0-beta.5+1.18-rc3 polymer-legacy: Polymer (Compatibility) 0.1.9+0.2.0-beta.5+1.18-rc3 repurposed_structures: Repurposed Structures 3.1.1+1.18-rc3 server_translations_api: Server Translations API 1.4.8+1.18-pre1 servercore-fabric: ServerCore-Fabric 1.2.5-1.18 sgui: sgui 1.0.0-rc6+1.18-pre5 sign_editor: Better Signs & Frames 0.8.3 spark: spark 1.6.3 treeharvester-fabric: Tree Harvester (Fabric) 4.1 universal-graves: Universal Graves 1.2.1+1.18 voicechat: Simple Voice Chat 1.18-2.1.16 Server Running: true Player Count: 1 / 40; [class_3222['PLAYER'/7145, l='ServerLevel[server_world]', x=66.17, y=128.00, z=170.11]] Data Packs: vanilla, Fabric Mods, file/afk display v1.1.2.zip, file/armor statues v2.8.3.zip, file/cauldron concrete v2.0.5.zip, file/count mob deaths v1.1.2.zip, file/custom nether portals v2.3.4.zip, file/double shulker shells v1.3.2.zip, file/fast leaf decay v2.0.5.zip, file/kill empty boats v1.1.3.zip, file/more mob heads v2.9.3.zip, file/nether portal coords v1.1.2.zip, file/player head drops v1.1.2.zip, file/silence mobs v1.1.2.zip, file/track raw statistics v1.5.1.zip, file/track statistics v1.1.2.zip, file/unlock all recipes v2.0.3.zip, file/villager death messages v1.2.3.zip, file/villager workstation highlights v1.1.2.zip, file/wandering trades v1.5.1.zip, file/xp management v1.1.2.zip, file/VanillaTweaks_c113459.zip Is Modded: Definitely; Server brand changed to 'fabric' Type: Dedicated Server (map_server.txt)