OrleansDashboard icon indicating copy to clipboard operation
OrleansDashboard copied to clipboard

Help with System.AccessViolationException

Open fernandozago opened this issue 1 year ago • 0 comments

Hello Guys,

Im receiving this exception. And none of this exception stack is related with my code...

I can't find the problem...

Edit: I cant get to throw consistently. But I noticed that the problem occurs when i have the dashboard open on "Activations by Type" page....

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Collections.Concurrent.ConcurrentDictionary`2[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TryGetValueInternal(System.__Canon, Int32, System.__Canon ByRef)
   at System.Collections.Concurrent.ConcurrentDictionary`2[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].AddOrUpdate(System.__Canon, System.Func`2<System.__Canon,System.__Canon>, System.Func`3<System.__Canon,System.__Canon,System.__Canon>)
   at OrleansDashboard.Metrics.GrainProfiler.Track(Double, System.Type, System.String, Boolean)
   at OrleansDashboard.Implementation.GrainProfilerFilter.Track(Orleans.IIncomingGrainCallContext, System.Diagnostics.Stopwatch, Boolean)
   at OrleansDashboard.Implementation.GrainProfilerFilter+<Invoke>d__7.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[OrleansDashboard.Implementation.GrainProfilerFilter+<Invoke>d__7, OrleansDashboard, Version=7.2.1.0, Culture=neutral, PublicKeyToken=null]](<Invoke>d__7 ByRef)
   at OrleansDashboard.Implementation.GrainProfilerFilter.Invoke(Orleans.IIncomingGrainCallContext)
   at Orleans.Runtime.GrainMethodInvoker+<Invoke>d__35.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Orleans.Runtime.GrainMethodInvoker+<Invoke>d__35, Orleans.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null]](<Invoke>d__35 ByRef)
   at Orleans.Runtime.GrainMethodInvoker.Invoke()
   at Orleans.Runtime.InsideRuntimeClient+<Invoke>d__48.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Orleans.Runtime.InsideRuntimeClient+<Invoke>d__48, Orleans.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null]](<Invoke>d__48 ByRef)
   at Orleans.Runtime.InsideRuntimeClient.Invoke(Orleans.Runtime.IGrainContext, Orleans.Runtime.Message)
   at Orleans.Runtime.ActivationData.InvokeIncomingRequest(Orleans.Runtime.Message)
   at Orleans.Runtime.ActivationData.<RunMessageLoop>g__ProcessPendingRequests|122_0()
   at Orleans.Runtime.ActivationData+<RunMessageLoop>d__122.MoveNext()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Orleans.Runtime.ActivationData+<RunMessageLoop>d__122, Orleans.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext(System.Threading.Thread)
   at System.Threading.ExecutionContext.RunInternal(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.ExecuteEntry()
   at Orleans.Runtime.Scheduler.ActivationTaskScheduler.RunTask(System.Threading.Tasks.Task)
   at Orleans.Runtime.Scheduler.WorkItemGroup.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()

fernandozago avatar Jun 28 '23 18:06 fernandozago