Simulator (montana7xx error)

I recompiled with 3.2.4 and it works with all devices supporting DataField - but only montana7xx gives this error after starting an activity (DataField keeps working anyway):

Error: Symbol Not Found Error
Details: Failed invoking <symbol>
Stack:
Encountered an app crash.

For a test, I compiled the SimpleDataField from samples and it's the same - it's displaying and working just fine, but anyway there is that error in a console after starting an activity (DataField keeps working fine).

My DataFields won't be too much use for that device, so just in case I won't list it as supported, but just letting you know so you can check if anybody else encountered this error.

  • What this kind of sounds like is that you have the background permission set, but you have no code that's annotated as (:bacxkground).  When the app starts, in that case onAppUpdate logic is used, which attempts to load the whole app as a background process, and you see a crash from the background but the app itself still runs.

    Turn off permissions you don't really need.

  • My DataFields have only Positioning, and the SimpleDataField from samples has only DataFieldAlert.

    Now, for a test, I edited the SimpleDataField sample, making it as short as possible and without any permission:

    using Toybox.Application;
    using Toybox.WatchUi;
    
    class SimpleDataField extends Application.AppBase
    { function getInitialView() {return [new DataField()];} }
    
    class DataField extends WatchUi.SimpleDataField
    { function initialize() {SimpleDataField.initialize(); label="Test"; }
        var c=0;
        function compute(info) {c++; return c;}
    }

    Running it in montana7xx and then starting an activity still gives that error. Other devices run it normally.