Sodium

Sodium

61M Downloads

Trying to use Datagen in NeoForge with Sodium available in the mods folder freezes before it can finish

Mallowwww opened this issue ยท 1 comments

commented

Bug Description

I'm developing a mod for NeoForge 1.21.1, and was testing with Iris to make sure shaders don't break my mod's rendering stuff. However, I couldn't run the gradle task :runData, as it would always hang after 7 seconds. I removed all the mods in /run/mods until the freeze happened again, and I found that adding Sodium is the cause. I'm not sure I fully understand what Sodium does to datagen that breaks it, as there's no crash log to go on, but I suspect it's Mixin related, as I got a lot of Mixin-related messages right before it hang every time.

Image

It's not a terrible problem, bc I can just run data without Sodium available, and then add it back, but it's such a specific issue, and its likely not intentional, so I feel it warrants a bug report.

I'm using Arch Linux, kernel 6.14.2 on an 11th Gen Intel i7-1195G7

Reproduction Steps

  1. Fork the NeoForge MDK for 1.21.1 (I used ModDevGradle)
  2. Generate the run tasks by running ./gradlew createLaunchScripts (gradlew.bat on windows)
  3. Add Sodium to /run/mods
  4. Attempt to run datagen, either with an IDE or using the command ./gradlew :runData (gradlew.bat on windows)

Log File

[31May2025 20:52:41.891] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgedatadev, --assetIndex, 17, --assetsDir, /home/mallow/.gradle/caches/neoformruntime/assets, --gameDir, ., --fml.fmlVersion, 4.0.39, --fml.mcVersion, 1.21.1, --fml.neoForgeVersion, 21.1.173, --fml.neoFormVersion, 20240808.144430, --mod, deepspace, --all, --output, /home/mallow/Documents/slipboot/DeepSpace/src/generated/resources, --existing, /home/mallow/Documents/slipboot/DeepSpace/src/main/resources]
[31May2025 20:52:41.892] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: JVM identified as Arch Linux OpenJDK 64-Bit Server VM 21.0.6+7
[31May2025 20:52:41.894] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 11.0.4+main.d2e20e43 starting: java version 21.0.6 by Arch Linux; OS Linux arch amd64 version 6.14.2-arch1-1
[31May2025 20:52:41.965] [main/INFO] [net.neoforged.fml.loading.ImmediateWindowHandler/]: ImmediateWindowProvider not loading because launch target is forgedatadev
[31May2025 20:52:42.004] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.7 Source=union:/home/mallow/.gradle/caches/modules-2/files-2.1/net.fabricmc/sponge-mixin/0.15.2+mixin.0.8.7/2af2f021d8e02a0220dc27a7a72b4666d66d44ca/sponge-mixin-0.15.2+mixin.0.8.7.jar%23126!/ Service=ModLauncher Env=CLIENT
[31May2025 20:52:42.289] [main/INFO] [net.neoforged.fml.loading.moddiscovery.locators.JarInJarDependencyLocator/]: Found 14 dependencies adding them to mods collection
[31May2025 20:52:42.290] [main/INFO] [net.neoforged.fml.loading.moddiscovery.ModDiscoverer/]: 
     Mod List:
		Name Version (Mod Id)

		Deep Space 1.0 (deepspace)
		Distant Horizons 2.3.2-b (distanthorizons)
		Forgified Fabric API Base 0.4.42+d1308ded19 (fabric_api_base)
		Forgified Fabric BlockView API (v2) 1.0.10+9afaaf8c19 (fabric_block_view_api_v2)
		Forgified Fabric Renderer API (v1) 3.4.0+9c40919e19 (fabric_renderer_api_v1)
		Forgified Fabric Rendering Data Attachment (v1) 0.3.48+73761d2e19 (fabric_rendering_data_attachment_v1)
		Minecraft 1.21.1 (minecraft)
		NeoForge 21.1.173 (neoforge)
		Sodium 0.6.13+mc1.21.1 (sodium)
		Veil 1.2.4 (veil)
[31May2025 20:52:42.842] [main/INFO] [mixin/]: Compatibility level set to JAVA_17
[31May2025 20:52:42.845] [main/INFO] [mixin/]: Compatibility level set to JAVA_21
[31May2025 20:52:42.873] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgedatadev' with arguments [--gameDir, ., --assetsDir, /home/mallow/.gradle/caches/neoformruntime/assets, --assetIndex, 17, --mod, deepspace, --all, --output, /home/mallow/Documents/slipboot/DeepSpace/src/generated/resources, --existing, /home/mallow/Documents/slipboot/DeepSpace/src/main/resources]
[31May2025 20:52:42.930] [main/INFO] [Sodium/]: Loaded configuration file for Sodium: 43 options available, 0 override(s) found
[31May2025 20:52:42.932] [main/WARN] [mixin/]: Reference map 'deepspace.refmap.json' for deepspace.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.942] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.debug.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.943] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.dynamicbuffer.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.943] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.fix.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.944] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.framebuffer.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.944] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.imgui.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.944] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.necromancer.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.945] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.performance.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.945] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.perspective.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.945] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.pipeline.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.946] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.quasar.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.946] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.registry.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.946] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.rendertype.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.947] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.resource.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.947] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.scheduler.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.947] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.shader.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.948] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.tooltip.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:42.948] [main/WARN] [mixin/]: Reference map 'veil.refmap.json' for veil.neoforge.mixins.json could not be read. If this is a development environment you can ignore this message
[31May2025 20:52:43.398] [main/WARN] [mixin/]: Error loading class: net/irisshaders/iris/pipeline/PipelineManager (java.lang.ClassNotFoundException: net.irisshaders.iris.pipeline.PipelineManager)
[31May2025 20:52:43.398] [main/WARN] [mixin/]: @Mixin target net.irisshaders.iris.pipeline.PipelineManager was not found veil.neoforge.mixins.json:client.perspective.iris.PipelineManagerMixin from mod veil
[31May2025 20:52:43.604] [main/INFO] [net.neoforged.neoforge.data.loading.DatagenModLoader/]: Initializing Data Gatherer for mods [deepspace]
[31May2025 20:52:43.615] [main/INFO] [MixinExtras|Service/]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.4.1).
[31May2025 20:52:47.417] [modloading-worker-0/INFO] [Veil/]: Veil is initializing.
[31May2025 20:52:47.442] [modloading-worker-0/INFO] [net.neoforged.neoforge.common.NeoForgeMod/NEOFORGE-MOD]: NeoForge mod loading, version 21.1.173, for MC 1.21.1

Crash Report

N/A, isn't a client issue

commented

Tried to debug it; last function it calls is jdk.internal.misc.Unsafe.park()