Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

假人无法链接至1.17.30 PowerNukkit服务器 #34

Open
Mcayear opened this issue Oct 24, 2021 · 4 comments
Open

假人无法链接至1.17.30 PowerNukkit服务器 #34

Mcayear opened this issue Oct 24, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Mcayear
Copy link

Mcayear commented Oct 24, 2021

PowerNukkit服务器控制台报错,服务器未开启xbox-auth

14:32:37 [ERROR] Unable to decode packet
java.lang.NullPointerException: null
        at cn.nukkit.network.protocol.LoginPacket.getAnimation(LoginPacket.java:159) ~[powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at cn.nukkit.network.protocol.LoginPacket.decodeSkinData(LoginPacket.java:122) ~[powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at cn.nukkit.network.protocol.LoginPacket.decode(LoginPacket.java:52) ~[powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at cn.nukkit.network.Network.processBatch(Network.java:267) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at cn.nukkit.network.RakNetInterface$NukkitRakNetSession.onEncapsulated(RakNetInterface.java:288) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at com.nukkitx.network.raknet.RakNetSession.onEncapsulatedInternal(RakNetSession.java:269) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at com.nukkitx.network.raknet.RakNetSession.onOrderedReceived(RakNetSession.java:392) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at com.nukkitx.network.raknet.RakNetSession.checkForOrdered(RakNetSession.java:372) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at com.nukkitx.network.raknet.RakNetSession.onRakNetDatagram(RakNetSession.java:360) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at com.nukkitx.network.raknet.RakNetSession.onDatagram(RakNetSession.java:241) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at com.nukkitx.network.raknet.RakNetServer$ServerDatagramHandler.channelRead(RakNetServer.java:316) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:93) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [powernukkit-1.5.2.0-PN-SNAPSHOT-shaded.jar:?]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_301]```
@Jasonzyt
Copy link
Collaborator

有更多信息吗,看起来是LoginPacket中的皮肤数据引起的

@Jasonzyt
Copy link
Collaborator

Jasonzyt commented Oct 24, 2021

请问FakePlayer版本是多少,如果是从actions里面下的,可以把id告诉我
(还是等ddf大佬看看,他这几天提交了几个关于自定义皮肤的代码)

@ddf8196 ddf8196 added the bug Something isn't working label Jan 5, 2022
@Arzxq
Copy link

Arzxq commented Feb 12, 2022

我也是这样的问题

@Mcayear
Copy link
Author

Mcayear commented Feb 17, 2024

时隔多年,我重新浏览了这个问题。#95
原因是 LoginPacket 中 AnimatedImageData 属性增加了 AnimationExpression 值导致的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants