{
  "id": "unity/network-unreliable-message-queue-full",
  "signature": "InvalidOperationException: Cannot enqueue unreliable message. The unreliable message queue is full.",
  "signature_zh": "无效操作异常：无法将不可靠消息入队。不可靠消息队列已满。",
  "regex": "InvalidOperationException: Cannot enqueue unreliable message\\. The unreliable message queue is full\\.",
  "domain": "unity",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The network transport layer's unreliable message queue has reached its capacity, typically due to sending too many unreliable messages without processing or a network buffer leak.",
  "root_cause_type": "generic",
  "root_cause_zh": "网络传输层的不可靠消息队列已达到容量上限，通常是由于发送了过多不可靠消息而未处理，或网络缓冲区泄漏。",
  "versions": [
    {
      "version": "Unity 2022.3.15f1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Unity 2023.2.0b5",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Netcode for GameObjects 1.6.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Increasing the queue size without addressing the root cause (e.g., message spam) may only delay the error and cause memory issues.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Restarting the game client clears the queue temporarily but does not fix the underlying excessive message generation.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Reduce the frequency of unreliable messages by implementing a send rate limiter. For example, in a script, use a timer to send at most 10 messages per second: `if (Time.time - lastSendTime > 0.1f) { SendUnreliableMessage(); lastSendTime = Time.time; }`.",
      "success_rate": 0.8,
      "how": "Reduce the frequency of unreliable messages by implementing a send rate limiter. For example, in a script, use a timer to send at most 10 messages per second: `if (Time.time - lastSendTime > 0.1f) { SendUnreliableMessage(); lastSendTime = Time.time; }`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase the unreliable message queue size in the network transport configuration (e.g., in Unity Transport, set `maxUnreliableQueueSize` to a higher value like 1024).",
      "success_rate": 0.7,
      "how": "Increase the unreliable message queue size in the network transport configuration (e.g., in Unity Transport, set `maxUnreliableQueueSize` to a higher value like 1024).",
      "condition": "",
      "sources": []
    },
    {
      "action": "Monitor and log outgoing message counts to identify and fix scripts that are accidentally sending messages in Update() without checks.",
      "success_rate": 0.85,
      "how": "Monitor and log outgoing message counts to identify and fix scripts that are accidentally sending messages in Update() without checks.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "通过实现发送速率限制器来降低不可靠消息的频率。例如，在脚本中使用计时器，每秒最多发送 10 条消息：`if (Time.time - lastSendTime > 0.1f) { SendUnreliableMessage(); lastSendTime = Time.time; }`。",
    "在网络传输配置中增加不可靠消息队列大小（例如在 Unity Transport 中，将 `maxUnreliableQueueSize` 设置为更高的值，如 1024）。",
    "监控并记录传出消息数量，以识别并修复在 Update() 中无意发送消息的脚本。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.unity3d.com/Packages/com.unity.netcode@1.6/manual/index.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}