DMF

DMF

58 Downloads

Server startup hangs indefinitely

MightyKnight opened this issue ยท 7 comments

commented

Hi,
I have a strange issue occuring when trying to use this mod.
My server startup hangs indefinitely on SpongePowered MIXIN Subsystem when it is installed. Launches fine with any other mod.

I'm using:

  • Minecraft 1.16.5
  • Fabric Loader 0.11.3
  • Fabric API 0.34.2
  • Java 16

Nothing except API and your mod (version 1.0.0) is loaded.

Hoping this is not some obscure thing, if I can do anything to diagnose this better I'm open to ideas.

Server log (this is all there is):

[01:35:41] [main/INFO]: Loading for game Minecraft 1.16.5
[01:35:42] [main/INFO]: [FabricLoader] Loading 48 mods: [email protected], [email protected]+9354966b7d, [email protected]+ca58154a7d, [email protected]+2868a2287d, [email protected]+ca58154a7d, [email protected], [email protected]+351679a77d, [email protected], [email protected]+c045166c7d, [email protected]+8183d3957d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+9354966b7d, [email protected]+61336ba97d, [email protected]+c88702897d, java@16, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+c88702897d, [email protected]+c88702897d, [email protected]+ca58154a7d, [email protected]+9354966b7d, [email protected]+2868a2287d, [email protected]+ca58154a7d, [email protected]+2868a2287d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+2868a2287d, [email protected]+e3c9d0627d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+1.16, [email protected]+2868a2287d, [email protected]+bc7a746f7d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+ca58154a7d, [email protected]+dc716ea17d
[01:35:42] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/C:/Users/Username/Documents/Minecraft%20Servers/Discord%20Mod%20Comparisons/fabric-server-launch.jar Service=Knot/Fabric Env=SERVER
commented

Well this is definitely a bug, I will try to recreate it now and then comment on how it goes.

commented

It works fine for me under the same environment, I believe that the mod is just unable to pull its dependencies so can you try adding them manually? In the server root folder create a libs folder and add this to it under the name "javacord.jar" then comment how it goes

It should end up like this: serverRootDir\libs\javacord.jar

commented

Thank you for getting back to me.

So, adding the provided file doesn't change anything.
The download seemed to work anyway, javacord.jar already existed in the libs folder.

Had time to add a few print statements to the code.
What happens is that in the loadLibs() function it never sets loadedLibs as it jumps into the "other classloaders" branch. So the while loop at the beginning runs forever.

} else {
// TODO: load with other class loaders
}

commented

Thanks for the response, I'll work on fixing this soon, thanks for the report

commented

Sorry about the delay, I looked into it and the only way I can see to make it work would be to update the java version on the whole project, however this project was only made as a test and as a result I do not wish to do that. Instead I recommend using this mod. Sorry about this.

commented

I'm very aware of alternatives, since I'm working on a comparison of Minecraft Discord mods.
What java version would I need? Or should I not include this in the comparison since it is only a test project?

Regardless of the above, I suggest forcefully crashing and/or printing an error message if the classloader fails instead of running an endless loop.

Thanks for looking into it anyway.

commented

I personally use jre1.8.0_291 and it works fine for me. However, I recommend avoiding this mod due to it being a test for what I can do in fabric.