Skip to content

FastLogin Build #1091 crashing when using ProtocolLib v5.0.0-SNAPSHOT-b600 #904

@alejandropxrez

Description

@alejandropxrez

What happened?

Users using /premium are stucked when rejoining the game in the encryptation step. Minecraft version 1.18

What did you expect?

Player autologin

Steps to reproduce

User /premium and then rejoin the game

Plugin list

Authme, Protocolib, FastLogin

Configuration file

https://hastebin.com/amuguwagap.yaml

Server log

[10:53:29] [Protocol Worker #1 - FastLogin - [recv: ENCRYPTION_BEGIN[class=PacketLoginInEncryptionBegin, id=1], START[class=PacketLoginInStart, id=0], send: ]/INFO]: [FastLogin] New packet START[class=PacketLoginInStart, id=0] from com.comphenix.protocol.injector.temporary.TemporaryPlayerInvocationHandler@47b1594f
[10:53:29] [Craft Scheduler Thread - 3/INFO]: [FastLogin] Handling player imAlejandro04
[10:53:29] [Craft Scheduler Thread - 3/INFO]: [FastLogin] Requesting premium login for registered player: imAlejandro04
[10:53:29] [Protocol Worker #1 - FastLogin - [recv: ENCRYPTION_BEGIN[class=PacketLoginInEncryptionBegin, id=1], START[class=PacketLoginInStart, id=0], send: ]/INFO]: [FastLogin] New packet ENCRYPTION_BEGIN[class=PacketLoginInEncryptionBegin, id=1] from com.comphenix.protocol.injector.temporary.TemporaryPlayerInvocationHandler@47b1594f
[10:53:30] [Craft Scheduler Thread - 3/INFO]: [FastLogin] Enabling onlinemode encryption for /the-ip-of-the-player
[10:53:30] [Craft Scheduler Thread - 3/INFO]: [FastLogin] Profile imAlejandro04 has a verified premium account
[10:53:30] [Craft Scheduler Thread - 3/WARN]: [FastLogin] Error occurred on thread pool
java.util.concurrent.CompletionException: java.lang.IllegalStateException: Unable to construct new instance using public net.minecraft.network.protocol.login.PacketLoginInStart(net.minecraft.network.PacketDataSerializer)
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) [?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1807) [?:?]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:82) [spigot-1.18-R0.1-SNAPSHOT.jar:3355-Spigot-dbf4938-3c2af1b]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) [spigot-1.18-R0.1-SNAPSHOT.jar:3355-Spigot-dbf4938-3c2af1b]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.IllegalStateException: Unable to construct new instance using public net.minecraft.network.protocol.login.PacketLoginInStart(net.minecraft.network.PacketDataSerializer)
at com.comphenix.protocol.reflect.accessors.DefaultConstrutorAccessor.invoke(DefaultConstrutorAccessor.java:21) ~[?:?]
at com.comphenix.protocol.injector.StructureCache.lambda$newPacket$0(StructureCache.java:73) ~[?:?]
at com.comphenix.protocol.injector.StructureCache.newPacket(StructureCache.java:85) ~[?:?]
at com.comphenix.protocol.injector.StructureCache.newPacket(StructureCache.java:95) ~[?:?]
at com.comphenix.protocol.events.PacketContainer.(PacketContainer.java:117) ~[?:?]
at com.github.games647.fastlogin.bukkit.listener.protocollib.VerifyResponseTask.receiveFakeStartPacket(VerifyResponseTask.java:273) ~[?:?]
at com.github.games647.fastlogin.bukkit.listener.protocollib.VerifyResponseTask.encryptConnection(VerifyResponseTask.java:180) ~[?:?]
at com.github.games647.fastlogin.bukkit.listener.protocollib.VerifyResponseTask.verifyResponse(VerifyResponseTask.java:148) ~[?:?]
at com.github.games647.fastlogin.bukkit.listener.protocollib.VerifyResponseTask.run(VerifyResponseTask.java:108) ~[?:?]
at com.github.games647.fastlogin.core.AsyncScheduler.process(AsyncScheduler.java:70) ~[?:?]
at com.github.games647.fastlogin.core.AsyncScheduler.lambda$runAsync$0(AsyncScheduler.java:61) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?]
... 5 more
Caused by: java.lang.IllegalArgumentException: Name and ID cannot both be blank
at com.mojang.authlib.GameProfile.(GameProfile.java:26) ~[authlib-3.2.38.jar:?]
at net.minecraft.network.protocol.login.PacketLoginInStart.(SourceFile:16) ~[spigot-1.18-R0.1-SNAPSHOT.jar:3355-Spigot-dbf4938-3c2af1b]
at com.comphenix.protocol.reflect.accessors.DefaultConstrutorAccessor.invoke(DefaultConstrutorAccessor.java:19) ~[?:?]
at com.comphenix.protocol.injector.StructureCache.lambda$newPacket$0(StructureCache.java:73) ~[?:?]
at com.comphenix.protocol.injector.StructureCache.newPacket(StructureCache.java:85) ~[?:?]
at com.comphenix.protocol.injector.StructureCache.newPacket(StructureCache.java:95) ~[?:?]
at com.comphenix.protocol.events.PacketContainer.(PacketContainer.java:117) ~[?:?]
at com.github.games647.fastlogin.bukkit.listener.protocollib.VerifyResponseTask.receiveFakeStartPacket(VerifyResponseTask.java:273) ~[?:?]
at com.github.games647.fastlogin.bukkit.listener.protocollib.VerifyResponseTask.encryptConnection(VerifyResponseTask.java:180) ~[?:?]
at com.github.games647.fastlogin.bukkit.listener.protocollib.VerifyResponseTask.verifyResponse(VerifyResponseTask.java:148) ~[?:?]
at com.github.games647.fastlogin.bukkit.listener.protocollib.VerifyResponseTask.run(VerifyResponseTask.java:108) ~[?:?]
at com.github.games647.fastlogin.core.AsyncScheduler.process(AsyncScheduler.java:70) ~[?:?]
at com.github.games647.fastlogin.core.AsyncScheduler.lambda$runAsync$0(AsyncScheduler.java:61) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?]
... 5 more

Plugin version

Build #1091

Platform

Spigot

Relevance

  • I tried the latest build (build refers to development builds not necessary a release version)
  • I checked for existing tickets -
    If there are, please vote them with a thumps reaction and not create new ones

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions