Crash in FramingAssistant Nina 3.0

Issue #1270 resolved
krz created an issue

Using latest nightly NINA crashes in framing assistant. Right when I started to zoom into target acquired from stellarium

2023-11-26T05:14:50.5912|INFO|CameraChooserVM.cs|GetEquipment|159|Found 0 ToupTek Cameras
2023-11-26T05:14:50.6029|INFO|CameraChooserVM.cs|GetEquipment|171|Found 0 Ogma Cameras
2023-11-26T05:14:50.6159|INFO|CameraChooserVM.cs|GetEquipment|183|Found 0 Omegon Cameras
2023-11-26T05:14:50.6995|INFO|CameraChooserVM.cs|GetEquipment|195|Found 0 RisingCam Cameras
2023-11-26T05:14:50.7124|INFO|CameraChooserVM.cs|GetEquipment|207|Found 0 MallinCam Cameras
2023-11-26T05:14:50.7132|INFO|CameraChooserVM.cs|GetEquipment|230|Found 0 SBIG Cameras
2023-11-26T05:14:50.8951|INFO|PluginLoader.cs|LoadPlugin|415|Successfully loaded plugin Hocus Focus version 3.0.0.13 by George Hilios (jokogeo)
2023-11-26T05:14:50.9138|INFO|PluginLoader.cs|LoadPlugin|415|Successfully loaded plugin JustTrainedDarkFlatExposure version 2.0.0.0 by naixx
2023-11-26T05:14:50.9182|ERROR|SitesPlugin.cs|.ctor|80|----------------->
2023-11-26T05:14:50.9308|INFO|PluginLoader.cs|LoadPlugin|415|Successfully loaded plugin Sites Plugin version 1.0.1.0 by Francisco Moraes
2023-11-26T05:14:50.9349|INFO|PluginFetcher.cs|RequestAll|43|Fetching plugin manifests from https://nighttime-imaging.eu/wp-json/nina/v1/plugins/manifest
2023-11-26T05:14:50.9552|INFO|CameraChooserVM.cs|GetEquipment|250|Found 0 SVBony Cameras
2023-11-26T05:14:50.9590|INFO|CameraChooserVM.cs|GetEquipment|250|Found 0 PlayerOne Cameras
2023-11-26T05:14:50.9683|INFO|CameraChooserVM.cs|GetEquipment|250|Found 0 ASTPAN Cameras
2023-11-26T05:14:50.9694|INFO|CameraChooserVM.cs|GetEquipment|263|Found 0 ASCOM Cameras
2023-11-26T05:14:50.9715|INFO|CameraChooserVM.cs|GetEquipment|276|Found 0 Canon Cameras
2023-11-26T05:14:51.5225|INFO|PluginFetcher.cs|RequestAll|57|Found 50 valid plugins at https://nighttime-imaging.eu/wp-json/nina/v1/plugins/manifest
2023-11-26T05:15:11.9187|ERROR|BasicQuery.cs|SendQuery|44|TcpRaw: Error connecting to localhost:3292: System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
   at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task)
   at NINA.Core.Utility.TcpRaw.BasicQuery.SendQuery() in C:\Projects\nina\NINA.Core\Utility\TcpRaw\BasicQuery.cs:line 42
2023-11-26T05:15:11.9197|ERROR|CartesDuCiel.cs|GetTarget|79
System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
   at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task)
   at NINA.Core.Utility.TcpRaw.BasicQuery.SendQuery() in C:\Projects\nina\NINA.Core\Utility\TcpRaw\BasicQuery.cs:line 42
   at NINA.Equipment.Equipment.MyPlanetarium.CartesDuCiel.GetTarget() in C:\Projects\nina\NINA.Equipment\Equipment\MyPlanetarium\CartesDuCiel.cs:line 51
2023-11-26T05:15:11.9224|ERROR|FramingAssistantVM.cs|CoordsFromPlanetarium|1516|Failed to get coordinates from Cartes Du Ciel: System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
   at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task)
   at NINA.Core.Utility.TcpRaw.BasicQuery.SendQuery() in C:\Projects\nina\NINA.Core\Utility\TcpRaw\BasicQuery.cs:line 42
   at NINA.Equipment.Equipment.MyPlanetarium.CartesDuCiel.GetTarget() in C:\Projects\nina\NINA.Equipment\Equipment\MyPlanetarium\CartesDuCiel.cs:line 51
   at NINA.ViewModel.FramingAssistant.FramingAssistantVM.CoordsFromPlanetarium() in C:\Projects\nina\NINA\ViewModel\FramingAssistant\FramingAssistantVM.cs:line 1495
2023-11-26T05:15:32.4502|INFO|FramingAssistantVM.cs|LoadImage|1072|Loading image from source HIPS2FITS with field of view 3° for coordinates RA: 22:14:55; Dec: 73° 25' 22"; Epoch: J2000
2023-11-26T05:15:58.8473|INFO|FramingAssistantVM.cs|LoadImage|1072|Loading image from source SKYATLAS with field of view 3° for coordinates RA: 22:14:55; Dec: 73° 25' 22"; Epoch: J2000
2023-11-26T05:16:17.4956|INFO|FramingAssistantVM.cs|LoadImage|1072|Loading image from source SKYATLAS with field of view 35° for coordinates RA: 22:14:55; Dec: 73° 25' 22"; Epoch: J2000
2023-11-26T05:16:30.2096|ERROR|App.xaml.cs|Current_DispatcherUnhandledException|224|An unhandled exception has occurred of type System.InvalidOperationException
2023-11-26T05:16:30.2098|ERROR|App.xaml.cs|Current_DispatcherUnhandledException|229
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Linq.Enumerable.Aggregate[TSource](IEnumerable`1 source, Func`3 func)
   at NINA.WPF.Base.Model.FramingAssistant.FrameLineMatrix2.CalculateDecPoints(Double dec) in C:\Projects\nina\NINA.WPF.Base\Model\FramingAssistant\FrameLineMatrix2.cs:line 195
   at NINA.WPF.Base.Model.FramingAssistant.FrameLineMatrix2.CalculatePoints(ViewportFoV viewport) in C:\Projects\nina\NINA.WPF.Base\Model\FramingAssistant\FrameLineMatrix2.cs:line 130
   at NINA.ViewModel.FramingAssistant.SkyMapAnnotator.ChangeFoV(Double vFoVDegrees) in C:\Projects\nina\NINA\ViewModel\FramingAssistant\SkyMapAnnotator.cs:line 112
   at NINA.ViewModel.FramingAssistant.FramingAssistantVM.MouseWheel(Object obj) in C:\Projects\nina\NINA\ViewModel\FramingAssistant\FramingAssistantVM.cs:line 474
   at NINA.WPF.Base.Behaviors.MouseWheelCommandBehavior.ElementMouseWheel(Object sender, MouseWheelEventArgs e) in C:\Projects\nina\NINA.WPF.Base\Behaviors\MouseWheelCommandBehavior.cs:line 76
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   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)

Comments (3)

  1. Log in to comment