Acknowledged

sdk 4.0.3/4.x problems with arrays on some devices

Error Name: Unhandled Exception
Devices:
    Venu® Sq. Music Edition: 2.60
    Venu™: 5.90
    Venu® Sq. Music Edition: 2.70
App Versions: 1.15.0
Languages: chs, dut, eng, jpn
code:
const D_NOW        =    0, D_PHR         =    1, ....;
mDr=[findDrawableById("drawable1",...)];
mDr[D_NOW].mScrolStart = 0;//error...

Error Name: Unhandled Exception
Devices:
    Venu® Sq. Music Edition: 2.70
    Venu® Sq: 2.70
App Versions: 1.15.0
Languages: dut, tur
code:
enum//global
{
...,
W_TC, //3
...
W_NUM//22
}
var PAL_COL, gWD ; //global
enum
{
    P_GX,    //0
    P_GG,   //1
    ...
}

PAL_COL=
[
0x0000FF,
0x005500
,
...
];

gWD  = new[W_NUM];
gWD[W_TC] = PAL_COL[P_GG];//error

  • the problem still exist, but I think it's not problem with arrays but strange behaviour on all amoled an probably vivoactive4 family

    Error Name: Unhandled Exception
    Occurrences: 20
    First Occurrence: 2022-02-28
    Last Occurrence: 2022-02-28
    Devices:
        Venu™ 2S: 8.11
        Upcoming Wearable: 8.11
        Venu™ 2 Plus: 8.12
        Venu® Sq. Music Edition: 3.20
        Venu® Sq: 3.20
    App Versions: 1.0.0
    Languages: deu, eng, fre, ita, pol, ron
    Backtrace:
        PSX6_Vie.func2: 2210        
        PSX6_Vie.func1:1556
        PSX6_Vie.onExitSleep:2842

    code generated error

    class ViW extends UII.WatchFace
    {
        var x;
        
        function func2()
        {
            ...
            if(x <0)///ERROR, x is never null, is set in onShow()
            ...
        }
        
        function func1()
        {
            ...
            func2();
            ...
        }
        
        function onExitSleep() 
        {
            ...
            func1();
            ...
        }
    }

    workaround

    class ViW extends UII.WatchFace
    {
        var x;
        var mWasExitSleep 		= false; 
        
        function func2()
        {
            ...
            if(x <0)///ERROR, x is never null, is set in onShow()
            ...
        }
        
        function func1()
        {
            ...
            func2();
            ...
        }
        
        function onExitSleep() 
        {
            mWasExitSleep 		= true; 
        }
        
        function onUpdate(dc) 
    	{	
    		if(mWasExitSleep)
    		{
    			func1();
    			mWasExitSleep = false;
    		}
    		...
    	}
    }

    so problem exist somewhere in system, maybe onShow() is not called sometimes and for amoled system unload view, I don't know

  • I don't know because I couldn't wait and I have made a lot of workaround to remove this errors from my app.

    So to answer your question I'd have to remove my workaround but I'll put new WF in store soon without workaround so we know it soon.

  • Is this issue still persisting on the same devices with the newer SDKs available? Also, if it is still persisting have you tried putting a try catch around where the exception was being thrown?

  • and no answer from anybody...

  • Error Name: Unhandled Exception
    Occurrences: 3
    Devices:
        Venu® Sq: 2.70
    App Versions: 1.15.2

    I'm sorry, I don't understand why is problem to find cause of error: error only on venu/venu sq,