PowerToys 文件资源管理器预览窗格:System.InvalidOperationException:在WebView2控件被释放后,无法访问CoreWebView2成员,

pvabu6sv  于 6个月前  发布在  其他
关注(0)|答案(6)|浏览(61)

Microsoft PowerToys版本
0.71.0

安装方法

PowerToys自动更新

以管理员身份运行

出现问题的区域?

文件资源管理器:预览窗格

重现步骤

不一致地发生。在这种情况下:

  1. 导航到新的文件资源管理器窗口的下载
  2. 预览了一个PowerShell脚本
    根据堆栈跟踪,可能是我在渲染过程中移动或调整了文件资源管理器窗口,或者在某个敏感的过渡时刻?
    PowerToysReport_2023-07-07-14-50-29.zip

✔️ 预期行为

预览已渲染

❌ 实际行为

未处理的.NET异常对话框:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: CoreWebView2 members cannot be accessed after the WebView2 control is disposed.
 ---> System.Runtime.InteropServices.COMException (0x8007139F): The group or resource is not in the correct state to perform the requested operation. (0x8007139F)
   at Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Controller.NotifyParentWindowPositionChanged()
   at Microsoft.Web.WebView2.Core.CoreWebView2Controller.NotifyParentWindowPositionChanged()
   --- End of inner exception stack trace ---
   at Microsoft.Web.WebView2.Core.CoreWebView2Controller.NotifyParentWindowPositionChanged()
   at Microsoft.Web.WebView2.WinForms.WebView2.WebView2_WindowPositionChanged(Object sender, EventArgs e)
   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   at System.Windows.Forms.Control.UpdateBounds()
   at System.Windows.Forms.Control.WmCreate(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmCreate(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
System.Private.CoreLib
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Private.CoreLib.dll
----------------------------------------
PowerToys.MonacoPreviewHandler
    Assembly Version: 0.71.0.0
    Win32 Version: 0.71.0.0
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/PowerToys.MonacoPreviewHandler.dll
----------------------------------------
System.Runtime
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Runtime.dll
----------------------------------------
WinRT.Runtime
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.2.42201
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/WinRT.Runtime.dll
----------------------------------------
System.Collections
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Collections.dll
----------------------------------------
System.Collections.Concurrent
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Collections.Concurrent.dll
----------------------------------------
System.Threading
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Threading.dll
----------------------------------------
System.Drawing.Primitives
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Drawing.Primitives.dll
----------------------------------------
PowerToys.ManagedCommon
    Assembly Version: 0.71.0.0
    Win32 Version: 0.71.0.0
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/PowerToys.ManagedCommon.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31802
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Windows.Forms.dll
----------------------------------------
PowerToys.PreviewHandlerCommon
    Assembly Version: 0.71.0.0
    Win32 Version: 0.71.0.0
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/PowerToys.PreviewHandlerCommon.dll
----------------------------------------
System.ComponentModel.Primitives
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.ComponentModel.Primitives.dll
----------------------------------------
System.Windows.Forms.Primitives
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31802
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Windows.Forms.Primitives.dll
----------------------------------------
System.Runtime.InteropServices
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Runtime.InteropServices.dll
----------------------------------------
System.Collections.Specialized
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Collections.Specialized.dll
----------------------------------------
PowerToys.Interop
    Assembly Version: 0.71.0.0
    Win32 Version: 0.71.0.0
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/PowerToys.Interop.dll
----------------------------------------
System.Runtime.Extensions
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Runtime.Extensions.dll
----------------------------------------
System.Collections.NonGeneric
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Collections.NonGeneric.dll
----------------------------------------
WindowsBase
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31803
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/WindowsBase.dll
----------------------------------------
PowerToys.Common.UI
    Assembly Version: 0.71.0.0
    Win32 Version: 0.71.0.0
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/PowerToys.Common.UI.dll
----------------------------------------
System.IO.Abstractions
    Assembly Version: 17.0.0.0
    Win32 Version: 17.2.3.42299
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.IO.Abstractions.dll
----------------------------------------
System.Security.AccessControl
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Security.AccessControl.dll
----------------------------------------
System.Diagnostics.TraceSource
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Diagnostics.TraceSource.dll
----------------------------------------
System.Diagnostics.TextWriterTraceListener
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Diagnostics.TextWriterTraceListener.dll
----------------------------------------
System.Diagnostics.FileVersionInfo
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Diagnostics.FileVersionInfo.dll
----------------------------------------
System.Drawing.Common
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Drawing.Common.dll
----------------------------------------
Microsoft.Win32.Primitives
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/Microsoft.Win32.Primitives.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.ComponentModel.EventBasedAsync.dll
----------------------------------------
System.Threading.Thread
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Threading.Thread.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 7.0.823.31802
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/Accessibility.dll
----------------------------------------
Microsoft.Win32.SystemEvents
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Diagnostics.StackTrace
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Diagnostics.StackTrace.dll
----------------------------------------
System.Text.Encoding.Extensions
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Text.Encoding.Extensions.dll
----------------------------------------
ControlzEx
    Assembly Version: 5.0.0.0
    Win32 Version: 5.0.1.15
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/ControlzEx.dll
----------------------------------------
PresentationCore
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31803
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/PresentationCore.dll
----------------------------------------
PresentationFramework
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31803
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/PresentationFramework.dll
----------------------------------------
DirectWriteForwarder
    Assembly Version: 7.0.0.0
    Win32 Version: 7,0,823,31803 @Commit: b10173d88dc484c1462d387c131bdd4c639927e9
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/DirectWriteForwarder.dll
----------------------------------------
System.Diagnostics.Debug
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Diagnostics.Debug.dll
----------------------------------------
System.Runtime.CompilerServices.VisualC
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Runtime.CompilerServices.VisualC.dll
----------------------------------------
Microsoft.Win32.Registry
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/Microsoft.Win32.Registry.dll
----------------------------------------
System.Memory
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Memory.dll
----------------------------------------
System.ObjectModel
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.ObjectModel.dll
----------------------------------------
System.ComponentModel.TypeConverter
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.ComponentModel.TypeConverter.dll
----------------------------------------
System.ComponentModel
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.ComponentModel.dll
----------------------------------------
System.Xaml
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31803
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Xaml.dll
----------------------------------------
System.Private.Uri
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Private.Uri.dll
----------------------------------------
System.Configuration.ConfigurationManager
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Configuration.ConfigurationManager.dll
----------------------------------------
System.Xml.ReaderWriter
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Xml.ReaderWriter.dll
----------------------------------------
System.Private.Xml
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Private.Xml.dll
----------------------------------------
System.Net.WebClient
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Net.WebClient.dll
----------------------------------------
System.Linq
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Linq.dll
----------------------------------------
PresentationFramework-SystemXml
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31803
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/PresentationFramework-SystemXml.dll
----------------------------------------
Microsoft.Web.WebView2.Core
    Assembly Version: 1.0.1722.45
    Win32 Version: 1.0.1722.45
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/Microsoft.Web.WebView2.Core.dll
----------------------------------------
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/mscorlib.dll
----------------------------------------
Microsoft.Web.WebView2.WinForms
    Assembly Version: 1.0.1722.45
    Win32 Version: 1.0.1722.45
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/Microsoft.Web.WebView2.WinForms.dll
----------------------------------------
System.Runtime.CompilerServices.Unsafe
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Runtime.CompilerServices.Unsafe.dll
----------------------------------------
System.Numerics.Vectors
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Numerics.Vectors.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Drawing.dll
----------------------------------------
PowerToys.Settings.UI.Lib
    Assembly Version: 0.71.0.0
    Win32 Version: 0.71.0.0
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/PowerToys.Settings.UI.Lib.dll
----------------------------------------
System.Security.Principal.Windows
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Security.Principal.Windows.dll
----------------------------------------
System.Security.Claims
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Security.Claims.dll
----------------------------------------
System.Text.Json
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Text.Json.dll
----------------------------------------
System.Text.Encodings.Web
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Text.Encodings.Web.dll
----------------------------------------
System.Reflection.Emit.Lightweight
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Reflection.Emit.Lightweight.dll
----------------------------------------
System.Reflection.Primitives
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Reflection.Primitives.dll
----------------------------------------
System.Reflection.Emit.ILGeneration
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Reflection.Emit.ILGeneration.dll
----------------------------------------
System.Runtime.Intrinsics
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Runtime.Intrinsics.dll
----------------------------------------
PowerToys.FilePreviewCommon
    Assembly Version: 0.71.0.0
    Win32 Version: 0.71.0.0
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/PowerToys.FilePreviewCommon.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.dll
----------------------------------------
System.Threading.ThreadPool
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Threading.ThreadPool.dll
----------------------------------------
System.Threading.Tasks
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Threading.Tasks.dll
----------------------------------------
System.Runtime.Loader
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Runtime.Loader.dll
----------------------------------------
System.Reflection.Metadata
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Reflection.Metadata.dll
----------------------------------------
System.Collections.Immutable
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.823.31807
    CodeBase: file:///C:/Users/alex.savage/AppData/Local/PowerToys/modules/FileExplorerPreview/System.Collections.Immutable.dll
----------------------------------------

************** JIT Debugging **************

其他软件

  • 无响应*
2w3kk1z5

2w3kk1z51#

我正在看到v0.77.0中的相同错误报告。

disho6za

disho6za2#

我看到了v0.77.0版本中的相同错误报告。
这里也是一样

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: CoreWebView2 members cannot be accessed after the WebView2 control is disposed.
 ---> System.Runtime.InteropServices.COMException (0x8007139F): The group or resource is not in the correct state to perform the requested operation. (0x8007139F)
   at Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Controller.NotifyParentWindowPositionChanged()
   at Microsoft.Web.WebView2.Core.CoreWebView2Controller.NotifyParentWindowPositionChanged()
   --- End of inner exception stack trace ---
   at Microsoft.Web.WebView2.Core.CoreWebView2Controller.NotifyParentWindowPositionChanged()
   at Microsoft.Web.WebView2.WinForms.WebView2.WebView2_WindowPositionChanged(Object sender, EventArgs e)
   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   at System.Windows.Forms.Control.UpdateBounds()
   at System.Windows.Forms.Control.WmCreate(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmCreate(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)

************** Loaded Assemblies **************
System.Private.CoreLib
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Private.CoreLib.dll
----------------------------------------
PowerToys.MonacoPreviewHandler
    Assembly Version: 0.77.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\PowerToys.MonacoPreviewHandler.dll
----------------------------------------
System.Runtime
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Runtime.dll
----------------------------------------
WinRT.Runtime
    Assembly Version: 2.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\WinRT.Runtime.dll
----------------------------------------
System.Collections
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Collections.dll
----------------------------------------
System.Collections.Concurrent
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Collections.Concurrent.dll
----------------------------------------
System.Threading
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Threading.dll
----------------------------------------
System.Drawing.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Drawing.Primitives.dll
----------------------------------------
PowerToys.ManagedCommon
    Assembly Version: 0.77.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\PowerToys.ManagedCommon.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Windows.Forms.dll
----------------------------------------
PowerToys.PreviewHandlerCommon
    Assembly Version: 0.77.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\PowerToys.PreviewHandlerCommon.dll
----------------------------------------
System.ComponentModel.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.ComponentModel.Primitives.dll
----------------------------------------
System.Windows.Forms.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Windows.Forms.Primitives.dll
----------------------------------------
System.Collections.Specialized
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Collections.Specialized.dll
----------------------------------------
PowerToys.Interop
    Assembly Version: 0.77.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\PowerToys.Interop.dll
----------------------------------------
System.Runtime.Extensions
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Runtime.Extensions.dll
----------------------------------------
System.Runtime.InteropServices
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Runtime.InteropServices.dll
----------------------------------------
System.Collections.NonGeneric
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Collections.NonGeneric.dll
----------------------------------------
WindowsBase
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\WindowsBase.dll
----------------------------------------
PowerToys.Common.UI
    Assembly Version: 0.77.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\PowerToys.Common.UI.dll
----------------------------------------
System.IO.Abstractions
    Assembly Version: 17.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.IO.Abstractions.dll
----------------------------------------
System.Security.AccessControl
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Security.AccessControl.dll
----------------------------------------
System.Diagnostics.TraceSource
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Diagnostics.TraceSource.dll
----------------------------------------
System.Diagnostics.TextWriterTraceListener
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Diagnostics.TextWriterTraceListener.dll
----------------------------------------
System.Diagnostics.FileVersionInfo
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Diagnostics.FileVersionInfo.dll
----------------------------------------
System.Drawing.Common
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Drawing.Common.dll
----------------------------------------
Microsoft.Win32.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\Microsoft.Win32.Primitives.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.ComponentModel.EventBasedAsync.dll
----------------------------------------
System.Threading.Thread
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Threading.Thread.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\Accessibility.dll
----------------------------------------
Microsoft.Win32.SystemEvents
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Memory
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Memory.dll
----------------------------------------
System.Diagnostics.StackTrace
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Diagnostics.StackTrace.dll
----------------------------------------
System.Text.Encoding.Extensions
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Text.Encoding.Extensions.dll
----------------------------------------
ControlzEx
    Assembly Version: 6.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\ControlzEx.dll
----------------------------------------
PresentationCore
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\PresentationCore.dll
----------------------------------------
PresentationFramework
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\PresentationFramework.dll
----------------------------------------
DirectWriteForwarder
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\DirectWriteForwarder.dll
----------------------------------------
System.Diagnostics.Debug
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Diagnostics.Debug.dll
----------------------------------------
System.Runtime.CompilerServices.VisualC
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Runtime.CompilerServices.VisualC.dll
----------------------------------------
System.ObjectModel
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.ObjectModel.dll
----------------------------------------
Microsoft.Win32.Registry
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\Microsoft.Win32.Registry.dll
----------------------------------------
System.ComponentModel.TypeConverter
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.ComponentModel.TypeConverter.dll
----------------------------------------
System.ComponentModel
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.ComponentModel.dll
----------------------------------------
System.Xaml
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Xaml.dll
----------------------------------------
System.Private.Uri
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Private.Uri.dll
----------------------------------------
System.Configuration.ConfigurationManager
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Configuration.ConfigurationManager.dll
----------------------------------------
System.Xml.ReaderWriter
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Xml.ReaderWriter.dll
----------------------------------------
System.Private.Xml
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Private.Xml.dll
----------------------------------------
System.Net.WebClient
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Net.WebClient.dll
----------------------------------------
System.Linq
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Linq.dll
----------------------------------------
PresentationFramework-SystemXml
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\PresentationFramework-SystemXml.dll
----------------------------------------
Microsoft.Web.WebView2.Core
    Assembly Version: 1.0.2088.41
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\Microsoft.Web.WebView2.Core.dll
----------------------------------------
mscorlib
    Assembly Version: 4.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\mscorlib.dll
----------------------------------------
Microsoft.Web.WebView2.WinForms
    Assembly Version: 1.0.2088.41
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\Microsoft.Web.WebView2.WinForms.dll
----------------------------------------
System.Runtime.CompilerServices.Unsafe
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Runtime.CompilerServices.Unsafe.dll
----------------------------------------
System.Numerics.Vectors
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Numerics.Vectors.dll
----------------------------------------
System.Drawing
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Drawing.dll
----------------------------------------
PowerToys.Settings.UI.Lib
    Assembly Version: 0.77.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\PowerToys.Settings.UI.Lib.dll
----------------------------------------
System.Security.Principal.Windows
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Security.Principal.Windows.dll
----------------------------------------
System.Security.Claims
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Security.Claims.dll
----------------------------------------
PowerToys.FilePreviewCommon
    Assembly Version: 0.77.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\PowerToys.FilePreviewCommon.dll
----------------------------------------
UtfUnknown
    Assembly Version: 2.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\UtfUnknown.dll
----------------------------------------
System.Text.Encoding.CodePages
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Text.Encoding.CodePages.dll
----------------------------------------
System.Text.Json
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Text.Json.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.dll
----------------------------------------
System.Threading.ThreadPool
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Threading.ThreadPool.dll
----------------------------------------
System.Threading.Tasks
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Threading.Tasks.dll
----------------------------------------
System.Runtime.Loader
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Runtime.Loader.dll
----------------------------------------
System.Reflection.Metadata
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Reflection.Metadata.dll
----------------------------------------
System.Collections.Immutable
    Assembly Version: 8.0.0.0
    Location: C:\Users\<REDACTED>\AppData\Local\PowerToys\System.Collections.Immutable.dll
----------------------------------------

************** JIT Debugging **************
lawou6xi

lawou6xi3#

Bug仍然存在于v0.78.0版本中。

aor9mmx1

aor9mmx14#

在v0.80.1版本中仍然存在。

sxpgvts3

sxpgvts35#

我明白为什么会这样,正如问题作者所说,当您调整窗口大小时会发生这种情况,而webview2尚未完全初始化。

相关问题