Complete
over 5 years ago

WERETECH-6408, WERETECH-7425, WERETECH-7514

Could not reproduce.

File not found error

On real device randomly occurs error: File Not Found Error - while trying to read from Storage

Error is already quite old. From CIQ_LOG.YML I see that it occurs roughly once a day. It is not as visible as before because Watch restart automatically Watchface.

  • As BG could not access (at least, in a WF) updated properties, i have no other choice to use set/getValue,

    with File not found errors, even with in a  try catch !

    I suspect a write (in app) while a read(in BG) conflict. Should i manually set a flag for accessing file? No way, since i would have to put it...in a file !

    But in your case, if it's not in BG, you could try to put a flag just before accessing Storage, and release it after ? It may be interesting ... (imo)

  • @IB614 I'd be careful using setProperty/getProperty - I had even more errors that way which is why I switched to using storage! The .set file seemed to keep losing values of properties that were stored in it (for all properties that were not exposed to the user as settings).

  • Former Member
    Former Member over 5 years ago

    :( I have in ERA over 20 such errors - ALL are related to Storage object - but well, fix is not planned.

  • Some times it causes System error at the same line:

    Error Name: System Error
    Occurrences: 2
    First Occurrence: 2020-02-09
    Last Occurrence: 2020-02-09
    Devices:
    fēnix® 6X Pro / 6X Sapphire / 6X Pro Solar / tactix® Delta Sapphire: 6.00
    App Versions: 0.9.198
    Languages: rus
    Backtrace:
    Setting.SetWatchServerToken:66                        =>     Storage.setValue(_watchServerApiToken, watchServerApiToken);
    YetAnotherWatchFaceView.initialize:46
    YetAnotherWatchFaceApp.getInitialView:21

  • Same here...

    Error Name: File Not Found Error
    Occurrences: 6
    First Occurrence: 2020-02-07
    Last Occurrence: 2020-02-08
    Devices:
    Forerunner® 245: 4.00
    Forerunner® 245: 4.10
    App Versions: 0.9.198
    Languages: eng
    Backtrace:
    Setting.SetWatchServerToken:66             =>   Storage.setValue(_watchServerApiToken, watchServerApiToken);
    YetAnotherWatchFaceView.initialize:46
    YetAnotherWatchFaceApp.getInitialView:21

    Error Name: File Not Found Error
    Occurrences: 2
    First Occurrence: 2020-02-08
    Last Occurrence: 2020-02-08
    Devices:
    Forerunner® 245: 4.00
    Forerunner® 645 Music: 6.20
    App Versions: 0.9.198
    Languages: chs, eng
    Backtrace:
    Setting.SetConError:78                       =>                Storage.setValue(_conError, conError);
    YetAnotherWatchFaceApp.onBackgroundData:45


    Error Name: File Not Found Error
    Occurrences: 4
    First Occurrence: 2020-02-07
    Last Occurrence: 2020-02-08
    Devices:
    fēnix® 5X / tactix® Charlie: 15.20
    App Versions: 0.9.198
    Languages: eng
    Backtrace:
    Setting.GetLastKnownLocation:149                 =>   return Storage.getValue(_lastKnownLocation);
    DisplayFunctions.DisplayExtraTz:158

    I'm going to switch back to App.getApp().setProperty/getProperty, hope this'll help.