Acknowledged

Bug?: ViewLoop is not the current active page

Hi,

I have a reproducible issue with the ViewLoop on my Epix Gen 2 47mm. The issue occurs only when I open my app via its glance, and then leave it open without user interaction until the timeout sends the watch back to the watch face. If after that I open the app again, I cannot change views anymore, instead in the ViewLoop.changeView method the following exception is thrown:

Exception: ViewLoop is not the current active page
Stack:
  - pc: 0x100026b9
    File: 'D:\Projects\EVCC Garmin\evcc\source\EvccViewLoopDelegate.mc'
    Line: 21
    Function: onNextView
  - pc: 0x3000364017.5.2024 20:18:26: ViewLoop is not the current active page

Also a short press on the back button to end the app does not work anymore, but I can still switch apps by long press on the back button, or long press the light button to open the controls dialogue.

I am on latest SDK 7.1.1, Firmware-Version: 16.22, ConnectIQ-Version: 5.0.0.

The issue really only occurs when I let the app open and run into the timeout. If I open the app via the list of app instead of the glances, then there is no timeout, and the issue does not occur, even if I leave the app open for a few minutes and then leave it via the back button.

Here is my onNextView implementation of the ViewLoop delegate, where the exception from changeView is caught:

function onNextView() {
    try {
        return _viewLoop.changeView( WatchUi.ViewLoop.DIRECTION_NEXT );
    } catch ( ex ) {
        EvccHelper.debugException( ex );
        return false;
    }
}

Parents
  • I now created a modified version of the Primates sample app, with an added glance. I can reproduce the issue with this modified version.

    7367.Primates.zip

    Here a video of reproducing the issue with the Primates app. First, starting the app and showing how it works normally.

    Click here to play this video

    And second, then starting it again after the timeout:

    Click here to play this video

Comment
  • I now created a modified version of the Primates sample app, with an added glance. I can reproduce the issue with this modified version.

    7367.Primates.zip

    Here a video of reproducing the issue with the Primates app. First, starting the app and showing how it works normally.

    Click here to play this video

    And second, then starting it again after the timeout:

    Click here to play this video

Children
No Data