-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MC 1.12.2 Forge Crash - BlockPos IllegalAccessError #3820
Comments
I can confirm this bug happens, however so far I only had it happen in really nonstandard setups (srg mapped unoptimized 1.12.2 build of Baritone in the dev env of another mod) so I didn't care too much. If I remember correctly it's some remapper choking on the shadowing relation between fields in |
@ZacSharp that makes a lot of sense and would definitely explain the behavior I've noted. Thank you for sharing the information it gives me a better idea of where to look. It's been a while since I've debugged a metaprogramming issue and I haven't been in Java land for nearly 7 years so this will be interesting to say the least. If I find any fix(es) I will include the information here or in a PR if appropriate. Though I doubt that any fix would apply to baritone itself, and imagine it would require a monkeypatch on whatever code is remapping things. |
Isolated the mod package responsible for introducing this behavior: Conveniently there was a configuration boolean within 'loliasm.cfg' under the config folder which immediately fixed the issue, no code deep dive or patch necessary. Set to false in the cfg file: I still never resolved the forge loader mixin crash introduced by the RandomPatches package within this modpack but that is out of scope for this issue as named. Thanks again @ZacSharp, hope this helps someone else in future! |
Resolved the mixin crash from RandomPatches. Set the following to false in the 'randompatches.cfg' file within the config folder: |
I did some searching (because #3855 (comment) got me worried about this again) and it seems like that LoliASM's optimization effectively disables the fix for MinecraftForge/MinecraftForge#3043. Not sure whether it is intentionally blocking the required mappings as "redundant" (they always map a name to itself) or whether that's an accident. The problem I experienced myself on the other hand is probably md-5/SpecialSource#72 and actually not the same. |
ahh. so would actually using srg mappings for forge builds in 1.12 fix it? |
First off to be clear: the problem this issue is about was fixed a long time ago and only reappeared due to an overly aggressive optimization mod. The other problem I'm talking about will not be fixed by using srg mappings. So far I only had it happen with srg mappings, though #3859 and #2865 suggest it can happen with notch mappings as well. (EDIT: Confirmed with standard notch mapped Baritone and a standard Forge install). |
how do i fix the loliasm issue? |
Some information
Operating system: Windows 10
Java version: 1.8.0_271
Minecraft version: 1.12.2
Baritone version: v1.2.* (tried many releases, api and standalone)
Other mods (if used): Tons. Using in a modpack. (I understand that this is unsupported).
I removed the RandomPatches mod which was causing a forge mixin crash and was able to load the instance successfully. I have a feeling something else is modifying/changing the interface to internal classes and causing the BlockPos->BetterBlockPos issues. Validated that -noverify is not being passed to java (as best as i can tell).
Also, Baritone does not show up in the mod list unless I manually add a mcmod.info file to it. Not sure whats up with that.. am I simply not loading the mod correctly or using an incompatible baritone version?
Crash occurs on server connection.
Any guidance would be much appreciated.
Exception, error or logs
See attached crash report.
crash-2023-01-29_19.17.21-client.txt
How to reproduce
Modified settings
To get the modified settings run
#modified
in gameFinal checklist
The text was updated successfully, but these errors were encountered: