Tai
Tai copied to clipboard
启动电脑时,Tai自启动崩溃。
Core Version:1.1.0.7 OS Name:Microsoft Windows 11 家庭版 Computer Type:Laptop Screen:2560*1600
++++++++++++++++++++++++++++++++++++++++++++++++++
[Info] 2025-04-01 09:21:02 设备已休眠 Line:152,File:Tai\Servicers\Instances\Sleepdiscover.cs,name:OnPowerModeChanged
[Info] 2025-04-01 09:21:02 [Sleep] Line:247,File:Tai\Servicers\Instances\Main.cs,name:Sleepdiscover_SleepStatusChanged
[Error] 2025-04-01 09:21:03 [程序崩溃异常] System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.NullReferenceException: 未将对象引用设置到对象的实例。 在 Core.Servicers.Instances.AppTimerServicer.Stop() 在 Core.Servicers.Instances.Main.Stop() 在 Core.Servicers.Instances.Main.Sleepdiscover_SleepStatusChanged(SleepStatus sleepStatus) 在 Core.Servicers.Instances.Sleepdiscover.Sleep() 在 Core.Servicers.Instances.Sleepdiscover.OnPowerModeChanged(Object sender, PowerModeChangedEventArgs e) --- 内部异常堆栈跟踪的结尾 --- 在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) 在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) 在 System.Delegate.DynamicInvokeImpl(Object[] args) 在 Microsoft.Win32.SystemEvents.SystemEventInvokeInfo.InvokeCallback(Object arg) 在 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) Line:60,File:Tai\App.xaml.cs,name:App_DispatcherUnhandledException
我自己仿照他的重新编写了一个,欢迎尝试:https://github.com/LaLa-HaHa-Hei/ScreenTimeTracker