I've been playing FTB mindcrack with a friend for a couple days now, I'm just hosting the server in the background on my desktop computer whenever either of us wants to play. It ran.. okish for the first few days, I had to restart it a couple times to get computercraft things running again, it seems to have trouble with filesystem access. Also, since about a day, computercraft's notion of a second seems to have increased to 1.2-2 seconds, while everything else kept running smoothly (i.e. TPS is still nicely at 20 and everything, CC just isn't synchronized properly).
While all that may or may not be related somehow, it's not my main problem at the moment. My problem right now is that the server hangs around five to ten minutes after starting it now. The thing I'm struggling with is that it's not displaying any kind of error or log message when it does. So my main question is whether there's some kind of debug or verbose mode which I can use to get more information about what it's doing when it crashes. But of course, more specific help would also be nice, so have a crash report. I've tried to make it as detailed as I can without any real leads...
What happens:
- At first, the server only stops processing world ticks. Clients can actually stay logged in for a while, and chat actually still works. Just everything else (including slash commands) doesn't. Threads still says [no.players] + [no.players].
- Eventually clients get disconnected with the usual "java.net.SocketTimeoutException: Read time out", and "Threads" switches to 0 + 0. However, the Players box is not cleared.
- Server GUI remains responsive and performance graph keeps shifting just fine. However, avg tick stops changing and the performance graph becomes a nice little rectangle, and the server does not respond to commands (i.e. /stop) in the GUI or in the console.
- The instance of java which is running the server keeps using approximately 100% CPU on a single core.
Here's the log for one of the crashing sessions: http://pastebin.com/raw.php?i=qQHqpav6.
In that particular session it crashed quite a bit before the Stopping server message by the way, I think that got written when I ctrl+c'd it in the console. It didn't actually exit though, I had to kill java.exe with task manager, but apparently logging still works after the crash... It just doesn't have anything to say for itself, I guess.
When does it happen:
I don't know, unfortunately. At first I thought there might be a corrupted chunk or something, but it doesn't seem to matter which direction I walk in.
It *doesn't* seem to happen when no one's logged in to the server, at least not within about half an hour.
The only notable things in our world that I can think of which are going on without player interaction is that there's a quarry running which is dumping items into an ender chest to our chunkloaded base (using the loader from ChickenChunks), where it's being sorted using a computer and an interactive sorter. Ore processing is done using ThermalExpansion. The computer/interactive sorter is not the problem though I don't think, as deleting the startup programs doesn't stop it crashing (see below).
What I've tried already:
- Deleted the contents of world/computer to shut off any computercraft programs, did nothing.
- /save-off, that actually *seemed* to help but given the random nature of the hang I can't be 100% sure of this. Also, I ran /save-all a couple times while in different places in the world, and that never once triggered the crash.
- Updated java, I was using 1.7.0_5 before. From a JDK I think, not sure (I'm also a java developer, just not for minecraft, not since MC beta 1.7.3 or so anyway). Anyway, it didn't fix it.
- Running with -Xms4G -Xmx4G. No effect, server crashed at 95% free, too.
General specs and stuff, for what it's worth:
- Modpack: Mindcrack, with no additional/removed mods
- Version: I would love to tell you but I don't know where to find it... In the client launcher it says recommended build, but no actual version number either. Or well, I'm probably just blind, so sorry in advance if I am...
- OS: Win7 pro x64, SP1
- Java: just updated; 1.7.0_17 (64 bit)
- Memory command line params: -Xms1G -Xmx2G (I just doubled the default values in the bat file since I have plenty of RAM)
- Hardware: FTB running on an SSD with 109GB free space, PC has 16GB RAM in quad channel on a high end i7 processor. It's not exactly underspec'd.
EDIT: Found the problem, it's a thread synchronization/deadlock bug in computercraft. Scroll down for details. I don't have a fix other than disabling wireless modems or computercraft altogether though, unfortunately.
While all that may or may not be related somehow, it's not my main problem at the moment. My problem right now is that the server hangs around five to ten minutes after starting it now. The thing I'm struggling with is that it's not displaying any kind of error or log message when it does. So my main question is whether there's some kind of debug or verbose mode which I can use to get more information about what it's doing when it crashes. But of course, more specific help would also be nice, so have a crash report. I've tried to make it as detailed as I can without any real leads...
What happens:
- At first, the server only stops processing world ticks. Clients can actually stay logged in for a while, and chat actually still works. Just everything else (including slash commands) doesn't. Threads still says [no.players] + [no.players].
- Eventually clients get disconnected with the usual "java.net.SocketTimeoutException: Read time out", and "Threads" switches to 0 + 0. However, the Players box is not cleared.
- Server GUI remains responsive and performance graph keeps shifting just fine. However, avg tick stops changing and the performance graph becomes a nice little rectangle, and the server does not respond to commands (i.e. /stop) in the GUI or in the console.
- The instance of java which is running the server keeps using approximately 100% CPU on a single core.
Here's the log for one of the crashing sessions: http://pastebin.com/raw.php?i=qQHqpav6.
In that particular session it crashed quite a bit before the Stopping server message by the way, I think that got written when I ctrl+c'd it in the console. It didn't actually exit though, I had to kill java.exe with task manager, but apparently logging still works after the crash... It just doesn't have anything to say for itself, I guess.
When does it happen:
I don't know, unfortunately. At first I thought there might be a corrupted chunk or something, but it doesn't seem to matter which direction I walk in.
It *doesn't* seem to happen when no one's logged in to the server, at least not within about half an hour.
The only notable things in our world that I can think of which are going on without player interaction is that there's a quarry running which is dumping items into an ender chest to our chunkloaded base (using the loader from ChickenChunks), where it's being sorted using a computer and an interactive sorter. Ore processing is done using ThermalExpansion. The computer/interactive sorter is not the problem though I don't think, as deleting the startup programs doesn't stop it crashing (see below).
What I've tried already:
- Deleted the contents of world/computer to shut off any computercraft programs, did nothing.
- /save-off, that actually *seemed* to help but given the random nature of the hang I can't be 100% sure of this. Also, I ran /save-all a couple times while in different places in the world, and that never once triggered the crash.
- Updated java, I was using 1.7.0_5 before. From a JDK I think, not sure (I'm also a java developer, just not for minecraft, not since MC beta 1.7.3 or so anyway). Anyway, it didn't fix it.
- Running with -Xms4G -Xmx4G. No effect, server crashed at 95% free, too.
General specs and stuff, for what it's worth:
- Modpack: Mindcrack, with no additional/removed mods
- Version: I would love to tell you but I don't know where to find it... In the client launcher it says recommended build, but no actual version number either. Or well, I'm probably just blind, so sorry in advance if I am...
- OS: Win7 pro x64, SP1
- Java: just updated; 1.7.0_17 (64 bit)
- Memory command line params: -Xms1G -Xmx2G (I just doubled the default values in the bat file since I have plenty of RAM)
- Hardware: FTB running on an SSD with 109GB free space, PC has 16GB RAM in quad channel on a high end i7 processor. It's not exactly underspec'd.
EDIT: Found the problem, it's a thread synchronization/deadlock bug in computercraft. Scroll down for details. I don't have a fix other than disabling wireless modems or computercraft altogether though, unfortunately.