This issue is completely blocking me from testing on device. I've dealt with seemingly random crashes when building on macOS for a while, but never so persistently and never on Windows. I cannot figure out what is triggering the crashes, but they began shortly after:
- I upgraded to 2.0.0
- I started using
pd.sound.fileplayer
to play WAV files up to 10 MB in size.
Help would be very much appreciated <3
Technical specifications
SDK/firmware: 2.0.0
platforms:
- v1 Playdate (Playdate PDU-Y-01)
- m2 macOS Ventura 13.3.1
- Windows 10 Pro v22H2
connection: direct USB C-C
My hunch is that the issue arises from the macOS build, but once the crash occurs once, subsequent Windows builds will fail as well.
Steps to reproduce:
Two similar commits were chosen below, but this should be reproducible with more-or-less any commits in that branch made in the last few weeks.
"The app works" == "You can press A to exit the splash screen into the main menu with the big number in the top-left, the floating buttons to the right of it, etc."
- On Mac, clone, build, and run this commit in the Playdate simulator. The app should work.
- Upload the app to the Playdate device and run it. It should work.
- On Mac, clone, build, and run this subsequent commit (changes are to some sound files) in the Playdate simulator. It should work.
- Upload the app to the Playdate device and run it.
Expected result:
- Computer waits for playdate disk, copies main.pdx over, unmounts the data disk, and runs the app.
- The app works, pressing A takes user from splash screen to main menu, etc.
Actual result:
- Computer waits for the playdate disk, but doesn’t seem to copy any files over, instead skipping straight to unmounting the data disk and then running the app.
- The app loads the splash screen, but then crashes after a second with an e0 error.
- Subsequent attempts to run the app from the device menu also fail early with e0.
- On the error screen, there is no prompt to press B for further information, nor any error logs found in the Playdate data disk.
Attempted fixes:
- Rebooting: doesn't fix the issue.
- Booting to the data disk and manually transferring main.pdx: doesn’t fix the issue.
- Booting to recovery mode: doesn't fix the issue.
- Factory-reset: temporarily fixes the issue; steps #1-2 work but #3-4 cause crash again.
Crash logs:
— m2 macOS Ventura 13.3.1 —
build:d0114b2d74cd-2.0.0-release.155213-buildbot
r0:20031834 r1:00000000 r2:00001000 r3: 00000400
r12:00003fe0 lr:0803df63 pc:0803ed0c psr: 81000200
cfsr:00000082 hfsr:00000000 mmfar:fffffffb bfar: fffffffb
rcccsr:00000000
heap allocated: 1275968
Lua totalbytes=370358 GCdebt=-2000 GCestimate=367506 stacksize=42
— Windows 10 Pro v22H2 —
build:d0114b2d74cd-2.0.0-release.155213-buildbot
r0:00000001 r1:00000001 r2:00045400 r3: 40012c00
r12:00003fe0 lr:08035583 pc:08035538 psr: 21000000
cfsr:00000082 hfsr:00000000 mmfar:fffffffb bfar: fffffffb
rcccsr:00000000
heap allocated: 1276000
Lua totalbytes=370554 GCdebt=-2000 GCestimate=367698 stacksize=42