Open LemADEC opened 7 years ago
Looks like a bug in JVM. Have you updated to the latest Java version to see if it corrects?
A dedicated thread tries to update a collection and result in an Access Violation, that's a typical of concurrent access issue for me. Players have learned to disconnect before server restarts to avoid crashes for now.
Dynamic Surroundings runs in the context of the client thread on the client. There are some structures that are shared between the server and client thread and those are guarded. The reason I say this looks like a JVM bug is because the exception occurs in the JVM compiler thread:
Current thread (0x000000001a17b000): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=9836, stack(0x000000001aa30000,0x000000001ab30000)]
Have you tried adding -server
to the JVM arguments when starting the client? From my recollection this should cause the JVM to compile all the Java code and not do it in a lazy fashion.
I was referring to the code being compiled:
Current CompileTask:
C2:1790457 29567 4 org.blockartistry.mod.DynSurround.client.footsteps.mcpackage.implem.BasicBlockMap::put (135 bytes)
and the client was running for some time, I'm surprised he wouldn't have compiled footstep handling yet at that point:
elapsed time: 1790 seconds (0d 0h 29m 50s)
Adding -server will disable client classes, or did I miss something?
No, it won't disable the client classes. I use that JVM parameter all the time in my profiles. But yeah, if he has been running for some time I am surprised that JVM wants to compile something.
@LemADEC Have you updated to the 1.0.5.9 version, and does this particular problem persist? I am still trying to puzzle this one out. There were some changes that went into 1.0.5.9 that may influence this issue if it were a concurrency issue.
We're still using 1.0.5.6 and having issues. I guess we've missed the 1.0.5.9 release.
When a player get kicked from the server, it randomly do hard crashes as seen below. This looks like a multi-threading issue to me. DynamicSurroundings-1.7.10-1.0.5.6.jar