Supplementaries

Supplementaries

127M Downloads

[๐Ÿž]: Game crashes when shooting a Rope Arrow from a Dispenser

Closed this issue ยท 4 comments

commented

Before Continuing:

  • Check you are using the latest version of the mods and its dependencies
  • Always include a latest.log if you are crashing
  • Remove mod that enhances Minecraft: Optifine, Sodium, others. The issue persists.
  • If you are unsure which mod is the culprit.
    Disable all of your mods and enable them 1-2 mods each time to isolate the culprit
  • Confirm that there is no existing issue with a similar description submitted in the list of issues.

Version

1.21.1-FABRIC

Supplementaries Version

supplementaries-1.21-3.1.7-fabric

Moonlight Lib Version

moonlight-1.21-2.18.13-fabric

Describe Issue

Attempting to shoot a Rope Arrow out of a Dispenser immediately crashes the game. From looking at the logs, it appears the projectile it attempts to shoot returns null.

The log report is shown below (with sensitive information removed):

---- Minecraft Crash Report ----
// I feel sad now :(

Time: 2025-05-15 22:10:24
Description: Exception ticking world

java.lang.NullPointerException: Cannot invoke "net.minecraft.class_1937.method_30349()" because the return value of "net.minecraft.class_1297.method_37908()" is null
	at knot//net.mehvahdjukaar.moonlight.core.network.fabric.ClientBoundSpawnCustomEntityMessage.<init>(ClientBoundSpawnCustomEntityMessage.java:60)
	at knot//net.mehvahdjukaar.moonlight.api.platform.fabric.PlatHelperImpl.getEntitySpawnPacket(PlatHelperImpl.java:289)
	at knot//net.mehvahdjukaar.moonlight.api.platform.PlatHelper.getEntitySpawnPacket(PlatHelper.java)
	at knot//net.mehvahdjukaar.supplementaries.common.entities.RopeArrowEntity.method_18002(RopeArrowEntity.java:56)
	at knot//net.minecraft.class_3231.method_18757(class_3231.java:274)
	at knot//net.minecraft.class_3231.method_18760(class_3231.java:265)
	at knot//net.minecraft.class_3898$class_3208.method_18736(class_3898.java:1316)
	at knot//net.minecraft.class_3898$class_3208.method_18729(class_3898.java:1342)
	at knot//net.minecraft.class_3898.method_18701(class_3898.java:1110)
	at knot//net.minecraft.class_3215.method_18755(class_3215.java:467)
	at knot//net.minecraft.class_3218$class_5526.method_31436(class_3218.java:1592)
	at knot//net.minecraft.class_3218$class_5526.method_31798(class_3218.java:1570)
	at knot//net.minecraft.class_5579.method_31847(class_5579.java:216)
	at knot//net.minecraft.class_5579.method_31820(class_5579.java:186)
	at knot//net.minecraft.class_5579.method_31818(class_5579.java:167)
	at knot//net.minecraft.class_3218.method_14175(class_3218.java:935)
	at knot//net.minecraft.class_3218.method_8649(class_3218.java:893)
	at knot//net.minecraft.class_2965.method_10135(class_2965.java:34)
	at knot//net.minecraft.class_2347.dispense(class_2347.java:17)
	at knot//net.minecraft.class_2315.method_10012(class_2315.java:110)
	at knot//net.minecraft.class_2315.method_9588(class_2315.java:136)
	at knot//net.minecraft.class_4970$class_4971.method_26192(class_4970.java:1149)
	at knot//net.minecraft.class_3218.method_14189(class_3218.java:759)
	at knot//net.minecraft.class_6757.method_39390(class_6757.java:215)
	at knot//net.minecraft.class_6757.method_39377(class_6757.java:98)
	at knot//net.minecraft.class_3218.method_18765(class_3218.java:339)
	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(Thread.java:1583)


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

-- Head --
Thread: Render thread
Stacktrace:
	at knot//net.mehvahdjukaar.moonlight.core.network.fabric.ClientBoundSpawnCustomEntityMessage.<init>(ClientBoundSpawnCustomEntityMessage.java:60)
	at knot//net.mehvahdjukaar.moonlight.api.platform.fabric.PlatHelperImpl.getEntitySpawnPacket(PlatHelperImpl.java:289)
	at knot//net.mehvahdjukaar.moonlight.api.platform.PlatHelper.getEntitySpawnPacket(PlatHelper.java)
	at knot//net.mehvahdjukaar.supplementaries.common.entities.RopeArrowEntity.method_18002(RopeArrowEntity.java:56)
	at knot//net.minecraft.class_3231.method_18757(class_3231.java:274)
	at knot//net.minecraft.class_3231.method_18760(class_3231.java:265)
	at knot//net.minecraft.class_3898$class_3208.method_18736(class_3898.java:1316)
	at knot//net.minecraft.class_3898$class_3208.method_18729(class_3898.java:1342)
	at knot//net.minecraft.class_3898.method_18701(class_3898.java:1110)
	at knot//net.minecraft.class_3215.method_18755(class_3215.java:467)
	at knot//net.minecraft.class_3218$class_5526.method_31436(class_3218.java:1592)
	at knot//net.minecraft.class_3218$class_5526.method_31798(class_3218.java:1570)
	at knot//net.minecraft.class_5579.method_31847(class_5579.java:216)
	at knot//net.minecraft.class_5579.method_31820(class_5579.java:186)
	at knot//net.minecraft.class_5579.method_31818(class_5579.java:167)
	at knot//net.minecraft.class_3218.method_14175(class_3218.java:935)
	at knot//net.minecraft.class_3218.method_8649(class_3218.java:893)
	at knot//net.minecraft.class_2965.method_10135(class_2965.java:34)
	at knot//net.minecraft.class_2347.dispense(class_2347.java:17)
	at knot//net.minecraft.class_2315.method_10012(class_2315.java:110)
	at knot//net.minecraft.class_2315.method_9588(class_2315.java:136)
	at knot//net.minecraft.class_4970$class_4971.method_26192(class_4970.java:1149)
	at knot//net.minecraft.class_3218.method_14189(class_3218.java:759)
	at knot//net.minecraft.class_6757.method_39390(class_6757.java:215)
	at knot//net.minecraft.class_6757.method_39377(class_6757.java:98)

-- Affected level --
Details:
	All players: 2 total; [class_3222['<REMOVED>'/6, l='ServerLevel[Grand Dad 10]', x=96.66, y=76.00, z=-328.20], class_3222['<REMOVED>'/2634, l='ServerLevel[Grand Dad 10]', x=101.23, y=76.80, z=-326.17]]
	Chunk stats: 3249
	Level dimension: minecraft:overworld
	Level spawn location: World: (-10,80,-280), Section: (at 6,0,8 in -1,5,-18; chunk contains blocks -16,-64,-288 to -1,319,-273), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,-64,-512 to -1,319,-1)
	Level time: 118974 game time, 8330 day time
	Level name: Grand Dad 10
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Commands: true
	Level weather: Rain time: 1 (now: false), thunder time: 1 (now: false)
	Known server brands: fabric
	Removed feature flags: 
	Level was modded: true
	Level storage version: 0x04ABD - Anvil
	Loaded entity count: 395
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(Thread.java:1583)

-- System Details --
Details:
	Minecraft Version: 1.21.1
	Minecraft Version ID: 1.21.1
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 21.0.3, Microsoft
	Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
	Memory: 395473560 bytes (377 MiB) / 3395289088 bytes (3238 MiB) up to 4294967296 bytes (4096 MiB)
	CPUs: 12
	Processor Vendor: AuthenticAMD
	Processor Name: AMD Ryzen 5 3600 6-Core Processor              
	Identifier: AuthenticAMD Family 23 Model 113 Stepping 0
	Microarchitecture: Zen 2
	Frequency (GHz): 3.60
	Number of physical packages: 1
	Number of physical CPUs: 6
	Number of logical CPUs: 12
	Graphics card #0 name: NVIDIA GeForce GTX 1660 SUPER
	Graphics card #0 vendor: NVIDIA
	Graphics card #0 VRAM (MiB): 6144.00
	Graphics card #0 deviceId: VideoController1
	Graphics card #0 versionInfo: 32.0.15.6094
	Memory slot #0 capacity (MiB): 16384.00
	Memory slot #0 clockSpeed (GHz): 2.67
	Memory slot #0 type: DDR4
	Virtual memory max (MiB): 29259.27
	Virtual memory used (MiB): 25425.54
	Swap memory total (MiB): 12926.07
	Swap memory used (MiB): 3080.54
	Space in storage for jna.tmpdir (MiB): <path not set>
	Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): <path not set>
	Space in storage for io.netty.native.workdir (MiB): <path not set>
	Space in storage for java.io.tmpdir (MiB): available: 11586.49, total: 487762.06
	Space in storage for workdir (MiB): available: 11586.49, total: 487762.06
	JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms512m -Xmx4096m
	Fabric Mods: 
		ambientsounds: AmbientSounds 6.1.4
		amendments: Amendments 1.21-1.2.24
		appleskin: AppleSkin 3.0.6+mc1.21
		balm: Balm 21.0.41
			kuma_api: KumaAPI 21.0.5
		bestylewither: BE Style Wither 1.8.0
		bountifulfares: Bountiful Fares 2.0.5
			terraform-wood-api-v1: Terraform Wood API (v1) 11.0.0
		c418-discs: C418 Discs 1.0.0-1.21.1
		chromatic: Chromatic 1.2.2
			org_jglr_jchroma_jchroma_: JChroma 0.1
		cloth-config: Cloth Config v15 15.0.140
			cloth-basic-math: cloth-basic-math 0.6.1
		cobweb: Cobweb 1.3.2
		creativecore: CreativeCore 2.12.23
			net_neoforged_bus: bus 7.2.0
		desire: Desire 1.0.0-1.21.1
		dogslie: Let Sleeping Dogs Lie 1.3.0
		dummmmmmy: MmmMmmMmmMmm 1.21-2.0.7
		fabric-api: Fabric API 0.115.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.31+d527f9fd19
			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.4.1+9ed317f519
			fabric-data-generation-api-v1: Fabric Data Generation API (v1) 20.2.25+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.14+248df81c19
			fabric-registry-sync-v0: Fabric Registry Sync (v0) 5.2.0+34f5d91419
			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.88+b559734419
			fabric-sound-api-v1: Fabric Sound API (v1) 1.0.23+6573ed8c19
			fabric-transfer-api-v1: Fabric Transfer API (v1) 5.4.2+c24bd99419
			fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 6.2.0+45b9699719
		fabricloader: Fabric Loader 0.16.10
			mixinextras: MixinExtras 0.4.1
		farmersdelight: Farmer's Delight 1.21.1-3.0.1+refabricated
			mm: Manningham Mills 2.3
		figura: Figura 0.1.5-rc.3+1.21
			com_github_figuramc_luaj_luaj-core: luaj-core 3.0.8-figura
			com_github_figuramc_luaj_luaj-jse: luaj-jse 3.0.8-figura
			com_neovisionaries_nv-websocket-client: nv-websocket-client 2.14
		frontiers: Frontiers 1.0.0-1.21.1
		ichunutil: iChunUtil 1.0.3
		iris: Iris 1.8.1+mc1.21.1
			io_github_douira_glsl-transformer: glsl-transformer 2.0.1
			org_anarres_jcpp: jcpp 1.4.14
			org_antlr_antlr4-runtime: antlr4-runtime 4.13.1
		java: OpenJDK 64-Bit Server VM 21
		lambdynlights: LambDynamicLights 3.1.4+1.21.1
			pride: Pride Lib 1.2.1+1.21
			spruceui: SpruceUI 5.1.0+1.21
		leahs-immersive-thunder: Immersive Thunder 1.21.1+1.2.2
		littlejoys: Little Joys 21.1.4
		macebut3d: Mace but 3D 1.0.1
		minecraft: Minecraft 1.21.1
		modelfix: Model Gap Fix 1.21-1.6
		moonlight: Moonlight Lib 1.21-2.18.13
		notenoughanimations: NotEnoughAnimations 1.9.1
		rusticdelight: Rustic Delight 1.4.0
		sawmill: Universal Sawmill 1.21-1.5.13
		sodium: Sodium 0.6.5+mc1.21.1
		soul_fire_d: Soul Fire'd 5.1.6
		sound_physics_remastered: Sound Physics Remastered 1.21.1-1.4.8
		status-effect-bars: Status Effect Bars 1.0.6
		supplementaries: Supplementaries 1.21-3.1.7
			mixinsquared: MixinSquared 0.1.1
		takesapillage: It Takes a Pillage Continuation 1.0.6
		trailandtales_delight: Trail&Tales Delight 1.0.0-ArtyrianRemix
		vcinteraction: Voice Chat Interaction 1.21.1-1.0.8
			polymer-registry-sync-manipulator: Polymer (Registry Sync Manipulator) 0.9.9+1.21
		voicechat: Simple Voice Chat 1.21.1-2.5.27
		xaerominimap: Xaero's Minimap 25.1.0
		xaeroworldmap: Xaero's World Map 1.39.4
		yigd: You're in Grave Danger 2.4.16
			fabric-permissions-api-v0: fabric-permissions-api 0.3.1
			libgui: LibGui 11.1.0+1.21
				jankson: Jankson 8.0.0+j1.2.3
					blue_endless_jankson: jankson 1.2.3
				libninepatch: LibNinePatch 1.2.0
	Loaded Shaderpack: (off)
	Server Running: true
	Player Count: 2 / 8; [class_3222['<REMOVED>'/6, l='ServerLevel[Grand Dad 10]', x=96.66, y=76.00, z=-328.20], class_3222['<REMOVED>'/2634, l='ServerLevel[Grand Dad 10]', x=101.23, y=76.80, z=-326.17]]
	Active Data Packs: vanilla, fabric, amendments, balm (incompatible), bountifulfares, c418-discs, desire, dummmmmmy, fabric-convention-tags-v2, farmersdelight, frontiers, littlejoys (incompatible), moonlight, rusticdelight, sawmill, supplementaries, takesapillage, trailandtales_delight, vcinteraction, yigd, bountifulfares:farmersdelight_dat, bountifulfares:amendments_dat (incompatible), mod/soul_fire_d:datapack/enchantments, moonlight:mods_dynamic_assets, sawmill:sawmill_recipes, soul_fire_d:campfire_tags, soul_fire_d:fire_source_tags, supplementaries:generated_pack
	Available Data Packs: amendments, balm (incompatible), bountifulfares, bountifulfares:amendments_dat (incompatible), bountifulfares:farmersdelight_dat, bundle, c418-discs, desire, dummmmmmy, fabric, fabric-convention-tags-v2, farmersdelight, frontiers, littlejoys (incompatible), mod/soul_fire_d:datapack/enchantments, moonlight, moonlight:mods_dynamic_assets, rusticdelight, sawmill, sawmill:sawmill_recipes, soul_fire_d:campfire_tags, soul_fire_d:fire_source_tags, supplementaries, supplementaries:generated_pack, takesapillage, trade_rebalance, trailandtales_delight, vanilla, vcinteraction, yigd
	Enabled Feature Flags: minecraft:vanilla
	World Generation: Experimental
	World Seed: 2874272102015179117
	Type: Integrated Server (map_client.txt)
	Is Modded: Definitely; Client brand changed to 'fabric'; Server brand changed to 'fabric'
	Launched Version: 1.21.1
commented

Could you test with just supplementaries?

commented

Could you test with just supplementaries?

Definitely. Just attempted it again with only Supplementaries and the required libs, and it immediately crashed with the exact same NullPointerException issue: Cannot invoke "net.minecraft.class_1937.method_30349()" because the return value of "net.minecraft.class_1297.method_37908()" is null.

I'm not too sure of how MoonlightLib works under the hood, but from tracing it back, my best guess is that the issue lies somewhere in creating a new instance of ClientBoundSpawnCustomEntityMessage via Fabric's PlatHelperImpl, in which the Entity's world just doesn't exist - perhaps done from the wrong world side? Not sure if that's really helpful at all.

Every other dispenser behavior seems to work fine upon further testing.

commented

I can confirm the exact same behaviour.

commented

fixed