R#10 debug unit test hangs Visual Studio: The dispatcher queue size on thread <NULL>:1 has reached the limit of 10,000 items.

I've recently switch from R#10 EAP to RTM for a 30 day trial.  For the first time with RTM, I kicked off debugging of a unit test.  It never gets there.  It seems to start the test and enter debugging mode, but never actually starts.  Visual Studio ends up freezing/hanging/not-responding.  Task manager shows 25% CPU usage on my 8-core box (usually a single-thread loop shows 1/8th usage, or 12%-13%).  I kill VS and re-launch and have an exception waiting for me in the R# Exception Browser.  I can't submit it because it claims it "Can't connect to server".  Here's the exception:

The dispatcher queue size on thread <NULL>:1 has reached the limit of 10,000 items.

--- EXCEPTION #1/2 [InvalidOperationException]
Message = “The dispatcher queue size on thread <NULL>:1 has reached the limit of 10,000 items.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509

--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “The dispatcher queue size on thread <NULL>:1 has reached the limit of 10,000 items.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 10 Build 104.0.20151101.164448”
Data.SubProducts.#0 = “JetBrains dotCover 10 Build 10.0.20151101.190849”
Data.SubProducts.#1 = “JetBrains dotMemory 10.0 Build 10.0.20151101.190843”
Data.SubProducts.#2 = “JetBrains dotTrace 10 Build 10.0.20151101.191121”
Data.SubProducts.#3 = “JetBrains ReSharper 10 Build 10.0.20151101.194151”
Data.ManagedThreadName = “JetPool (S) Regular thread #3”
Data.SccRevisionEnv = “
  Platform\Core\Shell:
   hg::wave04::501589B91D05C7FC53188838B729BFC5977F1F37

  Platform\VisualStudio:
   hg::wave04::6D502BFBADF85A712F33A37A78496EE7272711A8

Data.VsVersion = 14.0.23107.0
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.Util.Concurrency.WinJetDispatcher.BeginInvokeCore(Closure closure)
     at JetBrains.Util.Concurrency.WinJetDispatcher.BeginInvoke(String name, Action action, TaskPriority priority)
     at JetBrains.Threading.ReentrancyGuard.BeginInvokeExecutePendingActions(Boolean isCalledFromIsExecutingFalling)
     at JetBrains.Threading.ReentrancyGuard.Queue(String name, Action action, TaskPriority priority)
     at JetBrains.Threading.ReentrancyGuardEx.<>c__DisplayClass4.<Queue>b__0(LifetimeDefinition definition, Lifetime lifetimeOnQueue)
     at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILogger logger)
     at JetBrains.Threading.ReentrancyGuardEx.Queue(ReentrancyGuard thіs, Lifetime lifetime, String name, Action F)
     at JetBrains.Threading.ReentrancyGuardEx.ExecuteOrQueue(ReentrancyGuard thіs, Lifetime lifetime, String name, Action F, TaskPriority priority)
     at JetBrains.Threading.IThreadingEx.ExecuteOrQueue(IThreading thіs, Lifetime lifetime, String name, Action action)
     at JetBrains.Application.IShellLocksEx.ExecuteOrQueueReadLock(IShellLocks thіs, Lifetime lifetime, String name, Action F)
     at JetBrains.ReSharper.UnitTestExplorer.Session.Preview.UnitTestSessionOutputPanel.RenderAll(IUnitTestElement element, UnitTestResult result, UnitTestResultData resultData)
     at JetBrains.ReSharper.UnitTestExplorer.Session.Preview.UnitTestSessionOutputPanel.<>c__DisplayClass10.<SelectionChanged>b__d(UnitTestResultDataEventArgs e)
     at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
     at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
     at JetBrains.DataFlow.Signal`1.Fire(TValue value)
     at JetBrains.ReSharper.UnitTestFramework.UnitTestResultManager.ExecuteWithResultData(IUnitTestElement element, IUnitTestSession session, Action`2 action)
     at JetBrains.ReSharper.UnitTestFramework.UnitTestResultManager.TestStarting(IUnitTestElement element, IUnitTestSession session)
     at JetBrains.ReSharper.UnitTestProvider.MSTest11.MsTest11Runner.StartTestCase(IUnitTestRun run, TestResult result, UnitTestResultData elResultData, MsTestTestMethodElement element, String& typeName)
     at JetBrains.ReSharper.UnitTestProvider.MSTest11.MsTest11Runner.testRunRequest_OnRunStatsChange(IUnitTestRun run, TestRunChangedEventArgs args)
     at JetBrains.ReSharper.UnitTestProvider.MSTest11.MsTest11Debugger.<>c__DisplayClass3.<DoRun>b__1(Object s, TestRunChangedEventArgs a)
     at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
     at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
     at System.Delegate.DynamicInvokeImpl(Object[] args)
     at Microsoft.VisualStudio.TestPlatform.Common.Utilities.MulticastDelegateUtilities.SafeInvoke(Delegate delegates, Object sender, EventArgs args, String traceDisplayName)
     at Microsoft.VisualStudio.TestPlatform.Client.TestRunRequest.HandleTestRunStatsChange(TestRunChangedEventArgs testRunChangedArgs, IEnumerable`1 inProgressTestCases)
     at Microsoft.VisualStudio.TestPlatform.Client.Taef.TaefExecutionManager.<InitializeTestRunCache>b__32_0(ICollection`1 results, ICollection`1 inProgressTests)
     at Microsoft.VisualStudio.TestPlatform.Client.Taef.TestRunCache.SendResults()
     at Microsoft.VisualStudio.TestPlatform.Client.Taef.TestRunCache.CheckForCacheHitOnTimer()
     at Microsoft.VisualStudio.TestPlatform.Client.Taef.TestRunCache.OnCacheTimeHit(Object state)
     at System.Threading.TimerQueueTimer.CallCallbackInContext(Object state)
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.TimerQueueTimer.CallCallback()
     at System.Threading.TimerQueueTimer.Fire()
     at System.Threading.TimerQueue.FireNextTimers()
     at System.Threading.TimerQueue.AppDomainTimerCallback()

1 comment
Comment actions Permalink

Hello Brian,

  The following exception has been already submitted to YouTrack https://youtrack.jetbrains.com/issue/RSRP-449577. I filed a new ticket about the issue you experience https://youtrack.jetbrains.com/issue/RSRP-450446.

Thanks!

0

Please sign in to leave a comment.