Skip to content

[BUG] VarInt too big #3214

Description

@xiaozeqwq

Prerequisites

  • I made sure I am running the latest development build
  • I tried to look for similar issues before opening a new one
  • I have set debugmessages=true in config to diagnose my issue
  • I have redacted session tokens and passwords before attaching screenshots

Minecraft Version

1.21.4

Console Client Version

Latest

Expected Behavior

忽略这个错误

Actual Behavior

[13:10:28] [MCC] [CompassSwitcher] Sending '/server 11th'
[13:10:28] ▌正在将你连接至 11周目..
[13:10:29] Unhandled exception. System.IO.InvalidDataException: Failed to process incoming packet of type RecipeBookAdd. (PacketID: 68, Protocol: 769, LoginPhase: False, InnerException: System.OverflowException).
[13:10:29] ---> System.OverflowException: VarInt too big
[13:10:29] at MinecraftClient.Protocol.Handlers.Protocol18Handler.SkipItemHolderSet(Queue1 packetData) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 4040 [13:10:29] at MinecraftClient.Protocol.Handlers.Protocol18Handler.SkipOptionalCraftingRequirements(Queue1 packetData) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 4027
[13:10:29] at MinecraftClient.Protocol.Handlers.Protocol18Handler.ReadRecipeBookDisplayEntry(Queue1 packetData) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 3839 [13:10:29] at MinecraftClient.Protocol.Handlers.Protocol18Handler.HandleRecipeBookAdd(Queue1 packetData) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 3802
[13:10:29] at MinecraftClient.Protocol.Handlers.Protocol18Handler.HandlePlayPackets(Int32 packetId, Queue1 packetData) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 3507 [13:10:29] at MinecraftClient.Protocol.Handlers.Protocol18Handler.HandlePacket(Int32 packetId, Queue1 packetData) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 705
[13:10:29] --- End of inner exception stack trace ---
[13:10:29] at MinecraftClient.Protocol.Handlers.Protocol18Handler.HandlePacket(Int32 packetId, Queue`1 packetData) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 737
[13:10:29] at MinecraftClient.Protocol.Handlers.Protocol18Handler.Updater(Object o) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 326
[13:10:29] at System.Threading.Thread.StartHelper.Callback(Object state)
[13:10:29] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
[13:10:29] --- End of stack trace from previous location ---
[13:10:29] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
配方书过大

Steps to Reproduce the bug

  1. 执行/server 11th
  2. 崩溃

Attach screenshot here (If applicable)

No response

Anythings that could help diagnosing the bug

Device

VPS

Operating System

Linux

Server Address (If applicable)

fishport.net

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:bugCrash or feature not working as expectedresolvedThe issue has been resolved

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions