Describe the bug
I wanted to try this program for my laptop but unfortunately after installing it and restarting I can't choose and config in the GUI but also in cmd.
-the GUI config list in blank;
-in cmd only NBFC.exe works,when using any argument I get this:
usage: nbfc.exe [--version] [--help] []
Unknown argument name 'list'.
-Config Editor can't be opened,throws an error: MediaContextNotificationWindows: ConfigEditor.exe
"The exception unknown software exception (0xe0434452) occured in the application at location 0x00007FFC2A119709.
In Event Viewer I get this:
Application: ConfigEditor.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at StagWare.FanControl.Configurations.FanControlConfigManager.GetDeviceModelName()
at StagWare.FanControl.Configurations.FanControlConfigManager..ctor(System.String)
at ConfigEditor.ViewModels.MainViewModel..ctor()
at ConfigEditor.Windows.MainWindow..ctor()
Exception Info: System.Reflection.TargetInvocationException
at System.RuntimeTypeHandle.CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef)
at System.RuntimeType.CreateInstanceSlow(Boolean, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)
at System.Activator.CreateInstance(System.Type, Boolean)
at System.RuntimeType.CreateInstanceImpl(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, System.Object[], System.Threading.StackCrawlMark ByRef)
at System.Activator.CreateInstance(System.Type, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, System.Object[])
at System.Activator.CreateInstance(System.Type, System.Object[])
at System.Xaml.Schema.SafeReflectionInvoker.CreateInstanceCritical(System.Type, System.Object[])
at System.Xaml.Schema.XamlTypeInvoker.CreateInstance(System.Object[])
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(System.Xaml.XamlType, System.Object[])
at System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(MS.Internal.Xaml.Context.ObjectWriterContext)
at System.Xaml.XamlObjectWriter.WriteStartMember(System.Xaml.XamlMember)
at System.Windows.Markup.WpfXamlLoader.TransformNodes(System.Xaml.XamlReader, System.Xaml.XamlObjectWriter, Boolean, Boolean, Boolean, System.Xaml.IXamlLineInfo, System.Xaml.IXamlLineInfoConsumer, MS.Internal.Xaml.Context.XamlContextStack`1, System.Windows.Markup.IStyleConnector)
at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
at System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
at System.Windows.Application.DoStartup()
at System.Windows.Application.<.ctor>b__1_0(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at ConfigEditor.App.Main()
Expected behavior
I expect for the program to work.
Describe the bug I wanted to try this program for my laptop but unfortunately after installing it and restarting I can't choose and config in the GUI but also in cmd. -the GUI config list in blank; -in cmd only NBFC.exe works,when using any argument I get this:
usage: nbfc.exe [--version] [--help] []
Unknown argument name 'list'.
-Config Editor can't be opened,throws an error: MediaContextNotificationWindows: ConfigEditor.exe "The exception unknown software exception (0xe0434452) occured in the application at location 0x00007FFC2A119709.
In Event Viewer I get this:
Application: ConfigEditor.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.NullReferenceException at StagWare.FanControl.Configurations.FanControlConfigManager.GetDeviceModelName() at StagWare.FanControl.Configurations.FanControlConfigManager..ctor(System.String) at ConfigEditor.ViewModels.MainViewModel..ctor() at ConfigEditor.Windows.MainWindow..ctor() Exception Info: System.Reflection.TargetInvocationException at System.RuntimeTypeHandle.CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef) at System.RuntimeType.CreateInstanceSlow(Boolean, Boolean, Boolean, System.Threading.StackCrawlMark ByRef) at System.Activator.CreateInstance(System.Type, Boolean) at System.RuntimeType.CreateInstanceImpl(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, System.Object[], System.Threading.StackCrawlMark ByRef) at System.Activator.CreateInstance(System.Type, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, System.Object[]) at System.Activator.CreateInstance(System.Type, System.Object[]) at System.Xaml.Schema.SafeReflectionInvoker.CreateInstanceCritical(System.Type, System.Object[]) at System.Xaml.Schema.XamlTypeInvoker.CreateInstance(System.Object[]) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(System.Xaml.XamlType, System.Object[]) at System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(MS.Internal.Xaml.Context.ObjectWriterContext) at System.Xaml.XamlObjectWriter.WriteStartMember(System.Xaml.XamlMember) at System.Windows.Markup.WpfXamlLoader.TransformNodes(System.Xaml.XamlReader, System.Xaml.XamlObjectWriter, Boolean, Boolean, Boolean, System.Xaml.IXamlLineInfo, System.Xaml.IXamlLineInfoConsumer, MS.Internal.Xaml.Context.XamlContextStack`1, System.Windows.Markup.IStyleConnector)
at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
at System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
at System.Windows.Application.DoStartup()
at System.Windows.Application.<.ctor>b__1_0(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at ConfigEditor.App.Main()
Expected behavior I expect for the program to work.
System information
time;level;message;exception;callsite;stacktrace 2020-04-29 14:37:57.5756;Info;Starting NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStart;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => ServiceBase.ServiceQueuedMainCallback => NoteBookFanControlService.OnStart 2020-04-29 14:38:39.4210;Warn;An attempt to start the fan controller failed because no config is selected;;StagWare.FanControl.Service.FanControlService.Start;LazyAsyncResult.Complete => AsyncThunk.UnhandledExceptionFrame => SessionConnectionReader.OnAsyncReadComplete => ReceiveAsyncResult.OnReceiveComplete => AsyncResult.Complete => AsyncThunk.UnhandledExceptionFrame => TryReceiveAsyncResult.OnReceive => AsyncResult.Complete => AsyncThunk.UnhandledExceptionFrame => ChannelHandler.OnAsyncReceiveComplete => ChannelHandler.AsyncMessagePump => ChannelHandler.HandleRequest => ChannelHandler.DispatchAndReleasePump => MessageRpc.Process => ImmutableDispatchRuntime.ProcessMessage11 => ImmutableDispatchRuntime.ProcessMessage5 => DispatchOperationRuntime.InvokeBegin => SyncMethodInvoker.Invoke =>.SyncInvokeStart => FanControlService.Start
2020-04-29 14:38:39.7087;Warn;An attempt to start the fan controller failed because no config is selected;;StagWare.FanControl.Service.FanControlService.Start;LazyAsyncResult.Complete => AsyncThunk.UnhandledExceptionFrame => SessionConnectionReader.OnAsyncReadComplete => ReceiveAsyncResult.OnReceiveComplete => AsyncResult.Complete => AsyncThunk.UnhandledExceptionFrame => TryReceiveAsyncResult.OnReceive => AsyncResult.Complete => AsyncThunk.UnhandledExceptionFrame => ChannelHandler.OnAsyncReceiveComplete => ChannelHandler.AsyncMessagePump => ChannelHandler.HandleRequest => ChannelHandler.DispatchAndReleasePump => MessageRpc.Process => ImmutableDispatchRuntime.ProcessMessage11 => ImmutableDispatchRuntime.ProcessMessage5 => DispatchOperationRuntime.InvokeBegin => SyncMethodInvoker.Invoke => .SyncInvokeStart => FanControlService.Start
2020-04-29 14:41:16.2140;Warn;An attempt to start the fan controller failed because no config is selected;;StagWare.FanControl.Service.FanControlService.Start;LazyAsyncResult.Complete => AsyncThunk.UnhandledExceptionFrame => SessionConnectionReader.OnAsyncReadComplete => ReceiveAsyncResult.OnReceiveComplete => AsyncResult.Complete => AsyncThunk.UnhandledExceptionFrame => TryReceiveAsyncResult.OnReceive => AsyncResult.Complete => AsyncThunk.UnhandledExceptionFrame => ChannelHandler.OnAsyncReceiveComplete => ChannelHandler.AsyncMessagePump => ChannelHandler.HandleRequest => ChannelHandler.DispatchAndReleasePump => MessageRpc.Process => ImmutableDispatchRuntime.ProcessMessage11 => ImmutableDispatchRuntime.ProcessMessage5 => DispatchOperationRuntime.InvokeBegin => SyncMethodInvoker.Invoke => .SyncInvokeStart => FanControlService.Start
2020-04-29 14:41:16.4720;Warn;An attempt to start the fan controller failed because no config is selected;;StagWare.FanControl.Service.FanControlService.Start;LazyAsyncResult.Complete => AsyncThunk.UnhandledExceptionFrame => SessionConnectionReader.OnAsyncReadComplete => ReceiveAsyncResult.OnReceiveComplete => AsyncResult.Complete => AsyncThunk.UnhandledExceptionFrame => TryReceiveAsyncResult.OnReceive => AsyncResult.Complete => AsyncThunk.UnhandledExceptionFrame => ChannelHandler.OnAsyncReceiveComplete => ChannelHandler.AsyncMessagePump => ChannelHandler.HandleRequest => ChannelHandler.DispatchAndReleasePump => MessageRpc.Process => ImmutableDispatchRuntime.ProcessMessage11 => ImmutableDispatchRuntime.ProcessMessage5 => DispatchOperationRuntime.InvokeBegin => SyncMethodInvoker.Invoke => .SyncInvokeStart => FanControlService.Start
2020-04-29 14:46:19.7698;Info;Starting NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStart;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => ServiceBase.ServiceQueuedMainCallback => NoteBookFanControlService.OnStart
2020-04-29 14:48:33.8931;Info;Handling power event: PowerStatusChange;;NbfcService.NoteBookFanControlService.OnPowerEvent;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => StackBuilderSink.AsyncProcessMessage => StackBuilderSink._PrivateProcessMessage => ServiceBase.DeferredPowerEvent => NoteBookFanControlService.OnPowerEvent
2020-04-29 14:55:30.0220;Info;Stopping NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStop;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => StackBuilderSink.AsyncProcessMessage => StackBuilderSink._PrivateProcessMessage => ServiceBase.DeferredStop => NoteBookFanControlService.OnStop
2020-04-29 14:55:33.0363;Info;Starting NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStart;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => ServiceBase.ServiceQueuedMainCallback => NoteBookFanControlService.OnStart
2020-04-29 14:57:14.3308;Info;Stopping NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStop;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => StackBuilderSink.AsyncProcessMessage => StackBuilderSink._PrivateProcessMessage => ServiceBase.DeferredStop => NoteBookFanControlService.OnStop
2020-04-29 14:57:18.3478;Info;Starting NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStart;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => ServiceBase.ServiceQueuedMainCallback => NoteBookFanControlService.OnStart
2020-04-29 15:23:40.0412;Info;Starting NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStart;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => ServiceBase.ServiceQueuedMainCallback => NoteBookFanControlService.OnStart
2020-04-29 15:25:22.8496;Info;Starting NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStart;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => ServiceBase.ServiceQueuedMainCallback => NoteBookFanControlService.OnStart
2020-04-29 15:26:46.4708;Info;Stopping NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStop;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => StackBuilderSink.AsyncProcessMessage => StackBuilderSink._PrivateProcessMessage => ServiceBase.DeferredStop => NoteBookFanControlService.OnStop
2020-04-30 15:37:34.4048;Info;Starting NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStart;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => ServiceBase.ServiceQueuedMainCallback => NoteBookFanControlService.OnStart
2020-04-30 15:40:58.3135;Info;Starting NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStart;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => ServiceBase.ServiceQueuedMainCallback => NoteBookFanControlService.OnStart
2020-04-30 15:57:47.6284;Info;Handling power event: PowerStatusChange;;NbfcService.NoteBookFanControlService.OnPowerEvent;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => StackBuilderSink.AsyncProcessMessage => StackBuilderSink._PrivateProcessMessage => ServiceBase.DeferredPowerEvent => NoteBookFanControlService.OnPowerEvent
2020-04-30 16:32:51.9119;Info;Handling power event: PowerStatusChange;;NbfcService.NoteBookFanControlService.OnPowerEvent;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => StackBuilderSink.AsyncProcessMessage => StackBuilderSink._PrivateProcessMessage => ServiceBase.DeferredPowerEvent => NoteBookFanControlService.OnPowerEvent
2020-04-30 16:33:04.5143;Info;Handling power event: PowerStatusChange;;NbfcService.NoteBookFanControlService.OnPowerEvent;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => StackBuilderSink.AsyncProcessMessage => StackBuilderSink._PrivateProcessMessage => ServiceBase.DeferredPowerEvent => NoteBookFanControlService.OnPowerEvent
2020-04-30 16:33:53.8607;Info;Starting NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStart;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => ServiceBase.ServiceQueuedMainCallback => NoteBookFanControlService.OnStart
2020-04-30 16:34:20.1219;Info;Stopping NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStop;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => StackBuilderSink.AsyncProcessMessage => StackBuilderSink._PrivateProcessMessage => ServiceBase.DeferredStop => NoteBookFanControlService.OnStop
2020-05-02 13:36:49.0652;Info;Starting NoteBookFanControlService;;NbfcService.NoteBookFanControlService.OnStart;ThreadPoolWorkQueue.Dispatch => QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem => ExecutionContext.Run => ExecutionContext.RunInternal => ServiceBase.ServiceQueuedMainCallback => NoteBookFanControlService.OnStart
Thanks,I hope someone can help me.