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

Battery Percentage Icon version 2.1.7 has run into an error #74

Open
chingsquid opened this issue Jan 7, 2025 · 2 comments
Open

Battery Percentage Icon version 2.1.7 has run into an error #74

chingsquid opened this issue Jan 7, 2025 · 2 comments

Comments

@chingsquid
Copy link


You Found An Error

Battery Percentage Icon version 2.1.7 has run into an error. You can help to fix this by:

  1. Press Ctrl+C on this message

  2. Report the copied error at https://github.com/soleon/Percentage/issues

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

---> System.NullReferenceException: Object reference not set to an instance of an object.

at Wpf.Ui.Controls.NavigationView.UpdateContent(Object content, Object dataContext)

at Wpf.Ui.Controls.NavigationView.NavigateInternal(INavigationViewItem viewItem, Object dataContext, Boolean addToNavigationStack, Boolean isBackwardsNavigated)

at Wpf.Ui.Controls.NavigationView.Navigate(Type pageType, Object dataContext)

at Percentage.App.MainWindow.NavigateToPageT

at Percentage.App.NotifyIconWindow.OnNotifyIconLeftClick(NotifyIcon sender, RoutedEventArgs e)

at InvokeStub_RoutedNotifyIconEvent.Invoke(Object, Span`1)

at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

--- End of inner exception stack trace ---

at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

at System.Delegate.DynamicInvokeImpl(Object[] args)

at System.Windows.RoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

at Wpf.Ui.Tray.Controls.NotifyIcon.OnLeftClick()

at Wpf.Ui.Tray.Internal.InternalNotifyIconManager.OnLeftClick()

at Wpf.Ui.Tray.Internal.InternalNotifyIconManager.WndProc(IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)

OK

@larsen0815
Copy link

larsen0815 commented Jan 7, 2025

Probably related to #57
What did you do before this error happened?

@chingsquid
Copy link
Author

Nothing, I just use the app as usual until it started not showing the battery status accurately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@larsen0815 @chingsquid and others