Under Review
over 1 year ago

storage setValue error

4.1.4/win/eclipse

on some devices I have an error  when trying save something in storage:

1. in app.onStop() - only in foreground I call app.savedata() (I need func because I need save data in few moments).

2. savedata() is called and inside I try to call STO.setValue() and errors:

A Error Name: System Error (vívoactive® 3 Music: 6.20) - 3 arrays[80] of float (each 415 bytes according to memory monitor), 1 array[20] of float (70bytes) and few integers

B Error Name: File Not Found Error (Forerunner® 945: 9.00) - saving dictionary (a bit complicated)

A - I don't think I exceed any limits

B - system detach storage before onStop()?

  • since this seems to not be a priority, perhaps it's time to go back to using properties to store data.  i get about 100 of these errors a month showing in era.  

  • So this is still not fixed? I got a "System Error" on a Forerunner® 645 Music: 7.20 while doing

    Storage.setValue("PendingWebRequests", pendingWebRequests);

    where pendingWebRequests is a dictionary and the code is within getInitialView so, foreground.

  • I don't know how your code looks but if you have background reading storage is very often even background doesn't need it.

    yes, recently this bug shows usually on APAC devices

    Error Name: File Not Found Error
    Occurrences: 1
    First Occurrence: 2022-09-08
    Last Occurrence: 2022-09-08
    Devices:
        Forerunner® 945: 10.40
    App Versions: 4.3.2
    Languages: jpn


    Error Name: System Error
    Occurrences: 7
    First Occurrence: 2022-09-06
    Last Occurrence: 2022-09-07
    Devices:
        fēnix® 6 Pro / 6 Sapphire / 6 Pro Solar / 6 Pro Dual Power / quatix® 6: 23.00
        Forerunner® 945: 10.40
    App Versions: 2.1.2
    Languages: eng, kor

  • I got nearly same issue onStart().

    Error Name: System Error
    Occurrences: 7
    First Occurrence: 2022-09-06
    Last Occurrence: 2022-09-08
    Devices:
    fēnix® 6 Pro / 6 Sapphire / 6 Pro Solar / 6 Pro Dual Power / quatix® 6: 22.10
    App Versions: 1.7.0
    Languages: jpn
    Backtrace:
    AdditionalTimeStopwatchApp.onStart:16

        function onStart(state as Dictionary?) as Void {
            var targetTime = Storage.getValue("targetTime");
            if (targetTime == null) {
                Storage.setValue("targetTime", 45);  // <-- the backtrace line:16
            }
        }
  • every bug should be treated seriously - nobody knows when bigger problem came out