{
  "id": 22999452,
  "title": "Invalid Texture Atlas JSON Hash given, missing 'frames' Object",
  "url": "https://urgent.news/2026/12/01/invalid-texture-atlas-json-hash-given-missing-frames-object",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-01T19:30:02.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/yirenlabs/invalid-texture-atlas-json-hash-given-missing-frames-object-20ej"
  },
  "original_language": null,
  "account": "The error message \"Invalid Texture Atlas JSON Hash given, missing 'frames' Object\" originates from the JSON hash parser located in src/textures/parsers/JSONHash.js. This occurs when the JSON file does not contain a frames object, prompting the parser to log an error and return the texture as is without modification. Although the loading process appears complete, the issue manifests later when attempting to access individual frames by name. The \"untouched\" texture, which only includes the base frame ( '__BASE' ), results in sprites drawing the entire sheet within a single cell, causing animations to appear frozen, flickering, or distorted. To reproduce the issue, simply provide a JSON file without a top-level frames object to the load.atlas method. Upon observing the error, inspect the texture's frame names – an absence of any frame names other than \"__BASE\" confirms the parser's failure. This error does not stem from using the incorrect format, but rather indicates the absence of a frames key, which is why the message specifically references the hash parser. Multi-atlas exports, generated by different tools, and truncated or substituted files may also cause this error. To prevent such issues, ensure that multi-atlas JSON files follow the correct format, validate the JSON before usage, and include a frame count and image name comparison. Implementing a build script or manual check to assert the existence of the frames key and verify frame rectangles against the PNG dimensions will help catch broken atlases and avoid shipping faulty textures.",
  "summary": "Invalid Texture Atlas JSON Hash given, missing 'frames' Object This message comes from the JSON hash parser in src/textures/parsers/JSONHash.js . The whole check is one guard at the top of the parse: if the JSON has no frames object, the parser logs the error and hands the texture back untouched. Nothing throws. The loader still reports progress, the load still completes, and…",
  "summary_source": "publisher",
  "key_points": [
    "\"Invalid Texture Atlas JSON Hash\" error due to missing 'frames' object",
    "JSON parser logs error and returns texture unchanged",
    "Reproduce by providing JSON without top-level 'frames' object"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}