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.

Double writes on publish, causes R2R task failure

See original GitHub issue

I don’t know if this is related to #3257, but I was able to repro this issue again using the latest Preview9 bits (8e9948a3b768811ca5b3a666ff06207a16be69ec, 3.0.100-preview9-013692).

Here’s the repro:

  1. clone https://github.com/aspnet/Benchmarks (commit hash for repro: 3ddf6558ec4d3636dc8fec4f0c142834ffa38bf5)
  2. dotnet publish -f netcoreapp3.0 -r win-x64 -v n src\BenchmarksServer /bl

There are 3 files double-written:

  • Dia2Lib.dll
  • TraceReloggerLib.dll
  • OSExtensions.dll.

I’ll attach the binlog.

Also, this causes the R2R task to fail with errors like this one, if you add /p:PublishReadyToRun=true to the publish command:

e:\dotnet_preview9\sdk\3.0.100-preview9-013692\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(308,28): error MSB4094: "C:\Users\fadim\.nuget\packages\microsoft.diagnostics.tracing.traceevent\2.0.44\lib\netstandard1.6\OSExtensions.dll;C:\Users\fadim\.nuget\packages\microsoft.diagnostics.tracing.traceevent\2.0.44\lib\netstandard2.0\OSExtensions.dll" is an invalid value for the "CompilationEntry" parameter of the "RunReadyToRunCompiler" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem". [D:\GIT\Benchmarks\src\BenchmarksServer\BenchmarksServer.csproj]

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
nguerreracommented, Aug 6, 2019

My proposal would be to dedupe resolvedfiletopublish pre-Crossgen,bundler,linker with last one wins to preserve same output as today. And warn if any dupes are removed. Any warning would still be a bug, but not blocking, and come to us rather than you.

0reactions
marcpopMSFTcommented, Oct 27, 2021

Daniel thinks this is probably fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

( SOLVED ) All R2R keygens no run...
Go to custom views -> administrative events and take a look for any error related to an R2R keygen. You then should see...
Read more >
Dual Writes - The Unknown Cause of Data Inconsistencies
If the database transaction fails, or your application or the database crash before you can store the information about the failed event, you...
Read more >
May we please discuss seam breaks in 2-3 yr tanks - Reef2Reef
Red Sea G1 525 XL Seam Failure :( Hey guys, I always hoped that I got lucky and wouldn't have to make this...
Read more >
r2r.pdf
When on_missing_key is equal to "throw", querying a missing key will cause an error. In this case, an rlang abort condition of class ......
Read more >
arXiv:2002.10638v2 [cs.CV] 5 Apr 2020
NE Navigation Error is the mean of the shortest path dis- tance in meters between the agent's final location and the target location....
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