Skip to content
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

Error when publish #7952

Open
DenMpei opened this issue Jan 13, 2020 · 5 comments
Open

Error when publish #7952

DenMpei opened this issue Jan 13, 2020 · 5 comments

Comments

@DenMpei
Copy link

@DenMpei DenMpei commented Jan 13, 2020

Good morning! Sometimes, such an error occurs when publishing (dotnet publish -c Release -r win-x64). They in no way treated, but disappears by itself after a while. Prompt, what to see and how to fix?
Microsoft.DotNet.ILCompiler package version: 1.0.0-alpha-28327-01, but I tried on 1.0.0-alpha-28510-01

Generating compatible native code. To optimize for size or speed, visit https://aka.ms/OptimizeCoreRT
16:06:21 EXEC : warning : RD.XML processing will change before release (#5001) [D:\Jenkins\workspace\Project.csproj]
16:06:21 EXEC : error : External component has thrown an exception. [D:\Jenkins\workspace\Project.csproj]
16:06:21 System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
16:06:21 at ILCompiler.DependencyAnalysis.ObjectWriter.FinishObjWriter(IntPtr objWriter)
16:06:21 at ILCompiler.DependencyAnalysis.ObjectWriter.EmitObject(String objectFilePath, IEnumerable`1 nodes, NodeFactory factory, IObjectDumper dumper)
16:06:21 at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String outputFile, ObjectDumper dumper)
16:06:22 at ILCompiler.Program.Run(String[] args)
16:06:22 at ILCompiler.Program.Main(String[] args)
16:06:22 C:\Users\rpt-virtual.nuget\packages\microsoft.dotnet.ilcompiler\1.0.0-alpha-28327-01\build\Microsoft.NETCore.Native.targets(226,5): error MSB3073: The command ""C:\Users\user.nuget\packages\runtime.win-x64.microsoft.dotnet.ilcompiler\1.0.0-alpha-28327-01\tools\ilc" @"obj\Release\netcoreapp2.2\win-x64\native\Project.ilc.rsp"" exited with code 1. [D:\Jenkins\workspace\Project.csproj]

@jkotas

This comment has been minimized.

Copy link
Member

@jkotas jkotas commented Jan 13, 2020

This is likely another manifestation of the ObjectWriter related crashes #7907 and #7926.

We know that it is related to the debug symbols generation. You can try to apply workaround from #7907 and see whether the issue will go away. If it goes away, it will suggest that it is the same underlying problem.

We were not able get to the bottom of this issue. If there is anything you can share to with it - access to reliable repro or dump of the crashed compiler - we will be very grateful.

@DenMpei

This comment has been minimized.

Copy link
Author

@DenMpei DenMpei commented Jan 13, 2020

"You can try to apply workaround from #7907" - Good. As soon as the failure repeats, I'll try a workaround

@DenMpei

This comment has been minimized.

Copy link
Author

@DenMpei DenMpei commented Jan 17, 2020

Unfortunately, the error continues to appear even after adding code to bypass it. What do you need for a more detailed analysis?

@jkotas

This comment has been minimized.

Copy link
Member

@jkotas jkotas commented Jan 17, 2020

A dump of the crash would be the most useful. Are you comfortable sharing it with us? Note that the dump will likely contain binaries of your app.

If yes, here is how to collect the dump:

@DenMpei

This comment has been minimized.

Copy link
Author

@DenMpei DenMpei commented Jan 17, 2020

Good. But it may not be soon. The error is floating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.