BUG: v4.0.7483 brain bug crash with colour camera

Discussions, Bug Reports and Issues related to Beta versions of SharpCap
Post Reply
celkins
Posts: 130
Joined: Fri Apr 20, 2018 10:58 pm

BUG: v4.0.7483 brain bug crash with colour camera

#1

Post by celkins »

Robin,
thre should be a couple of reports of this readily reproducible bug in the latest download: please find most recent log snippet here...

Code: Select all

Debug  	20:51:57.437008	#1 	Started void SharpCap.ViewModels.MountViewModel.Initialize()															in void SharpCap.ViewModels.MountViewModel.Initialize()
Info   	20:51:57.437008	#1 	Dispatcher disable count is 0																							in void SharpCap.ViewModels.MountViewModel.Initialize()
Info   	20:51:57.461010	#1 	Axis 0 has 1 slew rates.																								in Tuple<double, double>[] SharpCap.MountProxy.ASCOM.MountWrapper.GetSlewRatesViaIndexing(int axis)
Info   	20:51:57.464008	#1 	Slew rates are : 0-4																									in Tuple<double, double>[] SharpCap.MountProxy.ASCOM.MountWrapper.GetSlewRatesViaIndexing(int axis)
Info   	20:51:57.476008	#1 	Axis 1 has 1 slew rates.																								in Tuple<double, double>[] SharpCap.MountProxy.ASCOM.MountWrapper.GetSlewRatesViaIndexing(int axis)
Info   	20:51:57.479007	#1 	Slew rates are : 0-4																									in Tuple<double, double>[] SharpCap.MountProxy.ASCOM.MountWrapper.GetSlewRatesViaIndexing(int axis)
Info   	20:51:57.493008	#1 	Testing slew rates for availability : 1, 2, 4, 16, 60, 120, 239.3447, 480, 720, 960, 1920, 4800, 9600, 12000			in IEnumerable<double> SharpCap.MountProxy.ASCOM.MountWrapper.GetSlewRates()
Info   	20:51:57.496007	#1 	Slew rate of 960 is not allowed for axis 0																				in bool SharpCap.MountProxy.ASCOM.MountWrapper.IsAllowed(double d, Tuple<double, double>[] axisRates, int i)
Info   	20:51:57.497008	#1 	Slew rate of 1920 is not allowed for axis 0																				in bool SharpCap.MountProxy.ASCOM.MountWrapper.IsAllowed(double d, Tuple<double, double>[] axisRates, int i)
Info   	20:51:57.497008	#1 	Slew rate of 4800 is not allowed for axis 0																				in bool SharpCap.MountProxy.ASCOM.MountWrapper.IsAllowed(double d, Tuple<double, double>[] axisRates, int i)
Info   	20:51:57.497008	#1 	Slew rate of 9600 is not allowed for axis 0																				in bool SharpCap.MountProxy.ASCOM.MountWrapper.IsAllowed(double d, Tuple<double, double>[] axisRates, int i)
Info   	20:51:57.498008	#1 	Slew rate of 12000 is not allowed for axis 0																			in bool SharpCap.MountProxy.ASCOM.MountWrapper.IsAllowed(double d, Tuple<double, double>[] axisRates, int i)
Info   	20:51:57.498008	#1 	Celestron Telescope Driver has 9 available slew rates.																	in ObservableCollection<MountRate> SharpCap.ViewModels.MountViewModel.CreateRates()
Info   	20:51:57.499008	#1 	Slew rates set																											in void SharpCap.ViewModels.MountViewModel.Initialize()
Debug  	20:51:57.577006	#1 	Ended void SharpCap.ViewModels.MountViewModel.Initialize()																in void SharpCap.ViewModels.MountViewModel.Initialize()
Info   	20:52:10.011903	#1 	Target name changed to C																								in void SharpCap.Models.Application.set_TargetName(string value)
Info   	20:52:10.803462	#1 	Target name changed to C4																								in void SharpCap.Models.Application.set_TargetName(string value)
Info   	20:52:11.068579	#1 	Target name changed to C48																								in void SharpCap.Models.Application.set_TargetName(string value)
Info   	20:52:30.920837	#1 	Toolbar/Menu input : SharpCap.ViewModels.Actions.TransformAction Histogram executing									in async Task SharpCap.ViewModels.UIAction.Execute()
Info   	20:52:30.921836	#1 	Changing transform from None to Histogram due to button click on Histogram												in void SharpCap.ViewModels.Actions.TransformAction.ExecuteSync()
Info   	20:52:30.921836	#1 	Selecting transform Histogram																							in void SharpCap.Models.Transforms.set_SelectedTransform(ITransform value)
Info   	20:52:31.186833	#1 	Toolbar/Menu input : SharpCap.ViewModels.Actions.TransformAction Histogram complete										in async Task SharpCap.ViewModels.UIAction.Execute()
Info   	20:52:38.730979	#1 	Exception Preprocessing on System.ArgumentException 'Object must be an array of primitives.
Parameter name: dest'				in Exception SharpCap.BugReporting.PreprocessException(Exception arg)
Warning	20:52:38.750980	#1 	Creating bug report due to exception :  : Exception of type 'ArgumentException' : Object must be an array of primitives.
Parameter name: dest 
Stack Trace:   at void Buffer.BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
   at - ‬​‭‌‬‏​‏‏‬‍‪‮​‏‮‭‮‏‬​‭‎‮<->(uint) in e:/Source/Public/Confuser2/Confuser.Runtime/Constant.cs:line 65
   at void SharpCap.FrameTransforms.Histogram.BrainViewModel.UpdateMeasurementOptions() in C:/Documents/Source Code/SharpCap/src/SharpCap/FrameTransforms/Histogram/BrainViewModel.cs:line 140
   at new SharpCap.FrameTransforms.Histogram.BrainViewModel(SmartHistogramModel model) in C:/Documents/Source Code/SharpCap/src/SharpCap/FrameTransforms/Histogram/BrainViewModel.cs:line 113
   at void SharpCap.FrameTransforms.Histogram.SmartHistogramViewModel.ShowBrain() in C:/Documents/Source Code/SharpCap/src/SharpCap/FrameTransforms/Histogram/SmartHistogramViewModel.cs:line 29
   at void MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, bool userInitiated)
   at void System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at void System.Windows.Controls.Button.OnClick()
   at void System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at void System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, object target)
   at void System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, RoutedEventArgs routedEventArgs)
   at void System.Windows.EventRoute.InvokeHandlersImpl(object source, RoutedEventArgs args, bool reRaised)
   at void System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at void System.Windows.UIElement.OnMouseUpThunk(object sender, MouseButtonEventArgs e)
   at void System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, object target)
   at void System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, RoutedEventArgs routedEventArgs)
   at void System.Windows.EventRoute.InvokeHandlersImpl(object source, RoutedEventArgs args, bool reRaised)
   at void System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at void System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at bool System.Windows.Input.InputManager.ProcessStagingArea()
   at bool System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at bool System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at bool System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, int timestamp, RawMouseActions actions, int x, int y, int wheel)
   at IntPtr System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, ref bool handled)
   at IntPtr System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
   at IntPtr MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
   at object MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o)
   at object System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, object args, int numArgs)
   at object System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, Delegate callback, object args, int numArgs, Delegate catchHandler)			in ExecutionFlow NBug.Core.Reporting.BugReport.Report(Exception exception, ExceptionThread exceptionThread)
Warning	20:52:38.782977	#1 	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 s, Assembly a) => { } [1]
Warning	20:52:41.337218	#24	Fetching still frame from ZWO camera failed with ExpFailed, exposure is 4000, timeout is 9400							in bool SharpCap.Cameras.ASI.ASICameraProxy.GetFrameData(int timeout, BufferFrame frame, CancellationToken cancellationToken)
Warning	20:53:43.794992	#1 	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 s, Assembly a) => { } [1]
Warning	20:53:43.842993	#1 	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 s, Assembly a) => { } [1]
Warning	20:53:44.844514	#7 	Cannot post UI thread completion - maybe shutting down? : Exception of type 'InvalidOperationException' : Invoke or BeginInvoke cannot be called on a control until the window handle has been created. 
Stack Trace:   at object System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, object[] args, bool synchronous)
   at IAsyncResult System.Windows.Forms.Control.BeginInvoke(Delegate method, params object[] args)
   at void System.Windows.Forms.WindowsFormsSynchronizationContext.Post(SendOrPostCallback d, object state)
   at void SharpCap.Base.SynchronizationContextAwaiter.OnCompleted(Action continuation)				in void System.Runtime.CompilerServices.AsyncTaskMethodBuilder<TResult>.AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine)
   
User avatar
admin
Site Admin
Posts: 13681
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: BUG: v4.0.7483 brain bug crash with colour camera

#2

Post by admin »

Eeek, that only happens in the installed version, not in my internal testing of the code. Will investigate!

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

Re: BUG: v4.0.7483 brain bug crash with colour camera

#3

Post by admin »

Hi,

new version uploaded that fixes this issue.

cheers,

Robin
celkins
Posts: 130
Joined: Fri Apr 20, 2018 10:58 pm

Re: BUG: v4.0.7483 brain bug crash with colour camera

#4

Post by celkins »

Thanks, Robin.
Post Reply