Home / Merged error reference / 74

Invalid atlas json, frame already exists (Array-format variant)

Covers IDs: P09, P-V1 · Engine: Phaser

P09 · Phaser

'Invalid atlas json, frame already exists: ' + key
Verification
源码原文(src/textures/parsers/JSONHash.js:56)
Frequency
未公开

Trigger: Two frame keys with the same name appear in the frames of a Hash-format atlas JSON, or the same atlas is loaded twice causing frame key conflicts.

Typical cause: texture.add(key, ...) returns null for an existing frame name; the parser skips that frame and warns, so the duplicate frame never enters the Texture.

Step-by-step fix:
  1. Rename duplicate frames in the atlas packing tool.
  2. Remove the old texture before loading.
  3. Check whether two atlas JSONs were registered to the same texture key.

Per-entry sources and capture date are listed at /sources#P09.

P-V1 · Phaser

'Invalid atlas json, frame already exists: ' + src.filename
Verification
源码原文(src/textures/parsers/JSONArray.js:52)
Frequency
未公开

Trigger: Two records in the frames array of an Array-format atlas JSON share the same filename, i.e. duplicate frame names.

Typical cause: Same as the Hash path: texture.add hits an existing frame name and returns null; the frame is skipped and warned.

Step-by-step fix:
  1. Check for duplicate filenames in the array and rename them.
  2. Confirm the atlas was not merged and exported multiple times.
  3. Clean up duplicates, repack the atlas, then reload.

Per-entry sources and capture date are listed at /sources#P-V1.

Related errors

Need an offline quick-reference checklist?

Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.

View Pro pack / order