Program crashes after leaving it running for 5 - 20 minutes
-
I'm not sure if this is a bug or a mistake with my coding however I can't find any thing that could cause this issue. When it crashes it says an error has occurred and then I get taken back to the switch home screen. Any help would be very appreciated
ID: NXKSUVQD51 - This code no longer crashes as it has been fixed
Status: Live -
@Gameboy Well there is definitely a memory leak. You can see it dropping over time. I doubt very much that this is your fault.
-
So I think that this is a known problem that should be fixed in the next patch. However I need to investigate further as the workaround I had does not seem to work in this case. Anyway if you comment out lines 151, 177 and 178 ( the clock display) the problem goes away (and so does the clock)
-
@pianofire i had the same issue when i put a clock in my game, when i took it out fine again
-
@pianofire thank you so much! I just tested and it’s not crashing anymore :)
-
I have had the same problem, if I left my program running it crashed after 2 min.
For me it was a for loop that counted infinitely from 0 to 60.
After I converted the for loop into a normal loop and made "I" a global variable the crash was fixed. It didn't occur again. So I think it's about some loops what's causing these crashes
the fact that a timer is causing these issues got my attention, because I tried sort of the same with my project but I used a For Loop to time my actions. And I think I have read something about timers being inconsistent in accuracy.
My guess would be that time isnt synced to the interpreter or sort of that. But I'm no Pro or Dev, just my 2 cents