Dynamic Surroundings

Dynamic Surroundings

51M Downloads

java.nio.channels.ClosedChannelException when creating any world for the instance

MasterBuilder747 opened this issue ยท 4 comments

commented

Mod Version:
DS: 3.5.5.0
OreLib: 3.5.2.3

Forge Version:
2847

Link to crash log (if applicable):
Since it is a java.nio.channels.ClosedChannelException, there is no crashlog from server loadup

but here is the regular log:

Description:
Player gets kicked from any login to any world, sometimes the issue does not occur every time as any other ClosedChannelEception occurs in Minecraft, tested with and without DS and it seems to occur

Also here is my config file if that helps: https://pastebin.com/u0SHeUhD

commented

What modpack are you using? There is some interesting things related to world loading client side that do not make sense.

EDIT:

Here is some info from the log. Not sure what to make of it:

Initial connection from client to server where Dynamic Surroundings is concerned:

[14:40:56] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[14:40:56] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 196 mods : [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],storagedrawersextra@@VERSION@,[email protected],[email protected],[email protected],[email protected],openglider@@VERSION@,[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],fastleafdecay@v14,[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]+dev.146.2180b27,bedbugs@@VERSION@,[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],jmapstages@@VERSION@,[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]+57,[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],appliedenergistics2@rv6-stable-7,[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
[14:40:56] [Netty Local Client IO #0/INFO] [dsurround]: Dynamic Surroundings version 3.5.5.0 is installed on the server

A couple seconds later the World object client side is created. I know this because of the SeasonInfo log statement:

[14:40:58] [Client thread/INFO] [dsurround]: Creating default SeasonInfo for dimension overworld

Then we see signs that that server is trying to keep up and send info to the client:

[14:41:14] [Server thread/WARN] [net.minecraft.server.MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 11278ms behind, skipping 225 tick(s)
[14:41:14] [Server thread/INFO] [net.minecraft.network.NetHandlerPlayServer]: MasterBuilder747 lost connection: Disconnected
[14:41:14] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: MasterBuilder747 left the game
[14:41:15] [Server thread/INFO] [net.minecraft.network.NetHandlerPlayServer]: Stopping singleplayer server as player logged out

At this time the server shut down. But, the client merrily continues it's initialization. The following log statement is Dynamic Surroundings responding to a world load event:

[14:41:15] [Client thread/INFO] [dsurround]: Setting weather renderer for dimension [overworld]

I assume that there enough memory allocated to the JVM? I have seen things like because of not having enough memory for the modpack/world that is being loaded.

commented

It's my own modpack, still in the works. I'm trying to tune it down to make it work on my Mac, which only has 4GB of memory, so I gotta tune the allocation down to at most 3 GB. I was in the middle of removing mods that took too much RAM, but it's so hard to tell what uses a lot, especially when the world gets that error.

Since the client wasn't able to keep up with your mod on my computer, when I tested it again without DS, it worked; which means that it must use a lot of RAM, I'm assuming since all of those sounds have to be put into the JVM memory...right?

I really appreciate you helping me out, most mod devs (like the BoP devs) wouldn't want to help me out with this, claiming that its not their fault.

If I am right about your mod, that you know that it uses too much RAM, I'm sure you can't do much about it, and therefore you can close this issue. But otherwise there might be some other underlying issue.

commented

The sounds actually get read in from the jar in chunks by the sound engine - they aren't "loaded into ram" like textures and the like. But given that you have 4GB in the system I would say your pack is at a limit - can't cram any more into it. Do you have things like foamfix in your pack?

commented

Yeah, foamfix doesn't seem to do much with RAM reduction in my pack. I will ask the dev if I can tweak any of its options. By the way, I still get the issue without DS, so it seems that this issue isn't directly related to your mod. Closing.