4.0b Crash when auto-upgrading from 4.0a

I'm using 4.0a and have set the update channel to beta. I was prompted for an update and chose to install. After the download finished, 4.0a promptly crashed. Here's the log:
2010-01-06 17:18:03.1840 1 Info MainWindow OnClosing canceled; calling Exit soon.
2010-01-06 17:18:03.3080 1 Info OurApp AppModel is exiting.
2010-01-06 17:18:03.3080 1 Info BitmapSourceUtility CreateApplicationScreenshot called for size (300,225)
2010-01-06 17:18:03.3280 1 Info BitmapSourceUtility Drawing window content into context at (0,20,1680,1000)
2010-01-06 17:18:03.3280 1 Info BitmapSourceUtility Rendering bitmap of width 300 and height 178, content bounds (0,20,1680,1000), scale 0.178571428571429
2010-01-06 17:18:03.6810 1 Info LDLS4.AppModel Closing 0 floating window models.
2010-01-06 17:18:03.6810 1 Info LDLS4.AppModel Closing main window model.
2010-01-06 17:18:03.7010 1 Info OurApp MainWindow changed to null, so shutting down soon.
2010-01-06 17:18:03.7010 1 Info OurApp Shutting down application.
2010-01-06 17:18:03.7010 1 Info OurApp Shutting down application.
2010-01-06 17:18:03.7010 1 Info OurApp Shutting down application.
2010-01-06 17:18:03.7010 1 Info OurApp Shutting down application.
2010-01-06 17:18:03.7010 1 Info MainWindow OnClosing not canceled; detaching from model.
2010-01-06 17:18:03.7010 1 Info OurApp OnExit exit code: 0
2010-01-06 17:18:03.7130 1 Info LDLS4.AppModel Disposing ExplainModel.
2010-01-06 17:18:03.7130 1 Info LDLS4.AppModel Disposing PanelSource.
2010-01-06 17:18:03.7130 1 Info LDLS4.AppModel Disposing DigitalLibraryServices.
2010-01-06 17:18:03.9871 1 Error OurApp Unhandled exception: System.InvalidOperationException: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
at System.Windows.Forms.Control.WaitForWaitHandle(WaitHandle waitHandle)
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at System.Windows.Forms.Control.Invoke(Delegate method)
at Libronix.Utility.Windows.GlobalHotKeys.Dispose()
at Libronix.Utility.DisposableUtility.Dispose[T](T& obj)
at LDLS4.GlobalHotKeysManager.Dispose()
at Libronix.Utility.DisposableUtility.Dispose[T](T& obj)
at LDLS4.AppModel.Dispose()
at LDLS4.OurApp.OnExit(ExitEventArgs e)
at System.Windows.Application.DoShutdown()
at System.Windows.Application.ShutdownImpl()
at System.Windows.Application.ShutdownCallback(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext 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, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
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.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at LDLS4.OurApp.InitializeAndRun(ReadOnlyCollection`1 listArgs, SingleInstanceManager sim)
at LDLS4.OurApp.Main(String[] astrArgs)
This is my personal Faithlife account. On 1 March 2022, I started working for Faithlife, and have a new 'official' user account. Posts on this account shouldn't be taken as official Faithlife views!
Comments
-
Mark Barnes said:
I'm using 4.0a and have set the update channel to beta. I was prompted for an update and chose to install. After the download finished, 4.0a promptly crashed. Here's the log:
Thanks for the report; this bug is already fixed in 4.0b. ("Fixed InvalidOperationException shutting down the application" listed at http://community.logos.com/forums/t/8859.aspx)
0 -
I hate to say it, but I just got this closing 4.0b:
2010-01-06 20:48:07.6899 1 Error OurApp Unhandled exception: System.InvalidOperationException: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
at System.Windows.Forms.Control.WaitForWaitHandle(WaitHandle waitHandle)
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at System.Windows.Forms.Control.Invoke(Delegate method)
at Libronix.Utility.Windows.GlobalHotKeys.Dispose()
at Libronix.Utility.DisposableUtility.Dispose[T](T& obj)
at LDLS4.GlobalHotKeysManager.Dispose()
at Libronix.Utility.DisposableUtility.Dispose[T](T& obj)
at LDLS4.AppModel.Dispose()
at LDLS4.OurApp.OnExit(ExitEventArgs e)
at System.Windows.Application.DoShutdown()
at System.Windows.Application.ShutdownImpl()
at System.Windows.Application.ShutdownCallback(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext 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, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
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.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at LDLS4.OurApp.InitializeAndRun(ReadOnlyCollection`1 listArgs, SingleInstanceManager sim)
at LDLS4.OurApp.Main(String[] astrArgs)This is my personal Faithlife account. On 1 March 2022, I started working for Faithlife, and have a new 'official' user account. Posts on this account shouldn't be taken as official Faithlife views!
0 -
Mark,
Try using this link to update to the 4.0b Beta: http://downloads.logos.com/LBS4/InstallerBeta/Logos4Setup.exe. (Your log excerpt doesn't show build, so since the error is similar to your earlier error, I'm assuming update may have not installed properly.)
Melissa
0 -
Mark Barnes said:
I hate to say it, but I just got this closing 4.0b:
2010-01-06 20:48:07.6899 1 Error OurApp Unhandled exception: System.InvalidOperationException: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
We couldn't reproduce the problem, but based our fix on the error message (from Windows Forms) given in that exception. Further inspection makes it appear that the message is wrong, because the internal error code is ErrorNoMarshallingThread, which seems like a completely different error. I'll reactivate the case and we'll try to fix it again.
0 -
Bradley Grainger said:
Further inspection makes it appear that the message is wrong, because the internal error code is ErrorNoMarshallingThread, which seems like a completely different error.
We've implemented a new fix in 4.0b Beta 2; please let us know if there's still a problem.
I also filed a bug about the issue with Microsoft: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=523536#details
0