09-23-2021 05:38 PM
If I persevere and retry I get past this but it's a major nuisance.
Internal error from FlexLogger
Message:
Error message:
'NaN' is not a valid value for property 'Value'.
Exception:
ArgumentException
Suggestion:
Contact National Instruments to report this error
Stack trace:
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at NationalInstruments.Hmi.Core.Controls.ViewModels.ProgressBarChannelControlViewModelImplementation`1.UpdateViewValue(Object view, Object newValue)
at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
at NationalInstruments.Hmi.Core.Controls.Models.ChannelControlModelImplementation`1.<>c__DisplayClass73_0.<InvokeScreenUpdateWork>b__0()
at NationalInstruments.Hmi.Core.Screen.ActionCollator.ProcessPendingDataChanges(Boolean forRender)
at NationalInstruments.Hmi.Core.Screen.ActionCollatorRenderNotifier.FireNotifications()
at NationalInstruments.Hmi.Core.Screen.ActionCollatorRenderNotifier.RenderingCallback(Object sender, EventArgs e)
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
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)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(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)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.ShowDialog()
at NationalInstruments.Core.BaseWindow.ShowCore(DependencyObject reference, Object userState, ICompositionHost host, Boolean isModal, DialogCloseHandler closeHandler)
at NationalInstruments.Core.NIMessageBoxWindow.Show(DependencyObject reference, DialogCloseHandler closeHandler, Object userState, ICompositionHost host, Boolean isModal)
at NationalInstruments.Core.NIMessageBoxWindow.ShowModal(DependencyObject reference, DialogCloseHandler closeHandler, Object userState, ICompositionHost host)
at NationalInstruments.Shell.DocumentEditSite.<>c__DisplayClass73_1.<ShowBusyDialogAsync>b__1()
at NationalInstruments.Core.DispatcherExtensions.CheckValidityThenInvoke(DispatcherPriority priority, String description, CheckAsyncOperationValid isValid, Boolean isInvoke, Action action)
at NationalInstruments.Core.DispatcherExtensions.<>c__DisplayClass4_0.<BeginInvoke>b__0()
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)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(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)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at NationalInstruments.Shell.ShellApplication.RunInitialApplicationCore(CommandLineArguments commandLineArguments, StartupInfo startupInfo)
at NationalInstruments.Shell.ShellApplication.RunWith(StartupInfo startupInfo, String commandLine)
09-24-2021 08:26 AM - edited 09-24-2021 08:28 AM
I believe this will be fixed in the next version of FlexLogger coming out sometime in October. We fixed a crash caused by NaN temporarily being set on a Progress Bar on the screen tab while loading, which sounds like what this crash trace is describing.
Let us know if you continue to have problems after upgrading to the upcoming version when it's available.
Thanks,
Brad
09-24-2021 04:28 PM
Thanks, any workaround suggestions in the meantime?
09-24-2021 04:41 PM
The workaround is to not use a Progress Bar in the Screen UI until you upgrade to the upcoming FlexLogger with the fix.
Sorry I don't have a better answer, but hope this helps,
Brad
09-24-2021 04:50 PM
It certainly does help, thankyou! The progress bar is far less critical than reliable startup. I shall remove it for now.