Skip to content

[BUG] 无法处理传入的DeclareCommands类型的数据包 #2926

@mengshims

Description

@mengshims

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.20.1 forge 47.3.7

Console Client Version

20250522-285

Expected Behavior

I hope to connect to the server successfully.

Actual Behavior

When attempting to connect to the server, the client crashes with the following exception:
System.IO.InvalidDataException: 无法处理传入的DeclareCommands类型的数据包。(数据包ID:16,协议:763,登陆阶段:False,内部异常:System.InvalidOperationException)

Steps to Reproduce the bug

  1. Start MCC
  2. Connect to the server

Attach screenshot here (If applicable)

No response

Anythings that could help diagnosing the bug

在运行Forge,有73个模组。
模组列表:
  radium v0.12.4+git.26c9d8e
  rhino vIGNORED
  kuma_api v20.1.12
  kubejs vIGNORED
  ftbessentials vIGNORED
  ae2wtlib v15.3.1-forge
  trashslot v15.1.3
  ftblibrary v2001.2.10
  gtlcore v1.2.2.7-fix7
  sophisticatedstorage v1.4.14.1356
  ad_astra_rocketed v1.0.5
  botarium v2.3.4
  jei v15.20.0.116
  ae2 v15.4.10
  gtmthings v1.3.5.b
  gtladditions v2.6.5Custom
  incontrol v1.20-9.4.6
  travelanchors v1.20.1-5.0.1
  sophisticatedcore v1.2.105.1230
  gpumemleakfix v
  invtweaks v
  laserio v1.5.0
  fastsuite v5.1.0
  usclb v1.20.1-0.0.26
  placebo v8.6.3
  modernfix vIGNORED
  libx v1.20.1-5.0.14
  mixinextras vIGNORED
  easyplatform v1.20.1-3.0.1
  shrink v1.4.5
  ftbbackups2 vIGNORED
  sophisticatedbackpacks v3.24.10.1404
  gtceu v1.4.4
  expatternprovider v1.20-1.4.8-forge
  guideme v20.1.14
  ldlib v1.0.29.b
  balm v7.3.38
  jeresources vIGNORED
  mae2 v1.6.1
  cloth_config vIGNORED
  ftbteams vIGNORED
  ftbchunks v2001.3.6
  forge vANY
  glodium v1.20-1.5-forge
  minecraft v1.20.1
  ftbxmodcompat v2.1.3
  configuration v2.2.0
  toolbelt v1.20.02
  avaritia v1.3.8.3
  ftbquests v2001.4.14
  jade vIGNORED
  skyblockbuilder v1.20.1-5.1.27
  resourcefulconfig v2.1.3
  merequester v1.20.1-1.1.5
  kotlinforforge v4.11.0
  jeiintegration vIGNORED
  pipez v1.20.1-1.2.26
  sgjourney v0.6.44
  curios v5.14.1+1.20.1
  fastbench v8.0.4
  framedblocks v9.4.2
  ftbultimine v2001.1.7
  buildinggadgets2 v1.0.8
  resourcefullib v2.1.29
  fastfurnace v8.0.2
  constructionwand v1.20.1-2.11
  architectury v9.2.14
  ferritecore vIGNORED
  polylib v2000.0.3-build.143
  packetfixer v2.0.0
  fastleafdecay v32
  ae2ct v1.20.1-1.1.0
  ad_astra v1.15.20
服务器的Minecraft版本:1.20.1 (协议v763, 带有Forge)
已加载翻译文件。
[MCC] 该版本受到支持
正在登录...
Received FML3 Server Mod Data List
收到FM2服务器模组列表
返回FML2客户端模组列表
确认FML2服务器注册表:minecraft:command_argument_type
确认FML2服务器注册表:minecraft:recipe_serializer
确认FML2服务器注册表:minecraft:sound_event
确认FML2服务器注册表:minecraft:particle_type
确认FML2服务器注册表:minecraft:villager_profession
确认FML2服务器注册表:minecraft:item
确认FML2服务器注册表:minecraft:potion
确认FML2服务器注册表:minecraft:painting_variant
确认FML2服务器注册表:forge:fluid_type
确认FML2服务器注册表:minecraft:block_entity_type
确认FML2服务器注册表:forge:display_contexts
确认FML2服务器注册表:minecraft:block
确认FML2服务器注册表:forge:entity_data_serializers
确认FML2服务器注册表:sgjourney:galaxy_type
确认FML2服务器注册表:minecraft:mob_effect
确认FML2服务器注册表:minecraft:stat_type
确认FML2服务器注册表:framedblocks:camo_containers
确认FML2服务器注册表:minecraft:menu
确认FML2服务器注册表:minecraft:enchantment
确认FML2服务器注册表:ae2:keytypes
确认FML2服务器注册表:minecraft:fluid
确认FML2服务器注册表:minecraft:entity_type
确认FML2服务器配置:pipez-server.toml
确认FML2服务器配置:framedblocks-server.toml
确认FML2服务器配置:curios-server.toml
确认FML2服务器配置:toolbelt-server.toml
确认FML2服务器配置:fastleafdecay-server.toml
确认FML2服务器配置:incontrol-server.toml
确认FML2服务器配置:sophisticatedstorage-server.toml
确认FML2服务器配置:sophisticatedbackpacks-server.toml
确认FML2服务器配置:constructionwand-server.toml
确认FML2服务器配置:jei-server.toml
确认FML2服务器配置:forge-server.toml
[MCC] 服务器正处于离线模式。
[MCC] 已成功加入服务器。
输入 '/quit' 离开服务器。
[DEBUG] Receive JoinGame
[DEBUG] CanSendMessage = True
[DEBUG] Receive DeclareCommands
> Unhandled exception. System.IO.InvalidDataException: 无法处理传入的DeclareCommands类型的数据包。(数据包ID:16,协议:763,登陆阶段:False,内部异常:System.InvalidOperationException)。
 ---> System.InvalidOperationException: Queue empty.
   at System.Collections.Generic.Queue`1.ThrowForEmptyQueue()
   at System.Collections.Generic.Queue`1.Dequeue()
   at MinecraftClient.Protocol.Handlers.packet.s2c.DeclareCommands.Read(DataTypes dataTypes, Queue`1 packetData, Int32 protocolVersion) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Packet/s2c/DeclareCommands.cs:line 19
   at MinecraftClient.Protocol.Handlers.Protocol18Handler.HandlePlayPackets(Int32 packetId, Queue`1 packetData) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 745
   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 495
   --- End of inner exception stack trace ---
   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 495
   at MinecraftClient.Protocol.Handlers.Protocol18Handler.Updater(Object o) in /home/runner/work/Minecraft-Console-Client/Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/Protocol18.cs:line 259
   at System.Threading.Thread.StartHelper.Callback(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Thread.StartCallback()

Device

Laptop

Operating System

Windows

Server Address (If applicable)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:bugCrash or feature not working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions