Complete

This is by design.

The settings are being serialized to send to the simulator or phone.

opening settings editor consumes app memory

sdk 4.0.7
eclipse CIQ plug in: 4.1.0.beta1
eclipse ver: 2021-09 (4.21.0) Build id: 20210910-1417
windows 10
watch face
minSdkVersion 2.4.0

CASE 1

wf starts, peak memory 88.0

[ecilpse][app settings editor] - open only window and choose project (no push any buttons), peak memory 90.0

CASE 2

wf starts, peak memory 88.0

[simulator][property data]  - open only window (no push any buttons), peak memory 90.0

In both cases there is no calls for app.onSettingsChanged, settings data exist in memory so there shouldn't additional memory consumption.

Now, when you have e.g. 90.5 kB used from 92 there is an error "unable to serialise data" or "out of memory exception" if i choose OK in setting editor.

Parents
  • One more thing. When setProperty/getProperty is called and it's impossible to load setting due memory exception is thrown but it is impossible to catch it:

    function getPrp(key, ifnull)
    {
        try
        {
            key = PRP.getValue(key);
        }
        catch(ex)
        {
            key = null;
        }
        
        return key == null ? ifnull: key;
    }

    Error Name: Unhandled Exception

    Occurrences: 2
    First Occurrence: 2021-12-05
    Last Occurrence: 2021-12-05
    Devices:
        fÄ“nix® 6X Pro / 6X Sapphire / 6X Pro Solar / tactix® Delta Sapphire / Delta Solar / Delta Solar - Ballistics Edition / quatix® 6X / 6X Solar / 6X Dual Power: 20.00

    So the best solution is simple return null, everybody should handle.

Comment
  • One more thing. When setProperty/getProperty is called and it's impossible to load setting due memory exception is thrown but it is impossible to catch it:

    function getPrp(key, ifnull)
    {
        try
        {
            key = PRP.getValue(key);
        }
        catch(ex)
        {
            key = null;
        }
        
        return key == null ? ifnull: key;
    }

    Error Name: Unhandled Exception

    Occurrences: 2
    First Occurrence: 2021-12-05
    Last Occurrence: 2021-12-05
    Devices:
        fÄ“nix® 6X Pro / 6X Sapphire / 6X Pro Solar / tactix® Delta Sapphire / Delta Solar / Delta Solar - Ballistics Edition / quatix® 6X / 6X Solar / 6X Dual Power: 20.00

    So the best solution is simple return null, everybody should handle.

Children
No Data