Player:moveShadow() is a class function I had since commented out
same happens if I replace the above call with a local function like abcde()
important: the code in the screenshot is in my main.lua inside of function playdate.keyPressed(key), so outside of any class/OOP (thanks to Nic on Discord)
Also
Player is defined as class('Player').extends(playdate.graphics.sprite)
So I looked a bit into this issue and it seems some callbacks don't report error as expected (probably called using pcall() but doesn't handle the error?)
Pocking around it seems the following functions don't report error playdate.keyPressed() playdate.keyReleased() playdate.gameWillTerminate() playdate.deviceWillLock()
The callbacks for system menu items like playdate.menu:addMenuItem()
playdate.sound.micinput.recordToSample() callback reports the error but it is incomplete, the file or line number are missing.
and an error in playdate.debugDraw() will crash the simulator
I did not test all the callbacks so this is not exhaustive.
I added a fix for keyPressed/Released(), then I saw Nic's message. I've got a fix in now for the debugDraw() crash. For the others I think it'll just be a matter of replacing the lua_pcall()s with our function that first puts debug.traceback() on the stack as an error handler. That's got a non-zero chance of adding mystery bugs so I'm going to push that til after 1.1 so I don't hold it up or necessitate an emergency 1.1.1