question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SourceLink validation failures for CoreFX

See original GitHub issue

While switching to use pipelines publishing in corefx, I encountered 2 failures in SourceLink before I decided to disable it in order to make progress.

Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The paging file is too small for this operation to complete. (Exception from HRESULT: 0x800705AF)
System.Management.Automation.RemoteException: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The paging file is too small for this operation to complete. (Exception from HRESULT: 0x800705AF)
at <ScriptBlock>, D:\a\1\s\eng\common\tools.ps1: line 575
at <ScriptBlock>, <No file>: line 6

https://dev.azure.com/dnceng/internal/_build/results?buildId=297506&view=logs&jobId=0a6c679f-72be-5867-422e-acb741a068a3&taskId=d2ccdc12-7474-5a79-d9be-9757fb834354&lineStart=48&lineEnd=51&colStart=1&colEnd=36

The second one was:

Unable to load DLL 'iphlpapi.dll': Exception from HRESULT: 0x800705AF
System.Management.Automation.RemoteException: Unable to load DLL 'iphlpapi.dll': Exception from HRESULT: 0x800705AF
at <ScriptBlock>, <No file>: line 18

https://dev.azure.com/dnceng/internal/_build/results?buildId=298897&view=logs&jobId=0a6c679f-72be-5867-422e-acb741a068a3&taskId=d2ccdc12-7474-5a79-d9be-9757fb834354&lineStart=60&lineEnd=62&colStart=1&colEnd=37

I tried to repro locally by downloading the symbol packages from the build artifacts and ran the exact same version of the sourcelink validation ps1 script and didn’t get a repro, it was successful the 3 times I tried to run it.

@riarenas started taking a look to see if he found anything earlier today.

cc: @tmat @JohnTortugo @mmitche

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ericstjcommented, Aug 19, 2019

Cleaning the disk is important, but also trying to get powershell to avoid the memory growth is also important. Hacky fix for that would be a process boundary, perhaps there something with more finesse that would avoid hacks. I’m not sure how powershell roots objects & interacts with GC otherwise I’d provide some better suggestions: like buffer pooling.

0reactions
JohnTortugocommented, Mar 3, 2020

I did some quick profiling and confirmed that we’re creating a bunch of Jobs – 100’s given for CoreFx number of assets. That caused the script to use about 2GB of memory:

profile_before

I implemented something to limit the number of jobs that will be spawned to run in parallel and the memory footprint decreased to a fraction of that:

profile_after
Read more comments on GitHub >

github_iconTop Results From Across the Web

Debug .NET Core source
Source Link Error : Azure DevOps: Authentication failed for all accounts. Use 'File -> Account Settings...' to add a new account or refresh ......
Read more >
Announcing .NET Core 2.1
SourceLink is a system that enables a source debugging experiences for binaries that you either distribute or consume. It requires producers of ...
Read more >
DocumentFormat.OpenXml.Features 2.17.1
- Fixed crash when validation is invoked on .NET Framework with strong-naming enforced. ... - Moved to using System.IO.Packaging from dotnet/corefx for .NET ......
Read more >
How to debug the source code using Visual Studio 2015/2017?
Just set your breakpoint as normal (you'll see it fails with a little warning icon), then right click the breakpoint and choose “Location…”....
Read more >
release-notes
BUGFIX: Paket pack failed when project contained Compile Update entries ... BUGFIX: Revert impact of https://github.com/dotnet/corefx/issues/31098 by using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found