Jump to content

getServer().stopServer() only crashes server


blooditor

Recommended Posts

Hey,

when I run MinecraftServer.getServer().stopServer() it crashes the server after saving so it won't completely shut down and stay online without letting anyone join.

 

Crash report: 

Spoiler

---- Minecraft Crash Report ----
// I just don't know what went wrong :(

Time: 5/27/17 12:26 AM
Description: Watching Server

java.lang.Error
    at java.lang.Thread.sleep(Native Method)
    at net.minecraft.server.dedicated.DedicatedServer.func_71228_a(DedicatedServer.java:325)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:525)
    at java.lang.Thread.run(Thread.java:745)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
    at java.lang.Thread.sleep(Native Method)
    at net.minecraft.server.dedicated.DedicatedServer.func_71228_a(DedicatedServer.java:325)

-- Thread Dump --
Details:
    Threads: "File IO Thread" Id=54 TIMED_WAITING
    at java.lang.Thread.sleep(Native Method)
    at net.minecraft.world.storage.ThreadedFileIOBase.func_75736_b(SourceFile:51)
    at net.minecraft.world.storage.ThreadedFileIOBase.run(SourceFile:30)
    at java.lang.Thread.run(Thread.java:745)


"Chunk I/O Executor Thread-1" Id=53 WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@462f4b4e
    at sun.misc.Unsafe.park(Native Method)
    -  waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@462f4b4e
    at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
    at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
    at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)


"Netty Server IO #2" Id=26 RUNNABLE (in native)
    at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
    at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
    at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
    -  locked io.netty.channel.nio.SelectedSelectionKeySet@48e8bdfb
    -  locked java.util.Collections$UnmodifiableSet@4cd7203e
    -  locked sun.nio.ch.EPollSelectorImpl@9d5b7c0
    at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
    at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:596)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:306)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    ...


"Netty Server IO #1" Id=25 RUNNABLE (in native)
    at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
    at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
    at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
    -  locked io.netty.channel.nio.SelectedSelectionKeySet@359ce88f
    -  locked java.util.Collections$UnmodifiableSet@38169ca2
    -  locked sun.nio.ch.EPollSelectorImpl@4db59d4e
    at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
    at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:596)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:306)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    ...


"Server Watchdog" Id=48 RUNNABLE
    at sun.management.ThreadImpl.dumpThreads0(Native Method)
    at sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:454)
    at net.minecraft.server.dedicated.ServerHangWatchdog.run(SourceFile:43)
    at java.lang.Thread.run(Thread.java:745)


"Timer-0" Id=47 TIMED_WAITING on java.util.TaskQueue@69fa488f
    at java.lang.Object.wait(Native Method)
    -  waiting on java.util.TaskQueue@69fa488f
    at java.util.TimerThread.mainLoop(Timer.java:552)
    at java.util.TimerThread.run(Timer.java:505)


"Netty Server IO #0" Id=24 RUNNABLE (in native)
    at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
    at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
    at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
    -  locked io.netty.channel.nio.SelectedSelectionKeySet@3b700daf
    -  locked java.util.Collections$UnmodifiableSet@370f75ef
    -  locked sun.nio.ch.EPollSelectorImpl@56b1d1ad
    at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
    at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:596)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:306)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    ...


"Server console handler" Id=18 RUNNABLE (in native)
    at java.io.FileInputStream.readBytes(Native Method)
    at java.io.FileInputStream.read(FileInputStream.java:255)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
    -  locked java.io.BufferedInputStream@6db455c4
    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
    -  locked java.io.InputStreamReader@561220a8
    at java.io.InputStreamReader.read(InputStreamReader.java:184)
    ...


"DestroyJavaVM" Id=17 RUNNABLE


"Server thread" Id=15 TIMED_WAITING
    at java.lang.Thread.sleep(Native Method)
    at net.minecraft.server.dedicated.DedicatedServer.func_71228_a(DedicatedServer.java:325)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:525)
    at java.lang.Thread.run(Thread.java:745)


"Server Infinisleeper" Id=14 TIMED_WAITING
    at java.lang.Thread.sleep(Native Method)
    at net.minecraft.server.dedicated.DedicatedServer$1.run(DedicatedServer.java:73)


"Signal Dispatcher" Id=4 RUNNABLE


"Finalizer" Id=3 WAITING on java.lang.ref.ReferenceQueue$Lock@1a7e8788
    at java.lang.Object.wait(Native Method)
    -  waiting on java.lang.ref.ReferenceQueue$Lock@1a7e8788
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)


"Reference Handler" Id=2 WAITING on java.lang.ref.Reference$Lock@429a11d3
    at java.lang.Object.wait(Native Method)
    -  waiting on java.lang.ref.Reference$Lock@429a11d3
    at java.lang.Object.wait(Object.java:502)
    at java.lang.ref.Reference.tryHandlePending(Reference.java:191)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)

Stacktrace:
    at net.minecraft.server.dedicated.ServerHangWatchdog.run(SourceFile:59)
    at java.lang.Thread.run(Thread.java:745)

-- System Details --
Details:
    Minecraft Version: 1.8
    Operating System: Linux (amd64) version 4.10.13-1-ARCH
    Java Version: 1.8.0_121, Oracle Corporation
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 2967014088 bytes (2829 MB) / 3444572160 bytes (3285 MB) up to 5726797824 bytes (5461 MB)
    JVM Flags: 2 total; -Xmx6144M -Xms2048M
    IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
    FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.4.1563 7 mods loaded, 7 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAAA    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
    UCHIJAAAA    FML{8.0.99.99} [Forge Mod Loader] (forge-1.8-11.14.4.1563-universal.jar) 
    UCHIJAAAA    Forge{11.14.4.1563} [Minecraft Forge] (forge-1.8-11.14.4.1563-universal.jar) 
    UCHIJAAAA    flansmod{@VERSION@} [Flan's Mod] (modid-1.0.jar) 
    UCHIJAAAA    flansmodapocalypse{1.0} [Flan's Mod: Apocalypse] (modid-1.0.jar) 
    UCHIJAAAA    mymod{0.1.1} [mymod] (modid-1.0.jar) 
    UCHIJAAAA    worldedit{6.1.1-SNAPSHOT} [WorldEdit] (worldedit-forge-mc1.8-6.1.1-SNAPSHOT-dist.jar) 
    Loaded coremods (and transformers): 
    Profiler Position: N/A (disabled)
    Player Count: 0 / 48; []
    Is Modded: Definitely; Server brand changed to 'fml,forge'
    Type: Dedicated Server (map_server.txt)

Do you know why this happens and is there a way to fix?

Thanks a lot ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.