Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client crash when leaving singleplayer world after having been in Carpet server #1908

Open
wifi-left opened this issue May 2, 2024 · 9 comments · May be fixed by #1913
Open

Client crash when leaving singleplayer world after having been in Carpet server #1908

wifi-left opened this issue May 2, 2024 · 9 comments · May be fixed by #1913
Labels
bug Something isn't working

Comments

@wifi-left
Copy link

wifi-left commented May 2, 2024

Version: fabric-carpet-1.20.6-1.4.141+v240429
Logs are here:

[22:10:23] [Server thread/INFO]: Saving and pausing game...
[22:10:23] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:overworld
[22:10:23] [Render thread/ERROR]: Reported exception thrown!
net.minecraft.class_148: mouseClicked event handler
	at net.minecraft.class_437.method_25412(class_437.java:472) ~[client-intermediary.jar:?]
	at net.minecraft.class_312.method_1601(class_312.java:101) ~[client-intermediary.jar:?]
	at net.minecraft.class_312.method_22686(class_312.java:186) ~[client-intermediary.jar:?]
	at net.minecraft.class_1255.execute(class_1255.java:108) ~[client-intermediary.jar:?]
	at net.minecraft.class_312.redirect$cnh001$viafabricplus$storeEvent(class_312.java:1557) ~[client-intermediary.jar:?]
	at net.minecraft.class_312.method_22684(class_312.java:186) ~[client-intermediary.jar:?]
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43) ~[lwjgl-glfw-3.3.3.jar:?]
	at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.3.3.jar:?]
	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3509) ~[lwjgl-glfw-3.3.3.jar:?]
	at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:236) ~[client-intermediary.jar:?]
	at net.minecraft.class_310.method_1523(class_310.java:1345) ~[client-intermediary.jar:?]
	at net.minecraft.class_310.method_1514(class_310.java:888) [client-intermediary.jar:?]
	at net.minecraft.client.main.Main.main(Main.java:265) [client-intermediary.jar:?]
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) [fabric-loader-0.15.10.jar:?]
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.15.10.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.15.10.jar:?]
Caused by: java.lang.NullPointerException: Cannot invoke "carpet.fakes.MinecraftServerInterface.getScriptServer()" because "server" is null
	at carpet.script.external.Vanilla.MinecraftServer_getScriptServer(Vanilla.java:163) ~[fabric-carpet-1.20.6-1.4.141+v240429.jar:?]
	at carpet.CarpetServer.onServerClosed(CarpetServer.java:183) ~[fabric-carpet-1.20.6-1.4.141+v240429.jar:?]
	at carpet.network.CarpetClient.disconnect(CarpetClient.java:61) ~[fabric-carpet-1.20.6-1.4.141+v240429.jar:?]
	at net.minecraft.class_310.handler$zhp000$carpet$onCloseGame(class_310.java:3730) ~[client-intermediary.jar:?]
	at net.minecraft.class_310.method_56134(class_310.java) ~[client-intermediary.jar:?]
	at net.minecraft.class_433.method_47632(class_433.java:117) ~[client-intermediary.jar:?]
	at net.minecraft.class_7574.method_46552(class_7574.java:52) ~[client-intermediary.jar:?]
	at net.minecraft.class_433.method_19836(class_433.java:100) ~[client-intermediary.jar:?]
	at net.minecraft.class_4185.method_25306(class_4185.java:96) ~[client-intermediary.jar:?]
	at net.minecraft.class_4264.method_25348(class_4264.java:48) ~[client-intermediary.jar:?]
	at net.minecraft.class_339.method_25402(class_339.java:141) ~[client-intermediary.jar:?]
	at net.minecraft.class_4069.method_25402(class_4069.java:38) ~[client-intermediary.jar:?]
	at net.minecraft.class_312.method_1611(class_312.java:101) ~[client-intermediary.jar:?]
	at net.minecraft.class_437.method_25412(class_437.java:467) ~[client-intermediary.jar:?]
	... 15 more
[22:10:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:dropperworld
[22:10:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:killerworld
[22:10:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:hungerworld
[22:10:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:lobby
[22:10:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:bedwars_backup
[22:10:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:parkourworld
[22:10:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:boatworld2
[22:10:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:airworld
[22:10:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:golfworld
[22:10:24] [Server thread/INFO]: Stopping server
[22:10:24] [Server thread/INFO]: Saving players
[22:10:24] [Server thread/INFO]: wifi_right lost connection: Connection reset
[22:10:24] [Server thread/INFO]: §b§7Lobby §8| §7wifi_right left the game
[22:10:24] [Server thread/INFO]: Stopping singleplayer server as player logged out
[22:10:24] [Server thread/INFO]: Saving worlds
[22:10:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:overworld
[22:10:25] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:dropperworld
[22:10:25] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:killerworld
[22:10:25] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:hungerworld
[22:10:25] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:lobby
[22:10:25] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:bedwars_backup
[22:10:25] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:parkourworld
[22:10:25] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:boatworld2
[22:10:25] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:airworld
[22:10:25] [Server thread/INFO]: Saving chunks for level 'ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]'/minecraft:golfworld
[22:10:25] [Server thread/INFO]: ThreadedAnvilChunkStorage (MiniGames): All chunks are saved
[22:10:25] [Server thread/INFO]: ThreadedAnvilChunkStorage (dropperworld): All chunks are saved
[22:10:25] [Server thread/INFO]: ThreadedAnvilChunkStorage (killerworld): All chunks are saved
[22:10:25] [Server thread/INFO]: ThreadedAnvilChunkStorage (hungerworld): All chunks are saved
[22:10:25] [Server thread/INFO]: ThreadedAnvilChunkStorage (lobby): All chunks are saved
[22:10:25] [Server thread/INFO]: ThreadedAnvilChunkStorage (bedwars_backup): All chunks are saved
[22:10:25] [Server thread/INFO]: ThreadedAnvilChunkStorage (parkourworld): All chunks are saved
[22:10:25] [Server thread/INFO]: ThreadedAnvilChunkStorage (boatworld2): All chunks are saved
[22:10:25] [Server thread/INFO]: ThreadedAnvilChunkStorage (airworld): All chunks are saved
[22:10:25] [Server thread/INFO]: ThreadedAnvilChunkStorage (golfworld): All chunks are saved
[22:10:25] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
[22:10:25] [Render thread/INFO]: Stopping worker threads

---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 2024-05-02 22:10:26
Description: mouseClicked event handler

java.lang.NullPointerException: Cannot invoke "carpet.fakes.MinecraftServerInterface.getScriptServer()" because "server" is null
	at carpet.script.external.Vanilla.MinecraftServer_getScriptServer(Vanilla.java:163)
	at carpet.CarpetServer.onServerClosed(CarpetServer.java:183)
	at carpet.network.CarpetClient.disconnect(CarpetClient.java:61)
	at net.minecraft.class_310.handler$zhp000$carpet$onCloseGame(class_310.java:3730)
	at net.minecraft.class_310.method_56134(class_310.java)
	at net.minecraft.class_433.method_47632(class_433.java:117)
	at net.minecraft.class_7574.method_46552(class_7574.java:52)
	at net.minecraft.class_433.method_19836(class_433.java:100)
	at net.minecraft.class_4185.method_25306(class_4185.java:96)
	at net.minecraft.class_4264.method_25348(class_4264.java:48)
	at net.minecraft.class_339.method_25402(class_339.java:141)
	at net.minecraft.class_4069.method_25402(class_4069.java:38)
	at net.minecraft.class_312.method_1611(class_312.java:101)
	at net.minecraft.class_437.method_25412(class_437.java:467)
	at net.minecraft.class_312.method_1601(class_312.java:101)
	at net.minecraft.class_312.method_22686(class_312.java:186)
	at net.minecraft.class_1255.execute(class_1255.java:108)
	at net.minecraft.class_312.redirect$cnh001$viafabricplus$storeEvent(class_312.java:1557)
	at net.minecraft.class_312.method_22684(class_312.java:186)
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3509)
	at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:236)
	at net.minecraft.class_310.method_1523(class_310.java:1345)
	at net.minecraft.class_310.method_1514(class_310.java:888)
	at net.minecraft.client.main.Main.main(Main.java:265)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)


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

-- Head --
Thread: Render thread
Stacktrace:
	at carpet.script.external.Vanilla.MinecraftServer_getScriptServer(Vanilla.java:163)
	at carpet.CarpetServer.onServerClosed(CarpetServer.java:183)
	at carpet.network.CarpetClient.disconnect(CarpetClient.java:61)
	at net.minecraft.class_310.handler$zhp000$carpet$onCloseGame(class_310.java:3730)
	at net.minecraft.class_310.method_56134(class_310.java)
	at net.minecraft.class_433.method_47632(class_433.java:117)
	at net.minecraft.class_7574.method_46552(class_7574.java:52)
	at net.minecraft.class_433.method_19836(class_433.java:100)
	at net.minecraft.class_4185.method_25306(class_4185.java:96)
	at net.minecraft.class_4264.method_25348(class_4264.java:48)
	at net.minecraft.class_339.method_25402(class_339.java:141)
	at net.minecraft.class_4069.method_25402(class_4069.java:38)
	at net.minecraft.class_312.method_1611(class_312.java:101)
	at net.minecraft.class_437.method_25412(class_437.java:467)
	at net.minecraft.class_312.method_1601(class_312.java:101)
	at net.minecraft.class_312.method_22686(class_312.java:186)
	at net.minecraft.class_1255.execute(class_1255.java:108)
	at net.minecraft.class_312.redirect$cnh001$viafabricplus$storeEvent(class_312.java:1557)
	at net.minecraft.class_312.method_22684(class_312.java:186)
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3509)

-- Affected screen --
Details:
	Screen name: net.minecraft.class_433
Stacktrace:
	at net.minecraft.class_437.method_25412(class_437.java:467)
	at net.minecraft.class_312.method_1601(class_312.java:101)
	at net.minecraft.class_312.method_22686(class_312.java:186)
	at net.minecraft.class_1255.execute(class_1255.java:108)
	at net.minecraft.class_312.redirect$cnh001$viafabricplus$storeEvent(class_312.java:1557)
	at net.minecraft.class_312.method_22684(class_312.java:186)
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3509)
	at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:236)
	at net.minecraft.class_310.method_1523(class_310.java:1345)
	at net.minecraft.class_310.method_1514(class_310.java:888)
	at net.minecraft.client.main.Main.main(Main.java:265)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- Uptime --
Details:
	JVM uptime: 1100.858s
	Wall uptime: 1064.871s
	High-res time: 1061.866s
	Client ticks: 20833 ticks / 1041.650s
Stacktrace:
	at net.minecraft.class_310.method_1587(class_310.java:2548)
	at net.minecraft.class_310.method_54580(class_310.java:983)
	at net.minecraft.class_310.method_1514(class_310.java:908)
	at net.minecraft.client.main.Main.main(Main.java:265)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- Affected level --
Details:
	All players: 1 total; [class_746['wifi_right'/189, l='ClientLevel', x=188.50, y=124.00, z=26.50]]
	Chunk stats: 1024, 649
	Level dimension: minecraft:overworld
	Level spawn location: World: (188,124,26), Section: (at 12,12,10 in 11,7,1; chunk contains blocks 176,-64,16 to 191,319,31), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
	Level time: 20322633 game time, 13000 day time
	Server brand: fabric
	Server type: Integrated singleplayer server
	Tracked entity count: 43

-- Last reload --
Details:
	Reload number: 2
	Reload reason: manual
	Finished: Yes
	Packs: vanilla, fabric, caffeineconfig, carpet, cloth-config, cmd_bansaying_scb, com_viaversion_viabackwards-common, com_viaversion_viaversion-common, fabric-api, fabric-api-base, fabric-api-lookup-api-v1, fabric-biome-api-v1, fabric-block-api-v1, fabric-block-view-api-v2, fabric-blockrenderlayer-v1, fabric-client-tags-api-v1, fabric-command-api-v1, fabric-command-api-v2, fabric-commands-v0, fabric-content-registries-v0, fabric-convention-tags-v1, fabric-convention-tags-v2, fabric-crash-report-info-v1, fabric-data-attachment-api-v1, fabric-data-generation-api-v1, fabric-dimensions-v1, fabric-entity-events-v1, fabric-events-interaction-v0, fabric-game-rule-api-v1, fabric-item-api-v1, fabric-item-group-api-v1, fabric-key-binding-api-v1, fabric-keybindings-v0, fabric-lifecycle-events-v1, fabric-loot-api-v2, fabric-message-api-v1, fabric-model-loading-api-v1, fabric-models-v0, fabric-networking-api-v1, fabric-object-builder-api-v1, fabric-particles-v1, fabric-recipe-api-v1, fabric-registry-sync-v0, fabric-renderer-api-v1, fabric-renderer-indigo, fabric-renderer-registries-v1, fabric-rendering-data-attachment-v1, fabric-rendering-fluids-v1, fabric-rendering-v0, fabric-rendering-v1, fabric-resource-conditions-api-v1, fabric-resource-loader-v0, fabric-screen-api-v1, fabric-screen-handler-api-v1, fabric-sound-api-v1, fabric-transfer-api-v1, fabric-transitive-access-wideners-v1, fabricloader, gammautils, iris, journeymap, lithium, logical_zoom, modmenu, net_raphimc_viaaprilfools, net_raphimc_viabedrock, net_raphimc_vialegacy, reeses-sodium-options, shut_up_gl_error, signeditgui, sodium, sodium-extra, viafabricplus, worldedit, file/GMCA-Packs-N-1.20.6.zip, file/minigames-map-res

-- System Details --
Details:
	Minecraft Version: 1.20.6
	Minecraft Version ID: 1.20.6
	Operating System: Windows 11 (amd64) version 10.0
	Java Version: 21.0.1, Alibaba
	Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Alibaba
	Memory: 760266456 bytes (725 MiB) / 2147483648 bytes (2048 MiB) up to 9932111872 bytes (9472 MiB)
	CPUs: 12
	Processor Vendor: GenuineIntel
	Processor Name: 12th Gen Intel(R) Core(TM) i5-12400F
	Identifier: Intel64 Family 6 Model 151 Stepping 5
	Microarchitecture: Alder Lake
	Frequency (GHz): 2.50
	Number of physical packages: 1
	Number of physical CPUs: 6
	Number of logical CPUs: 12
	Graphics card #0 name: NVIDIA GeForce RTX 3060
	Graphics card #0 vendor: NVIDIA
	Graphics card #0 VRAM (MB): 12288.00
	Graphics card #0 deviceId: VideoController1
	Graphics card #0 versionInfo: 31.0.15.5222
	Memory slot #0 capacity (MB): 16384.00
	Memory slot #0 clockSpeed (GHz): 2.13
	Memory slot #0 type: DDR4
	Memory slot #1 capacity (MB): 16384.00
	Memory slot #1 clockSpeed (GHz): 2.13
	Memory slot #1 type: DDR4
	Virtual memory max (MB): 34655.86
	Virtual memory used (MB): 17448.83
	Swap memory total (MB): 2048.00
	Swap memory used (MB): 601.21
	JVM Flags: 11 total; -Xmx9472m -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32m -XX:-UseAdaptiveSizePolicy -XX:-OmitStackTraceInFastThrow -XX:-DontCompileHugeMethods -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
	Fabric Mods: 
		carpet: Carpet Mod 1.4.141+v240429
		cloth-config: Cloth Config v14 14.0.126
			cloth-basic-math: cloth-basic-math 0.6.1
		cmd_bansaying_scb: Speech Manager by Command 'scoreboard' 1.0.5
		fabric-api: Fabric API 0.97.8+1.20.6
			fabric-api-base: Fabric API Base 0.4.40+80f8cf51ff
			fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.59+e9d2a72bff
			fabric-biome-api-v1: Fabric Biome API (v1) 13.0.25+be5d88beff
			fabric-block-api-v1: Fabric Block API (v1) 1.0.20+6dfe4c9bff
			fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.8+80f8cf51ff
			fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.50+80f8cf51ff
			fabric-client-tags-api-v1: Fabric Client Tags 1.1.12+7f945d5bff
			fabric-command-api-v1: Fabric Command API (v1) 1.2.45+f71b366fff
			fabric-command-api-v2: Fabric Command API (v2) 2.2.24+80f8cf51ff
			fabric-commands-v0: Fabric Commands (v0) 0.2.62+df3654b3ff
			fabric-content-registries-v0: Fabric Content Registries (v0) 8.0.4+b82b2392ff
			fabric-convention-tags-v1: Fabric Convention Tags 2.0.3+7f945d5bff
			fabric-convention-tags-v2: Fabric Convention Tags (v2) 2.0.0+2b43c5c8ff
			fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.27+80f8cf51ff
			fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.1.15+2a2c66b6ff
			fabric-data-generation-api-v1: Fabric Data Generation API (v1) 19.0.6+7f945d5bff
			fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.68+94793913ff
			fabric-entity-events-v1: Fabric Entity Events (v1) 1.6.8+e9d2a72bff
			fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.7.6+c5fc38b3ff
			fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.50+80f8cf51ff
			fabric-item-api-v1: Fabric Item API (v1) 8.1.1+17e985d6ff
			fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.38+aae0949aff
			fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.45+80f8cf51ff
			fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.43+df3654b3ff
			fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.3.4+c5fc38b3ff
			fabric-loot-api-v2: Fabric Loot API (v2) 3.0.4+97f703daff
			fabric-message-api-v1: Fabric Message API (v1) 6.0.10+109a837cff
			fabric-model-loading-api-v1: Fabric Model Loading API (v1) 1.0.12+80f8cf51ff
			fabric-models-v0: Fabric Models (v0) 0.4.11+9386d8a7ff
			fabric-networking-api-v1: Fabric Networking API (v1) 4.0.8+0dca0349ff
			fabric-object-builder-api-v1: Fabric Object Builder API (v1) 15.1.3+c5fc38b3ff
			fabric-particles-v1: Fabric Particles (v1) 4.0.0+c5fc38b3ff
			fabric-recipe-api-v1: Fabric Recipe API (v1) 5.0.3+c5fc38b3ff
			fabric-registry-sync-v0: Fabric Registry Sync (v0) 5.0.15+f1240ba7ff
			fabric-renderer-api-v1: Fabric Renderer API (v1) 3.2.12+97f703daff
			fabric-renderer-indigo: Fabric Renderer - Indigo 1.5.12+80f8cf51ff
			fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.61+df3654b3ff
			fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.46+73761d2eff
			fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.1.3+2c869dedff
			fabric-rendering-v0: Fabric Rendering (v0) 1.1.64+df3654b3ff
			fabric-rendering-v1: Fabric Rendering (v1) 4.2.4+b21c00cbff
			fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 4.0.1+74e2f560ff
			fabric-resource-loader-v0: Fabric Resource Loader (v0) 1.0.5+c5f2432cff
			fabric-screen-api-v1: Fabric Screen API (v1) 2.0.21+7b70ea8aff
			fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.72+b21c00cbff
			fabric-sound-api-v1: Fabric Sound API (v1) 1.0.21+c5fc38b3ff
			fabric-transfer-api-v1: Fabric Transfer API (v1) 5.1.6+c5fc38b3ff
			fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 6.0.10+74e2f560ff
		fabricloader: Fabric Loader 0.15.10
			mixinextras: MixinExtras 0.3.5
		gammautils: Gamma Utils 1.8.20
		iris: Iris 1.7.0+mc1.20.6
			io_github_douira_glsl-transformer: glsl-transformer 2.0.0-pre13
			org_anarres_jcpp: jcpp 1.4.14
			org_antlr_antlr4-runtime: antlr4-runtime 4.11.1
		java: OpenJDK 64-Bit Server VM 21
		journeymap: Journeymap 5.9.29
			journeymap-api-fabric: JourneyMap API 1.20.5-1.9-fabric-SNAPSHOT
		lithium: Lithium 0.12.3
		logical_zoom: Logical Zoom 0.0.24
		minecraft: Minecraft 1.20.6
		modmenu: Mod Menu 10.0.0-beta.1
		reeses-sodium-options: Reese's Sodium Options 1.7.2+mc1.20.5-build.103
		shut_up_gl_error: Shut Up GL Error 1.0.0
		signeditgui: Bamboo-Sign-Editor 1.0.11
		sodium: Sodium 0.5.8+mc1.20.6
		sodium-extra: Sodium Extra 0.5.5+mc1.20.6-build.118
			caffeineconfig: CaffeineConfig 1.3.0+1.17
		viafabricplus: ViaFabricPlus 3.2.0
			com_google_code_findbugs_jsr305: jsr305 3.0.2
			com_vdurmont_semver4j: semver4j 3.1.0
			com_viaversion_viabackwards-common: viabackwards-common 4.10.0
			com_viaversion_viaversion-common: viaversion-common 4.10.0
			de_florianmichael_classic4j: Classic4J 2.0.2
			io_jsonwebtoken_jjwt-api: jjwt-api 0.12.5
			io_jsonwebtoken_jjwt-gson: jjwt-gson 0.12.5
			io_jsonwebtoken_jjwt-impl: jjwt-impl 0.12.5
			io_netty_netty-codec-http: netty-codec-http 4.1.108
			net_jodah_expiringmap: expiringmap 0.5.10
			net_lenni0451_commons_httpclient: httpclient 1.4.1
			net_lenni0451_mcping: MCPing 1.4.0
			net_lenni0451_mcstructs-bedrock_forms: forms 1.2.0
			net_lenni0451_mcstructs-bedrock_text: text 1.2.0
			net_lenni0451_reflect: Reflect 1.3.2
			net_raphimc_minecraftauth: MinecraftAuth 4.0.0
			net_raphimc_viaaprilfools: ViaAprilFools 2.0.11
			net_raphimc_viabedrock: ViaBedrock 0.0.6-SNAPSHOT
			net_raphimc_vialegacy: ViaLegacy 2.2.22
			net_raphimc_vialoader: ViaLoader 2.2.13
			org_cloudburstmc_netty_netty-transport-raknet: netty-transport-raknet 1.0.0.CR3-SNAPSHOT
			org_iq80_leveldb_leveldb: leveldb 0.12
			org_iq80_leveldb_leveldb-api: leveldb-api 0.12
			org_lz4_lz4-pure-java: lz4-pure-java 1.8.0
			org_yaml_snakeyaml: snakeyaml 2.2
		worldedit: WorldEdit 7.3.1-SNAPSHOT+6758-fda9ded
	Loaded Shaderpack: (off)
	Launched Version: 1.20.6
	Launcher name: HMCL
	Backend library: LWJGL version 3.3.3-snapshot
	Backend API: NVIDIA GeForce RTX 3060/PCIe/SSE2 GL version 3.2.0 NVIDIA 552.22, NVIDIA Corporation
	Window size: 1920x1009
	GL Caps: Using framebuffer using OpenGL 3.2
	GL debug messages: 
	Using VBOs: Yes
	Is Modded: Definitely; Client brand changed to 'fabric'; Server brand changed to 'fabric'
	Universe: 400921fb54442d18
	Type: Integrated Server (map_client.txt)
	Graphics mode: fast
	Render Distance: 8/8 chunks
	Resource Packs: vanilla, fabric, caffeineconfig, carpet, cloth-config, cmd_bansaying_scb, com_viaversion_viabackwards-common, com_viaversion_viaversion-common, fabric-api, fabric-api-base, fabric-api-lookup-api-v1, fabric-biome-api-v1, fabric-block-api-v1, fabric-block-view-api-v2, fabric-blockrenderlayer-v1, fabric-client-tags-api-v1, fabric-command-api-v1, fabric-command-api-v2, fabric-commands-v0, fabric-content-registries-v0, fabric-convention-tags-v1, fabric-convention-tags-v2, fabric-crash-report-info-v1, fabric-data-attachment-api-v1, fabric-data-generation-api-v1, fabric-dimensions-v1, fabric-entity-events-v1, fabric-events-interaction-v0, fabric-game-rule-api-v1, fabric-item-api-v1, fabric-item-group-api-v1, fabric-key-binding-api-v1, fabric-keybindings-v0, fabric-lifecycle-events-v1, fabric-loot-api-v2, fabric-message-api-v1, fabric-model-loading-api-v1, fabric-models-v0, fabric-networking-api-v1, fabric-object-builder-api-v1, fabric-particles-v1, fabric-recipe-api-v1, fabric-registry-sync-v0, fabric-renderer-api-v1, fabric-renderer-indigo, fabric-renderer-registries-v1, fabric-rendering-data-attachment-v1, fabric-rendering-fluids-v1, fabric-rendering-v0, fabric-rendering-v1, fabric-resource-conditions-api-v1, fabric-resource-loader-v0, fabric-screen-api-v1, fabric-screen-handler-api-v1, fabric-sound-api-v1, fabric-transfer-api-v1, fabric-transitive-access-wideners-v1, fabricloader, gammautils, iris, journeymap, lithium, logical_zoom, modmenu, net_raphimc_viaaprilfools, net_raphimc_viabedrock, net_raphimc_vialegacy, reeses-sodium-options, shut_up_gl_error (incompatible), signeditgui, sodium, sodium-extra, viafabricplus, worldedit (incompatible), file/GMCA-Packs-N-1.20.6.zip, file/minigames-map-res
	Current Language: zh_cn
	Locale: zh_CN
	CPU: 12x 12th Gen Intel(R) Core(TM) i5-12400F
	Server Running: true
	Player Count: 1 / 8; [class_3222['wifi_right'/189, l='ServerLevel[§aMini§eGames §8| §b§lHave Fun ~]', x=188.50, y=124.00, z=26.50]]
	Active Data Packs: vanilla, file/map_all (incompatible), file/bedwars (incompatible), file/zombiepve (incompatible), file/viaversion_changer (incompatible), file/map_surgame (incompatible), file/compasstracker (incompatible), file/map_main (incompatible), file/map_woolwars (incompatible), file/empty_advancements (incompatible), file/mulitiworld_datapack (incompatible), file/tntboom (incompatible), file/we_do_not_support_via_1_8 (incompatible), file/map_rpg (incompatible), fabric, fabric-convention-tags-v2, file/foodparty (incompatible), file/item_gun (incompatible), file/map_game_2nd (incompatible), file/boat_structures (incompatible), file/tag_pack_1_20_2 (incompatible)
	Available Data Packs: bundle, fabric, fabric-convention-tags-v2, file/bedwars (incompatible), file/boat_structures (incompatible), file/compasstracker (incompatible), file/empty_advancements (incompatible), file/foodparty (incompatible), file/item_gun (incompatible), file/map_all (incompatible), file/map_game_2nd (incompatible), file/map_main (incompatible), file/map_rpg (incompatible), file/map_surgame (incompatible), file/map_woolwars (incompatible), file/mulitiworld_datapack (incompatible), file/tag_pack_1_20_2 (incompatible), file/tntboom (incompatible), file/viaversion_changer (incompatible), file/we_do_not_support_via_1_8 (incompatible), file/zombiepve (incompatible), trade_rebalance, update_1_21, vanilla
	Enabled Feature Flags: minecraft:vanilla
	World Generation: Experimental
	World Seed: -8244300256316301464
@sakura-ryoko
Copy link

Caused by: java.lang.NullPointerException: Cannot invoke "carpet.fakes.MinecraftServerInterface.getScriptServer()" because "server" is null

... Maybe it's when you have a Carpet Bot loaded during Open To Lan situation, perhaps ?

@wifi-left
Copy link
Author

wifi-left commented May 3, 2024

No, I did not Open to Lan and I'm not using a Bot.
But this is the only time this has happened recently. I suspect there are other triggers, such as returning to the main menu when the game is not saved. (My map is larger and has more dimensions, as you can see in the log)

@sakura-ryoko
Copy link

All good, still confused by what caused this same crash for me, also.

@Polypheides
Copy link

I have this as well my way of producing the crash is make a fabric server i use crafty on casaos add fabric-carpet-1.20.6-1.4.141+v240429.jar to the servers mod folder install fabric on your client i use the 0.15.11 loader and install fabric-carpet-1.20.6-1.4.141+v240429.jar in the client mods

then join the server load in disconnect
then join a singleplayer world load in disconnect/save
crash

Prism Launcher version: 8.3 (official)


Launched instance in online mode

authserver.mojang.com resolves to:
    [N/A]

session.minecraft.net resolves to:
    [13.107.246.53, 13.107.213.53]

textures.minecraft.net resolves to:
    [13.107.246.53, 13.107.213.53]

api.mojang.com resolves to:
    [13.107.246.53, 13.107.213.53]


Minecraft folder is:
D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/instances/Latest/.minecraft


Java path is:
C:/Program Files/Java/jdk-21/bin/javaw.exe


Java is version 21.0.2, using 64 (amd64) architecture, from Oracle Corporation.


Main Class:
  net.fabricmc.loader.impl.launch.knot.KnotClient

Native path:
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/instances/Latest/natives

Traits:
traits feature:is_quick_play_multiplayer
traits FirstThreadOnMacOS
traits XR:Initial

Libraries:
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-freetype-natives-windows-arm64/3.3.3/lwjgl-freetype-natives-windows-arm64-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-freetype-natives-windows-x86/3.3.3/lwjgl-freetype-natives-windows-x86-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-freetype-natives-windows/3.3.3/lwjgl-freetype-natives-windows-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-glfw-natives-windows-arm64/3.3.3/lwjgl-glfw-natives-windows-arm64-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-glfw-natives-windows-x86/3.3.3/lwjgl-glfw-natives-windows-x86-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-glfw-natives-windows/3.3.3/lwjgl-glfw-natives-windows-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows-arm64/3.3.3/lwjgl-jemalloc-natives-windows-arm64-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows-x86/3.3.3/lwjgl-jemalloc-natives-windows-x86-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows/3.3.3/lwjgl-jemalloc-natives-windows-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-natives-windows-arm64/3.3.3/lwjgl-natives-windows-arm64-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-natives-windows-x86/3.3.3/lwjgl-natives-windows-x86-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-natives-windows/3.3.3/lwjgl-natives-windows-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-openal-natives-windows-arm64/3.3.3/lwjgl-openal-natives-windows-arm64-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-openal-natives-windows-x86/3.3.3/lwjgl-openal-natives-windows-x86-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-openal-natives-windows/3.3.3/lwjgl-openal-natives-windows-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-opengl-natives-windows-arm64/3.3.3/lwjgl-opengl-natives-windows-arm64-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-opengl-natives-windows-x86/3.3.3/lwjgl-opengl-natives-windows-x86-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-opengl-natives-windows/3.3.3/lwjgl-opengl-natives-windows-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-opengl/3.3.3/lwjgl-opengl-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-stb-natives-windows-arm64/3.3.3/lwjgl-stb-natives-windows-arm64-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-stb-natives-windows-x86/3.3.3/lwjgl-stb-natives-windows-x86-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-stb-natives-windows/3.3.3/lwjgl-stb-natives-windows-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows-arm64/3.3.3/lwjgl-tinyfd-natives-windows-arm64-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows-x86/3.3.3/lwjgl-tinyfd-natives-windows-x86-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows/3.3.3/lwjgl-tinyfd-natives-windows-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl-tinyfd/3.3.3/lwjgl-tinyfd-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/github/oshi/oshi-core/6.4.10/oshi-core-6.4.10.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/google/guava/guava/32.1.2-jre/guava-32.1.2-jre.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/ibm/icu/icu4j/73.2/icu4j-73.2.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/mojang/authlib/6.0.54/authlib-6.0.54.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/mojang/blocklist/1.0.10/blocklist-1.0.10.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/mojang/brigadier/1.2.9/brigadier-1.2.9.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/mojang/datafixerupper/7.0.14/datafixerupper-7.0.14.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/mojang/logging/1.2.7/logging-1.2.7.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/mojang/patchy/2.2.10/patchy-2.2.10.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/mojang/text2speech/1.17.9/text2speech-1.17.9.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/commons-codec/commons-codec/1.16.0/commons-codec-1.16.0.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/commons-io/commons-io/2.15.1/commons-io-2.15.1.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/io/netty/netty-buffer/4.1.97.Final/netty-buffer-4.1.97.Final.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/io/netty/netty-codec/4.1.97.Final/netty-codec-4.1.97.Final.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/io/netty/netty-common/4.1.97.Final/netty-common-4.1.97.Final.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/io/netty/netty-handler/4.1.97.Final/netty-handler-4.1.97.Final.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/io/netty/netty-resolver/4.1.97.Final/netty-resolver-4.1.97.Final.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/io/netty/netty-transport-classes-epoll/4.1.97.Final/netty-transport-classes-epoll-4.1.97.Final.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/io/netty/netty-transport-native-unix-common/4.1.97.Final/netty-transport-native-unix-common-4.1.97.Final.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/io/netty/netty-transport/4.1.97.Final/netty-transport-4.1.97.Final.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/it/unimi/dsi/fastutil/8.5.12/fastutil-8.5.12.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/net/java/dev/jna/jna-platform/5.14.0/jna-platform-5.14.0.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/net/java/dev/jna/jna/5.14.0/jna-5.14.0.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/apache/commons/commons-compress/1.26.0/commons-compress-1.26.0.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/apache/commons/commons-lang3/3.14.0/commons-lang3-3.14.0.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/apache/logging/log4j/log4j-api/2.22.1/log4j-api-2.22.1.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/apache/logging/log4j/log4j-core/2.22.1/log4j-core-2.22.1.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/apache/logging/log4j/log4j-slf4j2-impl/2.22.1/log4j-slf4j2-impl-2.22.1.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/jcraft/jorbis/0.0.17/jorbis-0.0.17.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/joml/joml/1.10.5/joml-1.10.5.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/lz4/lz4-java/1.8.0/lz4-java-1.8.0.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/slf4j/slf4j-api/2.0.9/slf4j-api-2.0.9.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/net/fabricmc/intermediary/1.20.6/intermediary-1.20.6.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/ow2/asm/asm/9.6/asm-9.6.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/ow2/asm/asm-analysis/9.6/asm-analysis-9.6.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/ow2/asm/asm-commons/9.6/asm-commons-9.6.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/ow2/asm/asm-tree/9.6/asm-tree-9.6.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/org/ow2/asm/asm-util/9.6/asm-util-9.6.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/net/fabricmc/sponge-mixin/0.13.3+mixin.0.8.5/sponge-mixin-0.13.3+mixin.0.8.5.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/net/fabricmc/fabric-loader/0.15.10/fabric-loader-0.15.10.jar
  D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/com/mojang/minecraft/1.20.6/minecraft-1.20.6-client.jar

Native libraries:

Mods:
  [✔] fabric-carpet-1.20.6-1.4.141+v240429
  [🖿] New folder (folder)

Params:
  --username  --version 1.20.6 --gameDir D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/instances/Latest/.minecraft --assetsDir D:/Program Files (x86)/PrismLauncher-Windows-MSVC-Portable-8.2/assets --assetIndex 16 --uuid  --accessToken  --userType  --versionType release

Window size: max (if available)

Launcher: standard

Java Arguments:
[-XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump, -Xms512m, -Xmx4096m, -Duser.language=en]


Minecraft process ID: 17988


[16:59:58] [main/INFO]: Loading Minecraft 1.20.6 with Fabric Loader 0.15.10
[16:59:58] [main/INFO]: Loading 5 mods:
	- carpet 1.4.141+v240429
	- fabricloader 0.15.10
	   \-- mixinextras 0.3.5
	- java 21
	- minecraft 1.20.6
[16:59:59] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/D:/Program%20Files%20(x86)/PrismLauncher-Windows-MSVC-Portable-8.2/libraries/net/fabricmc/sponge-mixin/0.13.3+mixin.0.8.5/sponge-mixin-0.13.3+mixin.0.8.5.jar Service=Knot/Fabric Env=CLIENT
[16:59:59] [main/INFO]: Compatibility level set to JAVA_17
[17:00:00] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.5).
[17:00:04] [Datafixer Bootstrap/INFO]: 222 Datafixer optimizations took 217 milliseconds
[17:00:06] [Render thread/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[17:00:06] [Render thread/INFO]: Setting user: Polypheides
[17:00:07] [Render thread/INFO]: Backend library: LWJGL version 3.3.3-snapshot
[17:00:07] [Render thread/WARN]: Removed resource pack fabric from options because it doesn't seem to exist anymore
[17:00:08] [Render thread/INFO]: Reloading ResourceManager: vanilla
[17:00:08] [Worker-Main-8/INFO]: Found unifont_all_no_pua-15.1.04.hex, loading
[17:00:08] [Worker-Main-5/INFO]: Found unifont_jp_patch-15.1.04.hex, loading
[17:00:09] [Render thread/WARN]: Missing sound for event: minecraft:item.goat_horn.play
[17:00:09] [Render thread/WARN]: Missing sound for event: minecraft:entity.goat.screaming.horn_break
[17:00:09] [Render thread/INFO]: OpenAL initialized on device OpenAL Soft on Thomson (NVIDIA High Definition Audio)
[17:00:09] [Render thread/INFO]: Sound engine started
[17:00:09] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas
[17:00:09] [Render thread/INFO]: Created: 256x256x4 minecraft:textures/atlas/signs.png-atlas
[17:00:09] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
[17:00:09] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
[17:00:09] [Render thread/INFO]: Created: 1024x1024x4 minecraft:textures/atlas/armor_trims.png-atlas
[17:00:09] [Render thread/INFO]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
[17:00:09] [Render thread/INFO]: Created: 128x64x4 minecraft:textures/atlas/decorated_pot.png-atlas
[17:00:09] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
[17:00:09] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
[17:00:09] [Render thread/INFO]: Created: 512x256x0 minecraft:textures/atlas/particles.png-atlas
[17:00:09] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
[17:00:09] [Render thread/INFO]: Created: 256x128x0 minecraft:textures/atlas/mob_effects.png-atlas
[17:00:09] [Render thread/INFO]: Created: 64x64x0 minecraft:textures/atlas/map_decorations.png-atlas
[17:00:09] [Render thread/INFO]: Created: 1024x512x0 minecraft:textures/atlas/gui.png-atlas
[17:00:09] [Render thread/WARN]: Shader rendertype_entity_translucent_emissive could not find sampler named Sampler2 in the specified shader program.
[17:00:18] [Render thread/INFO]: Connecting to 192.168.0.17, 25572
[17:00:21] [Render thread/INFO]: Joined carpet server with matching carpet version
[17:00:21] [Render thread/INFO]: Loaded 348 advancements
[17:00:21] [Render thread/WARN]: Received passengers for unknown entity
[17:00:27] [Render thread/INFO]: Loaded 1175 recipes
[17:00:27] [Render thread/INFO]: Loaded 1276 advancements
[17:00:27] [Render thread/WARN]: Not all defined tags for registry ResourceKey[minecraft:root / minecraft:item] are present in data pack: minecraft:enchantable/mace
[17:00:27] [Render thread/WARN]: Not all defined tags for registry ResourceKey[minecraft:root / minecraft:entity_type] are present in data pack: minecraft:can_turn_in_boats, minecraft:deflects_projectiles, minecraft:immune_to_infested, minecraft:immune_to_oozing, minecraft:no_anger_from_wind_charge
[17:00:27] [Render thread/WARN]: Not all defined tags for registry ResourceKey[minecraft:root / minecraft:block] are present in data pack: minecraft:blocks_wind_charge_explosions
[17:00:27] [Server thread/INFO]: Starting integrated minecraft server version 1.20.6
[17:00:27] [Server thread/INFO]: Generating keypair
[17:00:28] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[17:00:29] [Render thread/INFO]: Preparing spawn area: 0%
[17:00:29] [Render thread/INFO]: Preparing spawn area: 0%
[17:00:29] [Render thread/INFO]: Time elapsed: 873 ms
[17:00:29] [Server thread/INFO]: Changing view distance to 20, from 10
[17:00:29] [Server thread/INFO]: Changing simulation distance to 20, from 0
[17:00:30] [Server thread/INFO]: Polypheides[local:E:41f8d3ac] logged in with entity id 313 at (-48.77464309058936, 70.656173379964, -131.76306769082612)
[17:00:30] [Server thread/INFO]: Polypheides joined the game
[17:00:30] [Render thread/INFO]: Loaded 267 advancements
[17:00:32] [Server thread/INFO]: Saving and pausing game...
[17:00:32] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld
[17:00:32] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end
[17:00:32] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether
[17:00:32] [Render thread/ERROR]: Reported exception thrown!
net.minecraft.class_148: mouseClicked event handler
	at net.minecraft.class_437.method_25412(class_437.java:472) ~[client-intermediary.jar:?]
	at net.minecraft.class_312.method_1601(class_312.java:101) ~[client-intermediary.jar:?]
	at net.minecraft.class_312.method_22686(class_312.java:186) ~[client-intermediary.jar:?]
	at net.minecraft.class_1255.execute(class_1255.java:108) ~[client-intermediary.jar:?]
	at net.minecraft.class_312.method_22684(class_312.java:186) ~[client-intermediary.jar:?]
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43) ~[lwjgl-glfw-3.3.3.jar:?]
	at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.3.3.jar:?]
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438) ~[lwjgl-glfw-3.3.3.jar:?]
	at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:200) ~[client-intermediary.jar:?]
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:211) ~[client-intermediary.jar:?]
	at net.minecraft.class_1041.method_15998(class_1041.java:287) ~[client-intermediary.jar:?]
	at net.minecraft.class_310.method_1523(class_310.java:1342) ~[client-intermediary.jar:?]
	at net.minecraft.class_310.method_1514(class_310.java:888) [client-intermediary.jar:?]
	at net.minecraft.client.main.Main.main(Main.java:265) [client-intermediary.jar:?]
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) [fabric-loader-0.15.10.jar:?]
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.15.10.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.15.10.jar:?]
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100) [NewLaunch.jar:?]
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) [NewLaunch.jar:?]
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) [NewLaunch.jar:?]
Caused by: java.lang.NullPointerException: Cannot invoke "carpet.fakes.MinecraftServerInterface.getScriptServer()" because "server" is null
	at carpet.script.external.Vanilla.MinecraftServer_getScriptServer(Vanilla.java:163) ~[fabric-carpet-1.20.6-1.4.141+v240429.jar:?]
	at carpet.CarpetServer.onServerClosed(CarpetServer.java:183) ~[fabric-carpet-1.20.6-1.4.141+v240429.jar:?]
	at carpet.network.CarpetClient.disconnect(CarpetClient.java:61) ~[fabric-carpet-1.20.6-1.4.141+v240429.jar:?]
	at net.minecraft.class_310.handler$zhp000$carpet$onCloseGame(class_310.java:3730) ~[client-intermediary.jar:?]
	at net.minecraft.class_310.method_56134(class_310.java) ~[client-intermediary.jar:?]
	at net.minecraft.class_433.method_47632(class_433.java:117) ~[client-intermediary.jar:?]
	at net.minecraft.class_7574.method_46552(class_7574.java:52) ~[client-intermediary.jar:?]
	at net.minecraft.class_433.method_19836(class_433.java:100) ~[client-intermediary.jar:?]
	at net.minecraft.class_4185.method_25306(class_4185.java:96) ~[client-intermediary.jar:?]
	at net.minecraft.class_4264.method_25348(class_4264.java:48) ~[client-intermediary.jar:?]
	at net.minecraft.class_339.method_25402(class_339.java:141) ~[client-intermediary.jar:?]
	at net.minecraft.class_4069.method_25402(class_4069.java:38) ~[client-intermediary.jar:?]
	at net.minecraft.class_312.method_1611(class_312.java:101) ~[client-intermediary.jar:?]
	at net.minecraft.class_437.method_25412(class_437.java:467) ~[client-intermediary.jar:?]
	... 19 more
[17:00:32] [Server thread/INFO]: Stopping server
[17:00:32] [Server thread/INFO]: Saving players
[17:00:32] [Server thread/INFO]: Polypheides lost connection: Disconnected
[17:00:32] [Server thread/INFO]: Polypheides left the game
[17:00:32] [Server thread/INFO]: Stopping singleplayer server as player logged out
[17:00:32] [Server thread/INFO]: Saving worlds
[17:00:33] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld
[17:00:33] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end
[17:00:33] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether
[17:00:33] [Server thread/INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[17:00:33] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[17:00:33] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[17:00:33] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
---- Minecraft Crash Report ----
// You're mean.

Time: 2024-05-04 17:00:33
Description: mouseClicked event handler

java.lang.NullPointerException: Cannot invoke "carpet.fakes.MinecraftServerInterface.getScriptServer()" because "server" is null
	at carpet.script.external.Vanilla.MinecraftServer_getScriptServer(Vanilla.java:163)
	at carpet.CarpetServer.onServerClosed(CarpetServer.java:183)
	at carpet.network.CarpetClient.disconnect(CarpetClient.java:61)
	at net.minecraft.class_310.handler$zhp000$carpet$onCloseGame(class_310.java:3730)
	at net.minecraft.class_310.method_56134(class_310.java)
	at net.minecraft.class_433.method_47632(class_433.java:117)
	at net.minecraft.class_7574.method_46552(class_7574.java:52)
	at net.minecraft.class_433.method_19836(class_433.java:100)
	at net.minecraft.class_4185.method_25306(class_4185.java:96)
	at net.minecraft.class_4264.method_25348(class_4264.java:48)
	at net.minecraft.class_339.method_25402(class_339.java:141)
	at net.minecraft.class_4069.method_25402(class_4069.java:38)
	at net.minecraft.class_312.method_1611(class_312.java:101)
	at net.minecraft.class_437.method_25412(class_437.java:467)
	at net.minecraft.class_312.method_1601(class_312.java:101)
	at net.minecraft.class_312.method_22686(class_312.java:186)
	at net.minecraft.class_1255.execute(class_1255.java:108)
	at net.minecraft.class_312.method_22684(class_312.java:186)
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438)
	at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:200)
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:211)
	at net.minecraft.class_1041.method_15998(class_1041.java:287)
	at net.minecraft.class_310.method_1523(class_310.java:1342)
	at net.minecraft.class_310.method_1514(class_310.java:888)
	at net.minecraft.client.main.Main.main(Main.java:265)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)


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

-- Head --
Thread: Render thread
Stacktrace:
	at carpet.script.external.Vanilla.MinecraftServer_getScriptServer(Vanilla.java:163)
	at carpet.CarpetServer.onServerClosed(CarpetServer.java:183)
	at carpet.network.CarpetClient.disconnect(CarpetClient.java:61)
	at net.minecraft.class_310.handler$zhp000$carpet$onCloseGame(class_310.java:3730)
	at net.minecraft.class_310.method_56134(class_310.java)
	at net.minecraft.class_433.method_47632(class_433.java:117)
	at net.minecraft.class_7574.method_46552(class_7574.java:52)
	at net.minecraft.class_433.method_19836(class_433.java:100)
	at net.minecraft.class_4185.method_25306(class_4185.java:96)
	at net.minecraft.class_4264.method_25348(class_4264.java:48)
	at net.minecraft.class_339.method_25402(class_339.java:141)
	at net.minecraft.class_4069.method_25402(class_4069.java:38)
	at net.minecraft.class_312.method_1611(class_312.java:101)
	at net.minecraft.class_437.method_25412(class_437.java:467)
	at net.minecraft.class_312.method_1601(class_312.java:101)
	at net.minecraft.class_312.method_22686(class_312.java:186)
	at net.minecraft.class_1255.execute(class_1255.java:108)
	at net.minecraft.class_312.method_22684(class_312.java:186)
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438)
	at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:200)
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:211)

-- Affected screen --
Details:
	Screen name: net.minecraft.class_433
Stacktrace:
	at net.minecraft.class_437.method_25412(class_437.java:467)
	at net.minecraft.class_312.method_1601(class_312.java:101)
	at net.minecraft.class_312.method_22686(class_312.java:186)
	at net.minecraft.class_1255.execute(class_1255.java:108)
	at net.minecraft.class_312.method_22684(class_312.java:186)
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438)
	at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:200)
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:211)
	at net.minecraft.class_1041.method_15998(class_1041.java:287)
	at net.minecraft.class_310.method_1523(class_310.java:1342)
	at net.minecraft.class_310.method_1514(class_310.java:888)
	at net.minecraft.client.main.Main.main(Main.java:265)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)

-- Uptime --
Details:
	JVM uptime: 34.867s
	Wall uptime: 26.130s
	High-res time: 25.542s
	Client ticks: 418 ticks / 20.900s
Stacktrace:
	at net.minecraft.class_310.method_1587(class_310.java:2548)
	at net.minecraft.class_310.method_54580(class_310.java:983)
	at net.minecraft.class_310.method_1514(class_310.java:908)
	at net.minecraft.client.main.Main.main(Main.java:265)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)

-- Affected level --
Details:
	All players: 1 total; [class_746['Polypheides'/313, l='ClientLevel', x=-48.26, y=70.66, z=-132.96]]
	Chunk stats: 2209, 328
	Level dimension: minecraft:overworld
	Level spawn location: World: (0,64,0), Section: (at 0,0,0 in 0,4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
	Level time: 9596218 game time, 9903464 day time
	Server brand: fabric
	Server type: Integrated singleplayer server
	Tracked entity count: 249

-- Last reload --
Details:
	Reload number: 1
	Reload reason: initial
	Finished: Yes
	Packs: vanilla

-- System Details --
Details:
	Minecraft Version: 1.20.6
	Minecraft Version ID: 1.20.6
	Operating System: Windows 11 (amd64) version 10.0
	Java Version: 21.0.2, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
	Memory: 635437056 bytes (606 MiB) / 1314914304 bytes (1254 MiB) up to 4294967296 bytes (4096 MiB)
	CPUs: 16
	Processor Vendor: AuthenticAMD
	Processor Name: AMD Ryzen 7 5700G with Radeon Graphics         
	Identifier: AuthenticAMD Family 25 Model 80 Stepping 0
	Microarchitecture: Zen 3
	Frequency (GHz): 3.79
	Number of physical packages: 1
	Number of physical CPUs: 8
	Number of logical CPUs: 16
	Graphics card #0 name: NVIDIA GeForce GTX 1080 Ti
	Graphics card #0 vendor: NVIDIA
	Graphics card #0 VRAM (MB): 11264.00
	Graphics card #0 deviceId: VideoController1
	Graphics card #0 versionInfo: 31.0.15.4617
	Memory slot #0 capacity (MB): 8192.00
	Memory slot #0 clockSpeed (GHz): 3.20
	Memory slot #0 type: DDR4
	Memory slot #1 capacity (MB): 8192.00
	Memory slot #1 clockSpeed (GHz): 3.20
	Memory slot #1 type: DDR4
	Memory slot #2 capacity (MB): 8192.00
	Memory slot #2 clockSpeed (GHz): 3.20
	Memory slot #2 type: DDR4
	Memory slot #3 capacity (MB): 8192.00
	Memory slot #3 clockSpeed (GHz): 3.20
	Memory slot #3 type: DDR4
	Virtual memory max (MB): 34664.29
	Virtual memory used (MB): 10400.05
	Swap memory total (MB): 2048.00
	Swap memory used (MB): 0.00
	JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms512m -Xmx4096m
	Launched Version: 1.20.6
	Launcher name: PrismLauncher
	Backend library: LWJGL version 3.3.3-snapshot
	Backend API: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2 GL version 3.2.0 NVIDIA 546.17, NVIDIA Corporation
	Window size: 1920x1080
	GL Caps: Using framebuffer using OpenGL 3.2
	GL debug messages: 
	Using VBOs: Yes
	Is Modded: Definitely; Client brand changed to 'fabric'; Server brand changed to 'fabric'
	Universe: 400921fb54442d18
	Type: Integrated Server (map_client.txt)
	Graphics mode: fancy
	Render Distance: 20/20 chunks
	Resource Packs: vanilla
	Current Language: en_us
	Locale: en_US
	CPU: 16x AMD Ryzen 7 5700G with Radeon Graphics 
	Server Running: true
	Player Count: 1 / 8; [class_3222['Polypheides'/313, l='ServerLevel[world]', x=-48.26, y=70.66, z=-132.96]]
	Active Data Packs: vanilla
	Available Data Packs: bundle, trade_rebalance, update_1_21, vanilla
	Enabled Feature Flags: minecraft:vanilla
	World Generation: Stable
	World Seed: -7056333453461702169
#@!@# Game crashed! Crash report saved to: #@!@# D:\Program Files (x86)\PrismLauncher-Windows-MSVC-Portable-8.2\instances\Latest\.minecraft\crash-reports\crash-2024-05-04_17.00.33-client.txt
Process exited with code -1.`

@sakura-ryoko
Copy link

sakura-ryoko commented May 4, 2024

CarpetServer.java#181:
if (scriptServer != null) scriptServer.onClose(); // this is a mess, will cleanip onlly when global reference is gone if (!Vanilla.MinecraftServer_getScriptServer(server).stopAll) { Vanilla.MinecraftServer_getScriptServer(server).onClose(); }

The crash is somehow coming from this code. Not sure how (server == null) when it's being called from MinecraftServer stopServer.

@altrisi
Copy link
Collaborator

altrisi commented May 5, 2024

I think I've found the issue:

When logging into a server Carpet is getting into "client-side" mode, but it's not getting cleared when leaving (what handled this probably changed between versions). However when leaving a world it's being called, and given it's still in this client mode it thinks it has no server, and the mess of global vs non-global server is making it crash (client part gives null server, server part says it has server so it has to run, code uses given null server and crashes).

I'll try to look into a fix when I have a bit of time.

@altrisi altrisi added the bug Something isn't working label May 5, 2024
@altrisi altrisi changed the title Client crashes when I saved the world and going back to the main screen Client crash when leaving singleplayer world after having been in Carpet server May 5, 2024
@altrisi
Copy link
Collaborator

altrisi commented May 5, 2024

The build from the PR should fix it, you can get builds of it here (1.20.5-1.20.6), let me know if it works.

(Artifacts > Compiled artifacts, then from the zip get the jar with the shortest name)

@Polypheides
Copy link

i tested joining and leaving MP/SP 5 times with the 240505 artifact installed on both client/server without crashes.

I also tested with the 240505 artifact on client and the old 240429 release still on server no crash so it should be fixed.

@alext
Copy link

alext commented May 6, 2024

I've also been experiencing this bug, and can confirm that the build @altrisi posted fixes the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants