MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
454 stars 55 forks source link

Dispose error: The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F) #1767

Open fdzatdtv opened 3 years ago

fdzatdtv commented 3 years ago

Description The exception occurs within the main UI thread when closing the application or form. There is an older issue (#349) that was closed. But it seems that the bug is still there. The exception happens during Dispose(). Not sure whether this is the first call to Dispose or if it's another call to Dispose. System.Runtime.InteropServices.COMException: The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F)

Stacktrace: at Microsoft.Web.WebView2.Core.Raw.ICoreWebView2.remove_NavigationCompleted(EventRegistrationToken token) at Microsoft.Web.WebView2.Core.CoreWebView2.remove_NavigationCompleted(EventHandler`1 value) at Microsoft.Web.WebView2.WinForms.WebView2.UnsubscribeHandlersAndCloseController() at Microsoft.Web.WebView2.WinForms.WebView2.Dispose(Boolean disposing) at System.ComponentModel.Component.Dispose() at System.Windows.Forms.Control.Dispose(Boolean disposing) ...

Version SDK: 1.0.705.50 Runtime: Evergreen 93.0.961.38 Framework: WinForms (x86), .NET Framework 4.8 OS:

Repro Steps When closing the application or form.

Screenshots

Additional context

champnic commented 3 years ago

@fdzatdtv Thanks for the bug report Carlos! My guess is that this is from a subsequent call to Dispose. Do you have a sample app or sample code that can reproduce this issue?

fdzatdtv commented 3 years ago

@champnic I've checked our code now. We have a guard in Dispose(bool) which ensures that the underlying Dispose is called only once. Setting our bool flag to true is done in a finally block. So, our guard works even in case of an exception during Dispose().

So, any thoughts why Microsoft.Web.WebView2.Core.Raw.ICoreWebView2.remove_NavigationCompleted is crashing?

champnic commented 3 years ago

What thread is dispose being called on? It needs to be called from the same thread that created the WebView2. Of note, the finalizer often runs on a background thread, so if you are relying on that to call dispose that may be the cause here.

AndrewMore1 commented 3 years ago

Seeing a similar issue when running a WebView2 control in a panel in Word.

CoreWebView2 members cannot be accessed after the WebView2 control is disposed.

** Exception Text ** System.InvalidOperationException: CoreWebView2 members cannot be accessed after the WebView2 control is disposed. ---> System.Runtime.InteropServices.COMException: The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F) at Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Controller.set_IsVisible(Int32 IsVisible) at Microsoft.Web.WebView2.Core.CoreWebView2Controller.set_IsVisible(Boolean value) --- End of inner exception stack trace --- at Microsoft.Web.WebView2.Core.CoreWebView2Controller.set_IsVisible(Boolean value) at Microsoft.Web.WebView2.Wpf.WebView2.UIElement_IsVisibleChanged(Object sender, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyPropertyChangedEventHandler.Invoke(Object sender, DependencyPropertyChangedEventArgs e) at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(DependencyProperty property) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(DependencyProperty property) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(DependencyProperty property) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(DependencyProperty property) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(DependencyProperty property) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(DependencyProperty property) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(DependencyProperty property) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(DependencyProperty property) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(DependencyProperty property) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(DependencyProperty property) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(DependencyProperty property) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(DependencyProperty property) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot) at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at System.Windows.Interop.HwndSource.Dispose(Boolean disposing) at System.Windows.Interop.HwndSource.OnHwndDisposed(Object sender, EventArgs args) at MS.Win32.HwndWrapper.Dispose(Boolean disposing, Boolean isHwndBeingDestroyed) 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)

** Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

Microsoft.VisualStudio.Tools.Office.Runtime Assembly Version: 10.0.0.0 Win32 Version: 10.0.60828.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.dll

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.8.4320.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System Assembly Version: 4.0.0.0 Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Security Assembly Version: 4.0.0.0 Win32 Version: 4.8.4261.0 built by: NET48REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll

Microsoft.VisualStudio.Tools.Applications.Hosting Assembly Version: 10.0.0.0 Win32 Version: 10.0.60828.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.dll

Microsoft.VisualStudio.Tools.Applications.Runtime Assembly Version: 10.0.0.0 Win32 Version: 10.0.60828.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll

System.Deployment Assembly Version: 4.0.0.0 Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll

Microsoft.VisualStudio.Tools.Applications.ServerDocument Assembly Version: 10.0.0.0 Win32 Version: 10.0.60828.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Xml.Linq Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

Microsoft.Office.Tools Assembly Version: 10.0.0.0 Win32 Version: 10.0.60828.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.dll

Microsoft.Office.Tools.Word.Implementation Assembly Version: 10.0.0.0 Win32 Version: 10.0.60828.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Word.Implementation/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Word.Implementation.dll

Microsoft.Office.Tools.Common.Implementation Assembly Version: 10.0.0.0 Win32 Version: 10.0.60828.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Common.Implementation/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.Implementation.dll

Microsoft.Office.Tools.Common Assembly Version: 10.0.0.0 Win32 Version: 10.0.60828.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Common/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.dll

Microsoft.Office.Tools.Word Assembly Version: 10.0.0.0 Win32 Version: 10.0.60828.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Word/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Word.dll

TcWordAddin Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcWordAddin.DLL

Microsoft.Office.Tools.Common.v4.0.Utilities Assembly Version: 10.0.0.0 Win32 Version: 10.0.30319.1 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/Microsoft.Office.Tools.Common.v4.0.Utilities.DLL

TcFxOffice Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcFxOffice.DLL

TcFxCommon Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcFxCommon.DLL

TcFxBase Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcFxBase.DLL

Serilog Assembly Version: 2.0.0.0 Win32 Version: 2.10.0.0 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/Serilog.DLL

Serilog.Sinks.Debug Assembly Version: 1.0.1.0 Win32 Version: 1.0.1.0 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/Serilog.Sinks.Debug.DLL

Serilog.Sinks.File Assembly Version: 2.0.0.0 Win32 Version: 4.1.0.0 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/Serilog.Sinks.File.DLL

Serilog.Settings.AppSettings Assembly Version: 2.0.0.0 Win32 Version: 2.2.2.0 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/Serilog.Settings.AppSettings.DLL

TcAppCommon Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcAppCommon.DLL

Microsoft.Office.Interop.Word Assembly Version: 15.0.0.0 Win32 Version: 15.0.4603.1000 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Interop.Word/15.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Word.dll

PresentationFramework Assembly Version: 4.0.0.0 Win32 Version: 4.8.4320.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll

WindowsBase Assembly Version: 4.0.0.0 Win32 Version: 4.8.4320.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll

PresentationCore Assembly Version: 4.0.0.0 Win32 Version: 4.8.4320.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll

System.Xaml Assembly Version: 4.0.0.0 Win32 Version: 4.8.4320.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll

System.Runtime.Serialization Assembly Version: 4.0.0.0 Win32 Version: 4.8.4250.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

PresentationFramework.Aero2 Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll

System.ComponentModel.Composition Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll

TcDocMgmt Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcDocMgmt.DLL

TcAppCommon_Contracts Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcAppCommon_Contracts.DLL

TcMarkup Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcMarkup.DLL

TcMarkup_Word Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcMarkup_Word.DLL

TcAttributeExchange Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcAttributeExchange.DLL

TcAttrExchange_Word Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcAttrExchange_Word.DLL

TcReq_Presentation Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcReq_Presentation.DLL

TcReq_Infrastructure Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcReq_Infrastructure.DLL

TcSoaCommon Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcSoaCommon.DLL

WpfWebContentHosting Assembly Version: 5.1.0.0 Win32 Version: 5.1.2020051600 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/WpfWebContentHosting.DLL

TcSoaClient Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcSoaClient.DLL

Newtonsoft.Json Assembly Version: 6.0.0.0 Win32 Version: 6.0.4.17603 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/Newtonsoft.Json.DLL

applauncher Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/applauncher.DLL

TcServerNetBindingInterface40 Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcServerNetBindingInterface40.DLL

Teamcenter_SSOloader Assembly Version: 13.3.0.0 Win32 Version: 13.3 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/Teamcenter_SSOloader.DLL

PresentationFramework-SystemXmlLinq Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXmlLinq/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXmlLinq.dll

PresentationFramework-SystemXml Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll

UIAutomationTypes Assembly Version: 4.0.0.0 Win32 Version: 4.8.4320.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll

UIAutomationProvider Assembly Version: 4.0.0.0 Win32 Version: 4.8.4320.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

TcMemNetBindingInterface40 Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcMemNetBindingInterface40.DLL

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

TcMemNetBinding40 Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcMemNetBinding40.DLL

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

TcSoaCoreLoose Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcSoaCoreLoose.DLL

TcSoaFMS Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcSoaFMS.DLL

FCCNetClientProxy40 Assembly Version: 11.1.0.0 Win32 Version: CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/FCCNetClientProxy40.DLL

System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

TcSoaAdministrationLoose Assembly Version: 13000.3.0.0 Win32 Version: 13000.3.0.2021092700 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/TcSoaAdministrationLoose.DLL

Microsoft.Web.WebView2.Wpf Assembly Version: 1.0.902.49 Win32 Version: 1.0.902.49 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/Microsoft.Web.WebView2.Wpf.DLL

Microsoft.Web.WebView2.Core Assembly Version: 1.0.902.49 Win32 Version: 1.0.902.49 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/Microsoft.Web.WebView2.Core.DLL

WindowsFormsIntegration Assembly Version: 4.0.0.0 Win32 Version: 4.8.4150.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll

Accessibility Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

PresentationFramework-SystemData Assembly Version: 4.0.0.0 Win32 Version: 4.8.4320.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemData/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemData.dll

HostingServices Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0 CodeBase: file:///C:/udu/more_tc13.3_new/out/net/netclient/addins/HostingServices.DLL

SMDiagnostics Assembly Version: 4.0.0.0 Win32 Version: 4.8.4250.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll

System.ServiceModel.Internals Assembly Version: 4.0.0.0 Win32 Version: 4.8.4250.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll

fdzatdtv commented 3 years ago

@champnic It is the main thread, not the finalizer thread, where Dispose was called. We've collected more than thousand of the same callstack.

champnic commented 3 years ago

@fdzatdtv And is that the same thread that you created the WebView2 control on? Is this a consistent repro that happens every time you close the form? Is there code you can share or a sample app we can use to try and debug this issue?

fdzatdtv commented 2 years ago

Hi @champnic, since we ship our application built against SDK 1.0.1054.31 we register a lot less exceptions of this kind. But they're not gone. It doesn't happen every time the form is closed. Otherwise we would have massive regristrations. The WebView2 is created in the main thread and the exception callstack is also from the main thread. Unfortunately, we can't share the code nor find a simple app to reproduce the bug.