# What is a 980 error on a PyGamer?

**URL:** https://forum.makecode.com/t/what-is-a-980-error-on-a-pygamer/13977
**Category:** Arcade
**Created:** [June 6, 2022, 5:13pm UTC](https://forum.makecode.com/t/what-is-a-980-error-on-a-pygamer/13977 "2022-06-06T17:13:30Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [June 6, 2022, 5:13pm UTC](https://forum.makecode.com/t/what-is-a-980-error-on-a-pygamer/13977/1 "2022-06-06T17:13:30Z")

</div>

I tried porting a game to my pygamer and it ports and runs fine until one point where it crashes and gives a 980 error code on-screen. At that point only resetting works. Anyone knows what’s up?

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [June 6, 2022, 5:18pm UTC](https://forum.makecode.com/t/what-is-a-980-error-on-a-pygamer/13977/2 "2022-06-06T17:18:36Z")

</div>

Here’s the list of all (assuming it’s up to date) error codes we have made: [https://arcade.makecode.com/device/error-codes](https://arcade.makecode.com/device/error-codes) and a smaller list of more common errors [https://arcade.makecode.com/hardware/errors](https://arcade.makecode.com/hardware/errors) (although looking at that page it looks like there’s a typo on that error number 😕 ) – as noted there 980 is `attempted cast from an undefined value to another type` – usually it comes from trying to do something with undefined. Could you share the game?

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [June 6, 2022, 5:56pm UTC](https://forum.makecode.com/t/what-is-a-980-error-on-a-pygamer/13977/3 "2022-06-06T17:56:16Z")

</div>

It was @UnsignedArduino’s procedurally generated platformer

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [June 6, 2022, 6:10pm UTC](https://forum.makecode.com/t/what-is-a-980-error-on-a-pygamer/13977/4 "2022-06-06T18:10:17Z")

</div>

Ah hm, sounds like someone else ran into an error there as well – looks like we might have a compiler bug going to hardware somewhere in there that doesn’t match. That will likely need some time to figure out the error so I’ll post an issue. This post lists that they have a version that worked on hardware: [Procedurally Generated Platformer - #41 by squidink7](https://forum.makecode.com/t/procedurally-generated-platformer/8500/41) which is this one:

> **[Procedurally Generated Platformer v1.1.0-squid](https://arcade.makecode.com/04250-37833-90370-68296)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [June 6, 2022, 8:15pm UTC](https://forum.makecode.com/t/what-is-a-980-error-on-a-pygamer/13977/5 "2022-06-06T20:15:38Z")

</div>

(posted issue here: [https://github.com/microsoft/pxt-arcade/issues/4801](https://github.com/microsoft/pxt-arcade/issues/4801))

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [June 6, 2022, 8:59pm UTC](https://forum.makecode.com/t/what-is-a-980-error-on-a-pygamer/13977/6 "2022-06-06T20:59:09Z")

</div>

Nice, thanks

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [June 7, 2022, 5:07pm UTC](https://forum.makecode.com/t/what-is-a-980-error-on-a-pygamer/13977/7 "2022-06-07T17:07:41Z")

</div>

Hmmm, for some reason I am unable to reproduce this with my original v1 link on my PyGamer. (Also, I feel like the RNG changed??? Or maybe I’m just bad at my own games 😆)

(I also responded the same on the GitHub issue, but wanted to post this here as well)
