HandyOrg / HandyOrg/HandyControl

Growl 关闭后出现异常

Open
#1,633 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
7.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Growl 在关闭时,出现了 Win32Exception:
报错信息: 调用的目标发生了异常。
报错位置: mscorlib
报错代码:
在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
在 System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
在 System.Windows.Interop.HwndMouseInputProvider.HasCustomChrome(HwndSource hwndSource, RECT& rcClient)
在 System.Windows.Interop.HwndMouseInputProvider.GetEffectiveClientRect(IntPtr hwnd)
在 System.Windows.Interop.HwndMouseInputProvider.PossiblyDeactivate(IntPtr hwndCapture, Boolean stillActiveIfOverSelf)
在 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
报错数据类型: System.Collections.ListDictionaryInternal
System.ComponentModel.Win32Exception (0x80004005): 0x80070578
在 Standard.HRESULT.ThrowIfFailed(String message)
在 Standard.HRESULT.ThrowLastError()
在 Standard.NativeMethods.GetWindowRect(IntPtr hwnd)
在 System.Windows.Shell.WindowChromeWorker.GetEffectiveClientArea(RECT& rcClient)

Steps to reproduce the bug

使用 Growl 小概率出现此异常

Expected behavior

No response

Screenshots

image

NuGet package version

None

IDE

Visual Studio 2022

Framework type

.Net Framework 4.8

Windows version

Windows 11 (22000)

Additional context

HandyControl 3.5.1.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the intermittent exception when Growl closes on Windows 11 with .NET Framework 4.8, then trace the close path alongside the reported WPF WindowChromeWorker.GetEffectiveClientArea and Standard.NativeMethods.GetWindowRect stack frames. Done means closing Growl no longer produces the Win32Exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.