Simulator Crash when calling addCheckmarkMenuItem incorrectly

run this code

playdate.menu:addCheckmarkMenuItem("Test Item", true, callback)

Result

Simulator crashes

SDK

1.10.0 (Mac)

I'm seeing a Lua exception but the Simulator isn't crashing for me. Is this all the code you have in your lua file?

No, there a ton more!

I'll send crash logs when I can.

1 Like

So, there were no crash logs because it hadn't crashed. :sweat_smile:

But I was getting beachball on the Simulator.

Repro Steps

  1. Nova
  2. Project > Debug > Activate Breakpoints
  3. run code with playdate.menu:addCheckmarkMenuItem("Invert Display", true, callback)

Expected:

  • Nova Debugger should come to the front

Actual

  • Simulator stops and beachballs
  • You have to manually switch to Nova Debugger

Notes

  • With Breakpoints deavticated this does not happen
  • Confusing to have to do this, as there are no breakpoints set in my project