Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.InvalidOperationException (UpdateToolTip failed.) #180

Open
mogikanin opened this issue Nov 25, 2024 · 1 comment
Open

System.InvalidOperationException (UpdateToolTip failed.) #180

mogikanin opened this issue Nov 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mogikanin
Copy link

mogikanin commented Nov 25, 2024

Describe the bug

Hi, we've got a lot of such exceptions, here the full stack trace. As you see, all calls within library code.
Our usage of tray icon is quite simple (wpf, .net6):

trayIcon.ShowNotification(title, message);

Any ideas?

System.InvalidOperationException: UpdateToolTip failed.
File "//src/libs/H.NotifyIcon/Core/TrayIcon.cs", line 455, col 13, in void TrayIcon.UpdateToolTip(string text)
File "/
/src/libs/H.NotifyIcon.Shared/TaskbarIcon.ToolTips.cs", line 141, col 9, in void TaskbarIcon.WriteToolTipSettings()
File "//src/libs/H.NotifyIcon.Shared/TaskbarIcon.ToolTips.cs", line 28, col 9, in void TaskbarIcon.OnToolTipTextChanged()
File "/
/src/libs/H.NotifyIcon.Wpf/obj/Release/net6.0-windows/DependencyPropertyGenerator/H.Generators.DependencyPropertyGenerator/H.NotifyIcon.TaskbarIcon.Properties.ToolTipText.g.cs", line 23, col 25, in static TaskbarIcon()+(DependencyObject sender, DependencyPropertyChangedEventArgs args) => { }
?, in void DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
?, in void FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
?, in void DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
?, in UpdateResult DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, ref EffectiveValueEntry newEntry, bool coerceWithDeferredReference, bool coerceWithCurrentValue, Op...
?, in void DependencyObject.InvalidateProperty(DependencyProperty dp, bool preserveCurrentValue)
?, in void BindingExpression.TransferValue(object newValue, bool isASubPropertyChange)
?, in void PropertyPathWorker.UpdateSourceValueState(int k, ICollectionView collectionView, object newValue, bool isASubPropertyChange)
?, in void PropertyPathWorker.RefreshValue()
?, in object ClrBindingWorker.ScheduleTransferOperation(object arg)
?, in void DataBindEngine.ProcessCrossThreadRequests()
?, in object ExceptionWrapper.InternalRealCall(Delegate callback, object args, int numArgs)
?, in object ExceptionWrapper.TryCatchWhen(object source, Delegate callback, object args, int numArgs, Delegate catchHandler)

@mogikanin mogikanin added the bug Something isn't working label Nov 25, 2024
@HavenDV
Copy link
Owner

HavenDV commented Nov 25, 2024

The problem is that "UpdateToolTip failed" is a system API call and does not provide any information about the error. This could be due to invalid arguments or simply a certain combination of WinUI version + Windows version + something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants