Symptoms:
1. When I launch sharpcap it can immediately crash, I can see ins tatusbar "detecting cameras". I try to start sharpcap for 10-15 times(!) and then
2. Sharpcap restores default settings for camera and starts without connecting to camera. When i click connect to camera, it crashes. The loops continues
3. After some magic tries I can appear in the state of sharpcap starts, but not connects. At this point I connect to test highspeed camera. And after that I can connect to Apollo 174
I have tried everything possible solutions and I believe it is sharpcap issue. After a crash I can successfully connect and open camera in firecapture without any issues. Even after that sharpcap fails to connect. Only connecting to test camera helps, or by some occasion without this step I can connect to it(but this is very rare)
Code: Select all
Info 00:00:06.421000 #1 Loading Hardware Proxies from SharpCap.ScintillationMonitor.ScintillationMonitorFactory in void SharpCap.ProxyFinder<T>.LoadProxiesForFactoryType(Type t)
Info 00:00:06.421000 #1 Found device SSM3 Scintillation Monitor in void SharpCap.ProxyFinder<T>.LoadProxiesForFactoryType(Type t)
Info 00:00:06.421000 #1 Found device AiryLab SSM in void SharpCap.ProxyFinder<T>.LoadProxiesForFactoryType(Type t)
Warning 00:00:06.531000 #18 AppDomain Unhandled exception event recevied for System.NullReferenceException: Object reference not set to an instance of an object.
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
at System.Threading.QueueUserWorkItemCallback.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart(), Terminating=True in void SharpCap.BugReporting.CurrentDomainOnUnhandledException(object sender, UnhandledExceptionEventArgs e)
Warning 00:00:06.546000 #18 Starting error processing on : Exception of type 'NullReferenceException' : Object reference not set to an instance of an object.
Stack Trace: at void System.Runtime.CompilerServices.AsyncTaskMethodBuilder<TResult>+AsyncStateMachineBox<TStateMachine>.MoveNext(Thread threadPoolThread) x 2
at void System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, bool allowInlining)
at void System.Threading.Tasks.Task.ThrowAsync(Exception exception, SynchronizationContext targetContext)+(object state) => { }
at void System.Threading.QueueUserWorkItemCallback.Execute()
at bool System.Threading.ThreadPoolWorkQueue.Dispatch()
at void System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() in bool SharpCap.BugReporting.ShouldReportException(Exception exception)
Info 00:00:06.546000 #18 Considering if the error needs to be reported : System.NullReferenceException("Object reference not set to an instance of an object.") in bool SharpCap.BugReporting.WorkOutIfWeShouldReport(Exception exception)
Warning 00:00:06.562000 #11 AppDomain Unhandled exception event recevied for System.NullReferenceException: Object reference not set to an instance of an object.
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
at System.Threading.QueueUserWorkItemCallback.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart(), Terminating=True in void SharpCap.BugReporting.CurrentDomainOnUnhandledException(object sender, UnhandledExceptionEventArgs e)
Warning 00:00:06.562000 #11 Starting error processing on : Exception of type 'NullReferenceException' : Object reference not set to an instance of an object.
Stack Trace: at void System.Runtime.CompilerServices.AsyncTaskMethodBuilder<TResult>+AsyncStateMachineBox<TStateMachine>.MoveNext(Thread threadPoolThread) x 2
at void System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, bool allowInlining)
at void System.Threading.Tasks.Task.ThrowAsync(Exception exception, SynchronizationContext targetContext)+(object state) => { }
at void System.Threading.QueueUserWorkItemCallback.Execute()
at bool System.Threading.ThreadPoolWorkQueue.Dispatch()
at void System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() in bool SharpCap.BugReporting.ShouldReportException(Exception exception)
Info 00:00:06.562000 #18 Checking to see if error 'Object reference not set to an instance of an object.' is caused by ASCOM drivers or other third party code. in bool SharpCap.NonReportableExceptions.HandleThirdPartyException(Exception e, IApplication app)
Info 00:00:06.562000 #1 SharpCap startup complete in 6102ms in void SharpCap.UI.MainWindowSupport.OnShown(IWindowOrForm parentWindow, IImageDisplay displayTarget, INightMode nightMode)
Info 00:00:06.578000 #18 Error needs to be reported : 'Object reference not set to an instance of an object.' of type System.NullReferenceException at at void System.Runtime.CompilerServices.AsyncTaskMethodBuilder<TResult>+AsyncStateMachineBox<TStateMachine>.MoveNext(Thread threadPoolThread) x 2 at void System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, bool allowInlining) at void System.Threading.Tasks.Task.ThrowAsync(Exception exception, SynchronizationContext targetContext)+(object state) => { } at void System.Threading.QueueUserWorkItemCallback.Execute() at bool System.Threading.ThreadPoolWorkQueue.Dispatch() at void System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() in bool SharpCap.BugReporting.ShouldReportException(Exception exception)
Info 00:00:06.578000 #11 We have already flagged an error to be reported, not going to report System.NullReferenceException("Object reference not set to an instance of an object.") in bool SharpCap.BugReporting.WorkOutIfWeShouldReport(Exception exception)
Info 00:00:06.578000 #11 Error to be ignored, not reported : 'Object reference not set to an instance of an object.' of type System.NullReferenceException at at void System.Runtime.CompilerServices.AsyncTaskMethodBuilder<TResult>+AsyncStateMachineBox<TStateMachine>.MoveNext(Thread threadPoolThread) x 2 at void System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, bool allowInlining) at void System.Threading.Tasks.Task.ThrowAsync(Exception exception, SynchronizationContext targetContext)+(object state) => { } at void System.Threading.QueueUserWorkItemCallback.Execute() at bool System.Threading.ThreadPoolWorkQueue.Dispatch() at void System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() in bool SharpCap.BugReporting.ShouldReportException(Exception exception)
Info 00:00:06.578000 #18 Invoking emergency handler Finish any active capture with timeout of 10s in void SharpCap.Base.Utilities.EmergencyHub.OnEmergencyEvent(Exception ex)
Info 00:00:06.593000 #18 Emergency handler Finish any active capture completed in void SharpCap.Base.Utilities.EmergencyHub.OnEmergencyEvent(Exception ex)
Warning 00:00:06.593000 #18 Exception Preprocessing on System.NullReferenceException 'Object reference not set to an instance of an object.' : Exception of type 'NullReferenceException' : Object reference not set to an instance of an object.
Stack Trace: at void System.Runtime.CompilerServices.AsyncTaskMethodBuilder<TResult>+AsyncStateMachineBox<TStateMachine>.MoveNext(Thread threadPoolThread) x 2
at void System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, bool allowInlining)
at void System.Threading.Tasks.Task.ThrowAsync(Exception exception, SynchronizationContext targetContext)+(object state) => { }
at void System.Threading.QueueUserWorkItemCallback.Execute()
at bool System.Threading.ThreadPoolWorkQueue.Dispatch()
at void System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() in Exception SharpCap.BugReporting.PreprocessException(Exception arg)
Info 00:00:06.609000 #1 Opening default/previous camera on startup. in async Task SharpCap.UI.MainWindowSupport.OnFirstTickAsync()
Warning 00:00:06.609000 #18 Creating bug report due to exception : : Exception of type 'NullReferenceException' : Object reference not set to an instance of an object. () in void SharpCap.BugReporting.SettingsOnProcessingException(Exception arg1, Report report)
Info 00:00:06.625000 #1 Changing camera from none to Apollo-M (IMX174) in void SharpCap.Models.Application.SelectNewCamera(Camera value)
Info 00:00:06.734000 #1 Plate solver detection : Manually configured Astrometry - Not configured in bool SharpCap.ImageProcessing.PlateSolving.CombinedPlateSolveFactory.CheckInstalledImpl()
Info 00:00:06.750000 #1 Plate solver detection : AstroTortilla - Not detected in bool SharpCap.ImageProcessing.PlateSolving.CombinedPlateSolveFactory.CheckInstalledImpl()
Info 00:00:06.750000 #1 Plate solver detection : All Sky Plate Solver - Not found at C:\Users\station\AppData\Local\Astrometry in bool SharpCap.ImageProcessing.PlateSolving.CombinedPlateSolveFactory.CheckInstalledImpl()
Info 00:00:06.750000 #1 Plate solver detection : Ansvr - Not found at C:\Users\station\AppData\Local\cygwin_ansvr in bool SharpCap.ImageProcessing.PlateSolving.CombinedPlateSolveFactory.CheckInstalledImpl()
Info 00:00:06.750000 #1 Plate solver detection : Cygwin/Astrometry based - Not found at C:\cygwin in bool SharpCap.ImageProcessing.PlateSolving.CombinedPlateSolveFactory.CheckInstalledImpl()
Info 00:00:06.750000 #1 Plate solver detection : Astap (manual location) - Not configured in bool SharpCap.ImageProcessing.PlateSolving.CombinedPlateSolveFactory.CheckInstalledImpl()
Info 00:00:06.750000 #1 Astap found at c:\Program Files\Astap\Astap.exe in bool SharpCap.ImageProcessing.PlateSolving.AstapPlateSolverFactoryBase.CheckInstalledImpl()
Info 00:00:06.750000 #1 Plate solver detection : Astap (auto-detect) - Found at c:\Program Files\Astap\Astap.exe in bool SharpCap.ImageProcessing.PlateSolving.CombinedPlateSolveFactory.CheckInstalledImpl()
Warning 00:00:06.765000 #18 Assembly Microsoft.GeneratedCode, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null loaded more than once in void SharpCap.Program.CurrentDomainOnAssemblyLoad(object sender, AssemblyLoadEventArgs assemblyLoadEventArgs)+(string _, Assembly a) => { } [1]
Info 00:00:06.781000 #1 Capture Event : OpeningDevice in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Info 00:00:06.781000 #1 OpeningDevice event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Debug 00:00:06.796000 #1 Opening device : Apollo-M (IMX174) (via Player One Cameras) in void SharpCap.MultiCaptureProvider.OpenDevice(DeviceTagData deviceTag, ISensorDataProvider sensorDataProvider)
Debug 00:00:06.796000 #1 Started void SharpCap.Base.CaptureProviderBase<T>.Initialize(IImageDisplay previewTargetWindow, ISensorDataProvider sensorDataProvider) in void SharpCap.Base.CaptureProviderBase<T>.Initialize(IImageDisplay previewTargetWindow, ISensorDataProvider sensorDataProvider)
Debug 00:00:06.796000 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.Initialize(IImageDisplay previewTargetWindow, ISensorDataProvider sensorDataProvider) in void SharpCap.Base.CaptureProviderBase<T>.Initialize(IImageDisplay previewTargetWindow, ISensorDataProvider sensorDataProvider)
Info 00:00:06.828000 #1 Started void SharpCap.Base.CaptureProviderBase<T>.OpenDevice(DeviceTagData dtd) in void SharpCap.Base.CaptureProviderBase<T>.OpenDevice(DeviceTagData dtd)
Debug 00:00:06.828000 #1 Started void SharpCap.Base.SimpleCaptureProvider.SetupDevice(DeviceTagData dtd) in void SharpCap.Base.SimpleCaptureProvider.SetupDevice(DeviceTagData dtd)
Info 00:00:06.859000 #1 Opening P1 Camera Apollo-M (IMX174) #0 on \\?\usb#vid_a0a0&pid_1741#5&14013d94&0&10#{5888d653-2297-f1dd-d39c-356271cec3b9} in new SharpCap.Cameras.P1.P1CameraProxy(DeviceTagData dtd)
Debug 00:00:06.875000 #18 Attempting to dump diagnostic thread state in string[] SharpCap.Base.ThreadDumper.GetThreadStacks()
Info 13:08:47.006667 #22 =='.NET TP Worker' (New Thread)