Simulator consistently crashing with pathfinding

Hi there! I must be doing something wrong while using the pathfinding lib - however instead of giving me a debug pause on error, the simulator outright crashes.

This makes it very difficult to know what's going wrong especially given the complex environment that makes this crash happen only based on certain conditions.

Thankfully I isolated whatever is causing the crash and can be reproduced easily by cloning this repo: GitHub - Franchovy/YOUR-Playdate-Tutorial: How to make YOUR first game for playdate (Yes, it's from my youtube tutorial series!)
...and checking out the branch: simulator-crash-debugging.

The behavior to reproduce the crash is simple:

  • Start the game
  • Press A (play)
  • Press B (place tower)
  • Press B again (remove tower)
    ...and there you go!

Hopefully this helps improve the SDK. I'm struggling to work with pathfinding let alone finishing a tutorial on it :slight_smile:

Good luck and let me know if you guys need anything!

2 Likes

Thanks for posting about this. It does look like it's crashing in the pathfinding code in the firmware. I've filed an issue on it and we will investigate!

1 Like