Biome Music[Forge/Fabric]

Biome Music[Forge/Fabric]

19M Downloads

Crash: "java.lang.IllegalArgumentException: bound must be positive"

deli73 opened this issue · 3 comments

commented

Mod Version: 1.20.1-3.1 for Forge (we are using Connector, but we're using the Forge version of the mod)
Config settings changed:

  • delayModifier is set to 1.0
  • CAVE is added to the disallowed list for musicConditions under the Game category
  • maxConcurrentSounds is set to 16

Mods used:

  [✔] AmbientEnvironment-forge-1.20.1-11.0.0.1
  [✔] AmbientSounds_FORGE_v6.1.4_mc1.20.1
  [✔] amendments-1.20-1.2.16
  [✔] antique-atlas-2.11.1+1.20
  [✔] appleskin-forge-mc1.20.1-2.5.1
  [✔] architectury-9.2.14-forge
  [✔] autohud-8.2+1.20.1-forge
  [✔] azurelib-neo-1.20.1-2.0.41
  [✔] biomemusic-1.20.1-3.1
  [✔] cavedust-2.0.4-1.20.1-forge
  [✔] cloth-config-11.1.136-forge
  [✔] Connector-1.0.0-beta.46+1.20.1
  [✔] ConnectorExtras-1.11.2+1.20.1
  [✔] CreativeCore_FORGE_v2.12.31_mc1.20.1
  [✔] cupboard-1.20.1-2.7
  [✔] curios-forge-5.11.1+1.20.1
  [✔] Drip Sounds-0.4.0+1.20.4-Forge
  [✔] emi-1.1.19+1.20.1+forge
  [✔] entityculling-forge-1.7.2-mc1.20.1
  [✔] fabric-api-0.92.2+1.11.10+1.20.1
  [✔] ferritecore-6.0.1-forge
  [✔] geckolib-forge-1.20.1-4.7
  [✔] global_packs-forge-1.19.4-1.16.2_forge
  [✔] GlobalGameRules-1.20-8.0.0.11
  [✔] ImmediatelyFast-Forge-1.3.4+1.20.4
  [✔] immersive_weathering-1.20.1-2.0.5-forge
  [✔] incontrol-1.20-9.2.11
  [✔] labels-1.20-1.20.1
  [✔] matchbox-0.5.1-1.20.1
  [✔] memoryleakfix-forge-1.17+-1.1.5
  [✔] modelfix-1.15
  [✔] moonlight-1.20-2.13.58-forge
  [✔] MouseTweaks-forge-mc1.20.1-2.25.1
  [✔] oculus-mc1.20.1-1.8.0
  [✔] pick_up_torches-2.1.4-1.20_1.20.4
  [✔] player-animation-lib-forge-1.0.2-rc1+1.20
  [✔] polymorph-forge-0.49.8+1.20.1
  [✔] qualitysounds-forge-1.5.0-1.20.1
  [✔] sawmill-1.20-1.4.6
  [✔] shulkerboxtooltip-forge-4.0.4+1.20.1
  [✔] sound-physics-remastered-forge-1.20.1-1.4.8
  [✔] soundsbegone-1.2.5
  [✔] spyglass_improvements-1.5+mc1.20+forge
  [✔] supplementaries-1.20-3.1.12
  [✔] surveyor-0.6.26+1.20
  [✔] twitchintegration-1.20.1-1.0.5-pkg
  [✔] voicechat-forge-1.20.1-2.5.27
  [✔] walljump-connector-1.20.1-1.4.4
  [✔] xenon-0.3.31+mc1.20.1
  [✔] YetAnotherConfigLib-3.6.2+1.20.1-forge

Crash log:

Time: 2025-02-08 05:37:07
Description: Unexpected error

java.lang.IllegalArgumentException: bound must be positive
	at java.util.Random.nextInt(Unknown Source) ~[?:?] {re:mixin}
	at net.minecraft.client.Minecraft.handler$cip000$biomemusic$musicChoice(Minecraft.java:14618) ~[client-1.20.1-20230612.114412-srg.jar%23260!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.m_91107_(Minecraft.java) ~[client-1.20.1-20230612.114412-srg.jar%23260!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.sounds.MusicManager.m_120183_(MusicManager.java:27) ~[client-1.20.1-20230612.114412-srg.jar%23260!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:biomemusic.mixins.json:MusicManagerMixin from mod biomemusic,pl:mixin:A,pl:connector_pre_launch:A}
	at net.minecraft.client.Minecraft.m_91398_(Minecraft.java:1821) ~[client-1.20.1-20230612.114412-srg.jar%23260!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1112) ~[client-1.20.1-20230612.114412-srg.jar%23260!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:718) ~[client-1.20.1-20230612.114412-srg.jar%23260!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.main.Main.main(Main.java:218) ~[minecraft-1.20.1-client.jar:?] {re:mixin,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:mixins.emibridge.json:MainEntrypointMixin from mod connectorextras_emi_bridge,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?] {}
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?] {}
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] {}
	at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) ~[fmlloader-1.20.1-47.3.0.jar:?] {}
	at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99) ~[fmlloader-1.20.1-47.3.0.jar:?] {}
	at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25) ~[fmlloader-1.20.1-47.3.0.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?] {}
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?] {}
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] {}
	at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:67) ~[?:?] {}
	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
Suspected Mod: 
	biomemusic mod (biomemusic), Version: 1.20.1-3.1
		Mixin class: com.biomemusic.mixin.ClientMusicChoiceMixin
		Target: net.minecraft.client.Minecraft
		at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.handler$cip000$biomemusic$musicChoice(Minecraft.java:14618)
Stacktrace:
	at java.util.Random.nextInt(Unknown Source) ~[?:?] {re:mixin}
	at net.minecraft.client.Minecraft.handler$cip000$biomemusic$musicChoice(Minecraft.java:14618) ~[client-1.20.1-20230612.114412-srg.jar%23260!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.m_91107_(Minecraft.java) ~[client-1.20.1-20230612.114412-srg.jar%23260!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.sounds.MusicManager.m_120183_(MusicManager.java:27) ~[client-1.20.1-20230612.114412-srg.jar%23260!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:biomemusic.mixins.json:MusicManagerMixin from mod biomemusic,pl:mixin:A,pl:connector_pre_launch:A}
-- Affected level --
Details:
	All players: 1 total; [LocalPlayer['Sunroses'/119, l='ClientLevel', x=79.47, y=27.42, z=12.75]]
	Chunk stats: 1225, 809
	Level dimension: minecraft:overworld
	Level spawn location: World: (0,71,32), Section: (at 0,7,0 in 0,4,2; chunk contains blocks 0,-64,32 to 15,319,47), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
	Level time: 440998 game time, 17457 day time
	Server brand: forge
	Server type: Integrated singleplayer server
Stacktrace:
	at net.minecraft.client.multiplayer.ClientLevel.m_6026_(ClientLevel.java:455) ~[client-1.20.1-20230612.114412-srg.jar%23260!/:?] {re:mixin,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:xenon.mixins.json:features.render.world.ClientLevelMixin from mod xenon,pl:mixin:APP:surveyor.mixins.json:client.MixinClientWorld from mod surveyor,pl:mixin:APP:supplementaries-common.mixins.json:ClientLevelMixin from mod supplementaries,pl:mixin:APP:mixins.oculus.vertexformat.json:block_rendering.MixinClientLevel from mod oculus,pl:mixin:APP:architectury.mixins.json:MixinClientLevel from mod architectury,pl:mixin:APP:fabric-lifecycle-events-v1.client.mixins.json:ClientWorldMixin from mod fabric_lifecycle_events_v1,pl:mixin:APP:waterdripsound.mixins.json:client.MixinClientLevel from mod waterdripsound,pl:mixin:APP:entityculling.mixins.json:ClientWorldMixin from mod entityculling,pl:mixin:APP:sound_physics_remastered.mixins.json:ClientLevelMixin from mod (unknown),pl:mixin:APP:xenon.mixins.json:core.world.biome.ClientWorldMixin from mod xenon,pl:mixin:APP:xenon.mixins.json:core.world.map.ClientWorldMixin from mod xenon,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.m_91354_(Minecraft.java:2319) ~[client-1.20.1-20230612.114412-srg.jar%23260!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:740) ~[client-1.20.1-20230612.114412-srg.jar%23260!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.main.Main.main(Main.java:218) ~[minecraft-1.20.1-client.jar:?] {re:mixin,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:mixins.emibridge.json:MainEntrypointMixin from mod connectorextras_emi_bridge,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?] {}
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?] {}
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] {}
	at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) ~[fmlloader-1.20.1-47.3.0.jar:?] {}
	at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99) ~[fmlloader-1.20.1-47.3.0.jar:?] {}
	at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25) ~[fmlloader-1.20.1-47.3.0.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?] {}
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?] {}
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] {}
	at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:67) ~[?:?] {}
	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) ~[?:?] {}
commented

probably worth noting that we were playing the game for a good few hours before this came up? It may have required a bit of a fluke of conditions to cause this, unless Curios somehow caused it (since we added that not long before the crash), which we doubt.

commented

update: forcing music to stop by setting music volume to "OFF" and then turning it back on seems to trigger the crash almost immediately, so we suspect it's an issue with the mod deciding how long to wait until starting a new track? i think setting the delay modifier was perhaps what did it, and we just never ran into the conditions necessary to set this off before.

after setting the delay modifier to something below 1 it still causes the crash, and it's happening on its own less than a minute after loading the world each time now, weird.

commented

fixed in 3.3