Skip to content

Exception on every PC startup #81

@jimmyking2004

Description

@jimmyking2004
************** Exception Text **************
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at OpenHardwareMonitor.GUI.TreeModel.GetChildren(TreePath treePath)+MoveNext() in D:\Projects\openhardwaremonitor\OpenHardwareMonitor\GUI\TreeModel.cs:line 59
   at Aga.Controls.Tree.TreeViewAdv.ReadChilds(TreeNodeAdv parentNode, Boolean performFullUpdate)
   at Aga.Controls.Tree.TreeViewAdv.ReadChilds(TreeNodeAdv parentNode)
   at Aga.Controls.Tree.TreeViewAdv._model_StructureChanged(Object sender, TreePathEventArgs e)
   at OpenHardwareMonitor.GUI.TreeModel.OnStructureChanged(Node node) in D:\Projects\openhardwaremonitor\OpenHardwareMonitor\GUI\TreeModel.cs:line 101
   at OpenHardwareMonitor.GUI.Node.NodeCollection.InsertItem(Int32 index, Node item) in D:\Projects\openhardwaremonitor\OpenHardwareMonitor\GUI\Node.cs:line 180
   at OpenHardwareMonitor.GUI.HardwareNode.InsertSorted(Node node, ISensor sensor) in D:\Projects\openhardwaremonitor\OpenHardwareMonitor\GUI\HardwareNode.cs:line 111
   at OpenHardwareMonitor.GUI.HardwareNode.SensorAdded(ISensor sensor) in D:\Projects\openhardwaremonitor\OpenHardwareMonitor\GUI\HardwareNode.cs:line 122
   at OpenHardwareMonitor.Hardware.Hardware.ActivateSensor(ISensor sensor) in D:\Projects\openhardwaremonitor\OpenHardwareMonitorLib\Hardware\Hardware.cs:line 53
   at OpenHardwareMonitor.Hardware.Mainboard.SuperIOHardware.Update() in D:\Projects\openhardwaremonitor\OpenHardwareMonitorLib\Hardware\Mainboard\SuperIOHardware.cs:line 1518
   at OpenHardwareMonitor.GUI.UpdateVisitor.VisitHardware(IHardware hardware) in D:\Projects\openhardwaremonitor\OpenHardwareMonitor\GUI\UpdateVisitor.cs:line 22
   at OpenHardwareMonitor.Hardware.Hardware.Accept(IVisitor visitor) in D:\Projects\openhardwaremonitor\OpenHardwareMonitorLib\Hardware\Hardware.cs:line 101
   at OpenHardwareMonitor.GUI.UpdateVisitor.VisitHardware(IHardware hardware) in D:\Projects\openhardwaremonitor\OpenHardwareMonitor\GUI\UpdateVisitor.cs:line 23
   at OpenHardwareMonitor.Hardware.Mainboard.Mainboard.Accept(IVisitor visitor) in D:\Projects\openhardwaremonitor\OpenHardwareMonitorLib\Hardware\Mainboard\Mainboard.cs:line 149
   at OpenHardwareMonitor.Hardware.Computer.Traverse(IVisitor visitor) in D:\Projects\openhardwaremonitor\OpenHardwareMonitorLib\Hardware\Computer.cs:line 415
   at OpenHardwareMonitor.GUI.UpdateVisitor.VisitComputer(IComputer computer) in D:\Projects\openhardwaremonitor\OpenHardwareMonitor\GUI\UpdateVisitor.cs:line 18
   at OpenHardwareMonitor.Hardware.Computer.Accept(IVisitor visitor) in D:\Projects\openhardwaremonitor\OpenHardwareMonitorLib\Hardware\Computer.cs:line 410
   at OpenHardwareMonitor.GUI.MainForm.<timer_Tick>b__61_0() in D:\Projects\openhardwaremonitor\OpenHardwareMonitor\GUI\MainForm.cs:line 810
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at OpenHardwareMonitor.GUI.MainForm.timer_Tick(Object sender, EventArgs e) in D:\Projects\openhardwaremonitor\OpenHardwareMonitor\GUI\MainForm.cs:line 809
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at InvokeStub_SendOrPostCallback.Invoke(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions