Evaporating User Settings

About 30% of the time or so, when I launch my Data Field in VSC (SDK 7.2.1), the User Settings are lost (revert to the default values I've set for a new install), and I have to open App Properties in the Sim and re-enter my desired Settings.

Anyone else seeing this behavior?

  • Do you see a message in the debug console?

    "WARNING - persisted values reset due to settings redefinition."

    I'll see this when I switch target devices

  • Sometimes that pops up. I do test my field across multiple EDGE device types. Sounds like maybe settings don't persist after launching against a different device? 

  • Simple, in DEBUG, use setValue for properties you need and this will the last reenter

  • "WARNING - persisted values reset due to settings redefinition."
    Sometimes that pops up. I do test my field across multiple EDGE device types. Sounds like maybe settings don't persist after launching against a different device? 

    Do you actually have different settings definitions for different devices? If so, that message would perfectly explain what's happening here. (To avoid problems with inconsistent / missing properties, the sim is resetting them when the settings definition changes.)

    If not, maybe it's a quirk / bug in the system.

    I just tried the ApplicationStorage SDK sample with 2 different devices in the sim - properties were not reset when switching from device to device.

  • To catch the message I posted, I switched between a forerunner and an instinct2, which do have different settings due to colors on the FR and B&W on the I2.

    if I switch from the fr165 to fr265 to fr965 (for example) they don't get reset (same settings)

  • Right that's why I asked DaveBrillhart for clarification. Bc the OP (and follow up comment) makes it sound like settings are being reset for no reason when changing the target device, but there's possibly a perfectly reasonable explanation, as you have pointed out.

    His follow up comment implies that settings would never be persisted when changing devices, which is definitely not the case. (That's why I tried the SDK sample, which does not have different settings definitions for different devices.)

    So I'm trying to figure out whether he's only seeing the (now) obvious case related to that warning, or whether something else might be going on. If it's the former, then case closed, but if it's the latter, maybe it deserves some investigation (which would possibly lead to a bug report.)

  • "WARNING - persisted values reset due to settings redefinition."

    I'll see this when I switch target devices

    Sounds like maybe settings don't persist after launching against a different device? 

    The explanation is literally in the warning message. If the message is to be taken at face value, properties aren't reset just because you changed devices, properties are reset because the underlying settings definition changed from the previous device to the current device.

    If you're seeing properties reset when settings haven't changed, then I would say it might be a bug, especially if you still see that message.

  • I see a few different message from VSC.... I just saw this one, but in this case, my User Settings did not disappear. I'll try to correlate error message and/or changing devices to when they do disappear.

  • Ok I ran my field against the EDGE 1040 and my User Settings were fine. Then I ran it against the EDGE 1000, and the User Settings disappeared, with no error message from VSC. Just gone. I don't have different setting for different devices.