Fabric API

Fabric API

106M Downloads

Crash in fabric-registry-sync-v0

Reabstraction opened this issue ยท 2 comments

commented

Crash in fabric-registry-sync

To clarify: the stuffs mod is an empty mod (no actual code)

Observations

When trying to apply Mixin fabric-registry-sync-v0.mixins.json:SimpleRegistryMixin
It will crash. I don't know why.
See Attachments for more info

Attachments

latest.log
debug.log

Please rename the jar below to <name>.jar
stuffs-1.0-SNAPSHOT.jar.zip

Invoked using the command

C:\Users\Lmaxplay\.jdks\openjdk-17.0.2\bin\java.exe -Dfabric.dli.config=C:\Users\Lmaxplay\Projects\Stuffs\.gradle\loom-cache\launch.cfg -Dfabric.dli.env=client -Dfabric.dli.main=net.fabricmc.loader.impl.launch.knot.KnotClient "-javaagent:C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2022.1\lib\idea_rt.jar=61426:C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2022.1\bin" -Dfile.encoding=UTF-8 @C:\Users\Lmaxplay\AppData\Local\Temp\idea_arg_file1717221959 net.fabricmc.devlaunchinjector.Main

Path

C:\Program Files\PowerShell\7;C:\Program Files\Python310\Scripts\;C:\Program Files\Python310\;c:\devkitPro\msys2\usr\bin;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\libnvvp;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Python310\Scripts\;C:\Python310\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.1.1\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\gsudo\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\Lmaxplay\AppData\Roaming\nvm;C:\Program Files\Neovim\/bin;C:\Users\Lmaxplay\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Go\bin;C:\Program Files\CMake\bin;C:\Users\Lmaxplay\AppData\Roaming\Python\Python310\Scripts;C:\Program Files (x86)\Certbot\bin;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\PowerShell\7\;C:\Users\Lmaxplay\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\Lmaxplay\AppData\Local\Programs\Python\Python311\;C:\Users\Lmaxplay\.cargo\bin;C:\Users\Lmaxplay\scoop\shims;C:\Users\Lmaxplay\AppData\Local\Microsoft\WindowsApps;C:\Users\Lmaxplay\.dotnet\tools;C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin;C:\Users\Lmaxplay\Programs\GNUGlobal\bin;C:\tools\dart-sdk\bin;C:\Users\Lmaxplay\AppData\Roaming\Pub\Cache\bin;C:\Users\Lmaxplay\.dotnet\tools;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.3.3\bin;C:\Users\Lmaxplay\AppData\Local\Programs\oh-my-posh\bin;C:\Users\Lmaxplay\go\bin;C:\Users\Lmaxplay\Global
commented
Caused by: java.lang.NoSuchMethodError: 'net.minecraft.util.Identifier net.minecraft.util.registry.RegistryKey.method_29177()'
	at net.minecraft.util.registry.SimpleRegistry.handler$zfn000$setPre(SimpleRegistry.java:683) ~[[email protected]:?]

Looks to me like something wasn't deobfuscated properly?

That method_291770 is the intermediary name. In a development environment it should be getValue
https://github.com/FabricMC/yarn/blob/6070b0fe01f1d27ead7b476963d0fd8c1b43071e/mappings/net/minecraft/util/registry/RegistryKey.mapping#L16

If there was any error logged, it would have occurred when you were building your project.
Rather than when running minecraft.

Try deleting your loom-cache to see if that fixes the problem.
Deleting that cache should cause things to be rebuilt/deobfuscated.
Yours is in C:\Users\Lmaxplay\Projects\Stuffs\.gradle\loom-cache

commented

๐Ÿ‘‹ We use the issue tracker exclusively for final bug reports and feature requests. However, this issue appears to be better suited for either a discussion thread, or a message on our discord server. Please post your request on one of these, and the conversation can continue there.