Skip to content

Clock cache assertion fails #8488

@Marchhill

Description

@Marchhill

Description
Assertion fails:

Process terminated. Assertion failed.
_cacheMap.Count == _count
   at Nethermind.Core.Caching.ClockCache`2.SetSlow(TKey key, TValue val) in /root/nethermind/src/Nethermind/Nethermind.Core/Caching/ClockCache.cs:line 82
   at Nethermind.Core.Caching.ClockCache`2.Set(TKey key, TValue val) in /root/nethermind/src/Nethermind/Nethermind.Core/Caching/ClockCache.cs:line 66
   at Nethermind.Serialization.Rlp.KeyValueStoreRlpExtensions.Get[TCacheKey,TItem](IReadOnlyKeyValueStore db, TCacheKey cacheKey, ReadOnlySpan`1 key, IRlpStreamDecoder`1 decoder, ClockCache`2 cache, RlpBehaviors rlpBehaviors, Boolean shouldCache) in /root/nethermind/src/Nethermind/Nethermind.Serialization.Rlp/KeyValueStoreRlpExtensions.cs:line 93
   at Nethermind.Serialization.Rlp.KeyValueStoreRlpExtensions.Get[TItem](IReadOnlyKeyValueStore db, Int64 key, IRlpStreamDecoder`1 decoder, ClockCache`2 cache, RlpBehaviors rlpBehaviors, Boolean shouldCache) in /root/nethermind/src/Nethermind/Nethermind.Serialization.Rlp/KeyValueStoreRlpExtensions.cs:line 33
   at Nethermind.State.Repositories.ChainLevelInfoRepository.LoadLevel(Int64 number) in /root/nethermind/src/Nethermind/Nethermind.State/Repositories/ChainLevelInfoRepository.cs:line 80
   at Nethermind.Blockchain.BlockTree.LoadLevel(Int64 number, Boolean forceLoad) in /root/nethermind/src/Nethermind/Nethermind.Blockchain/BlockTree.cs:line 1406
   at Nethermind.Blockchain.BlockTree.FindCanonicalBlockInfo(Int64 blockNumber) in /root/nethermind/src/Nethermind/Nethermind.Blockchain/BlockTree.cs:line 629
   at Nethermind.Synchronization.FastBlocks.SyncStatusList.GetInfosForBatch(Span`1 blockInfos) in /root/nethermind/src/Nethermind/Nethermind.Synchronization/FastBlocks/SyncStatusList.cs:line 61
   at Nethermind.Synchronization.FastBlocks.SyncStatusList.TryGetInfosForBatch(Int32 batchSize, Func`2 blockExist, BlockInfo[]& infos) in /root/nethermind/src/Nethermind/Nethermind.Synchronization/FastBlocks/SyncStatusList.cs:line 101
   at Nethermind.Synchronization.FastBlocks.ReceiptsSyncFeed.PrepareRequest(CancellationToken token) in /root/nethermind/src/Nethermind/Nethermind.Synchronization/FastBlocks/ReceiptsSyncFeed.cs:line 142
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Nethermind.Synchronization.FastBlocks.ReceiptsSyncFeed.PrepareRequest(CancellationToken token)
   at Nethermind.Synchronization.ParallelSync.SyncDispatcher`1.DispatchLoop(CancellationToken cancellationToken) in /root/nethermind/src/Nethermind/Nethermind.Synchronization/ParallelSync/SyncDispatcher.cs:line 112
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)
   at Nethermind.Synchronization.FastBlocks.ReceiptsSyncFeed.PrepareRequest(CancellationToken token) in /root/nethermind/src/Nethermind/Nethermind.Synchronization/FastBlocks/ReceiptsSyncFeed.cs:line 166
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)
   at Nethermind.Synchronization.Peers.SyncPeerPool.EstimateRequestLimit(RequestType requestType, IPeerAllocationStrategy allocationStrategy, AllocationContexts context, CancellationToken token) in /root/nethermind/src/Nethermind/Nethermind.Synchronization/Peers/SyncPeerPool.cs:line 138
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)
   at Nethermind.Synchronization.Peers.SyncPeerPool.Allocate(IPeerAllocationStrategy peerAllocationStrategy, AllocationContexts allocationContexts, Int32 timeoutMilliseconds, CancellationToken cancellationToken) in /root/nethermind/src/Nethermind/Nethermind.Synchronization/Peers/SyncPeerPool.cs:line 368
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)
   at Nethermind.Core.Extensions.WaitHandleExtensions.WaitOneAsync(WaitHandle handle, Int32 millisecondsTimeout, CancellationToken cancellationToken) in /root/nethermind/src/Nethermind/Nethermind.Core/Extensions/WaitHandleExtensions.cs:line 36
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
   at System.Threading.Tasks.TaskCompletionSource`1.TrySetResult(TResult result)
   at Nethermind.Core.Extensions.WaitHandleExtensions.<>c.<WaitOneAsync>b__0_0(Object state, Boolean timedOut) in /root/nethermind/src/Nethermind/Nethermind.Core/Extensions/WaitHandleExtensions.cs:line 21
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.PortableThreadPool.CompleteWait(RegisteredWaitHandle handle, Boolean timedOut)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

Desktop:

  • Operating System: Linux
  • Version: Master
  • Installation Method: Running from source
  • Consensus Client: Lighthouse

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions