David's Astronomy Pages
|
Notes (S794) |
Notes Main |
Home Page |
Notes (S796) |
Main aims
Equipment & Software
Highlights
Lowlights
Summary Plots & Logs
Observing Plan | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Observing Result (Southern targets added as ToO targets) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Dome & Scope Slewing Performance | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Slew/Centering Performance | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Guiding Performance | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sky Conditions (Locate Frames) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Night Sky Summary Plot Top axis: Sky Brightness at Zenith (in ADU/s) Lefthand axis: Local Time (hh LT). Righthand axis: Sun Altitude (degs) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pre-Session Weather Forecast (API data from darksky.net) Pre-Session Weather forecast showed moderate cloud (68-72% cloud cover) in first part of night improving towards dawn (29-39% cloud cover) with light wind (5 - 7 mph) , no rain and a minimum temperature of 7°C. In the event conditions were clear the whole night (though a bit hazy) with a minimum temperature of 5°C |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Session Event Log | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Session Alerts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Back to Top
Back to Top
Issue : Session S795 became frozen at 02:43 just after entering
Closing state.
Details : Job Manager finished
the observing plan at ~ 02:42/02:43 and the
session entered closing state at 02:43. Before beginning to Close
Shutter/Park Dome etc, the program effectively hung. Program has hung/crashed
at a similar point in the past (eg S740, S763). In the event the Shutter
remained open for 40 minutes until session was checked remotely.
Conditions were good and were being monitored by AstroGuard & Cloud Sensor
Relays. Status of observatory was checked via website/remote connection at
03:15. Finding the session was still active and after making appropriate
lock-down screen captures at 03:21, the Dome was closed & parked via AstroGuard
program at 03:23 and the Telescope parked from the DeviceHub at around 03:30.
Log file contained no error messages, other than messages indicating the time
when particular threads become unresponsive or frozen. How can the root cause
to this issue be found ? What happens when code begins to execute Closing
AstroMain Report Logs (S795)
Logs show the following :
02:43:13.00 | GCVS RX And Take Image 3/3 Try |
02:43:13.00 | GCVS RX
And Take Image Set Try | Exposure 2 ( 8s)
02:43:35.99 | GCVS RX And TakeImage
Ok | Exposure Time 8s (Recorded FITS Exposure Time 8s)
02:43:36.00 | GCVS RX
And TakeImage Ok | [00795105] 3x3 8s |2020-07-18 01:43:25.481
02:43:36.02 |
GCVS RX And Continue Ok | IamAlive: TakeMainImage
02:43:36.05 | GCVS RX And
Continue Ok | IamAlive: TakeMainScopeFrames
02:43:36.44 | GCVS RX And Convert
ImageToJPG Ok | Converting Image 795105 to JPG
02:43:36.55 | GCVS RX And Copy
GuideSumm Ok | Session.GuideData file has been updated
02:43:38.47 | GCVS RX
And Stop PHD2 Guiding Try | Stopping PHD2 Capture & Guiding
02:43:38.98 |
GCVS RX And StopPHD2Guiding Info | Checking PHD2 App State (Result=Stopped)
02:43:41.14 | Job Executor Completed Info | Job Queue has completed
02:43:41.14 | GCVS RX And SetScopeMode Info | Setting Scope Mode to Waiting
(Mode 2)
02:43:42.01 | GCVS RX And StopPHD2Guiding Info | Checking PHD2 App
State (Result=Stopped)
02:43:42.01 | Job Executor Finish TakeFrameJobsQSOInfo
| Setting RunningFrameJobs to False & Finishing Thread
02:43:42.51 |
**************************************************************************************************
02:43:42.51 | Observatory Manager Change State Info | Session Closing
02:43:46.50 | Observatory Overseer Check UserInterface Alert | UI is Pending
02:43:50.49 | Observatory Overseer Check UserInterface Alert | UI is Not
Responding
02:43:55.50 | Observatory Overseer Check UserInterface Alert | UI
is Not Responding
02:43:55.50 | Observatory Overseer Check ObsManager Alert |
Obs.Manager is Frozen
02:44:00.51 | Observatory Overseer Check UserInterface
Alert | UI is Not Responding
02:44:00.51 | Observatory Overseer Check
ObsManager Alert | Obs.Manager is Frozen
02:44:00.51 | Observatory Overseer
Check ObsWorker Alert | Obs.Worker is Frozen
02:44:05.51 | Observatory
Overseer Check UserInterface Alert | UI is Not Responding
02:44:05.51 |
Observatory Overseer Check ObsManager Alert | Obs.Manager is Frozen
02:44:05.51 | Observatory Overseer Check ObsWorker Alert | Obs.Worker is Frozen
02:44:10.52 | Observatory Overseer Check UserInterface Alert | UI is Not
Responding
02:44:10.52 | Observatory Overseer Check ObsManager Alert |
Obs.Manager is Frozen
02:44:10.52 | Observatory Overseer Check ObsWorker
Alert | Obs.Worker is Frozen
AstroMain ObsPics (S795)
Final ObsPic is from
02:43:16 and shows session still running and operating on Target GCVS RX And.
The dome is open and positioned with shutter at Az 93deg and slaved to
Telescope. The telescope is tracking and at Az 90 deg, Alt 51 deg. Conditions
are good.
AstroGuard (S795)
AstroGuard log shows the dome opening
at 23:15. Later on (under User Intevention) the log shows the dome closing and
parking at 03:23
Data (S740)
Program appears to freeze at precisely the same point at start of closing (07:06)
Data (S763)
Program appears to freeze at precisely the
same point at start of closing (04:50)
Normal Data (S791)
Although the issue has arisen in S795, S763 and S740, in the vast majority of
sessions the issue hasn't arisen. Therefore it must be concluded that the bug is
subtle and is condition or timing dependant in some way.
01:54:51.45 | GCVS SS Cyg CheckObsState Ok | IamAlive: ExecuteQueue
01:54:57.55 | Job Executor Completed Info | Job Queue has completed
01:54:58.52 | GCVS SS Cyg StopPHD2Guiding Info | Checking PHD2 App State
(Result=Stopped)
01:54:58.58 | Job Executor Finish TakeFrameJobsQSOInfo |
Setting RunningFrameJobs to False & Finishing Thread
01:54:59.67 |
**************************************************************************************************
01:54:59.67 | Observatory Manager Change State Info | Session Closing
01:55:04.62 | Observatory Manager Dome Info | Park Dome
01:55:04.63 |
Observatory Manager Dome Info | Set Dome Slaving OFF
01:55:53.61 |
Observatory Worker Set DewHeaters Ok | Setting dew heaters to 80%
01:56:53.02
| Observatory Worker Check DewHeaters Ok | Leaving dew heaters at 80%
01:57:20.52 | Observatory Manager SlewDomeToAz Info | Dome Slew Time : 135.9s
01:57:21.04 | DOME Get DomeAzimuth Info | Dome Azimuth After Slew 90.00
01:57:21.05 | Observatory Manager Get DomeSlewSpeed Info | Dome Speed: 0.3 deg/s
(45.9 degs in 136s)
01:57:21.07 | Observatory Manager Dome Info | Dome is
Parked (136s)
01:57:25.14 | Observatory Manager StopPHD2Guiding Info |
Checking PHD2 App State (Result=Stopped)
01:57:25.45 | Observatory PHD2 Ok |
Disconnect PHD2 Devices
01:57:25.45 | Observatory Manager Telescope Info |
Park Telescope
01:57:26.87 | Observatory Manager Scope.Tracking Ok |
IamAlive: SetTrackingOn, TurnOnTracking
01:57:27.88 | Observatory Manager
Continue Ok | IamAlive: SetTrackingOn
01:57:27.88 | Observatory Manager
Telescope Info | Set Tracking ON
01:57:27.88 | Observatory Services Slew
ScopeToAltAz Info | Moving Scope to Near Park Location using
Scope.SlewScopeToAzAlt()
Code Review
Sub SetState_Closing()
'================
' Give one final chance
for Job Queue to finish running
'
----------------------------------------------------
If RunningFrameJobs Then
If jobAbort = False Then
objConsole.AbortJobExplicit()
End If
Sleep(4) ' << give time for Job To finishing Aborting
End If
' Switch State to Closing
' -----------------------
SessionState = SessionState.Closing
WriteLogFile(StarBreak)
WriteLogFileRecord("Observatory Manager", "Info", "Change State", "Session
Closing") ' <<<< Executed okay
Session.DeltaMinsFromPlan = vcNull
' Set Session End Time
'
--------------------
Session.EndTime = Now()
' Report Session State
' --------------------
ReportLine()
ReportTitle("Session Closing")
' <<<< Executed okay
UpdateStatusNote("Session
Closing...") ' routine calls two invoke methods so
should be okay
ReportComment("") '
<<<< Not executed (or at least not written to file)
ReportComment(LAlign2_Special(Tab2 + "<u>" + FillText("Begin Shutdown") +
"</u>", 37) _
+ LPad10("Ok") + LPad18(Session.Name) +
"(Session)") ' <<<< Not executed (or at
least not written to file)
' Event
' --------
StoreSessionEvent("Session Closing", 1, FlagState.Green, "Session closing")
' <<<< Not executed (at least not written to database)
SetFlagChanged("Session", 0) ' Signal to AstroPlan to upload revised
ObservingResult Chart
' Reset Variables
' ---------------
ParkingInitiated = False
bParkingDome = False
bParkingScope = False
ClosingStageNo = 0
FinalCloseShutterAttempts = 0
Scope.ResetLastGetRaDecException()
End Sub
Session freezes before SetState_Closing is finished, but there doesn't
seem to a bug in the code executed, or obvious point where execution would
obviously need to be wait for significant time or to freeze waiting on
other process. The Obs.Manager has 10 points within the main loop
from where SetState_Closing () can be called, so if SetState_Closing() did
freeze it would have the affect of freezing the Obs.Manager.
Another
possibility is that a freeze to the UI (objConsole) could cause UpdateStatusNote
() to freeze.
Another possibility is that another thread (ObsWorker, etc)
freezes when it mets a specific condition when SessionState =
SessionState.Closing
Conclusion
.
Recommendation
-
Add trace code to manager.vb that allow execution of each and every line in
SetState_Closing () to be followed (More Data).
Done 2020-07-20 (AstroMain 3.26)
-
See if it possible to replicate frozen program but special tests that cycles
from running to closing multiple times (More Data)
-
Consider always starting Live Sessions from a clean program start (Potential
Prevention)
- Alter Obs.Overseer code so that if Obs.Manger becomes frozen during Closing, then this situation is passed to AstroGuard so that it can take the appropriate action to close and park dome and park scope. (Mitigation)
Back to Top
This Web Page: | Notes - Session 795 (2020-07-17) |
Last Updated : | 2024-02-21 |
Site Owner : | David Richards |
Home Page : | David's Astronomy Web Site |