mrsterner / witchery

1 stars 0 forks source link

Sleeping causes the Game to crash #8

Closed Demonops closed 1 week ago

Demonops commented 1 week ago

Hello, I played the mod on Version 1.21.1 and noticed that whenever I sleep, the game crashes. At first I thought that it was maybe the shader, but I made a fresh modpack (version 1.21.1) with only "Just another Witchery Remake" and it still crashes so I am pretty shure that it is the mod. And it is also one of the problems stated in the Crash log. If you have any questions let me know.

Thank you for making this mod, I really love Witchery but only being able to play it in 1.7.10 is sometimes annoying, so, big thank you.

mrsterner commented 1 week ago

Ill fix it if you send the crashlog

mrsterner commented 1 week ago

Found the issue myself

Demonops commented 1 week ago

Here is my crashlog. In case it is somewhat different. And Thanks

---- Minecraft Crash Report ---- // Uh... Did I do that?

Time: 2024-11-13 20:24:42 Description: Exception ticking world

java.lang.IllegalStateException: stream has already been operated upon or closed at java.base/java.util.stream.AbstractPipeline.spliterator(Unknown Source) at java.base/java.util.stream.ReferencePipeline.iterator(Unknown Source) at knot//dev.sterner.witchery.handler.DreamWeaverHandler.onWake(DreamWeaverHandler.java:24) at knot//dev.sterner.witchery.Witchery$init$19.invoke(Witchery.java:126) at knot//dev.sterner.witchery.Witchery$init$19.invoke(Witchery.java:126) at knot//net.minecraft.class_1657.handler$bbi000$witchery$stopSleepInBed(class_1657.java:4920) at knot//net.minecraft.class_1657.method_7358(class_1657.java:1536) at knot//net.minecraft.class_3222.method_7358(class_3222.java:1073) at knot//net.minecraft.class_3218.method_18773(class_3218.java:462) at java.base/java.util.ArrayList.forEach(Unknown Source) at knot//net.minecraft.class_3218.method_23660(class_3218.java:461) at knot//net.minecraft.class_3218.method_18765(class_3218.java:322) at knot//net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:1021) at knot//net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:912) at knot//net.minecraft.class_1132.method_3748(class_1132.java:114) at knot//net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697) at knot//net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:281) 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 java.base/java.util.stream.AbstractPipeline.spliterator(Unknown Source) at java.base/java.util.stream.ReferencePipeline.iterator(Unknown Source) at knot//dev.sterner.witchery.handler.DreamWeaverHandler.onWake(DreamWeaverHandler.java:24) at knot//dev.sterner.witchery.Witchery$init$19.invoke(Witchery.java:126) at knot//dev.sterner.witchery.Witchery$init$19.invoke(Witchery.java:126) at knot//net.minecraft.class_1657.handler$bbi000$witchery$stopSleepInBed(class_1657.java:4920) at knot//net.minecraft.class_1657.method_7358(class_1657.java:1536) at knot//net.minecraft.class_3222.method_7358(class_3222.java:1073) at knot//net.minecraft.class_3218.method_18773(class_3218.java:462) at java.base/java.util.ArrayList.forEach(Unknown Source) at knot//net.minecraft.class_3218.method_23660(class_3218.java:461)

-- Affected level -- Details: All players: 1 total; [class_3222['{MINECRAFT_USERNAME}'/27, l='ServerLevel[New World]', x=77.50, y=96.00, z=104.50]] Chunk stats: 1663 Level dimension: minecraft:overworld Level spawn location: World: (80,96,112), Section: (at 0,0,0 in 5,6,7; chunk contains blocks 80,-64,112 to 95,319,127), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511) Level time: 476 game time, 24000 day time Level name: New World Level game mode: Game mode: creative (ID 1). Hardcore: false. Commands: true Level weather: Rain time: 132708 (now: false), thunder time: 132388 (now: false) Known server brands: fabric Removed feature flags: Level was modded: true Level storage version: 0x04ABD - Anvil Loaded entity count: 278 Stacktrace: at knot//net.minecraft.class_3218.method_8538(class_3218.java:1693) at knot//net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:1024) at knot//net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:912) at knot//net.minecraft.class_1132.method_3748(class_1132.java:114) at knot//net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697) at knot//net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:281) at java.base/java.lang.Thread.run(Unknown Source)

-- System Details -- Details: Minecraft Version: 1.21.1 Minecraft Version ID: 1.21.1 Operating System: Windows 11 (amd64) version 10.0 Java Version: 21.0.5, Azul Systems, Inc. Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Azul Systems, Inc. Memory: 195773600 bytes (186 MiB) / 843055104 bytes (804 MiB) up to 2147483648 bytes (2048 MiB) CPUs: 8 Processor Vendor: GenuineIntel Processor Name: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz Identifier: Intel64 Family 6 Model 158 Stepping 9 Microarchitecture: Kaby Lake Frequency (GHz): 4.20 Number of physical packages: 1 Number of physical CPUs: 4 Number of logical CPUs: 8 Graphics card #0 name: NVIDIA GeForce RTX 2060 SUPER Graphics card #0 vendor: NVIDIA Graphics card #0 VRAM (MiB): 8192.00 Graphics card #0 deviceId: VideoController1 Graphics card #0 versionInfo: 32.0.15.6614 Memory slot #0 capacity (MiB): 8192.00 Memory slot #0 clockSpeed (GHz): 2.13 Memory slot #0 type: DDR4 Memory slot #1 capacity (MiB): 8192.00 Memory slot #1 clockSpeed (GHz): 2.13 Memory slot #1 type: DDR4 Memory slot #2 capacity (MiB): 8192.00 Memory slot #2 clockSpeed (GHz): 2.13 Memory slot #2 type: DDR4 Memory slot #3 capacity (MiB): 8192.00 Memory slot #3 clockSpeed (GHz): 2.13 Memory slot #3 type: DDR4 Virtual memory max (MiB): 34776.38 Virtual memory used (MiB): 18016.64 Swap memory total (MiB): 2048.00 Swap memory used (MiB): 12.40 Space in storage for jna.tmpdir (MiB): available: 586384.75, total: 952982.00 Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): available: 586384.75, total: 952982.00 Space in storage for io.netty.native.workdir (MiB): available: 586384.75, total: 952982.00 Space in storage for java.io.tmpdir (MiB): available: 586384.75, total: 952982.00 Space in storage for workdir (MiB): available: 586384.75, total: 952982.00 JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2048M Fabric Mods: architectury: Architectury 13.0.8 fabric-api: Fabric API 0.108.0+1.21.1 fabric-api-base: Fabric API Base 0.4.42+6573ed8c19 fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.70+b559734419 fabric-biome-api-v1: Fabric Biome API (v1) 13.0.30+be1ed2d719 fabric-block-api-v1: Fabric Block API (v1) 1.0.22+0af3f5a719 fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.10+6573ed8c19 fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.52+0af3f5a719 fabric-client-tags-api-v1: Fabric Client Tags 1.1.15+6573ed8c19 fabric-command-api-v1: Fabric Command API (v1) 1.2.49+f71b366f19 fabric-command-api-v2: Fabric Command API (v2) 2.2.28+6ced4dd919 fabric-commands-v0: Fabric Commands (v0) 0.2.66+df3654b319 fabric-content-registries-v0: Fabric Content Registries (v0) 8.0.18+b559734419 fabric-convention-tags-v1: Fabric Convention Tags 2.1.2+7f945d5b19 fabric-convention-tags-v2: Fabric Convention Tags (v2) 2.9.2+e60e56d419 fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.29+0af3f5a719 fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.3.0+8e331c5719 fabric-data-generation-api-v1: Fabric Data Generation API (v1) 20.2.23+16c4ae2519 fabric-dimensions-v1: Fabric Dimensions API (v1) 4.0.0+6fc22b9919 fabric-entity-events-v1: Fabric Entity Events (v1) 1.7.0+2122d82819 fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.7.13+ba9dae0619 fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.53+6ced4dd919 fabric-item-api-v1: Fabric Item API (v1) 11.1.1+d5debaed19 fabric-item-group-api-v1: Fabric Item Group API (v1) 4.1.6+6823f7cd19 fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.47+0af3f5a719 fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.45+df3654b319 fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.5.0+01d9a51c19 fabric-loot-api-v2: Fabric Loot API (v2) 3.0.15+3f89f5a519 fabric-loot-api-v3: Fabric Loot API (v3) 1.0.3+3f89f5a519 fabric-message-api-v1: Fabric Message API (v1) 6.0.13+6573ed8c19 fabric-model-loading-api-v1: Fabric Model Loading API (v1) 2.0.0+fe474d6b19 fabric-networking-api-v1: Fabric Networking API (v1) 4.3.0+c7469b2119 fabric-object-builder-api-v1: Fabric Object Builder API (v1) 15.2.1+40875a9319 fabric-particles-v1: Fabric Particles (v1) 4.0.2+6573ed8c19 fabric-recipe-api-v1: Fabric Recipe API (v1) 5.0.13+6508971219 fabric-registry-sync-v0: Fabric Registry Sync (v0) 5.1.3+60c3209b19 fabric-renderer-api-v1: Fabric Renderer API (v1) 3.4.0+c705a49c19 fabric-renderer-indigo: Fabric Renderer - Indigo 1.7.0+c705a49c19 fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.68+df3654b319 fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.48+73761d2e19 fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.1.6+1daea21519 fabric-rendering-v0: Fabric Rendering (v0) 1.1.71+df3654b319 fabric-rendering-v1: Fabric Rendering (v1) 5.0.5+df16efd019 fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 4.3.0+8dc279b119 fabric-resource-loader-v0: Fabric Resource Loader (v0) 1.3.1+5b5275af19 fabric-screen-api-v1: Fabric Screen API (v1) 2.0.25+8b68f1c719 fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.87+b559734419 fabric-sound-api-v1: Fabric Sound API (v1) 1.0.23+6573ed8c19 fabric-transfer-api-v1: Fabric Transfer API (v1) 5.4.2+95bead5f19 fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 6.1.0+1daea21519 fabric-language-kotlin: Fabric Language Kotlin 1.12.3+kotlin.2.0.21 org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 2.0.21 org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 2.0.21 org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 2.0.21 org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 2.0.21 org_jetbrains_kotlinx_atomicfu-jvm: atomicfu-jvm 0.25.0 org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.9.0 org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.9.0 org_jetbrains_kotlinx_kotlinx-datetime-jvm: kotlinx-datetime-jvm 0.6.1 org_jetbrains_kotlinx_kotlinx-io-bytestring-jvm: kotlinx-io-bytestring-jvm 0.5.4 org_jetbrains_kotlinx_kotlinx-io-core-jvm: kotlinx-io-core-jvm 0.5.4 org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm: kotlinx-serialization-cbor-jvm 1.7.3 org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.7.3 org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.7.3 fabricloader: Fabric Loader 0.16.9 mixinextras: MixinExtras 0.4.1 java: OpenJDK 64-Bit Server VM 21 minecraft: Minecraft 1.21.1 modonomicon: Modonomicon unspecified fiber: fiber 0.23.0-2 org_commonmark_commonmark: commonmark 0.22.0 org_commonmark_commonmark-ext-gfm-strikethrough: commonmark-ext-gfm-strikethrough 0.22.0 org_commonmark_commonmark-ext-ins: commonmark-ext-ins 0.22.0 witchery: Witchery 0.1.2e mm: Manningham Mills 2.3 Server Running: true Player Count: 1 / 8; [class_3222['{MINECRAFT_USERNAME}'/27, l='ServerLevel[New World]', x=77.50, y=96.00, z=104.50]] Active Data Packs: vanilla, fabric, fabric-convention-tags-v2, modonomicon (incompatible), witchery Available Data Packs: bundle, fabric, fabric-convention-tags-v2, modonomicon (incompatible), trade_rebalance, vanilla, witchery Enabled Feature Flags: minecraft:vanilla World Generation: Experimental World Seed: 6050226142764357225 Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fabric'; Server brand changed to 'fabric' Launched Version: 1.21.1