Duplicate images stored during file capture

A place to report problems and bugs in SharpCap
Forum rules
Please read about Troubleshooting USB Issues before posting.

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

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
astrorunner
Posts: 2
Joined: Sat Apr 21, 2018 8:40 pm

Duplicate images stored during file capture

Post by astrorunner » Sat Apr 21, 2018 8:50 pm

My camera is the ASI-290mini (by ZWO) and I'm running Sharpcap 3.0.4076. The OS is Windows 8.1 with Bing.

The problem occurs when I run Capture. I'm running Mono 16 setting, 20s expsoures with a gain of 120. For "configure capture" I'm using single frame and "perform a sequence of captures" with 60 for sequence length.

Usually it operates normally for the first 20-30 images but then I begin getting duplicate images stored. So instead of "Image 5" I get "Image 5" and "Image 6" stored simultaneously, and they are both the same image. So "Image 6" is just a copy of 5. The result is that I don't really get 60 images taken over 20 minutes, I get about 10 minutes of data and a bunch of duplicates.

If I re-start Sharpcap it seems to work ok for awhile but will then begin the behavior again. At times though even restarting won't change the behavior.

Below is some of the log I captured, if this might help.

Thanks

---

Info: 16:35:22.5394705 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StopCapture() :: Started
Debug: 16:35:22.5404691 Thread:#1 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Started
Debug: 16:35:22.5404691 Thread:#1 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Ended
Info: 16:35:22.5414701 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StopCapture() :: Ended
Info: 16:35:22.7278349 Thread:#1 SharpCap.MultiCaptureProvider.SendCaptureEvent(Object sender, CaptureEventArgs e) :: Capture Event : StartCapture
Debug: 16:35:22.8381709 Thread:#1 SharpCap.Models.Camera.<ImplOnOnCaptureEvent>b__16_0() :: Status update after capture complete.
Debug: 16:35:23.2409417 Thread:Single Frame Thread#17 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Started
Debug: 16:35:23.2419437 Thread:Single Frame Thread#17 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Ended
Info: 16:35:23.2429456 Thread:#1 SharpCap.MultiCaptureProvider.SendCaptureEvent(Object sender, CaptureEventArgs e) :: Capture Event : StopCapture
Debug: 16:35:23.2439546 Thread:#1 SharpCap.Models.Application.OnStopCapture() :: Started
Debug: 16:35:23.2449523 Thread:#1 SharpCap.Models.Application.OnStopCapture() :: Ended
Debug: 16:35:23.2459529 Thread:#1 SharpCap.UI.SharpCapForm.OnStopCapture() :: Started
Debug: 16:35:23.2469567 Thread:#1 SharpCap.UI.SharpCapForm.OnStopCapture() :: Ended
Debug: 16:35:23.2569667 Thread:#1 SharpCap.Models.Camera.<ImplOnOnCaptureEvent>b__16_0() :: Status update after capture complete.
Info: 16:35:24.3769128 Thread:#1 SharpCap.UI.SharpCapForm.sequence_Next() :: Started
Info: 16:35:24.3769128 Thread:#1 SharpCap.Models.Camera.PrepareToCapture() :: Started
Info: 16:35:24.4260228 Thread:#1 SharpCap.Models.Camera.PrepareToCapture(IFileNameProvider fileNameProvider) :: Started
Debug: 16:35:24.4300292 Thread:#1 SharpCap.Base.Utilities.Logger.LogStackTrace(LogLevel level, String msg) :: Prepare to capture on MultiCaptureProvider
at SharpCap.MultiCaptureProvider.PrepareToCapture(IFileNameProvider fnp)
at SharpCap.Models.Camera.PrepareToCapture(IFileNameProvider fileNameProvider)
at SharpCap.Models.Camera.PrepareToCapture()
at SharpCap.UI.SharpCapForm.sequence_Next()
at SharpCap.UI.NotificationViewModel.HideMessage()
at SharpCap.UI.NotificationViewModel.Update()
at SharpCap.UI.NotificationViewModel.DispatcherTimerOnTick(Object sender, EventArgs eventArgs)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
Info: 16:35:24.4310297 Thread:#1 SharpCap.Base.CaptureProviderBase`1.PrepareToCapture(IFileNameProvider fnp) :: Started
Info: 16:35:24.4320321 Thread:#1 SharpCap.Base.CaptureProviderBase`1.PrepareToCapture(IFileNameProvider fnp) :: Ended
Info: 16:35:24.4330336 Thread:#1 SharpCap.Models.Camera.PrepareToCapture(IFileNameProvider fileNameProvider) :: Ended (Success)
Debug: 16:35:24.4330336 Thread:#1 SharpCap.Models.Camera.RunCapture() :: Stopping capture because the capture type was single frame.
Debug: 16:35:24.4340351 Thread:#1 SharpCap.Models.Camera.CancelCapture() :: Stopping capture because cancel pressed in start capture form.
Debug: 16:35:24.4360437 Thread:#1 SharpCap.Base.Utilities.Logger.LogStackTrace(LogLevel level, String msg) :: Stopping capture on MultiCaptureProvider
at SharpCap.MultiCaptureProvider.CancelCapture()
at SharpCap.Models.Camera.CancelCapture()
at SharpCap.Models.Camera.RunCapture()
at SharpCap.UI.SharpCapForm.sequence_Next()
at SharpCap.UI.NotificationViewModel.HideMessage()
at SharpCap.UI.NotificationViewModel.Update()
at SharpCap.UI.NotificationViewModel.DispatcherTimerOnTick(Object sender, EventArgs eventArgs)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
Info: 16:35:24.4370433 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StopCapture() :: Started
Debug: 16:35:24.4380424 Thread:#1 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Started
Debug: 16:35:24.4380424 Thread:#1 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Ended
Info: 16:35:24.4390439 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StopCapture() :: Ended
Info: 16:35:24.6012887 Thread:#1 SharpCap.MultiCaptureProvider.SendCaptureEvent(Object sender, CaptureEventArgs e) :: Capture Event : StartCapture
Debug: 16:35:24.7111293 Thread:#1 SharpCap.Models.Camera.<ImplOnOnCaptureEvent>b__16_0() :: Status update after capture complete.
Debug: 16:35:24.7181382 Thread:Single Frame Thread#27 SharpCap.Base.BaseImageProvider.OnStartCapture(IColourSpace colourSpaceControl, Size sz) :: Started
Debug: 16:35:24.7201412 Thread:Capture Write Thread#28 SharpCap.Base.BaseImageProvider.CaptureWriteThreadProc() :: Started
Debug: 16:35:24.7201412 Thread:Single Frame Thread#27 SharpCap.Base.BaseImageProvider.OnStartCapture(IColourSpace colourSpaceControl, Size sz) :: Ended
Info: 16:35:41.7270986 Thread:#1 SharpCap.MultiCaptureProvider.SendCaptureEvent(Object sender, CaptureEventArgs e) :: Capture Event : StopCapture
Debug: 16:35:41.7281005 Thread:#1 SharpCap.Models.Application.OnStopCapture() :: Started
Debug: 16:35:41.7281005 Thread:#1 SharpCap.Models.Application.OnStopCapture() :: Ended
Debug: 16:35:41.7291010 Thread:#1 SharpCap.UI.SharpCapForm.OnStopCapture() :: Started
Debug: 16:35:41.7291010 Thread:#1 SharpCap.UI.SharpCapForm.OnStopCapture() :: Ended
Debug: 16:35:41.7321078 Thread:#1 SharpCap.Models.Camera.<ImplOnOnCaptureEvent>b__16_0() :: Status update after capture complete.
Info: 16:35:42.7539805 Thread:#1 SharpCap.UI.SharpCapForm.sequence_Next() :: Started
Info: 16:35:42.7549829 Thread:#1 SharpCap.Models.Camera.PrepareToCapture() :: Started
Info: 16:35:42.7970438 Thread:#1 SharpCap.Models.Camera.PrepareToCapture(IFileNameProvider fileNameProvider) :: Started
Debug: 16:35:42.7990468 Thread:#1 SharpCap.Base.Utilities.Logger.LogStackTrace(LogLevel level, String msg) :: Prepare to capture on MultiCaptureProvider
at SharpCap.MultiCaptureProvider.PrepareToCapture(IFileNameProvider fnp)
at SharpCap.Models.Camera.PrepareToCapture(IFileNameProvider fileNameProvider)
at SharpCap.Models.Camera.PrepareToCapture()
at SharpCap.UI.SharpCapForm.sequence_Next()
at SharpCap.UI.NotificationViewModel.HideMessage()
at SharpCap.UI.NotificationViewModel.Update()
at SharpCap.UI.NotificationViewModel.DispatcherTimerOnTick(Object sender, EventArgs eventArgs)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
Info: 16:35:42.8000492 Thread:#1 SharpCap.Base.CaptureProviderBase`1.PrepareToCapture(IFileNameProvider fnp) :: Started
Info: 16:35:42.8000492 Thread:#1 SharpCap.Base.CaptureProviderBase`1.PrepareToCapture(IFileNameProvider fnp) :: Ended
Info: 16:35:42.8010521 Thread:#1 SharpCap.Models.Camera.PrepareToCapture(IFileNameProvider fileNameProvider) :: Ended (Success)
Debug: 16:35:42.8010521 Thread:#1 SharpCap.Models.Camera.RunCapture() :: Stopping capture because the capture type was single frame.
Debug: 16:35:42.8020521 Thread:#1 SharpCap.Models.Camera.CancelCapture() :: Stopping capture because cancel pressed in start capture form.
Debug: 16:35:42.8030531 Thread:#1 SharpCap.Base.Utilities.Logger.LogStackTrace(LogLevel level, String msg) :: Stopping capture on MultiCaptureProvider
at SharpCap.MultiCaptureProvider.CancelCapture()
at SharpCap.Models.Camera.CancelCapture()
at SharpCap.Models.Camera.RunCapture()
at SharpCap.UI.SharpCapForm.sequence_Next()
at SharpCap.UI.NotificationViewModel.HideMessage()
at SharpCap.UI.NotificationViewModel.Update()
at SharpCap.UI.NotificationViewModel.DispatcherTimerOnTick(Object sender, EventArgs eventArgs)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
Info: 16:35:42.8030531 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StopCapture() :: Started
Debug: 16:35:42.8040546 Thread:#1 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Started
Debug: 16:35:42.8050599 Thread:Capture Write Thread#28 SharpCap.Base.BaseImageProvider.CaptureWriteThreadProc() :: Ended (WriteFrames is false)
Debug: 16:35:42.8150713 Thread:#1 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Ended
Info: 16:35:42.8150713 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StopCapture() :: Ended
Info: 16:35:42.9891362 Thread:#1 SharpCap.MultiCaptureProvider.SendCaptureEvent(Object sender, CaptureEventArgs e) :: Capture Event : StartCapture
Debug: 16:35:43.1149163 Thread:#1 SharpCap.Models.Camera.<ImplOnOnCaptureEvent>b__16_0() :: Status update after capture complete.
Debug: 16:35:43.4114786 Thread:Single Frame Thread#26 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Started
Debug: 16:35:43.4114786 Thread:Single Frame Thread#26 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Ended
Info: 16:35:43.4134834 Thread:#1 SharpCap.MultiCaptureProvider.SendCaptureEvent(Object sender, CaptureEventArgs e) :: Capture Event : StopCapture
Debug: 16:35:43.4144915 Thread:#1 SharpCap.Models.Application.OnStopCapture() :: Started
Debug: 16:35:43.4154882 Thread:#1 SharpCap.Models.Application.OnStopCapture() :: Ended
Debug: 16:35:43.4164921 Thread:#1 SharpCap.UI.SharpCapForm.OnStopCapture() :: Started
Debug: 16:35:43.4174935 Thread:#1 SharpCap.UI.SharpCapForm.OnStopCapture() :: Ended
Debug: 16:35:43.4295074 Thread:#1 SharpCap.Models.Camera.<ImplOnOnCaptureEvent>b__16_0() :: Status update after capture complete.
Info: 16:35:44.5307243 Thread:#1 SharpCap.UI.SharpCapForm.sequence_Next() :: Started
Info: 16:35:44.5317243 Thread:#1 SharpCap.Models.Camera.PrepareToCapture() :: Started
Info: 16:35:44.5973716 Thread:#1 SharpCap.Models.Camera.PrepareToCapture(IFileNameProvider fileNameProvider) :: Started
Debug: 16:35:44.6023795 Thread:#1 SharpCap.Base.Utilities.Logger.LogStackTrace(LogLevel level, String msg) :: Prepare to capture on MultiCaptureProvider
at SharpCap.MultiCaptureProvider.PrepareToCapture(IFileNameProvider fnp)
at SharpCap.Models.Camera.PrepareToCapture(IFileNameProvider fileNameProvider)
at SharpCap.Models.Camera.PrepareToCapture()
at SharpCap.UI.SharpCapForm.sequence_Next()
at SharpCap.UI.NotificationViewModel.HideMessage()
at SharpCap.UI.NotificationViewModel.Update()
at SharpCap.UI.NotificationViewModel.DispatcherTimerOnTick(Object sender, EventArgs eventArgs)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
Info: 16:35:44.6174039 Thread:#1 SharpCap.Base.CaptureProviderBase`1.PrepareToCapture(IFileNameProvider fnp) :: Started
Info: 16:35:44.6204065 Thread:#1 SharpCap.Base.CaptureProviderBase`1.PrepareToCapture(IFileNameProvider fnp) :: Ended
Info: 16:35:44.6204065 Thread:#1 SharpCap.Models.Camera.PrepareToCapture(IFileNameProvider fileNameProvider) :: Ended (Success)
Debug: 16:35:44.6214160 Thread:#1 SharpCap.Models.Camera.RunCapture() :: Stopping capture because the capture type was single frame.
Debug: 16:35:44.6224174 Thread:#1 SharpCap.Models.Camera.CancelCapture() :: Stopping capture because cancel pressed in start capture form.
Debug: 16:35:44.6284145 Thread:#1 SharpCap.Base.Utilities.Logger.LogStackTrace(LogLevel level, String msg) :: Stopping capture on MultiCaptureProvider
at SharpCap.MultiCaptureProvider.CancelCapture()
at SharpCap.Models.Camera.CancelCapture()
at SharpCap.Models.Camera.RunCapture()
at SharpCap.UI.SharpCapForm.sequence_Next()
at SharpCap.UI.NotificationViewModel.HideMessage()
at SharpCap.UI.NotificationViewModel.Update()
at SharpCap.UI.NotificationViewModel.DispatcherTimerOnTick(Object sender, EventArgs eventArgs)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
Info: 16:35:44.6284145 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StopCapture() :: Started
Debug: 16:35:44.6294155 Thread:#1 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Started
Debug: 16:35:44.6294155 Thread:#1 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Ended
Info: 16:35:44.6304169 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StopCapture() :: Ended
Info: 16:35:44.8122446 Thread:#1 SharpCap.MultiCaptureProvider.SendCaptureEvent(Object sender, CaptureEventArgs e) :: Capture Event : StartCapture
Debug: 16:35:44.9373758 Thread:#1 SharpCap.Models.Camera.<ImplOnOnCaptureEvent>b__16_0() :: Status update after capture complete.
Debug: 16:35:44.9433893 Thread:#25 SharpCap.Base.BaseImageProvider.OnStartCapture(IColourSpace colourSpaceControl, Size sz) :: Started
Debug: 16:35:44.9453885 Thread:Capture Write Thread#24 SharpCap.Base.BaseImageProvider.CaptureWriteThreadProc() :: Started
Debug: 16:35:44.9453885 Thread:Single Frame Thread#25 SharpCap.Base.BaseImageProvider.OnStartCapture(IColourSpace colourSpaceControl, Size sz) :: Ended
Debug: 16:35:46.9222965 Thread:#1 SharpCap.UI.SharpCapForm.CommandToolStripItem_Click(Object sender, EventArgs e) :: Button Pressed S&top Capture
Debug: 16:35:47.0084227 Thread:#1 SharpCap.Base.Utilities.Logger.LogStackTrace(LogLevel level, String msg) :: Stopping capture on MultiCaptureProvider
at SharpCap.MultiCaptureProvider.StopCapture()
at SharpCap.Models.Camera.StopCaptureImpl()
at SharpCap.Models.Camera.StopCapture()
at SharpCap.ViewModels.SharpCapViewModel.<.ctor>b__4_3()
at SharpCap.UI.SharpCapForm.CommandToolStripItem_Click(Object sender, EventArgs e)
Info: 16:35:47.0084227 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StopCapture() :: Started
Debug: 16:35:47.0084227 Thread:#1 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Started
Debug: 16:35:47.0104228 Thread:Capture Write Thread#24 SharpCap.Base.BaseImageProvider.CaptureWriteThreadProc() :: Ended (WriteFrames is false)
Debug: 16:35:47.0104228 Thread:#1 SharpCap.Base.BaseImageProvider.BeforeStopCapture() :: Ended
Info: 16:35:47.0114248 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StopCapture() :: Ended

User avatar
admin
Site Admin
Posts: 2142
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Duplicate images stored during file capture

Post by admin » Sat Apr 21, 2018 9:46 pm

Hi,

I will have to test this scenario to see what is going wrong. Can you tell me if you had a delay set up between the captures (and how long) as I suspect this may impact on the issue.

A simple workaround for now would be:

* Select your preferred still output format (PNG or FITS) in the controls on the right
* Start capture with a limit of 60 frames and *do not* choose to use a sequence of captures.

This will capture 60 frames and save them to sequentially numbered still (PNG/FITS) files and should avoid the bug you are seeing. To be honest, if you want to capture a number of still frames this approach is better than using a sequence (unless you want a pause between each frame).

cheers,

Robin

astrorunner
Posts: 2
Joined: Sat Apr 21, 2018 8:40 pm

Re: Duplicate images stored during file capture

Post by astrorunner » Thu Apr 26, 2018 1:21 am

Thanks for info. No I did not have a delay set up between the captures.

I will try the workaround and post again if there is an issue.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest