1.11.2 Minecraft 服务器在玩家尝试加入/ ping 服务器时崩溃。

huangapple go评论108阅读模式
英文:

1.11.2 Minecraft server crashes when player tries to join/ping server

问题

我正在尝试在本地机器上设置一个1.11.2版本的Minecraft服务器,但每当玩家尝试加入或ping服务器时,它都会崩溃。我还注意到,当它启动时,会出现一些我以前从未见过并且不太理解的警告。

启动文本:

  1. [10:24:53] [Server thread/INFO]: 启动Minecraft服务器版本1.11.2
  2. [10:24:53] [Server thread/INFO]: 正在加载属性
  3. [10:24:53] [Server thread/INFO]: 默认游戏类型SURVIVAL
  4. [10:24:53] [Server thread/INFO]: 生成密钥对
  5. [10:24:54] [Server thread/INFO]: *:25565上启动Minecraft服务器
  6. 警告发生了非法的反射访问操作
  7. 警告非法的反射访问io.netty.util.internal.PlatformDependent0 (file:/home/admin/Documents/Minecraft_Servers/captiveMinecraftII/server.jar) java.nio.Buffer.address字段进行了访问
  8. 警告请考虑向io.netty.util.internal.PlatformDependent0的维护者报告此问题
  9. 警告使用--illegal-access=warn以启用进一步非法的反射访问操作的警告
  10. 警告在将来的版本中将拒绝所有非法的访问操作
  11. 202084日上午10:24:54 io.netty.util.internal.PlatformDependent <clinit>
  12. INFO: 您的平台未提供完整的低级API以可靠地访问直接缓冲区除非明确请求否则始终优先使用堆缓冲区以避免潜在的系统不稳定性
  13. [10:24:54] [Server thread/INFO]: 使用epoll通道类型
  14. [10:24:54] [Server thread/INFO]: 准备级别"world"
  15. [10:24:54] [Server thread/INFO]: 为级别0准备启动区域
  16. [10:24:55] [Server thread/INFO]: 准备生成区域31%
  17. [10:24:56] [Server thread/INFO]: 完成2.004)!如需帮助请键入"help""?"

这是玩家尝试加入时的错误:

  1. 202084日上午10:26:20 io.netty.channel.DefaultChannelPipeline$TailContext exceptionCaught
  2. 警告触发了exceptionCaught()事件并且它到达了管道的末尾这通常意味着管道中的最后一个处理程序未处理异常
  3. java.lang.RuntimeException: 无法访问缓冲区的地址
  4. at io.netty.channel.epoll.Native.read(Native Method)
  5. at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.doReadBytes(EpollSocketChannel.java:678)
  6. at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.epollInReady(EpollSocketChannel.java:714)
  7. at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe$3.run(EpollSocketChannel.java:755)
  8. at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380)
  9. at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:268)
  10. at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
  11. at java.base/java.lang.Thread.run(Thread.java:834)
英文:

I'm trying to set up a 1.11.2 Minecraft server on a local machine, but it crashes every time a player tries to join or ping the server. I've also noticed that when it starts, there are a couple of warnings that I've never seen before and don't really understand

Startup text:

  1. [10:24:53] [Server thread/INFO]: Starting minecraft server version 1.11.2
  2. [10:24:53] [Server thread/INFO]: Loading properties
  3. [10:24:53] [Server thread/INFO]: Default game type: SURVIVAL
  4. [10:24:53] [Server thread/INFO]: Generating keypair
  5. [10:24:54] [Server thread/INFO]: Starting Minecraft server on *:25565
  6. WARNING: An illegal reflective access operation has occurred
  7. WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 (file:/home/admin/Documents/Minecraft_Servers/captiveMinecraftII/server.jar) to field java.nio.Buffer.address
  8. WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.PlatformDependent0
  9. WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  10. WARNING: All illegal access operations will be denied in a future release
  11. Aug. 04, 2020 10:24:54 A.M. io.netty.util.internal.PlatformDependent <clinit>
  12. INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system unstability.
  13. [10:24:54] [Server thread/INFO]: Using epoll channel type
  14. [10:24:54] [Server thread/INFO]: Preparing level "world"
  15. [10:24:54] [Server thread/INFO]: Preparing start region for level 0
  16. [10:24:55] [Server thread/INFO]: Preparing spawn area: 31%
  17. [10:24:56] [Server thread/INFO]: Done (2.004s)! For help, type "help" or "?"

This is the error when a player tries to join:

  1. Aug. 04, 2020 10:26:20 A.M. io.netty.channel.DefaultChannelPipeline$TailContext exceptionCaught
  2. WARNING: An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
  3. java.lang.RuntimeException: Unable to access address of buffer
  4. at io.netty.channel.epoll.Native.read(Native Method)
  5. at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.doReadBytes(EpollSocketChannel.java:678)
  6. at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.epollInReady(EpollSocketChannel.java:714)
  7. at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe$3.run(EpollSocketChannel.java:755)
  8. at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380)
  9. at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:268)
  10. at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
  11. at java.base/java.lang.Thread.run(Thread.java:834)

答案1

得分: 0

打开server.properties文件,并将use-native-transport设置为false

英文:

Open the server.properties file and set use-native-transport to false

Source: https://www.spigotmc.org/threads/unable-to-access-address-of-buffer.311602/#post-2948116

huangapple
  • 本文由 发表于 2020年8月4日 22:30:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/63249089.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定