# Load proxy crashes randomly

**URL:** <https://forum.defold.com/t/load-proxy-crashes-randomly/18653>\
**Category:** Bugs\
**Created:** [April 5, 2018, 8:27pm UTC](https://forum.defold.com/t/load-proxy-crashes-randomly/18653 "2018-04-05T20:27:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edd](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/e/8c91f0/32.png) [@Edd](https://forum.defold.com/u/Edd)\
**Post date:** [April 5, 2018, 8:27pm UTC](https://forum.defold.com/t/load-proxy-crashes-randomly/18653/1 "2018-04-05T20:27:27Z")

</div>

Maybe I’m not doing it right, I don’t now. I made clone pong before without problems.

Now I started a platformer and when loading the first collection it throws the following error:

```lua
ERROR:GAMESYS: Default animation 'square' not found
WARNING:RESOURCE: Unable to create resource: build/default/_generated_b671df0b.spritec
WARNING:RESOURCE: Unable to create resource: build/default/main/prefabs/player.goc
ERROR:GAMEOBJECT: Could not instantiate game object from prototype /main/prefabs/player.goc.
WARNING:RESOURCE: Unable to create resource: build/default/main/collections/nice-place.collectionc
ERROR:GAMESYS: The collection /main/collections/nice-place.collectionc could not be loaded.

```

Sometimes I delete a game object, press CTRL + Z to bring it back again and everything works all of a sudden. Another example, when I delete a go it works again.. the next day I delete the same go and still doesn’t work and I need t keep deleteting stuff until finally something works. Could this be a bug?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [April 5, 2018, 8:35pm UTC](https://forum.defold.com/t/load-proxy-crashes-randomly/18653/2 "2018-04-05T20:35:32Z")

</div>

The problem you describe rings a bell. Could this perhaps be that you have a tilesource and an atlas with the same name?

---

<div class="post-metadata">

**Author:** ![Edd](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/e/8c91f0/32.png) [@Edd](https://forum.defold.com/u/Edd)\
**Post date:** [April 5, 2018, 9:15pm UTC](https://forum.defold.com/t/load-proxy-crashes-randomly/18653/3 "2018-04-05T21:15:07Z")

</div>

Yup, that was it. I named my project “Awesome Square” and had three files named the same and changed them to…

```lua
awesome-square.tilemap -> map.tilemap
awesome-square.tilesource -> tiles.tilesource
awesome-square.atlas -> sprites.atlas

```

Now it seems everything works fine from the beginning. Thank you @britzl. But still.. could this count as a bug? The fact that having files with the same name crashes the game.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [April 5, 2018, 9:31pm UTC](https://forum.defold.com/t/load-proxy-crashes-randomly/18653/4 "2018-04-05T21:31:03Z")

</div>

I think it definitely counts as a bug if it crashes the engine. We should add this as a build error.

---

<div class="post-metadata">

**Author:** ![Edd](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/e/8c91f0/32.png) [@Edd](https://forum.defold.com/u/Edd)\
**Post date:** [April 5, 2018, 10:21pm UTC](https://forum.defold.com/t/load-proxy-crashes-randomly/18653/5 "2018-04-05T22:21:52Z")

</div>

Great, finally I was able to make Defold at least a bit better.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [April 6, 2018, 6:03am UTC](https://forum.defold.com/t/load-proxy-crashes-randomly/18653/6 "2018-04-06T06:03:36Z")

</div>

It’s the tile source and atlas that results in the same output file. I believe it’s already tracked as an issue in our system.
