-
Notifications
You must be signed in to change notification settings - Fork 192
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
[1.16.5] Crashing on launch. #190
Comments
Weird. Did you get this just once, or have you tried booting again? Sometimes Forge can be temperamental. |
Every time I launch. |
Sorry to dirty up the comments, but I'm having the same issue when I launch my server, though not on clientside. |
This is extremely likely to be caused by your choice of a JVM to run the game being OpenJ9. Please try with HotSpot? |
Hey, @Hubry , thanks for the solution. Hotspot works for me and my server is up and running. Can you explain why J9 would cause such an issue btw? Or a link that can clarify this. |
Well, the cause of the crash is simply that typetools (a library that Forge's event bus is using) uses JVM internals for a few things, and these internals are different on OpenJ9, which makes it fail a lookup it is doing when a mod subscribes to events manually. See the issue above your comment. This JVM was blacklisted in modlauncher apparently because of some ASM transformation weirdness (see commit message here), but there are other problematic spots like around runtime enum changes. |
MinecraftForge/typetools#3 |
It is also worth pointing out that, by relying on static initializer, you are accidentally accessing your
This was in turn occured during
Of course your
FarmersDelight/src/main/java/vectorwing/farmersdelight/world/CropPatchGeneration.java Lines 36 to 49 in 8adb746
|
I wasn't aware there was a DeferredRegister for Features, that's good to know. Glad to know people are spotting these details! 😄 |
The issue has been fixed by eclipse-openj9/openj9#12148 and eclipse-openj9/openj9#12164. |
@vectorwing A quick correction on my previous statement: apparently you cannot use For regular An example may be found at here: https://github.com/MysticMods/Traverse/blob/1.16/src/main/java/epicsquid/traverse/init/ModFeatures.java |
Finally got some time to look at this properly. 🤦♂️ OK, so I already use Also, good to know the surrounding OpenJ9 issues are resolved! 👍 |
That is correct. |
I pushed a branch with the proposed changes, after chatting a bunch on Discord as well. Gonna open a PR for it soon; to anyone here, feel free to look over it and review whether I understood what was meant here, as I'm a bit new to some of this. x) |
Separate biome features and biome events on load, closes #190
Game is crashing on launch. java 8 used.
https://paste.ee/p/wvLGq
Forge 36.0.15
FD 0.3.2
The text was updated successfully, but these errors were encountered: