Menu

#2442 waitUntilIdle doesn't necessarily wait for TCA (ephemeris) to load in

nextrelease
open
nobody
None
5
2022-07-15
2022-03-24
No

I keep getting an error with one of the tests where the ephemeris is not loading, but when I run it interactively it loads reliably. It occurred to me that the "waitUntilIdle" function may not properly consider that the ephemeris needs updating, and I was able to create a test to show this. The SlowTCA script loads two parameters and sleeps for 10 seconds before returning the result.

  1. load https://github.com/autoplot/dev/blob/master/bugs/2022/20220324/demoBugSlowTCA.vap
  2. run pngwalk for 2016, each file is $Y$m.
  3. note that for some images the ticks aren't yet loaded, and it takes less than 10 seconds per image.

Discussion

  • Jeremy Faden

    Jeremy Faden - 2022-03-25

    I've put in a pendingChanges call which should block it. It was with the tickleTimer, and a new method which calls when the tickleTimer fires is necessary, because the number of pendingChanges is counted. There must be a changePerformed for each pendingChanges call.

    I'd say this is fixed except I saw one pngwalk image which had the progress spinner visible, and this needs to be fixed,

     
  • Jeremy Faden

    Jeremy Faden - 2022-07-15

    I can run the experiment described and I still see issues. For example with the first image the ephemeris hasn't loaded yet, and with the last, the last tick has "Error" though the generating Autoplot has a valid tick there.

     
  • Jeremy Faden

    Jeremy Faden - 2022-07-15

    See https://github.com/das-developers/das2java/issues/32, where this is identified as a Das2 bug.

     
MongoDB Logo MongoDB