P09 · Phaser
'Invalid atlas json, frame already exists: ' + key
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.
- Rename duplicate frames in the atlas packing tool.
- Remove the old texture before loading.
- 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
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.
- Check for duplicate filenames in the array and rename them.
- Confirm the atlas was not merged and exported multiple times.
- 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.