[SCHEDULER-508]  Mode switching is unreliable
Type Bug
Priority High
Severity Major
Component Dispatch Scheduler Engine
Fixed In Version [8.2.28.2.2
Versions Affected [3.23.2
Severity Reopened
Resolution Complete
Reported By Bob Denny
Resources Bob Denny
Start Date 11/25/2010

Description
Switching between Normal, Daylight, and Simulation is unreliable. Sometimes the Scheduler will come up saying it is in Simulate mode but will connect to ACP. YOu have to change to Normal, exit, restart, change to Simulator, exit, restart to get it into Simulation.

Comments
5/7/2020 5:54:01 AM   Bob Denny
REOPENED

See this Comm Center thread by Steve Reilly with Jeff Herman. Somehow I have left yet another sequence hole that can result in things getting mixed up. 
1/29/2020 5:33:35 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/scheduler
SVN Revision 820
Affected files /trunk/Help/NoteworthyConfigOptions.html (Modified)
/trunk/Help/RelNotes.htm (Modified)
/trunk/Scheduler/Clock.cs (Modified)
/trunk/Scheduler/Engine.cs (Modified)
/trunk/Scheduler/HttpServer.cs (Modified)
/trunk/Scheduler/MainForm.cs (Modified)
Check-in comment At long last, stomp out the simulation/real-time switching bug. Improve clock mode logging. Fix stupid misspelling in a logged message in the HttpServer module, no logic changes. GEM:508
1/29/2020 5:08:25 PM   Bob Denny
Another with Tolga Guver. However, this time I was able to capture a Profile file Scheduler.exe.xml with which I could duplicate the problem here. HOORAY!!!! It turns out to be a disconnect between the engine/sequencer (sim, day/night, mormal) and the clock/real time. Turns out that the Profile data was being loaded after the clock was initialized. Reversing the order fixed it. I had to move the logging of the efficiency coefficients until after the Profile and Clock were set because the logger requires the Clock object to be initialized.
9/26/2019 10:32:28 AM   Bob Denny
Another with Stacey Mills
6/10/2019 8:59:08 AM   Bob Denny
Another with Jeff Herman, Gad!!
5/8/2019 4:34:37 PM   Bob Denny
Another with Peter Hannah.
10/5/2016 4:24:12 PM   Bob Denny
Another adventure with this and Javier de Elias. Will I ever find this?
2/5/2016 9:04:40 AM   Bob Denny
OK, now Dean Salman got nailed with this. It's still there ?!?!?

REOPENED
3/6/2012 3:29:58 PM   Bob Denny
Saw this at Tom Kracji's. When it happens, it looks like the dispatcher is in Simulated mode but if you look at the settings file Scheduler.exe.xml, you'll see that the engine/sequencer value is still 2 (ACP) and not 1 (simulator)! Next time it comes up with the simulated clock but also brings up ACP. After a couple of cycles of this all of a sudden it will write 1 to
engine/sequencer and it will work OK. Then you can switch back and forth OK!!!
11/29/2010 2:21:05 PM   Bob Denny
Dang it! an hour trying to make it goof up in the debugger... working perfectly.
11/29/2010 1:59:25 PM   Bob Denny
Saw it today in switching from Simulator to Day/Night ACP. It didn't change the sequencer!
11/25/2010 2:32:57 PM   Bob Denny
Dang it! Can't repro this now. Will wait till it bites me and attack it right then.