Closed mist475 closed 5 months ago
Looks like gson is trying to serialize atomics by reflecting into their private internals, I'll see if I can just update gson or alternatively the workaround for now would be to add --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED
to the jvm flags
that fixes the logged error in the game logs but not the web map itself unfortunately
I should note that fixing issues like this will become a lot easier soon. I was just told that journeymap 1.7 is getting relicensed to lgpl with the source code becoming available soon
Journeymap dev here. Once we get 1.7.10 in a buildable state, this code has not been touched or looked at in years. I will open up the repo to the public. The hotfix yesterday was just a swap of files in the jar.
Only the 1.7.10 codebase will be open sourced for now.
gson breaks not only journeymap with lwjgl3ify. trying to use fromJson
on pretty much any class will cause this error, as gson goes through the nested fields all the way down to the bottom, so it says random java classes cant be accessed. maybe lwjgl3ify could find a way to export/open all the java packages to gson? (is this even possible)
This is no longer an issue on the latest journeymap versions.
Journeymap got a new hotfix yesterday to fix the broken webmap. Unfortunately it looks like lwg3ify somehow breaks gson calls due to some reflection schenaningans. Tested on java 8 & 11 with UniMixins, Gtnhlib, lwgl3ify (all latest) and journeymap 5.1.4p3. Usually the default journeymap web map default screen ('no world opened') does show but it doesn't get further than that.
In java 11 the following is logged:
In j8 nothing is logged but in both cases the browser gives the same errors/warnings:
After hanging for a while the following errors are also thrown in the browser (tested with edge and chrome):