我的世界服务器显示pinging,[MC-108343] Minecraft crashes with "java.lang.NullPointerException: Ticking screen"...

Note

This issue is about the game crash (back to the launcher) when opening the server list. For the similar-sounding, but completely different, disconnect with a NullPointerException while in-game, see MC-115942.

What I expected to happen was...:

Minecraft to be staying idle on the background minimalized without any issuse

What actually happened was...:

It crashed with a Ticking screen error

Steps to Reproduce:

1. Open minecraft 1.10.2

2. Minimilize it

3. maybe open a second minecraft and see if thas the issuse

Description: Ticking screen

java.lang.NullPointerException: Ticking screen

at io.netty.bootstrap.Bootstrap.checkAddress(Bootstrap.java:273)

at io.netty.bootstrap.Bootstrap.doConnect(Bootstrap.java:150)

at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:132)

at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:113)

at bls.b(SourceFile:165)

at bls.a(SourceFile:45)

at bls$1.a(SourceFile:144)

at eo.l(SourceFile:382)

at bls.a(SourceFile:254)

at bhj.e(SourceFile:116)

at bcx.t(SourceFile:1601)

at bcx.av(SourceFile:968)

at bcx.a(SourceFile:396)

at net.minecraft.client.main.Main.main(SourceFile:124)

Hopper tickets

Code analysis

Based on 1.11 decompiled using MCP 9.35 rc1

It looks like this crash can happen when the method net.minecraft.client.network.ServerPinger.ping(ServerData) was called while the user had an internet connection, but before a packet was received the internet connection was lost. Additionally the server needs to have a hostname which is not a literal IP address. In that case at some point the method net.minecraft.client.network.ServerPinger.ping(...).new INetHandlerStatusClient() {...}.onDisconnect(ITextComponent) is called. The problem lies in the method io.netty.bootstrap.Bootstrap.checkAddress(SocketAddress) which does check if the provided SocketAddress is an instance of InetSocketAddress (which include a null) check, but does not test if the method getAddress() returns null. This is the case if the host name cannot be resolved. As this netty version seems to be a custom build it should be fixable by Mojang.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值