corona icon indicating copy to clipboard operation
corona copied to clipboard

print(os.date("%s")) crashes the sim

Open marksolar2d opened this issue 4 years ago • 3 comments

Place print(os.date("%s")) crashes the sim in main.lua and it crashes. It should raise an error at the very least,

marksolar2d avatar Nov 15 '21 13:11 marksolar2d

This quite a strange crash indeed.

It also doesn't seem to crash a built project. For instance, you can run the same code over at https://www.solar2dplayground.com/ and it'll just print "%s".

XeduR avatar Nov 15 '21 14:11 XeduR

Is this only happening on Windows? I just tried on my Mac, cannot reproduce

scottrules44 avatar Nov 16 '21 03:11 scottrules44

Yeah, we're both using Solar2D Simulator on Windows.

XeduR avatar Nov 16 '21 08:11 XeduR

This is fixed with 2022.3685+

scottrules44 avatar Dec 24 '22 18:12 scottrules44