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

Failed to parse message BUG when enable plugin HappyHUD #3743

Closed Sy1rKimihiro closed 1 year ago

Sy1rKimihiro commented 1 year ago

Describe the bug

Reiteration

I can just fix the error report in console, hope u can fix the plugin bug. :) (Maybe its because the resousepack?I'm still learning convert the JE resousepack to BE, so maybe the unconvert rp cause this?)

Here is the dump and log file

dump:https://dump.geysermc.org/fQeZRP6cz7t1VhRGXWI2EDqBWei8ISFh

file: 2023-05-04-21.log

To Reproduce

Expected behaviour

none

Screenshots / Videos

No response

Server Version and Plugins

Geyser Dump

https://dump.geysermc.org/fQeZRP6cz7t1VhRGXWI2EDqBWei8ISFh

Geyser Version

2.1.0-SNAPSHOT (git-master-48d7872)

Minecraft: Bedrock Edition Device/Version

Bedrock Edition 1.19.50

Additional Context

No response

Camotoy commented 1 year ago

I tried to replicate, but was unsuccessful - I think your log file is messed up. ([22:33:34] [Server thread/INFO]: [N%5BNIÎïÆ·¿â%5DNeigeItems-1.12.9.jar] Loading library org.jetbrains.kotlin:kotlin-stdlib-common:1.7.20)

Perhaps try copying the text before Geyser's error and pasting it directly here?

Camotoy commented 1 year ago

Or try starting up your server with the following argument before -jar: -Dfile.encoding=UTF-8

Sy1rKimihiro commented 1 year ago

Or try starting up your server with the following argument before -jar: -Dfile.encoding=UTF-8


Sorry for reply so late, it's too busy these days. I followed u comment and here is the new log:


2023-05-07-6.log


Geyser error report begins at row 1126.

I also copied the report here for u to easier check: [21:18:09] [Geyser player thread-3-1/WARN]: [Geyser-Spigot] Failed to parse message java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because "text" is null at org.geysermc.geyser.platform.spigot.shaded.net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerImpl$Cereal.component(LegacyComponentSerializerImpl.java:365) ~[G[间歇泉]Geyser-Spigot.jar:?] at org.geysermc.geyser.platform.spigot.shaded.net.kyori.adventure.text.flattener.ComponentFlattenerImpl.lambda$flattener$2(ComponentFlattenerImpl.java:114) ~[G[间歇泉]Geyser-Spigot.jar:?] at org.geysermc.geyser.platform.spigot.shaded.net.kyori.adventure.text.flattener.ComponentFlattenerImpl.flatten0(ComponentFlattenerImpl.java:92) ~[G[间歇泉]Geyser-Spigot.jar:?] at org.geysermc.geyser.platform.spigot.shaded.net.kyori.adventure.text.flattener.ComponentFlattenerImpl.flatten(ComponentFlattenerImpl.java:75) ~[G[间歇泉]Geyser-Spigot.jar:?] at org.geysermc.geyser.platform.spigot.shaded.net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerImpl.serialize(LegacyComponentSerializerImpl.java:306) ~[G[间歇泉]Geyser-Spigot.jar:?] at org.geysermc.geyser.translator.text.MessageTranslator.convertMessage(MessageTranslator.java:110) ~[G[间歇泉]Geyser-Spigot.jar:?] at org.geysermc.geyser.translator.protocol.java.title.JavaSetActionBarTextTranslator.translate(JavaSetActionBarTextTranslator.java:44) ~[G[间歇泉]Geyser-Spigot.jar:?] at org.geysermc.geyser.translator.protocol.java.title.JavaSetActionBarTextTranslator.translate(JavaSetActionBarTextTranslator.java:35) ~[G[间歇泉]Geyser-Spigot.jar:?] at org.geysermc.geyser.registry.PacketTranslatorRegistry.translate0(PacketTranslatorRegistry.java:86) ~[G[间歇泉]Geyser-Spigot.jar:?] at org.geysermc.geyser.registry.PacketTranslatorRegistry.lambda$translate$0(PacketTranslatorRegistry.java:67) ~[G[间歇泉]Geyser-Spigot.jar:?] at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.87.Final.jar:4.1.87.Final] at io.netty.channel.DefaultEventLoop.run(DefaultEventLoop.java:54) ~[netty-transport-4.1.87.Final.jar:4.1.87.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.87.Final.jar:4.1.87.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.87.Final.jar:4.1.87.Final] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.87.Final.jar:4.1.87.Final] at java.lang.Thread.run(Thread.java:833) ~[?:?]

This error will show up every time I enable the happyHUD even just use the default config and default resources pack. I think its not a Geyser error, just caused by JE resources pack so I decide to disable happyHUD. But this is just my speculation.

Hahaa13 commented 1 year ago

+1 error

onebeastchris commented 1 year ago

Is this still an issue with the latest version of Geyser?

Strovo commented 1 year ago

anyone solve?

Konicai commented 1 year ago

I'm 99% sure that this is superseded by #4017.

3803 should fix this issue, which I would appreciate testing of. If you're not sure how to download a PR build, ask on our Discord.