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

LockRecursionException in ProjectSystemCache.TryGetProjectNameByShortName #3861

Closed
jainaashish opened this Issue Nov 2, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@jainaashish
Contributor

jainaashish commented Nov 2, 2016

Throw below exception at solution build with DPL :

System.Threading.LockRecursionException: Recursive read lock acquisitions not allowed in this mode.
   at System.Threading.ReaderWriterLockSlim.TryEnterReadLockCore(TimeoutTracker timeout)
   at System.Threading.ReaderWriterLockSlim.TryEnterReadLock(TimeoutTracker timeout)
   at NuGet.PackageManagement.VisualStudio.ProjectSystemCache.TryGetProjectNameByShortName(String name, ProjectNames& projectNames)
   at NuGet.PackageManagement.VisualStudio.ProjectSystemCache.TryGetProjectNames(String name, ProjectNames& projectNames)
   at NuGet.PackageManagement.VisualStudio.VSSolutionManager.SetDefaultProjectName()
   at NuGet.PackageManagement.VisualStudio.VSSolutionManager.EnsureNuGetAndEnvDTEProjectCache()
   at NuGet.PackageManagement.VisualStudio.VSSolutionManager.<<Init>b__81_1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
   at NuGet.PackageManagement.VisualStudio.VSSolutionManager.Init()

@jainaashish jainaashish added the Type:Bug label Nov 2, 2016

@jainaashish jainaashish added this to the 4.0 RC milestone Nov 2, 2016

@jainaashish jainaashish self-assigned this Nov 2, 2016

@rrelyea rrelyea modified the milestones: Future-1, 4.0 RC, 4.0 RC2 Nov 2, 2016

@rrelyea

This comment has been minimized.

Show comment
Hide comment
@rrelyea

rrelyea Nov 2, 2016

Contributor

From Rodrigo:
No RC bug.

  • I only see this in DPL mode
  • Apparently only manifest for solution build not for project build
  • I tried Roslyn.sln but haven’t tried in simple projects
  • When I tried no projects were loaded (the whole purpose of DPL)
Contributor

rrelyea commented Nov 2, 2016

From Rodrigo:
No RC bug.

  • I only see this in DPL mode
  • Apparently only manifest for solution build not for project build
  • I tried Roslyn.sln but haven’t tried in simple projects
  • When I tried no projects were loaded (the whole purpose of DPL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment