Need help... DataField failure when returning from power save mode

Former Member
Former Member
I've written a DataField that works great until I stop the activity and let the watch go into power save mode (back to the watch face without ending the activity).

When I go back into the activity, the DataField looks like this:


I'm guessing there is something going wrong when the DataField re-initializes when returning from power save mode, but have no clue what it could be. Has anyone else had this issue or knows what it is? Thanks!
  • What is it supposed to look like? Do you extend DataField or SimpleDataField? If DataField are you doing anything in onLayout() or onUpdate() that is unusual?
  • Former Member
    Former Member
    I am extending DataField. It displays speed, cadence, and hr. I don't think I'm doing anything weird in onLayout (just setting some variables) or onUpdate.

    If I exit the activity and create a new one, the datafield is fine. Also fine if I re-add it to the data screen in Activity Settings (while still in the activity).

    Could it be a memory issue? Math error? I'm unclear what persists across a power save interval. Do class variables get saved? Is initialize called after returning from power save?
  • Former Member
    Former Member
    Is it possible for dc or info to be null when these functions are called?

    function onLayout(dc)
    function compute(info)
    function onUpdate(dc)
  • Former Member
    Former Member
    The data field in the image you posted is not running. What you are seeing is a preview screen. Does the data field start running when you restart the timer?

    If it is starting when the activity is restarted, this may be functioning as designed, but I suspect the fields should be getting started back up immediately when you re-enter the activity. Let me know what device this is, and the sequence used to reproduce the issue, and I will report it to the appropriate device team.
  • Former Member
    Former Member
    The data field in the image you posted is not running. What you are seeing is a preview screen. Does the data field start running when you restart the timer?

    If it is starting when the activity is restarted, this may be functioning as designed, but I suspect the fields should be getting started back up immediately when you re-enter the activity. Let me know what device this is, and the sequence used to reproduce the issue, and I will report it to the appropriate device team.


    Thanks Brian!

    I was able to reproduce this on my 735XT with the Dozen Cycle Field data field.

    Restarting the timer doesn't help.

    To reproduce:
    • Add Dozen Cycle Field to data screen one with single field
    • Start cycling activity
    • Pause cycling activity by pressing enter (upper right button)
    • Let cycling activity time out to power save mode, returning to watch face
    • Press enter to restart activity
    • Screen will show small icon instead of field info
  • Former Member
    Former Member
    I'm still seeing this issue on the new firmware 3.30.

    I noticed something new. After discarding (or presumably after saving) the activity, if you go back to the bike activity selection screen, then start the activity, but don't go back to the watch face, the data field is properly restored.
  • Former Member
    Former Member
    The data field in the image you posted is not running. What you are seeing is a preview screen. Does the data field start running when you restart the timer?

    If it is starting when the activity is restarted, this may be functioning as designed, but I suspect the fields should be getting started back up immediately when you re-enter the activity. Let me know what device this is, and the sequence used to reproduce the issue, and I will report it to the appropriate device team.


    Hi Brian, can I get an update please? This issue is serious as I cannot restart an activity from power save mode. I have created an extremely simple data field that still has this issue, to demonstrate it is a bug in the 735xt.

    Another, similar, issue on the 735xt is that if you press "start" from the watch face twice rapidly, the custom data field will show an IQ! icon.
  • Former Member
    Former Member
    I filed a ticket with the device team when you reported this on the 28th. There are no updates.

    If your device is displaying IQ!, it means that the app is crashing. You should look at the CIQ error log on the device and determine what part of your application is crashing. When you press the button quickly, you may be getting an event in a different order than what your data field is expecting.
  • Former Member
    Former Member
    ...
    If your device is displaying IQ!, it means that the app is crashing. You should look at the CIQ error log on the device and determine what part of your application is crashing. When you press the button quickly, you may be getting an event in a different order than what your data field is expecting.


    Didn't think about that :-(

    Fixed now, thanks! :-)
  • Former Member
    Former Member
    I filed a ticket with the device team when you reported this on the 28th. There are no updates.
    ...


    YAAAAAAAAAAAYYYYYYYYYYY!

    I figured the problem out. :cool:

    If the Connect IQ data field is the third one added, it will not initialize properly after a return from standby. FIrst and second ones are fine.

    This is probably a bug related to the increase in number of Connect IQ data fields allowed from 2 in previous devices to 3 in the FR735XT.

    Should be a piece of cake for Garmin to fix it. :)