SourceLink validation failures for CoreFX
See original GitHub issueWhile 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
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
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.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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:
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: