OS 2.7.1 Rev A Crash: Read Timeout on Scoreboards after unlock

Game: Wheelsprung 1.0.3
Built on Mac with pdc 2.7.1
SDK usage: C update callback + Lua runtime for some screens.

This log shows scoreboard requests being performed 1-by-1 for all levels in the game. Timestamps in milliseconds. Note that each scoreboard request is started 6ms after the previous request succeeded.

The crash occurs when unlocking

echo off
target=dvt1
build=208c5b3a-2.7.1-release.184449-buildbot-250425
boot_build=208c5b3a-2.7.1-release.184449-buildbot
SDK=2.7.1
pdxversion=20700
serial#=PDU1-Y000510
cc=9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
pcbver=0x01
time and date set
425: loadSaveSlot
530: Loaded save slot
533: restoreState:	Option[RestoreState](val: @[ScreenRestoreState(screenType: LevelSelect, selectedPath: Option[system.string](val: "levels/tutorial_turn_around.flatty", has: true))], has: true)
606: Resuming screen: LevelSelectScreen | stack size: 1 pending.len: 0
===== MAIN.LUA start =====
===== MAIN.LUA end =====
713: RENDERED FIRST FRAME
738: ===== NETWORK Scores START	tutorialaccelerate
6000: ===== NETWORK Scores OK	tutorialaccelerate
6006: ===== NETWORK Scores START	tutorialbrake
8960: ===== NETWORK Scores OK	tutorialbrake
8966: ===== NETWORK Scores START	tutorialturnaround
12100: ===== NETWORK Scores OK	tutorialturnaround
12106: ===== NETWORK Scores START	tutorialbalance
13163: unhandled event:kEventLock keycode:0
query error line 290,0: No device
echo off
target=dvt1
build=208c5b3a-2.7.1-release.184449-buildbot-250425
boot_build=208c5b3a-2.7.1-release.184449-buildbot
SDK=2.7.1
pdxversion=20700
serial#=PDU1-Y000510
cc=9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
crashed=1
pcbver=0x01
time and date set

bug 1: crash when unlockig while scoreboard request in progress

--- crash at 2025/04/27 08:59:19---
build:208c5b3a-2.7.1-release.184449-buildbot
   r0:0808f229    r1:6016caf0     r2:20044038    r3: 00000000
  r12:00000003    lr:0808f1d1     pc:08023f54   psr: 81070000
 cfsr:00000001  hfsr:00000000  mmfar:00000000  bfar: 00000000
rcccsr:00000000
heap allocated: 1559552
Lua totalbytes=84200 GCdebt=-16800 GCestimate=42181 stacksize=42

bug 2: crash screen unresponsive. 10 seconds after pressing A:

--- watchdog reset at 2025/04/27 09:05:29---
build:208c5b3a-2.7.1-release.184449-buildbot
   r0:00055fb1    r1:20031550     r2:00000001    r3: 20026ba4
  r12:006d3000    lr:080164bb     pc:08033588   psr: 8100002c
rcccsr:00000000
heap allocated: 0
Lua totalbytes=0 GCdebt=0 GCestimate=0 stacksize=0

side question: is it expected that pdxversion shows 20700 instead of 20701 for pdc 2.7.1?

1 Like

(bug 1) Fixed in Playdate OS 2.7.2

Haven't retested bug 2 yet, let's assume it's fixed too

Recompilation was not required, only update the device system software