Page 1 of 1

Pi stops updating in kiosk mode after 15 mins

Posted: Thu Apr 28, 2016 3:12 pm
by BSHSBSWV
I'm running an RPi2 in kiosk mode (the mirror project). It's working fine now except that after about 15 minutes it stops updating weather, time, and messages and eventually freezes up completely. If I leave it run for awhile (hours) after freezing, I get Chrome's "Oh Snap" error page. The only thing I can do is reboot...but I'm not about to reboot every 15 mins.

Given that it happens at 15 minutes every time, it makes me wonder if the wifi dongle or something else goes into a power save mode, or if something on the Pi gets overloaded at that time. If I reboot, everything works fine again until 15 minutes is up.

Any idea what would be causing it?

Re: Pi stops updating in kiosk mode after 15 mins

Posted: Mon May 02, 2016 12:58 pm
by BSHSBSWV
Still no resolution for this issue, thought I'd bump it up here since it's buried 5 pages in already.

Re: Pi stops updating in kiosk mode after 15 mins

Posted: Mon May 02, 2016 2:22 pm
by henryhanselscott
Have you tried to open the task manager after a fresh boot and see if the memory is getting used more and more as time goes on? Sounds like a memory leak is killing all your resources. I had this happen a while back when I had a tkinter GUI running and was not properly destroying a widget when it was finished. Every time my script would call the widget back it would just over write the old one and it eventually used up all the memory and the system would freeze.

Re: Pi stops updating in kiosk mode after 15 mins

Posted: Mon May 02, 2016 3:04 pm
by kolban
BSHSBSWV,
To test the theory about WiFi going to sleep, when the device pauses at the 15 minute level, can you still ping it from another machine?

Re: Pi stops updating in kiosk mode after 15 mins

Posted: Mon May 02, 2016 3:29 pm
by BSHSBSWV
henryhanselscott wrote:Have you tried to open the task manager after a fresh boot and see if the memory is getting used more and more as time goes on? Sounds like a memory leak is killing all your resources. I had this happen a while back when I had a tkinter GUI running and was not properly destroying a widget when it was finished. Every time my script would call the widget back it would just over write the old one and it eventually used up all the memory and the system would freeze.
I have not tried that, but I will. What did you end up doing with yours to get it to overwrite properly?

Re: Pi stops updating in kiosk mode after 15 mins

Posted: Mon May 02, 2016 4:29 pm
by henryhanselscott
My code was just poorly written, I was just learning tkinter/Python. I should have been changing just the text property of the widget but instead I was creating a new widget every time that the data updated. They were just stacking on top of each other, even though the physical appearance of the GUI looked normal with no indication to what was actually going on.