Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-130001

Players can't join server after 2 hours - INFO: Migrated 0 channel(s) to the new Selector.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.12.2, Minecraft 18w20c
    • WIndows 10
      Java (Version 8, Update 171)
    • Unconfirmed

      When I run a server on my home PC, everything works fine for about 2 hours, then the following starts appearing in the console windows (only the console window, it does not appear in the server log):

      May 19, 2018 9:47:15 PM io.netty.channel.nio.NioEventLoop select
      WARNING: Selector.select() returned prematurely 512 times in a row; rebuilding Selector
      io.netty.channel.nio.SelectedSelectionKeySetSelector@76b841ad.
      May 19, 2018 9:47:15 PM io.netty.channel.nio.NioEventLoop rebuildSelector0
      WARNING: Failed to re-register a Channel to the new Selector.
      java.lang.ClassCastException: io.netty.channel.nio.SelectedSelectionKeySetSelector cannot be cast to java.base/java.nio.channels.spi.AbstractSelector
              at java.base/java.nio.channels.spi.AbstractSelectableChannel.register(Unknown Source)
              at io.netty.channel.nio.NioEventLoop.rebuildSelector0(NioEventLoop.java:347)
              at io.netty.channel.nio.NioEventLoop.rebuildSelector(NioEventLoop.java:318)
              at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:769)
              at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:388)
              at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
              at java.base/java.lang.Thread.run(Unknown Source)
      May 19, 2018 9:47:15 PM io.netty.channel.nio.NioEventLoop rebuildSelector0
      INFO: Migrated 0 channel(s) to the new Selector.
      May 19, 2018 9:48:15 PM io.netty.channel.nio.NioEventLoop select
      WARNING: Selector.select() returned prematurely 512 times in a row; rebuilding Selector
      io.netty.channel.nio.SelectedSelectionKeySetSelector@405e22f2.
      May 19, 2018 9:48:15 PM io.netty.channel.nio.NioEventLoop rebuildSelector0
      INFO: Migrated 0 channel(s) to the new Selector.
      

      Players already connected (usually) don't get kicked from the server, but no one else can connect. And if already connected players disconnect, they can't reconnect.
      The server also appears in the multiplayer list saying, "Can't connect to server."

      Whenever someone tries to connect, they get the following error:
      io.netty.channel.AbstractChannel$AnnotatedConnectException: Connected timed out: no further information:

      And even when I try to connect to it from my own PC, I get a similar error:
      io.netty.channel.AbstractChannel$AnnotatedConnectException: Connected refused: no further information:

      When running a 1.11.2 server, it works fine, which confirms this to be an issue with 1.12.2 and 18w20c (I however have not confirmed whether this is an issue with 1.12, 1.12.1, or other snapshots).

            Unassigned Unassigned
            Rektroth Rektroth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: