Home / Phaser / P10

Phaser error: 'Invalid atlas json, frame already exists: ' + src.filename — cause and fix

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

ID
P10
Engine
Phaser
Verification
源码原文(src/textures/parsers/JSONArray.js:52)
Frequency
未公开

Original message (verbatim)

'Invalid atlas json, frame already exists: ' + src.filename

Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.

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.

Source links

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

Related errors

Related Phaser 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

Back to the all-errors index Checkout and buy the Pro pack — $19.00