Sequencer error on stop guiding

A place to report problems and bugs in SharpCap
Forum rules


If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs

Please also read about Troubleshooting USB Issues before posting.

*** Please do not post license keys - please report any problems with licensing to 'admin' by private message ***

Please include the following details in any bug report:

* Version of SharpCap
* Camera and other hardware being user
* Operating system version
* Contents of the SharpCap log after the problem has occurred.
[If SharpCap crashes, please send the bug report when prompted instead of including the log]
Post Reply
yomamma
Posts: 54
Joined: Wed Mar 01, 2023 4:58 pm

Sequencer error on stop guiding

#1

Post by yomamma »

Sharpcap version 4.0.9538.0 1/23/2023
ZWO ASI294MC Pro camera
EQ6R Pro mount
WIN 10 Pro


I ran a simple sequence the other night and it errored at the end when I performed my cleanup. When time expired at 4 AM I sent a message that the job completed then the first thing I did was stop guiding. The stop guiding failed and said "'Exception' : Guiding not connected " even though all indications are that guiding should have been connected as the last message on guiding was INFO "GuideStep". When I look at the minute prior to 4 AM the guiding had just completed dithering and the last guiding updates were

Info 03:59:08.711543 #28 Event received from PHD2 : SettleDone in void SharpCap.Base.Guiding.Phd2Api.ProcessNotification(EventBase typedEvent)
Info 03:59:08.711543 #28 Guiding SettleState changed to Settled in void SharpCap.Base.Guiding.GuidingBase.set_SettleState(SettleState value)
Info 03:59:08.726504 #28 Live stacking unpaused in void SharpCap.FrameTransforms.LiveStacking.StackingParameters.UnPause()
Info 03:59:08.727501 #28 Event received from PHD2 : GuideStep

It looks like guiding was active but there was a warning for the camera immediately after these info entries. I have included the portion of the log that contains the last Warning on being paused because PHD2 is dithering, thru the end of the sequence since this was at the end. Thanks for your help.

Warning 03:59:08.662677 #42 Frame not stacked because : Live Stacking is paused - PHD2 is currently dithering. in void SharpCap.FrameTransforms.LiveStacking.LiveStackViewModel.DoAppend(LoggingEvent loggingEvent)
Debug 03:59:08.667668 #1 Notification (Status=Warning): Warning: Last 18 frames have not been stacked, because: Live Stacking is paused - PHD2 is currently dithering. in void SharpCap.UI.NotificationViewModel.DisplayMessage(NotificationMessage message)
Info 03:59:08.711543 #28 Event received from PHD2 : SettleDone in void SharpCap.Base.Guiding.Phd2Api.ProcessNotification(EventBase typedEvent)
Info 03:59:08.711543 #28 Guiding SettleState changed to Settled in void SharpCap.Base.Guiding.GuidingBase.set_SettleState(SettleState value)
Info 03:59:08.726504 #28 Live stacking unpaused in void SharpCap.FrameTransforms.LiveStacking.StackingParameters.UnPause()
Info 03:59:08.727501 #28 Event received from PHD2 : GuideStep in void SharpCap.Base.Guiding.Phd2Api.ProcessNotification(EventBase typedEvent)
Warning 03:59:20.953225 #41 Fetching still frame from ZWO camera failed with ExpWorking, exposure is 2000, timeout is 12200 in bool SharpCap.Cameras.ASI.ASICameraProxy.GetFrameData(int timeout, BufferFrame frame, CancellationToken cancellationToken)
Debug 03:59:21.244376 #41 Starting ZWO Exposure of 300000ms in bool SharpCap.Cameras.ASI.ASICameraProxy.StartExposure()
Debug 04:00:00.951460 #1 Sequencer : Completed : Wait until 4:00 AM in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:00.953455 #1 Sequencer : Starting : Show a notification in Green: 'Job Complete' in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:00.958449 #1 Notification (Status=OK): Job Complete in void SharpCap.UI.NotificationViewModel.DisplayMessage(NotificationMessage message)
Debug 04:00:00.959442 #1 Sequencer : Completed : Show a notification in Green: 'Job Complete' in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:00.964429 #1 Sequencer : Starting : Ignore any errors when running these steps in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:00.968415 #1 Sequencer : Starting : Stop guiding in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Error 04:00:00.980382 #1 Running step Stop guiding : Exception of type 'Exception' : Guiding not connected
Stack Trace: at async Task SharpCap.Sequencer.Steps.GuidingStopStep.ExecuteImpl(ISequencerContext context, CancellationToken cancellationToken) in C:/Documents/Source Code/SharpCap4.0/src/SharpCap/Sequencer/Steps/GuidingConnectStep.cs:line 172
at async Task SharpCap.Sequencer.Steps.StepBase.Execute(ISequencerContext context, CancellationToken cancellationToken, bool internalUse) in C:/Documents/Source Code/SharpCap4.0/src/SharpCap/Sequencer/Steps/StepBase.cs:line 136 in async Task SharpCap.Sequencer.Steps.StepBase.Execute(ISequencerContext context, CancellationToken cancellationToken, bool internalUse)
Info 04:00:00.980382 #1 The script being run was :
SEQUENCE
WAIT UNTIL LOCALTIME "4:00 AM"
SHOW NOTIFICATION "Job Complete" COLOUR Green DURATION 30
IGNORE ERRORS FROM ONERROR RUN ""
GUIDING STOP
END IGNORE ERRORS
IGNORE ERRORS FROM ONERROR RUN ""
LIVE STACKING STOP
END IGNORE ERRORS
IGNORE ERRORS FROM ONERROR RUN ""
CAMERA CLOSE
END IGNORE ERRORS
IGNORE ERRORS FROM ONERROR RUN ""
MOUNT PARK
END IGNORE ERRORS
END SEQUENCE in void SharpCap.Sequencer.SequencerContext.OnStepError(ISequencerStep step, Exception exception)
Debug 04:00:00.980382 #1 Sequencer : Error : 'Guiding not connected' while running step Stop guiding in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Warning 04:00:00.985370 #1 Ignoring error from sequencer that occurred inside Ignore Errors Step : Exception of type 'Exception' : Guiding not connected
Stack Trace: at async Task SharpCap.Sequencer.Steps.GuidingStopStep.ExecuteImpl(ISequencerContext context, CancellationToken cancellationToken) in C:/Documents/Source Code/SharpCap4.0/src/SharpCap/Sequencer/Steps/GuidingConnectStep.cs:line 172
at async Task SharpCap.Sequencer.Steps.StepBase.Execute(ISequencerContext context, CancellationToken cancellationToken, bool internalUse) in C:/Documents/Source Code/SharpCap4.0/src/SharpCap/Sequencer/Steps/StepBase.cs:line 150
at async Task SharpCap.Sequencer.Steps.BlockStep.ExecuteSubSteps(ISequencerContext context, CancellationToken cancellationToken) in C:/Documents/Source Code/SharpCap4.0/src/SharpCap/Sequencer/Steps/BlockStep.cs:line 71
at async Task SharpCap.Sequencer.Steps.IgnoreErrorsStep.ExecuteImpl(ISequencerContext context, CancellationToken cancellationToken) in C:/Documents/Source Code/SharpCap4.0/src/SharpCap/Sequencer/Steps/IgnoreErrorsStep.cs:line 27 in void System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, object state, bool preserveSyncCtx)
Debug 04:00:00.986367 #1 Sequencer : Info : 'Ignoring error and continuing sequence : Guiding not connected' while running step Stop guiding in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:00.987364 #1 Sequencer : Completed : Ignore any errors when running these steps in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:00.989359 #1 Sequencer : Starting : Ignore any errors when running these steps in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:00.990356 #1 Sequencer : Starting : Stop Live Stacking in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Info 04:00:00.992351 #1 Selecting transform None in void SharpCap.Models.Transforms.set_SelectedTransform(ITransform value)
Info 04:00:00.992351 #1 Live stacking paused : Previous live stack re-shown. You can resume or clear this stack. in void SharpCap.FrameTransforms.LiveStacking.StackingParameters.Pause(PauseType type, string reason)
Info 04:00:00.993348 #1 Live stacking closed. in void SharpCap.FrameTransforms.LiveStacking.LiveStackTransform.SetActive(bool isActive)
Info 04:00:00.994345 #1 Guiding Connection state changed to False in void SharpCap.Base.Guiding.GuidingBase.set_IsConnected(bool value)
Info 04:00:00.994345 #1 Disconnected from PHD2 in bool SharpCap.Base.Guiding.Phd2Api.DisconnectImpl()
Info 04:00:00.994345 #1 Guiding SettleState changed to Unknown in void SharpCap.Base.Guiding.GuidingBase.set_SettleState(SettleState value)
Info 04:00:00.994345 #1 Guiding GuideState changed to Stopped in void SharpCap.Base.Guiding.GuidingBase.set_State(GuideState value)
Info 04:00:00.997337 #1 Guiding GuideState changed to Unknown in void SharpCap.Base.Guiding.GuidingBase.set_State(GuideState value)
Debug 04:00:01.018284 #1 Sequencer : Completed : Stop Live Stacking in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:01.032245 #1 Sequencer : Completed : Ignore any errors when running these steps in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:01.035357 #1 Sequencer : Starting : Ignore any errors when running these steps in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:01.039228 #1 Sequencer : Starting : Close Camera in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Info 04:00:01.050198 #1 Changing camera from ZWO ASI294MC Pro to none in void SharpCap.Models.Application.SelectNewCamera(Camera value)
Info 04:00:01.059172 #1 StatusBarUpdate event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 04:00:01.070146 #1 Stopping preview : closing device in void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reason)
Info 04:00:01.070146 #1 Started void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reason) in void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reason)
Debug 04:00:01.070146 #1 Started void SharpCap.Base.BaseImageProvider.Stop() in void SharpCap.Base.BaseImageProvider.Stop()
Info 04:00:01.070146 #1 Stopping preview, 724 frames processed, 0 frames dropped in void SharpCap.Base.BaseImageProvider.Stop()
Debug 04:00:01.071140 #1 Started void SharpCap.Base.CameraProxyBase.StopPreview() in void SharpCap.Base.CameraProxyBase.StopPreview()
Debug 04:00:01.446435 #41 Finished ZWO Exposure of 300000ms, gotFrame = True in bool SharpCap.Cameras.ASI.ASICameraProxy.GetFrameData(int timeout, BufferFrame frame, CancellationToken cancellationToken)
Debug 04:00:01.447432 #41 Ended void SharpCap.Cameras.ASI.ASICameraProxy.MyGrabThreadProc() in void SharpCap.Cameras.ASI.ASICameraProxy.MyGrabThreadProc()
Debug 04:00:01.449426 #40 Ended void SharpCap.Base.CameraProxyBase.GrabThreadProc() in void SharpCap.Base.CameraProxyBase.GrabThreadProc()
Debug 04:00:01.449426 #1 Ended void SharpCap.Base.BaseImageProvider.Stop() in void SharpCap.Base.BaseImageProvider.Stop()
Debug 04:00:01.457410 #1 Ended void SharpCap.Base.BaseImageProvider.Stop() in void SharpCap.Base.BaseImageProvider.Stop()
Info 04:00:01.460404 #1 Capture Event : StopPreview in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Info 04:00:01.464387 #1 StopPreview event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 04:00:01.554147 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reason) in void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reason)
Info 04:00:01.555144 #1 Started void SharpCap.Base.CaptureProviderBase<T>.CloseDevice() in void SharpCap.Base.CaptureProviderBase<T>.CloseDevice()
Info 04:00:01.555144 #1 Capture Event : DeviceClosing in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Info 04:00:01.563122 #1 Destroying mount proxy which was a SharpCap.Models.NullProxy for On Camera ST4 in void SharpCap.Models.Mount.CleanupProxy()
Info 04:00:01.564120 #1 DeviceClosing event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Debug 04:00:01.565117 #1 Started void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider() in void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider()
Debug 04:00:01.566116 #1 Started void SharpCap.Base.BaseImageProvider.Close() in void SharpCap.Base.BaseImageProvider.Close()
Info 04:00:01.568109 #1 Closing ZWO Camera due to Dispose of Proxy in void SharpCap.Cameras.ASI.ASICameraProxy.Dispose(bool disposing)
Info 04:00:01.600117 #1 Started void SharpCap.Base.CameraProxyBase.Dispose(bool disposing) in void SharpCap.Base.CameraProxyBase.Dispose(bool disposing)
Info 04:00:01.600117 #1 Setting ImageProvider CurrentDevice to in void SharpCap.Base.BaseImageProvider.set_CurrentDevice(ICameraProxy value)
Debug 04:00:01.601120 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider() in void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider()
Debug 04:00:01.602118 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider() in void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider()
Info 04:00:01.605102 #1 Cleaning up camera controls in void SharpCap.Base.PropertyControls.CaptureControl.Dispose()
Debug 04:00:01.610095 #1 Started void SharpCap.Base.SimpleCaptureProvider.OnDeviceClosed() in void SharpCap.Base.SimpleCaptureProvider.OnDeviceClosed()
Debug 04:00:01.611086 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.CloseDevice() in void SharpCap.Base.CaptureProviderBase<T>.CloseDevice()
Info 04:00:01.611086 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.CloseDevice() in void SharpCap.Base.CaptureProviderBase<T>.CloseDevice()
Info 04:00:01.613080 #1 Capture Event : DeviceClosed in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Info 04:00:01.613080 #1 Destroying mount proxy which was a SharpCap.Models.NullProxy for On Camera ST4 in void SharpCap.Models.Mount.CleanupProxy()
Info 04:00:01.614077 #1 DeviceClosed event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 04:00:01.627045 #1 Live stacking reset. in void SharpCap.FrameTransforms.LiveStacking.LiveStackTransform.Reset()
Info 04:00:01.630034 #1 Creating file name provider for target 'Capture', ZWO ASI294MC Pro, , Light in IFileNameProvider SharpCap.Models.DefaultFilenameProviderFactory.Create(string targetName)
Info 04:00:01.630034 #1 Setting up capture folder based on file names calculated from File names based on { Camera=ZWO ASI294MC Pro, Filter=, FrameType=Light, TargetName=Capture, Extension=fits, } in void SharpCap.FrameTransforms.LiveStacking.LiveStackSaveManager.SetupCaptureFolder()
Info 04:00:01.630034 #1 Creating file name provider for target 'Capture', ZWO ASI294MC Pro, , Light in IFileNameProvider SharpCap.Models.DefaultFilenameProviderFactory.Create(string targetName)
Info 04:00:01.631030 #1 Creating file name provider for target 'Capture', ZWO ASI294MC Pro, , Light in IFileNameProvider SharpCap.Models.DefaultFilenameProviderFactory.Create(string targetName)
Info 04:00:01.631030 #1 Live stacking unpaused in void SharpCap.FrameTransforms.LiveStacking.StackingParameters.UnPause()
Info 04:00:01.636021 #1 Started void SharpCap.Base.CaptureProviderBase<T>.Dispose(bool bDisposing) in void SharpCap.Base.CaptureProviderBase<T>.Dispose(bool bDisposing)
Info 04:00:01.636021 #1 Disposing of ASICaptureProvider in void SharpCap.Base.CaptureProviderBase<T>.Dispose(bool bDisposing)
Debug 04:00:01.641007 #1 Started void SharpCap.Base.BaseImageProvider.Dispose(bool disposing) in void SharpCap.Base.BaseImageProvider.Dispose(bool disposing)
Debug 04:00:01.642001 #1 Ended void SharpCap.Base.BaseImageProvider.Dispose(bool disposing) in void SharpCap.Base.BaseImageProvider.Dispose(bool disposing)
Info 04:00:01.642001 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.Dispose(bool bDisposing) in void SharpCap.Base.CaptureProviderBase<T>.Dispose(bool bDisposing)
Info 04:00:01.642998 #1 Controls cleared in void SharpCap.Models.Controls.Clear()
Debug 04:00:02.005033 #1 Sequencer : Completed : Close Camera in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:02.011014 #1 Sequencer : Completed : Ignore any errors when running these steps in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:02.013008 #1 Sequencer : Starting : Ignore any errors when running these steps in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:02.016001 #1 Sequencer : Starting : Park the mount in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:26.355752 #1 Sequencer : Completed : Park the mount in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:26.357782 #1 Sequencer : Completed : Ignore any errors when running these steps in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 04:00:26.361735 #1 Sequencer : Completed : Sequence in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Info 04:00:26.370642 #1 The sequence is now finished. in async Task SharpCap.Sequencer.SequencerContext.Run(ScriptBlock script)
yomamma
Posts: 54
Joined: Wed Mar 01, 2023 4:58 pm

Re: Sequencer error on stop guiding

#2

Post by yomamma »

I forgot to mention that I had a stack in progress when I started the sequence and also had checked Monitor Guiding in the stack Guide tab
User avatar
admin
Site Admin
Posts: 13362
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Sequencer error on stop guiding

#3

Post by admin »

Hi,

there is some complexity here...

Live stacking can manage the connection to PHD2 guiding and so can the sequencer. At the moment the sequencer is unaware of live stacking having connected to guiding, so you will get this type of error unless you put a 'Monitor Guiding' step early in your sequence. It won't matter if you do this and live stacking is already doing guiding/dithering, but that step is an absolute requirement for accessing guiding functions directly in the sequencer later in the sequence as it connects up the guiding application to the sequencing framework.

cheers,

Robin
yomamma
Posts: 54
Joined: Wed Mar 01, 2023 4:58 pm

Re: Sequencer error on stop guiding

#4

Post by yomamma »

I was wondering if they may be separate threads and one could not share info with the other. With that in mind I think I can rewrite my sequence and have it connect to the hardware and PHD2 keeping everything in one thread.

Thanks for the help
Post Reply