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

Error message and Percentage is stuck, settings keep resetting #71

Open
Tobias2606code opened this issue Jan 4, 2025 · 2 comments
Open

Comments

@Tobias2606code
Copy link

i got this error message and the App stopped working with the new update...


You Found An Error

Battery Percentage Icon version 2.1.6 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.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.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

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?

@Tobias2606code
Copy link
Author

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

I just klicked on the percentage Icon on the Taskbar, because it was stuck on 80% which was wrong

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 @Tobias2606code and others