app terminates on lumia 635 after 10 minutes

18 views
Skip to first unread message

poll...@outlook.com

unread,
May 1, 2017, 1:30:54 PM5/1/17
to CodenameOne Discussions

Designed on IDE: NetBeans
Desktop OS: Windows 10 Creators Build
Device: app is terminating without error on a Lumia 635 after about 10 minutes.

My simple programmable alarm clock performs fine on the Simulator.  When uploaded to my lumia 635,
it performs as expected for about 10 minutes, and then exits (simply terminates without an error.  On (click to) restart
it again performs as expected, but again terminates after about 10 minutes. 
I am baffled.  The app has two timers, one to keep the display alive every minute, and one to change colors
on the face of the clock.  Options such as change alarm file are controlled from the main page by toggling visual elements;  there is only one form.  Any thoughts would be appreciated.  Thanks -Russ

Shai Almog

unread,
May 2, 2017, 12:35:43 AM5/2/17
to CodenameOne Discussions, poll...@outlook.com
I'm not familiar enough with Windows Mobile 10 but it's possible it has a watchdog like process that kills background tasks that try to keep the app alive.

Did you disable the device screensaver?

poll...@outlook.com

unread,
May 2, 2017, 4:27:25 PM5/2/17
to CodenameOne Discussions, poll...@outlook.com
I removed special effects involving the media manager and the
app now remains open indefinitely as desired.

Running on netbeans in debug mode showed media disposer running and waiting,
and many timers being created and waiting each time i played a special effect.
I was careful to use player.cleanup(), but I am setting player=null as a flag
and re creating the media player when I need it.
Do you think this is a mistake?

At least I can run the program normally now.
p.s. I saw you on StackOverFlow, thank you for responding re: color animations.
I am re-reading the Basics as you advised.  Much thanks for your attention.
-Russ


On Tuesday, May 2, 2017 at 12:35:43 AM UTC-4, Shai Almog wrote:

Shai Almog

unread,
May 3, 2017, 12:59:02 AM5/3/17
to CodenameOne Discussions, poll...@outlook.com
I'm not sure. It's hard to tell but normally recreating the media makes sense. You would want to store the minimum amount of resources in RAM so you can "play nicely" with other apps.
Reply all
Reply to author
Forward
0 new messages