
[Bug]: Incorrect number of arguments
Closed this issue · 1 comments
Torchmaster Version
21.0.3
Mod Loader
Fabric
Mod Loader Version
0.16.13
What happened?
Running a minecraft private server with friends on MC 1.21 and every now and then the server crashes due to Incorrect number of arguments. Not able to update to 1.21.1 due to the modpack we are running which has some mods that haven't been updated to past 1.21. Is there something we can do to fix the crashing?
Relevant log output
---- Minecraft Crash Report ----
// Ouch. That hurt :(
Time: 2025-04-26 00:06:39
Description: Exception ticking world
com.llamalad7.mixinextras.injector.wrapoperation.IncorrectArgumentCountException: Incorrect number of arguments passed to Operation::call! Expected 3 but got 2. Expected types were [net.minecraft.class_1419, net.minecraft.class_3218, net.minecraft.class_2338], actual types were [net.minecraft.class_3218, net.minecraft.class_2338].
at knot//com.llamalad7.mixinextras.injector.wrapoperation.WrapOperationRuntime.checkArgumentCount(WrapOperationRuntime.java:10)
at knot//net.minecraft.class_1419.mixinextras$bridge$method_6448$7(class_1419.java)
at knot//net.minecraft.class_1419.wrapOperation$bid000$torchmaster$tryToSetupSiege_findRandomSpawnPos(class_1419.java:534)
at knot//net.minecraft.class_1419.method_6446(class_1419.java:95)
at knot//net.minecraft.class_1419.method_6445(class_1419.java:56)
at knot//net.minecraft.class_3218.method_29202(class_3218.java:444)
at knot//net.minecraft.class_3215.method_14161(class_3215.java:372)
at knot//net.minecraft.class_3215.method_12127(class_3215.java:310)
at knot//net.minecraft.class_3218.method_18765(class_3218.java:350)
at knot//net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:1021)
at knot//net.minecraft.class_3176.method_3813(class_3176.java:299)
at knot//net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:912)
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: Server thread
Stacktrace:
at knot//com.llamalad7.mixinextras.injector.wrapoperation.WrapOperationRuntime.checkArgumentCount(WrapOperationRuntime.java:10)
at knot//net.minecraft.class_1419.mixinextras$bridge$method_6448$7(class_1419.java)
at knot//net.minecraft.class_1419.wrapOperation$bid000$torchmaster$tryToSetupSiege_findRandomSpawnPos(class_1419.java:534)
at knot//net.minecraft.class_1419.method_6446(class_1419.java:95)
at knot//net.minecraft.class_1419.method_6445(class_1419.java:56)
at knot//net.minecraft.class_3218.method_29202(class_3218.java:444)
at knot//net.minecraft.class_3215.method_14161(class_3215.java:372)
at knot//net.minecraft.class_3215.method_12127(class_3215.java:310)
-- Affected level --
Details:
All players: 1 total; [class_3222['Unitarysaucer'/46230, l='ServerLevel[Mrrp meow bloomfies]', x=110.01, y=89.43, z=32.35]]
Chunk stats: 2255
Level dimension: minecraft:overworld
Level spawn location: World: (48,73,32), Section: (at 0,9,0 in 3,4,2; chunk contains blocks 48,-64,32 to 63,319,47), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
Level time: 10518880 game time, 3070756 day time
Level name: Mrrp meow bloomfies
Level game mode: Game mode: survival (ID 0). Hardcore: false. Commands: true
Level weather: Rain time: 25542 (now: false), thunder time: 33383 (now: false)
Known server brands: fabric
Removed feature flags:
Level was modded: true
Level storage version: 0x04ABD - Anvil
Loaded entity count: 273
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.class_3176.method_3813(class_3176.java:299)
at knot//net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:912)
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
Minecraft Version ID: 1.21
Operating System: Linux (amd64) version 6.1.0-32-cloud-amd64
Java Version: 21.0.4, Eclipse Adoptium
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Eclipse Adoptium
Memory: 729170952 bytes (695 MiB) / 1681915904 bytes (1604 MiB) up to 7730102272 bytes (7372 MiB)
CPUs: 2
Processor Vendor: AuthenticAMD
Processor Name: AMD EPYC 9354P 32-Core Processor
Identifier: AuthenticAMD Family 25 Model 17 Stepping 1
Microarchitecture: Zen 3
Frequency (GHz): -0.00
Number of physical packages: 1
Number of physical CPUs: 2
Number of logical CPUs: 2
Graphics card #0 name: unknown
Graphics card #0 vendor: unknown
Graphics card #0 VRAM (MiB): 0.00
Graphics card #0 deviceId: unknown
Graphics card #0 versionInfo: unknown
Virtual memory max (MiB): 3976.39
Virtual memory used (MiB): 3214.08
Swap memory total (MiB): 0.00
Swap memory used (MiB): 0.00
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: 85977.43, total: 100582.12
Space in storage for workdir (MiB): available: 85977.43, total: 100582.12
JVM Flags: 2 total; -Xmx7372M -Xms256M
Fabric Mods:
architectury: Architectury 13.0.8
athena: Athena 4.0.1
balm: Balm 21.0.41
kuma_api: KumaAPI 21.0.5
cardinal-components: Cardinal Components API 6.1.2
cardinal-components-base: Cardinal Components API (base) 6.1.2
cardinal-components-block: Cardinal Components API (blocks) 6.1.2
cardinal-components-chunk: Cardinal Components API (chunks) 6.1.2
cardinal-components-entity: Cardinal Components API (entities) 6.1.2
cardinal-components-item: Cardinal Components API (items) 6.1.2
cardinal-components-level: Cardinal Components API (world saves) 6.1.2
cardinal-components-scoreboard: Cardinal Components API (scoreboard) 6.1.2
cardinal-components-world: Cardinal Components API (worlds) 6.1.2
carryon: Carry On 2.2.1
chunkloaders: Chunk Loaders 1.2.8+b
cloth-config: Cloth Config v15 15.0.140
cloth-basic-math: cloth-basic-math 0.6.1
collective: Collective 8.3
doubledoors: Double Doors 7.0
elytraslot: Elytra Slot 9.0.1+1.21.1
fabric-api: Fabric API 0.102.0+1.21
fabric-api-base: Fabric API Base 0.4.42+6573ed8cd1
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.68+b5597344d1
fabric-biome-api-v1: Fabric Biome API (v1) 13.0.29+5bd9f1bcd1
fabric-block-api-v1: Fabric Block API (v1) 1.0.22+0af3f5a7d1
fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.10+6573ed8cd1
fabric-command-api-v1: Fabric Command API (v1) 1.2.49+f71b366fd1
fabric-command-api-v2: Fabric Command API (v2) 2.2.28+6ced4dd9d1
fabric-commands-v0: Fabric Commands (v0) 0.2.66+df3654b3d1
fabric-content-registries-v0: Fabric Content Registries (v0) 8.0.16+b5597344d1
fabric-convention-tags-v1: Fabric Convention Tags 2.0.19+7f945d5bd1
fabric-convention-tags-v2: Fabric Convention Tags (v2) 2.5.0+c5e2b5c6d1
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.29+0af3f5a7d1
fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.1.27+6a6dfa19d1
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 20.2.16+16c4ae25d1
fabric-dimensions-v1: Fabric Dimensions API (v1) 4.0.0+6fc22b99d1
fabric-entity-events-v1: Fabric Entity Events (v1) 1.6.12+6fc22b99d1
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.7.12+ba9dae06d1
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.53+6ced4dd9d1
fabric-item-api-v1: Fabric Item API (v1) 11.0.0+afdfc921d1
fabric-item-group-api-v1: Fabric Item Group API (v1) 4.1.4+78017270d1
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.3.12+6c1df360d1
fabric-loot-api-v2: Fabric Loot API (v2) 3.0.14+3f89f5a5d1
fabric-loot-api-v3: Fabric Loot API (v3) 1.0.2+3f89f5a5d1
fabric-message-api-v1: Fabric Message API (v1) 6.0.13+6573ed8cd1
fabric-networking-api-v1: Fabric Networking API (v1) 4.2.2+60c3209bd1
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 15.2.0+a551f7a4d1
fabric-particles-v1: Fabric Particles (v1) 4.0.2+6573ed8cd1
fabric-recipe-api-v1: Fabric Recipe API (v1) 5.0.12+65089712d1
fabric-registry-sync-v0: Fabric Registry Sync (v0) 5.1.2+60c3209bd1
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.48+73761d2ed1
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.1.6+b5597344d1
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 4.3.0+8dc279b1d1
fabric-resource-loader-v0: Fabric Resource Loader (v0) 1.3.0+56599129d1
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.86+b5597344d1
fabric-transfer-api-v1: Fabric Transfer API (v1) 5.1.16+3dccd343d1
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 6.1.0+176f9036d1
fabricloader: Fabric Loader 0.16.13
mixinextras: MixinExtras 0.4.1
framework: Framework 0.9.1
org_javassist_javassist: javassist 3.29.2-GA
org_reflections_reflections: reflections 0.10.2
geckolib: GeckoLib 4 4.5.8
jade: Jade 15.1.5+fabric
jamlib: JamLib 1.3.5+1.21.1
blue_endless_jankson: jankson 1.2.3
java: OpenJDK 64-Bit Server VM 21
jei: Just Enough Items **.**.**.**
jrftl: JRFTL 1.8.0
mcwpaintings: Macaw's Paintings 1.0.5
minecraft: Minecraft 1.21
moonlight: Moonlight Lib 1.21-2.18.10
oritech: Oritech 0.14.5
team_reborn_energy: Energy 4.1.0
owo: oωo **.**.**.**+1.21
io_wispforest_endec: endec **.**.**.**
io_wispforest_endec_gson: gson **.**.**.**
io_wispforest_endec_jankson: jankson **.**.**.**
io_wispforest_endec_netty: netty 0.1.2
refurbished_furniture: MrCrayfish's Furniture Mod: Refurbished 1.0.6
rightclickharvest: Right Click Harvest 4.5.3+1.21.1
smallships: Small Ships 2.0.0-b1.5
forgeconfigapiport: Forge Config API Port 21.0.8
com_electronwill_night-config_core: core 3.8.0
com_electronwill_night-config_toml: toml 3.8.0
supermartijn642configlib: SuperMartijn642's Config Lib 1.1.8
supermartijn642corelib: SuperMartijn642's Core Lib 1.1.18+a
supplementaries: Supplementaries 1.21-3.1.7
mixinsquared: MixinSquared 0.1.1
torchmaster: Torchmaster 21.0.3-alpha
travelersbackpack: Traveler's Backpack 10.1.19
trinkets: Trinkets 3.10.0
waystones: Waystones 21.1.17
xaerominimap: Xaero's Minimap 25.1.0
Server Running: true
Player Count: 1 / 20; [class_3222['Unitarysaucer'/46230, l='ServerLevel[Mrrp meow bloomfies]', x=110.01, y=89.43, z=32.35]]
Active Data Packs: vanilla, fabric, balm (incompatible), carryon (incompatible), chunkloaders (incompatible), collective, elytraslot (incompatible), fabric-convention-tags-v2, jrftl, mcwpaintings (incompatible), moonlight, oritech, refurbished_furniture (incompatible), rightclickharvest, smallships, supermartijn642corelib (incompatible), supplementaries, torchmaster (incompatible), travelersbackpack, trinkets, waystones (incompatible), supplementaries:generated_pack
Available Data Packs: balm (incompatible), bundle, carryon (incompatible), chunkloaders (incompatible), collective, elytraslot (incompatible), fabric, fabric-convention-tags-v2, jrftl, mcwpaintings (incompatible), moonlight, oritech, refurbished_furniture (incompatible), rightclickharvest, smallships, supermartijn642corelib (incompatible), supplementaries, supplementaries:generated_pack, torchmaster (incompatible), trade_rebalance, travelersbackpack, trinkets, vanilla, waystones (incompatible)
Enabled Feature Flags: minecraft:vanilla
World Generation: Stable
World Seed: 3831030326112217589
Is Modded: Definitely; Server brand changed to 'fabric'
Type: Dedicated Server (map_server.txt)
This bug is indeed fixed in later releases past 1.21.0
Considering the low complexity, I've decided to backport the bugfix to 1.21.0, Version 21.0.4 for Fabric will be released soon, containing a fix for this bug.
https://github.com/Xalcon/TorchMaster/releases/tag/mc1.21-21.0.4