NINA crashed during night run

Issue #597 resolved
Daniel Lorenzo created an issue

This morning, noticed that NINA had crashed during the night run.

This error occurred after 3am, 31 times in milliseconds intervals, like in a loop, unhandled exception:

[2020-07-31T03:14:01.2806]   [ERROR]     [MemberName] Application_DispatcherUnhandledException
[2020-07-31T03:14:01.2806]   [ERROR]     [FileName] E:\Projects\nina\NINA\App.xaml.cs
[2020-07-31T03:14:01.2806]   [ERROR]     [Message] UCEERR_RENDERTHREADFAILURE (Exception from HRESULT: 0x88980406)     at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
   at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)
   at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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)

The rest of the system was stable and latest captured 5min subs flawless.

Attached the logs.

PS: The level is currently set to INFO. Should I set to a different level for the next runs?

Comments (9)

  1. Stefan B repo owner

    Hmm - Never encountered this issue.

    It seems to be a bug in the WPF framework which N.I.N.A. can do nothing about.

  2. Daniel Lorenzo reporter

    Would it be useful to run at a more verbose log level in the future to better troubleshoot?

       at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)
       at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
    

    I’m runnning NINA on a headless computer, which I access using a Remote Desktop connection. I’m wondering if window/screen resized when closing session or client computer wen to sleep caused some error. I will try to reproduce the problem…

  3. Stefan B repo owner

    Before i start a ghost hunt, did you make sure that your operating system is up to date as well as your video card drivers?

  4. Daniel Lorenzo reporter

    No discrete GPU is installed on the machine, and Windows Update did not indicated update for the APU

    However, there was an update for .NET framework, and I applied it.

    I turned logs to “trace” and will test it out. Will get back with results.

  5. Daniel Lorenzo reporter

    Last night was all right and it survived 24h after that. Closing.. I’ll leave the logs at trace and post an issue if more trouble.

  6. Daniel Lorenzo reporter

    Just to follow up, NINA app was never closed multiple days in a row and imaging multiple nights without crashing.

  7. Log in to comment