# Program crashes?

**URL:** <https://discourse.processing.org/t/program-crashes/1140>\
**Category:** Coding Questions\
**Created:** [June 21, 2018, 2:07am UTC](https://discourse.processing.org/t/program-crashes/1140 "2018-06-21T02:07:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grimtin10](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Post date:** [June 21, 2018, 2:07am UTC](https://discourse.processing.org/t/program-crashes/1140/1 "2018-06-21T02:07:50Z")

</div>

Why does this program freeze?  
[https://pastebin.com/VwKiqanB](https://pastebin.com/VwKiqanB)  
Please help! I’ve been trying to fix it, but no avail.

-Grim

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [June 21, 2018, 2:44am UTC](https://discourse.processing.org/t/program-crashes/1140/2 "2018-06-21T02:44:56Z")

</div>

You’ll have better luck if you narrow your problem down to a [MCVE](https://stackoverflow.com/help/mcve) and post the code directly in your question. Also please try to be more specific: what do you expect this code to do? What does it do instead? Have you tried [debugging your code](http://happycoding.io/tutorials/processing/debugging)?

---

<div class="post-metadata">

**Author:** ![Grimtin10](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Post date:** [June 21, 2018, 3:03am UTC](https://discourse.processing.org/t/program-crashes/1140/3 "2018-06-21T03:03:42Z")

</div>

i can’t debug :\ it crashes too fast.

---

<div class="post-metadata">

**Author:** ![Grimtin10](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Post date:** [June 21, 2018, 3:04am UTC](https://discourse.processing.org/t/program-crashes/1140/4 "2018-06-21T03:04:17Z")

</div>

What do I expect it to do? Not freeze, and have a little creature do stuff.

---

<div class="post-metadata">

**Author:** ![Grimtin10](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Post date:** [June 21, 2018, 3:32am UTC](https://discourse.processing.org/t/program-crashes/1140/5 "2018-06-21T03:32:43Z")

</div>

Fixed it on my own, there was many problems, but they got fixed.
