GeyserMC / Geyser

A bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition.
https://geysermc.org
MIT License
4.75k stars 686 forks source link

Players time out seconds after joining #3965

Closed Budderman18 closed 1 year ago

Budderman18 commented 1 year ago

Describe the bug

All be players using 1.20.10 will time out incredibly fast.

To Reproduce

join a server with the latest geyser with 1.20.1

Expected behaviour

Player time out only after a very long time of losing connection

Screenshots / Videos

No response

Server Version and Plugins

This server is running Pufferfish version git-Pufferfish-16 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: af1f56c on HEAD)

Server Plugins (72): [00:51:43 INFO]: Bukkit Plugins: [00:51:43 INFO]: - AdvancedReplay, AdvancedSecurity, ajParkour, AntiCheatReplay, AutoKiller, BadlionClientModAPI, BedWars, BentoBox, BentoBox-Biomes, BentoBox-BSkyBlock [00:51:43 INFO]: BentoBox-Challenges, BentoBox-Level, BentoBox-Warps, Citizens, ClearLag, CommandSigns, ConsoleSpamFix, CrazyAuctions, Curses, debuginfo-be [00:51:43 INFO]: Duels, Essentials, EssentialsChat, EssentialsDiscord, EssentialsGeoIP, EssentialsWarpGUI, F3NPerm, Factions, floodgate, Geyser-Spigot [00:51:43 INFO]: GriefPrevention, GroupManager, IngotBridges, IngotHub, IngotMinigamesAPI, IngotServerManager, IngotSkywars, IngotSpleefPlus, IngotSurvivalGames, IngotVanillaTweaker [00:51:43 INFO]: IngotWarn, IngotWorldManager, JukeBox, KillerMoney, LibsDisguises, LunarClient-API, LunarClient-Impl, MobArena, Morphy, Multiverse-Core [00:51:43 INFO]: Multiverse-Inventories, Multiverse-Portals, MultiWorldMoney, NoteBlockAPI, PlaceholderAPI, PlotSquared, Prison, ProtocolLib, RandomTeleport, SignShop [00:51:43 INFO]: SkyblockOres, spark, StaffChat, Themis, TimeManager, TitleManager, TowerDefense, UltraCosmetics, Vault, Votifier [00:51:43 INFO]: VotingPlugin, WorldEdit

Geyser Dump

https://dump.geysermc.org/eioWoT2FhcNFkcUK1GjqMdBzMgaOS2st

Geyser Version

This server is running Geyser version 2.1.2-SNAPSHOT (git-master-3a0c1b7) (Java: 1.20, Bedrock: 1.19.80/1.19.81 - 1.20.10)

Minecraft: Bedrock Edition Device/Version

IPhone XR/1.20.10 + Windows11/1.20.10

Additional Context

No response

tegelsoep commented 1 year ago

Hi, I got the same problem.

But I got a temporary fix. Disable forward-player-ping in the geyser config.

Hope this works!

PedroMPagani commented 1 year ago

Can confirm the behavior, on DonutSMP.net. forward player ping seems to be causing it. Standalone Jar.

Impactic48 commented 1 year ago

I can confirm as well. Forward player ping seems to be causing this issue.

NotDarkn commented 1 year ago

Disabled forward-player-ping in the Geyser config and my server is no longer encountering the issue.

Muska-Ami commented 1 year ago

Same problem. It cause by "keepalive". I'm using Velocity+Paper/Purpur.

[08:50:37 INFO]: UUID of player HuaHuo_CN is xxx
[08:50:37 INFO]: HuaHuo_CN joined the game
[08:50:37 INFO]: HuaHuo_CN[/xxx:39488] logged in with entity id 51927 at ([world]-751.3064, 20.0, 277.27133)
[08:50:51 INFO]: [KnapsackToGo4] 自动保存开始,共2个玩家的数据。
[08:50:51 INFO]: [KnapsackToGo4] 自动保存:1/2
[08:50:51 INFO]: [KnapsackToGo4] 自动保存:所有玩家数据全部保存完成。
[08:51:22 WARN]: HuaHuo_CN was kicked due to keepalive timeout!
[08:51:22 INFO]: HuaHuo_CN lost connection: Timed out
[08:51:22 INFO]: HuaHuo_CN left the game
BackSam6348 commented 1 year ago

This issue is also happening in Standalone. It seems like a forward-player-ping issue.

CallumADW commented 1 year ago

setting forward-player-ping to false also fixed the issue for me.

PedroMPagani commented 1 year ago

Have any of you that changed the forward-player-ping to false are getting random disconnects from time to time? of still timeouts.

tegelsoep commented 1 year ago

Have any of you that changed the forward-player-ping to false are getting random disconnects from time to time? of still timeouts.

Nope, after I disabled forward-player-ping, I haven't had any more problems at all.

Muska-Ami commented 1 year ago

Have any of you that changed the forward-player-ping to false are getting random disconnects from time to time? of still timeouts.

Nope

tienthanh2929 commented 1 year ago

Have any of you that changed the forward-player-ping to false are getting random disconnects from time to time? of still timeouts.

Confirmed. I disable forward-player-ping, and players in my server got randomly kicked through out the day. Sometime 30 players, sometime 50 players. (and they're all bedrock)

BinaryBible commented 1 year ago

My server is also experiencing this issue. Error included.

15.07 01:09:29 [Server] [ERROR] [org.cloudburstmc.protocol.bedrock.netty.codec.packet.BedrockPacketCodec]: Error encoding packet SetEntityDataPacket(metadata={FLAGS=[CAN_SHOW_NAME, SILENT, CAN_CLIMB, HAS_COLLISION, HAS_GRAVITY, SCENTING], , runtimeEntityId=301, tick=0, properties=EntityProperties(intProperties=[], floatProperties=[])) 15.07 01:09:29 [Server] [INFO] org.cloudburstmc.protocol.bedrock.codec.PacketSerializeException: Error whilst serializing SetEntityDataPacket(metadata={FLAGS=[CAN_SHOW_NAME, SILENT, CAN_CLIMB, HAS_COLLISION, HAS_GRAVITY, SCENTING], , runtimeEntityId=301, tick=0, properties=EntityProperties(intProperties=[], floatProperties=[])) 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.codec.BedrockCodec.tryEncode(BedrockCodec.java:80) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.netty.codec.packet.BedrockPacketCodec.encode(BedrockPacketCodec.java:39) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.netty.codec.packet.BedrockPacketCodec.encode(BedrockPacketCodec.java:19) ~[?:?] 15.07 01:09:29 [Server] [INFO] at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:90) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:879) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:863) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:968) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:856) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:851) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.channel.DefaultChannelPipeline.write(DefaultChannelPipeline.java:1010) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.channel.AbstractChannel.write(AbstractChannel.java:296) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.BedrockPeer.onTick(BedrockPeer.java:91) ~[?:?] 15.07 01:09:29 [Server] [INFO] at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:159) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:406) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[velocity-3.2.0-SNAPSHOT-260.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)] 15.07 01:09:29 [Server] [INFO] at java.lang.Thread.run(Thread.java:833) [?:?] 15.07 01:09:29 [Server] [INFO] Caused by: java.lang.IllegalArgumentException: Failed to encode EntityData 0 of java.util.EnumSet 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.codec.v361.BedrockCodecHelper_v361.writeEntityData(BedrockCodecHelper_v361.java:138) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.codec.v291.serializer.SetEntityDataSerializer_v291.serialize(SetEntityDataSerializer_v291.java:19) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.codec.v557.serializer.SetEntityDataSerializer_v557.serialize(SetEntityDataSerializer_v557.java:13) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.codec.v557.serializer.SetEntityDataSerializer_v557.serialize(SetEntityDataSerializer_v557.java:9) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.codec.BedrockCodec.tryEncode(BedrockCodec.java:78) ~[?:?] 15.07 01:09:29 [Server] [INFO] ... 23 more 15.07 01:09:29 [Server] [INFO] Caused by: java.lang.IllegalArgumentException: No id found for SCENTING 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.common.util.Preconditions.checkArgument(Preconditions.java:207) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.common.util.TypeMap.getId(TypeMap.java:39) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.transformer.FlagTransformer.serialize(FlagTransformer.java:28) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.transformer.FlagTransformer.serialize(FlagTransformer.java:14) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.codec.v361.BedrockCodecHelper_v361.writeEntityData(BedrockCodecHelper_v361.java:104) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.codec.v291.serializer.SetEntityDataSerializer_v291.serialize(SetEntityDataSerializer_v291.java:19) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.codec.v557.serializer.SetEntityDataSerializer_v557.serialize(SetEntityDataSerializer_v557.java:13) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.codec.v557.serializer.SetEntityDataSerializer_v557.serialize(SetEntityDataSerializer_v557.java:9) ~[?:?] 15.07 01:09:29 [Server] [INFO] at org.cloudburstmc.protocol.bedrock.codec.BedrockCodec.tryEncode(BedrockCodec.java:78) ~[?:?] 15.07 01:09:29 [Server] [INFO] ... 23 more

MrSono77 commented 1 year ago

Have any of you that changed the forward-player-ping to false are getting random disconnects from time to time? of still timeouts.

Confirmed. I disable forward-player-ping, and players in my server got randomly kicked through out the day. Sometime 30 players, sometime 50 players. (and they're all bedrock)

What is your server version? Is your server on 1.20?

MinerCoffee commented 1 year ago

1.20.1 and yes.

PedroMPagani commented 1 year ago

Have any of you that changed the forward-player-ping to false are getting random disconnects from time to time? of still timeouts.

Confirmed. I disable forward-player-ping, and players in my server got randomly kicked through out the day. Sometime 30 players, sometime 50 players. (and they're all bedrock)

So your timeouts are LESS, but still also happen?

MinerCoffee commented 1 year ago

There are still happening

MrSono77 commented 1 year ago

1.20.1 and yes.

This is awesome. How can you keep your server stable with so many players, my server overloaded with only 9 players and me using a bunch of optimization mods. I could really use some tips, if it's not too much to ask of course

Koekieezz commented 1 year ago

1.20.1 and yes.

This is awesome. How can you keep your server stable with so many players, my server overloaded with only 9 players and me using a bunch of optimization mods. I could really use some tips, if it's not too much to ask of course

proxies, ig.

Konicai commented 1 year ago

Fixed in #3993

Synkstar commented 1 year ago

Still is broken for me when forward player ping is on.

onebeastchris commented 1 year ago

@Synkstar Please send a geyser dump (run /geyser dump" in the server console, and send the link here), also, which device are you joining on? aka a ps4, mobile, win10?

Synkstar commented 1 year ago

@onebeastchris https://dump.geysermc.org/EOmQ0glLpgdRDJWzbylLdnlx6GPoo0H8. I am joining from android 1.20.10

onebeastchris commented 1 year ago

And does the issue go away if you disable forward-player-ping? If it doesn't; this is most likely an entirely separate issue.

Synkstar commented 1 year ago

It does go away if you disable forward-player-ping

Konicai commented 1 year ago

@Synkstar can you join our discord and ping me

LimesKey commented 1 year ago

Fixed for me!

Synkstar commented 1 year ago

LimesKey

Do you have forward-player-ping on ?

LimesKey commented 1 year ago

@Synkstar Yes I do

Impactic48 commented 1 year ago

@Konicai This issue is not fixed. It is still timing players out with Standalone build #244... I've had over 10 players already reported being timed out within 1 hour of updating it.

Geyser Dump https://dump.geysermc.org/TS4T1WNTaUh3QtYbBqjPtQoDX7zsUKZM

I'm willing to provide more information if needed...

Konicai commented 1 year ago

Anyone still experiencing this should update to the latest build of Geyser.