ViaVersion / ViaFabricPlus

Fabric mod to connect to EVERY Minecraft server version (Release, Beta, Alpha, Classic, Snapshots, Bedrock) with QoL fixes to the gameplay
GNU General Public License v3.0
415 stars 44 forks source link

Client disconnected with reason: Internal Exception: io.netty.handler.codec.DecoderException: Not a compound tag: 10b #289

Closed wifi-left closed 11 months ago

wifi-left commented 12 months ago

General Information

Client Mod List:

- allmusic_client 2.6.9
       \-- org_gagravarr_vorbis-java-core 0.8
    - carpet 1.4.121+v231011
    - cloth-config 12.0.109
       \-- cloth-basic-math 0.6.1
    - fabric-api 0.90.7+1.20.2
       |-- fabric-api-base 0.4.33+fce67b32a0
       |-- fabric-api-lookup-api-v1 1.6.42+b1792f7da0
       |-- fabric-biome-api-v1 13.0.14+b1792f7da0
       |-- fabric-block-api-v1 1.0.12+73761d2ea0
       |-- fabric-block-view-api-v2 1.0.1+73761d2ea0
       |-- fabric-blockrenderlayer-v1 1.1.43+f4b7e424a0
       |-- fabric-client-tags-api-v1 1.1.4+86b12645a0
       |-- fabric-command-api-v1 1.2.37+f71b366fa0
       |-- fabric-command-api-v2 2.2.16+b1792f7da0
       |-- fabric-commands-v0 0.2.54+df3654b3a0
       |-- fabric-containers-v0 0.1.75+df3654b3a0
       |-- fabric-content-registries-v0 5.0.5+b1792f7da0
       |-- fabric-convention-tags-v1 1.5.8+b1792f7da0
       |-- fabric-crash-report-info-v1 0.2.20+f4b7e424a0
       |-- fabric-data-generation-api-v1 13.1.5+b1792f7da0
       |-- fabric-dimensions-v1 2.1.57+b1792f7da0
       |-- fabric-entity-events-v1 1.5.26+b1792f7da0
       |-- fabric-events-interaction-v0 0.6.10+b1792f7da0
       |-- fabric-events-lifecycle-v0 0.2.69+df3654b3a0
       |-- fabric-game-rule-api-v1 1.0.42+a44e16a6a0
       |-- fabric-item-api-v1 2.1.33+b1792f7da0
       |-- fabric-item-group-api-v1 4.0.15+e3d2bf3fa0
       |-- fabric-key-binding-api-v1 1.0.38+f4b7e424a0
       |-- fabric-keybindings-v0 0.2.36+df3654b3a0
       |-- fabric-lifecycle-events-v1 2.2.27+b1792f7da0
       |-- fabric-loot-api-v2 2.1.1+3ba460fba0
       |-- fabric-message-api-v1 6.0.2+e3d2bf3fa0
       |-- fabric-mining-level-api-v1 2.1.55+f4b7e424a0
       |-- fabric-model-loading-api-v1 1.0.6+b1792f7da0
       |-- fabric-models-v0 0.4.5+9386d8a7a0
       |-- fabric-networking-api-v1 3.0.11+bff13c85a0
       |-- fabric-object-builder-api-v1 12.1.2+2ff98d3ba0
       |-- fabric-particles-v1 1.1.4+f4b7e424a0
       |-- fabric-recipe-api-v1 2.0.8+52b3ebe5a0
       |-- fabric-registry-sync-v0 4.0.6+b1792f7da0
       |-- fabric-renderer-api-v1 3.2.1+2034447ca0
       |-- fabric-renderer-indigo 1.5.1+2034447ca0
       |-- fabric-renderer-registries-v1 3.2.49+df3654b3a0
       |-- fabric-rendering-data-attachment-v1 0.3.39+73761d2ea0
       |-- fabric-rendering-fluids-v1 3.0.30+f4b7e424a0
       |-- fabric-rendering-v0 1.1.52+df3654b3a0
       |-- fabric-rendering-v1 3.0.11+b1792f7da0
       |-- fabric-resource-conditions-api-v1 2.3.10+e3d2bf3fa0
       |-- fabric-resource-loader-v0 0.11.12+b1792f7da0
       |-- fabric-screen-api-v1 2.0.12+b1792f7da0
       |-- fabric-screen-handler-api-v1 1.3.41+b1792f7da0
       |-- fabric-sound-api-v1 1.0.14+f4b7e424a0
       |-- fabric-transfer-api-v1 3.3.10+bb1ee60ea0
       \-- fabric-transitive-access-wideners-v1 5.0.3+fce67b32a0
    - fabric-language-kotlin 1.10.13+kotlin.1.9.20
       |-- org_jetbrains_kotlin_kotlin-reflect 1.9.20
       |-- org_jetbrains_kotlin_kotlin-stdlib 1.9.20
       |-- org_jetbrains_kotlin_kotlin-stdlib-jdk7 1.9.20
       |-- org_jetbrains_kotlin_kotlin-stdlib-jdk8 1.9.20
       |-- org_jetbrains_kotlinx_atomicfu-jvm 0.22.0
       |-- org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm 1.7.3
       |-- org_jetbrains_kotlinx_kotlinx-coroutines-jdk8 1.7.3
       |-- org_jetbrains_kotlinx_kotlinx-datetime-jvm 0.4.1
       |-- org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm 1.6.0
       |-- org_jetbrains_kotlinx_kotlinx-serialization-core-jvm 1.6.0
       \-- org_jetbrains_kotlinx_kotlinx-serialization-json-jvm 1.6.0
    - fabricloader 0.14.24
    - gammautils 1.7.17
    - ibeeditor 2.2.5
    - iris 1.6.10
       |-- io_github_douira_glsl-transformer 2.0.0-pre13
       |-- org_anarres_jcpp 1.4.14
       \-- org_antlr_antlr4-runtime 4.11.1
    - java 17
    - journeymap 5.9.16
       \-- journeymap-api-fabric 1.20.2-1.9-fabric-SNAPSHOT
    - litematica 0.16.0
    - lithium 0.12.0
    - logical_zoom 0.0.21
    - malilib 0.17.0
    - minecraft 1.20.2
    - modmenu 8.0.0
    - nochatreports 1.20.2-v2.3.1
    - reeses-sodium-options 1.7.0+mc1.20.2-build.97
    - signeditgui 1.0.8
    - sodium 0.5.3
    - sodium-extra 0.5.3+mc1.20.2-build.114
       |-- caffeineconfig 1.3.0+1.17
       \-- crowdin-translate 1.4+1.19.3
    - starlight 1.1.3+fabric.5867eae
    - togglesprinting_remake 1.0.7
    - viafabricplus 2.9.5
       |-- com_github_llamalad7_mixinextras 0.2.0-rc.5
       \-- net_lenni0451_reflect 1.2.4
    - worldedit 7.2.18-SNAPSHOT+6567-a24ea43
    - worldeditcui 1.20.2+01

Server mod list:

        - carpet 1.4.112+v230608
        - cloth-config 11.0.99
           \-- cloth-basic-math 0.6.1
        - fabric-api 0.83.1+1.20.1
           |-- fabric-api-base 0.4.29+b04edc7a77
           |-- fabric-api-lookup-api-v1 1.6.34+4d8536c977
           |-- fabric-biome-api-v1 13.0.10+b3afc78b77
           |-- fabric-block-api-v1 1.0.9+e022e5d177
           |-- fabric-blockrenderlayer-v1 1.1.39+b3afc78b77
           |-- fabric-client-tags-api-v1 1.0.20+b3afc78b77
           |-- fabric-command-api-v1 1.2.32+f71b366f77
           |-- fabric-command-api-v2 2.2.11+b3afc78b77
           |-- fabric-commands-v0 0.2.49+df3654b377
           |-- fabric-containers-v0 0.1.61+df3654b377
           |-- fabric-content-registries-v0 4.0.7+b3afc78b77
           |-- fabric-convention-tags-v1 1.5.3+b3afc78b77
           |-- fabric-crash-report-info-v1 0.2.18+aeb40ebe77
           |-- fabric-data-generation-api-v1 12.1.11+b3afc78b77
           |-- fabric-dimensions-v1 2.1.51+b3afc78b77
           |-- fabric-entity-events-v1 1.5.21+b3afc78b77
           |-- fabric-events-interaction-v0 0.6.0+b3afc78b77
           |-- fabric-events-lifecycle-v0 0.2.61+df3654b377
           |-- fabric-game-rule-api-v1 1.0.38+b04edc7a77
           |-- fabric-item-api-v1 2.1.26+b3afc78b77
           |-- fabric-item-group-api-v1 4.0.7+b3afc78b77
           |-- fabric-key-binding-api-v1 1.0.36+fb8d95da77
           |-- fabric-keybindings-v0 0.2.34+df3654b377
           |-- fabric-lifecycle-events-v1 2.2.20+b3afc78b77
           |-- fabric-loot-api-v2 1.1.37+b3afc78b77
           |-- fabric-loot-tables-v1 1.1.41+9e7660c677
           |-- fabric-message-api-v1 5.1.6+b3afc78b77
           |-- fabric-mining-level-api-v1 2.1.47+b3afc78b77
           |-- fabric-models-v0 0.3.35+b3afc78b77
           |-- fabric-networking-api-v1 1.3.8+b3afc78b77
           |-- fabric-networking-v0 0.3.48+df3654b377
           |-- fabric-object-builder-api-v1 11.0.6+b3afc78b77
           |-- fabric-particles-v1 1.0.28+b3afc78b77
           |-- fabric-recipe-api-v1 1.0.18+b3afc78b77
           |-- fabric-registry-sync-v0 2.2.6+b3afc78b77
           |-- fabric-renderer-api-v1 3.0.1+b3afc78b77
           |-- fabric-renderer-indigo 1.3.1+b3afc78b77
           |-- fabric-renderer-registries-v1 3.2.44+df3654b377
           |-- fabric-rendering-data-attachment-v1 0.3.33+b3afc78b77
           |-- fabric-rendering-fluids-v1 3.0.26+b3afc78b77
           |-- fabric-rendering-v0 1.1.47+df3654b377
           |-- fabric-rendering-v1 3.0.6+b3afc78b77
           |-- fabric-resource-conditions-api-v1 2.3.5+ea08f9d877
           |-- fabric-resource-loader-v0 0.11.7+f7923f6d77
           |-- fabric-screen-api-v1 2.0.6+b3afc78b77
           |-- fabric-screen-handler-api-v1 1.3.27+b3afc78b77
           |-- fabric-sound-api-v1 1.0.12+b3afc78b77
           |-- fabric-transfer-api-v1 3.2.2+b3afc78b77
           \-- fabric-transitive-access-wideners-v1 4.2.0+b3afc78b77
        - fabric-language-kotlin 1.10.8+kotlin.1.9.0
           |-- org_jetbrains_kotlin_kotlin-reflect 1.9.0
           |-- org_jetbrains_kotlin_kotlin-stdlib 1.9.0
           |-- org_jetbrains_kotlin_kotlin-stdlib-jdk7 1.9.0
           |-- org_jetbrains_kotlin_kotlin-stdlib-jdk8 1.9.0
           |-- org_jetbrains_kotlinx_atomicfu-jvm 0.21.0
           |-- org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm 1.7.2
           |-- org_jetbrains_kotlinx_kotlinx-coroutines-jdk8 1.7.2
           |-- org_jetbrains_kotlinx_kotlinx-datetime-jvm 0.4.0
           |-- org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm 1.5.1
           |-- org_jetbrains_kotlinx_kotlinx-serialization-core-jvm 1.5.1
           \-- org_jetbrains_kotlinx_kotlinx-serialization-json-jvm 1.5.1
        - fabricloader 0.14.21
        - fabricproxy 1.4.10
           \-- com_moandjiezana_toml_toml4j 0.7.2
        - java 21
        - krypton 0.2.3
           \-- com_velocitypowered_velocity-native 3.2.0-SNAPSHOT
        - lithium 0.11.2
        - minecraft 1.20.1
        - nochatreports 1.20.1-v2.2.1
           |-- fabric-rendering-v1 3.0.6+b3afc78b82
           \-- fabric-screen-api-v1 2.0.6+b3afc78b82
        - starlight 1.1.2+fabric.dbc156f

All mods can be found on Modrinth

Bug Description

When I tried to join a fabric server (1.20.1), client but kicked with error: Client disconnected with reason: Internal Exception: io.netty.handler.codec.DecoderException: Not a compound tag: 10b or Internal Exception: io.netty.handler.codec.DecoderException: net.minecraft.class_148: Loading NBT data. No other errors found in Server or Client logs. I have confirmed that the server can be accessed in 1.20.1 original. And the 1.20.2 client can access the 1.20.2 server.

Server logs:

[11:05:45] [User Authenticator #5/INFO]: UUID of player <player> is <UUID>
[11:05:45] [Server thread/INFO]: <player>[/<IP>] logged in with entity id 1944 at (188.5, 124.0, 26.5)
[11:05:45] [Server thread/INFO]: <player> joined the game
[11:05:45] [Server thread/INFO]: <player> lost connection: Disconnected
[11:05:45] [Server thread/INFO]: <player> left the game

Client logs:

[11:05:01] [Render thread/WARN]: Client disconnected with reason: Internal Exception: io.netty.handler.codec.DecoderException: Not a compound tag: 10b
[11:05:08] [Render thread/INFO]: Connecting to <IP>, 25565
[11:05:09] [Render thread/WARN]: Client disconnected with reason: Internal Exception: io.netty.handler.codec.DecoderException: Not a compound tag: 10b
[11:05:29] [Render thread/INFO]: Connecting to <IP>, 25565
[11:05:30] [Render thread/WARN]: Client disconnected with reason: Internal Exception: io.netty.handler.codec.DecoderException: Not a compound tag: 10b
[11:05:43] [Render thread/INFO]: Connecting to <IP>, 25570

In addition, it appears that the automatic version recognition function did not work. When I enable "Automatic version selection", I enter a 1.20.1 server and the message "I am not compatible with the client, I need 1.20.1" is displayed.

Steps to Reproduce

  1. Joining a 1.20.1 fabric server using 1.20.2 client.
  2. Disconnect with a reason: Internal Exception: io.netty.handler.codec.DecoderException: Not a compound tag: 10b or Internal Exception: io.netty.handler.codec.DecoderException: net.minecraft.class_148: Loading NBT data .

Expected Behavior

The game shoudn't disconnect when I joined the server.

wifi-left commented 12 months ago

And I also had this problem when I tried using empty worlds (flat) on server.

FlorianMichael commented 12 months ago

Joining older Fabric server versions is not really supported atm, try to remove all server / client mods until it works so we can figure something out. To the version detection issue: You have to ping the server correctly / it doesn't work on some platforms like BungeeCord anyways, so this feature isn't recommended to use.

wifi-left commented 11 months ago

To the version detection issue: You have to ping the server correctly / it doesn't work on some platforms like BungeeCord anyways, so this feature isn't recommended to use.

I found that the carpet-1.20 causes this error. Thank you for your help.

FlorianMichael commented 11 months ago

Installing https://modrinth.com/mod/viavanillaplus will solve your issue then