ASCOM exception error if sequence is ends



I am receiving almost every time an ASCOM exception error when my sequence is ending . I copied the part of the log
where the message can be seen. Anyone could guess what may go’s wrong ?

For me it looks like the mount is disconnecting from SGP - which is correct, but short time later a function want access to the mount, which throws an error, but I am no expert in reading the log.

[12.12.17 05:33:11.987][DEBUG] [Sequence Thread] Parking telescope…
[12.12.17 05:33:11.990][DEBUG] [Sequence Thread] ASCOM Telescope: Park message received.
[12.12.17 05:33:11.990][DEBUG] [Sequence Thread] ASCOM Telescope: Dome slave set to park mount first, parking mount.
[12.12.17 05:33:12.205][DEBUG] [Sequence Thread] ASCOM Telescope: Sending park…
[12.12.17 05:33:24.009][DEBUG] [Sequence Thread] ASCOM Telescope: Parked
[12.12.17 05:33:24.009][DEBUG] [Sequence Thread] ASCOM Telescope: Sending post-park stop tracking…
[12.12.17 05:33:24.009][DEBUG] [Sequence Thread] ASCOM Telescope: Setting tracking state to False
[12.12.17 05:33:24.312][DEBUG] [Sequence Thread] ASCOM Telescope: closing observatory shutter…
[12.12.17 05:33:24.314][DEBUG] [Sequence Thread] Dome: Closing Shutter
[12.12.17 05:34:03.478][DEBUG] [Sequence Thread] ASCOM Telescope: parking observatory…
[12.12.17 05:34:03.478][DEBUG] [Sequence Thread] ASCOM Dome: Parking…
[12.12.17 05:34:05.700][DEBUG] [Sequence Thread] ASCOM Telescope: Parked
[12.12.17 05:34:05.700][DEBUG] [Sequence Thread] ASCOM Telescope: Sending post-park stop tracking…
[12.12.17 05:34:05.700][DEBUG] [Sequence Thread] ASCOM Telescope: Setting tracking state to False
[12.12.17 05:34:05.976][DEBUG] [Sequence Thread] Running sequence related script…
[12.12.17 05:34:05.976][DEBUG] [Sequence Thread] RunVbScript: Running script: C:\Users\Thomas\Desktop\VBS Scripts\Call_CloseAll_Script.vbs
[12.12.17 05:34:06.051][DEBUG] [Main Thread] Disconnecting QSI Filter Wheel
[12.12.17 05:34:06.056][DEBUG] [Main Thread] Disconnecting ASCOM Focuser: RoboFocusServer.Focuser

[12.12.17 05:34:06.061][DEBUG] [Main Thread] Disconnecting ASCOM Telescope: ASCOM.tenmicron_mount.Telescope

[12.12.17 05:34:06.259][DEBUG] [Main Thread] Disconnecting ASCOM Observatory: Talon6_ROR.Dome
[12.12.17 05:34:06.259][DEBUG] [Main Thread] Dome: Disconnecting
[12.12.17 05:34:06.267][DEBUG] [Main Thread] Disconnecting ASCOM Safgety Monitor
[12.12.17 05:34:06.267][DEBUG] [Main Thread] ASCOM Safety Monitor: Disconnecting
[12.12.17 05:34:06.267][DEBUG] [CP Update Thread] ASCOM Telescope: Error in GetCurrentPos : Object reference not set to an instance of an object.
at ASCOM.Utilities.TraceLogger.LogMessageCrLf(String Identifier, String Message) in C:\ASCOM Build\Export\ASCOM.Utilities\ASCOM.Utilities\TraceLogger.vb:line 211
at ASCOM.DriverAccess.MemberFactory.CallMember(Int32 memberCode, String memberName, Type[] parameterTypes, Object[] parms) in c:\ASCOM Build\Export\ASCOM.DriverAccess\MemberFactory.cs:line 270
at ASCOM.DriverAccess.Telescope.get_Declination() in c:\ASCOM Build\Export\ASCOM.DriverAccess\Telescope.cs:line 485
at p8.jv(Boolean A_0)
[12.12.17 05:34:06.271][DEBUG] [Sequence Thread] Sending to PHD2:

[12.12.17 05:34:06.276][DEBUG] [Main Thread] Aborting sequence timer thread…
[12.12.17 05:34:06.276][DEBUG] [Main Thread] Sending sequence end notification…
[12.12.17 05:34:06.276][DEBUG] [Main Thread] Resetting UI elements…
[12.12.17 05:34:06.276][DEBUG] [Main Thread] Checking if sequence has work left…
[12.12.17 05:34:06.276][DEBUG] [Main Thread] No work left…


What seems to have happened is that the Telescope has been disconnected in the main thread and then the CP Update Thread tries to read a property. It fails because the telescope has been disconnected.


@Chris Yes it seems the CP thread didn’t notice that the main thread had already disconnected.

Since I cant post anything in the “Bug” section, not sure how to deal with that .