NINA Crash After Focus Change Windows 11

Issue #1236 resolved
Matthew Nogas created an issue

I’m seeing NINA crash on Windows 11 with the error below after setting focus using a plugin I made for ISSI EF Lens Controller. The lens successfully changes focus but then NINA hangs with a loading spinner and then crashes.
Everything works fine on my Windows 10 setup. Tested with multiple lens on both Windows machines with the same result

NINA version: 2.2.0.9001

2023-06-25T15:31:33.7227|ERROR|HttpGetRequest.cs|Request|64|https://nighttime-imaging.eu/wp-json/nina/v1/plugins/manifest System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 188.68.47.126:443
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NINA.Core.Utility.Http.HttpGetRequest.<Request>d__6.MoveNext() in C:\Projects\nina\NINA.Core\Utility\Http\HttpGetRequest.cs:line 58
2023-06-25T15:31:33.7238|ERROR|PluginFetcher.cs|RequestAll|57
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 188.68.47.126:443
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NINA.Core.Utility.Http.HttpGetRequest.<Request>d__6.MoveNext() in C:\Projects\nina\NINA.Core\Utility\Http\HttpGetRequest.cs:line 70
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NINA.Plugin.PluginFetcher.<>c__DisplayClass2_0.<<RequestAll>b__0>d.MoveNext() in C:\Projects\nina\NINA.Plugin\PluginFetcher.cs:line 43
2023-06-25T15:31:33.7364|ERROR|PluginsVM.cs|FetchPlugins|254|Failed to fetch plugins from nighttime-imaging.eu
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 188.68.47.126:443
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NINA.Core.Utility.Http.HttpGetRequest.<Request>d__6.MoveNext() in C:\Projects\nina\NINA.Core\Utility\Http\HttpGetRequest.cs:line 70
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NINA.Plugin.PluginFetcher.<>c__DisplayClass2_0.<<RequestAll>b__0>d.MoveNext() in C:\Projects\nina\NINA.Plugin\PluginFetcher.cs:line 58
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NINA.Plugin.PluginFetcher.<RequestAll>d__2.MoveNext() in C:\Projects\nina\NINA.Plugin\PluginFetcher.cs:line 38
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at NINA.ViewModel.Plugins.PluginsVM.<FetchPlugins>d__62.MoveNext() in C:\Projects\nina\NINA\ViewModel\Plugins\PluginsVM.cs:line 251

Comments (7)

  1. Stefan B repo owner

    Hi,

    the logged errors are not related to the crash. A hard crash is most likely not logged anyways as the application is crashing including the log stream.
    To get more info about the issue you can look into the windows event viewer: https://nighttime-imaging.eu/docs/master/site/troubleshooting/general/#event-viewer

    If there is more info about it please include it in the report - it looks however like the focus driver is crashing and taking the application with it.

  2. Matthew Nogas reporter

    Got it thanks for the link. I will need to check this when I get access to the Windows 11 system again.
    Any idea why Windows 10 would be working but not Windows 11?

  3. Log in to comment