E0 crash shortly after launch, requires factory reset

Updates:

  • Removing each block in my pd.update code did nothing to ameliorate the crashes.
  • I thought that something in the build process was causing the crashes, since they mostly occur ~5 seconds into running the application after build, but this is not the case. One time, my application was working fine for ~5 minutes, then crashed, and continued crashing on subsequent restarts.
  • Crashes occur around frames 24-26.
  • I'm not having this problem with other applications on my Playdate (tested Whitewater Wipeout, Crankin's Time Travel Adventure, Boogie Loops).

I'm not sure what other information I can provide that would be useful.
Here are some crash logs for subsequent crashes on a single build (macOS):

--- crash at 2023/07/05 16:23:50---
build:d0114b2d74cd-2.0.0-release.155213-buildbot
   r0:40012c00    r1:0000000d     r2:00001388    r3: 00000400
  r12:006d3000    lr:0803c791     pc:0803c308   psr: 01000000
 cfsr:00000082  hfsr:00000000  mmfar:000000cc  bfar: 000000cc
rcccsr:00000000
heap allocated: 1751040
Lua totalbytes=376565 GCdebt=-2000 GCestimate=368748 stacksize=42

--- crash at 2023/07/05 16:24:00---
build:d0114b2d74cd-2.0.0-release.155213-buildbot
   r0:00000000    r1:00000000     r2:00030d0e    r3: 00000000
  r12:006d3000    lr:080352cb     pc:08034fd6   psr: 61000000
 cfsr:00000082  hfsr:00000000  mmfar:000000cc  bfar: 000000cc
rcccsr:00000000
heap allocated: 1751040
Lua totalbytes=376565 GCdebt=-2000 GCestimate=368748 stacksize=42

--- crash at 2023/07/05 16:24:08---
build:d0114b2d74cd-2.0.0-release.155213-buildbot
   r0:20002464    r1:00000000     r2:000000ff    r3: 0000003f
  r12:00000000    lr:08044127     pc:0803ed0c   psr: 81000200
 cfsr:00000082  hfsr:00000000  mmfar:000000cc  bfar: 000000cc
rcccsr:00000000
heap allocated: 1749856
Lua totalbytes=375840 GCdebt=-2000 GCestimate=368620 stacksize=42

I'm in the final couple weeks of development on my app, supposed to be tuning sounds etc. on device, completely blocked by these crashes. Would it be possible for me to get access to the 1.13.7 firmware so that I can continue my work while I help you diagnose this?