I've encountered an issue where a swift playground app (when run in its own window) becomes unresponsive after approximately 3 minutes. The window goes dim and the playground ceases to respond. The HUD automatically comes down to suggest restarting the code. No error in my code is reported, and I seem to only ever encounter this issue when running from Swift Playgrounds on iPad (not an issue on Xcode).
I know there is a 3 minute limit anyway for the Swift Student Challenge, but is anyone else experiencing the same issue? if not, any thoughts on possible causes of this?
I eventually figured out the problem: Swift Playgrounds doesn't provide an error log when memory exceeds the limit.
Essentially, my playground contained a memory leak that caused the total memory to slowly creep up until the app crashed. (It happened to take exactly 3 minutes, hence my hypothesis that there was a time limit imposed by the app.)
I will be submitting a report for this bug - it would be really helpful to know when memory is the issue for the app crashing rather than Swift Playgrounds just pretending nothing is wrong.