-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Fatal error when virtual RamDisk is running #412
Comments
Does disabling storage devices via the OhmGraphite config at least let you run without errors? <?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="/storage/enabled" value="false" />
</appSettings>
</configuration> If so, I'd be curious if the GUI version gives you the same error: https://github.com/LibreHardwareMonitor/LibreHardwareMonitor#where-can-i-download-it |
Yes. Disable storage devices helped. LibreHardwareMonitor work wihtout errors. |
Is the ramdisk included in the gui or has it been excluded? |
Do you get the same error when you run OhmGraphite interactively (in an administrator terminal)? ./OhmGraphite stop
./OhmGraphite run |
The screenshot is a little confusing. To run interactively, execute |
Fatal error. Look logFromConsole.txt |
Thank you for posting, and your patience. Tracing the logic, both LibreHardwareMonitor and OhmGraphite execute the same code, and while I don't know for 100%, it seems like the kernel is exposing different values to both. LibreHardwareMonitor receives either an invalid result or a false return from I'm not sure what the next step is. Very confusing. |
When run ramDisk
When ramdisk is stoped there is no error
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.SpanHelpers.IndexOf(Byte ByRef, Byte, Int32)
at System.String.Ctor(SByte*)
at System.Runtime.InteropServices.Marshal.PtrToStringAnsi(IntPtr)
at LibreHardwareMonitor.Hardware.Storage.WindowsStorage+StorageInfo.GetString(IntPtr, UInt32)
at LibreHardwareMonitor.Hardware.Storage.WindowsStorage+StorageInfo..ctor(Int32, IntPtr)
at LibreHardwareMonitor.Hardware.Storage.WindowsStorage.GetStorageInfo(System.String, UInt32)
at LibreHardwareMonitor.Hardware.Storage.AbstractStorage.CreateInstance(System.String, UInt32, UInt64, Int32, LibreHardwareMonitor.Hardware.ISettings)
at LibreHardwareMonitor.Hardware.Storage.StorageGroup.AddHardware(LibreHardwareMonitor.Hardware.ISettings, System.Collections.Generic.Dictionary
2<UInt32,System.Collections.Generic.List
1<System.ValueTuple`2<UInt32,UInt64>>>)at LibreHardwareMonitor.Hardware.Storage.StorageGroup..ctor(LibreHardwareMonitor.Hardware.ISettings)
at LibreHardwareMonitor.Hardware.Computer.AddGroups()
at LibreHardwareMonitor.Hardware.Computer.Open()
at OhmGraphite.SensorCollector.Start()
at OhmGraphite.PrometheusServer.b__4_0()
at OhmGraphite.LoggerUtils.LogAction(NLog.Logger, System.String, System.Action)
at OhmGraphite.PrometheusServer.Start()
at OhmGraphite.Worker+<>c__DisplayClass3_0.b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task+<>c.<.cctor>b__272_0(System.Object)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
at System.Threading.Tasks.Task.ExecuteEntryUnsafe(System.Threading.Thread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
The text was updated successfully, but these errors were encountered: