{
  "id": "flutter/isolate-deserialize-list-subtype",
  "signature": "Unhandled exception: IsolateSpawnException: Failed to deserialize message: type 'List<dynamic>' is not a subtype of type 'List<String>'",
  "signature_zh": "未处理的异常：IsolateSpawnException：无法反序列化消息：类型'List<dynamic>'不是类型'List<String>'的子类型",
  "regex": "IsolateSpawnException: Failed to deserialize message: type 'List<dynamic>' is not a subtype of type 'List<[^>]+>'",
  "domain": "flutter",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "Sending a list with generic type information that gets lost during serialization across isolates, causing a type mismatch on deserialization.",
  "root_cause_type": "generic",
  "root_cause_zh": "发送带有泛型类型信息的列表，在跨隔离区序列化时类型信息丢失，导致反序列化时类型不匹配。",
  "versions": [
    {
      "version": "Flutter 3.16+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Dart 3.2+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Adding explicit type annotations to the list variable in the sending code does not guarantee type preservation during serialization.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Using .cast<String>() on the receiving end after receiving a List<dynamic> may throw if elements are not strings.",
      "fail_rate": 0.3,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Cast the list to the expected type after receiving it using List<String>.from() or .cast<String>() with proper error handling.",
      "success_rate": 0.8,
      "how": "Cast the list to the expected type after receiving it using List<String>.from() or .cast<String>() with proper error handling.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a custom serialization format like JSON encoding/decoding to preserve type information across isolates.",
      "success_rate": 0.85,
      "how": "Use a custom serialization format like JSON encoding/decoding to preserve type information across isolates.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Cast the list to the expected type after receiving it using List<String>.from() or .cast<String>() with proper error handling.",
    "Use a custom serialization format like JSON encoding/decoding to preserve type information across isolates."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://api.dart.dev/stable/dart-isolate/SendPort/send.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.81,
  "fix_success_rate": 0.83,
  "resolvable": "true",
  "first_seen": "2024-03-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}