MacOS Simulator crash when using playdate.getServerTime

,

Hey,

I’m getting crash on simulator when trying to use playdate.getServerTime(function(time, error)), I’ve used example from SDK documentation. So i tried to test this feature to use it in my project, i want to find way enable special events (Halloween, Christmas, etc), and this function looks interesting.

I tried use on different way, inside of playdate.update or outside, but same crash…

UPD It works fine on the device, but not on the simulator.

Example of code (i created new project with this code and reproduced same crash):

import "CoreLibs/object"

playdate.getServerTime(function(time, error)
    if time ~= nil then print("server time: "..time)
    else print("server error: "..error)
    end
end)

-- Updates all Playdate timers and sprites, then processes the current scene
function playdate.update()
  playdate.graphics.clear()
end

And here is crash itself, i guess all required and needed info here

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Playdate Simulator [82873]
Path:                  /Users/USER/*/Playdate Simulator.app/Contents/MacOS/Playdate Simulator
Identifier:            date.play.simulator
Version:               2.7.6 (189224)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2025-09-02 09:34:46.1655 +0200
OS Version:            macOS 15.6.1 (24G90)
Report Version:        12
Bridge OS Version:     9.6 (22P6083)
Anonymous UUID:        0A45F1B1-C26A-43DF-4F4A-64EAD397DB10

Sleep/Wake UUID:       12B884AE-DCDD-4600-BFA7-29780C3F8726

Time Awake Since Boot: 110000 seconds
Time Since Wake:       1548 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
abort() called

full_crash.log.zip (11.6 KB)

P.S. I didn't find a similar report, so if it exists, I can close mine as a duplicate.

Thanks for the report, we’ll get it fixed up!

1 Like