Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

StackOverflowException and OutOfMemory Exception #69

Open
rollsch opened this issue Jun 4, 2019 · 1 comment
Open

StackOverflowException and OutOfMemory Exception #69

rollsch opened this issue Jun 4, 2019 · 1 comment

Comments

@rollsch
Copy link

rollsch commented Jun 4, 2019

When I run in release mode I get a stackoverflowexception. If I run in debug mode and break I see lots of OutOfMemory exceptions due to trying to allocate an array >2 gb

I ran with the log options and here is the resultant log.

=============================================
Timestamp (UTC): 4/06/2019 3:14:15 AM
ILMerge version 3.0.0.0
Copyright (C) Microsoft Corporation 2004-2006. All rights reserved.
ILMerge company.editor.exe /log /lib:C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated /out:company.exe company.model.dll company.common.dll company.ui.common.dll company.j2534.dll company.external.dll company.api.dll
Set platform to 'v4', using directory 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319' for mscorlib.dll
Running on Microsoft (R) .NET Framework v4.0.30319
mscorlib.dll version = 4.0.0.0
The list of input assemblies is:
        company.editor.exe
        company.model.dll
        company.common.dll
        company.ui.common.dll
        company.j2534.dll
        company.external.dll
        company.api.dll
Trying to read assembly from the file 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\company.editor.exe'.
Can not find PDB file. Debug info will not be available for assembly 'company.editor.exe'.
        Successfully read in assembly.
        There were no errors reported in company.Editor's metadata.
Trying to read assembly from the file 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\company.model.dll'.
Can not find PDB file. Debug info will not be available for assembly 'company.model.dll'.
        Successfully read in assembly.
        There were no errors reported in company.Model's metadata.
Trying to read assembly from the file 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\company.common.dll'.
Can not find PDB file. Debug info will not be available for assembly 'company.common.dll'.
        Successfully read in assembly.
        There were no errors reported in company.Common's metadata.
Trying to read assembly from the file 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\company.ui.common.dll'.
Can not find PDB file. Debug info will not be available for assembly 'company.ui.common.dll'.
        Successfully read in assembly.
        There were no errors reported in company.UI.Common's metadata.
Trying to read assembly from the file 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\company.j2534.dll'.
Can not find PDB file. Debug info will not be available for assembly 'company.j2534.dll'.
        Successfully read in assembly.
        There were no errors reported in company.J2534's metadata.
Trying to read assembly from the file 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\company.external.dll'.
Can not find PDB file. Debug info will not be available for assembly 'company.external.dll'.
        Successfully read in assembly.
        There were no errors reported in company.External's metadata.
Trying to read assembly from the file 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\company.api.dll'.
Can not find PDB file. Debug info will not be available for assembly 'company.api.dll'.
        Successfully read in assembly.
        There were no errors reported in company.Api's metadata.
Checking to see that all of the input assemblies have a compatible PeKind.
        company.Editor.PeKind = ILonly, Requires32bits, Prefers32bits
        company.Model.PeKind = ILonly
        company.Common.PeKind = ILonly
        company.UI.Common.PeKind = ILonly
        company.J2534.PeKind = ILonly
        company.External.PeKind = ILonly
        company.Api.PeKind = ILonly
All input assemblies have a compatible PeKind value.
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'PresentationFramework'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
        AssemblyResolver: Did not find assembly in framework directory.
AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.)
AssemblyResolver: Assembly 'PresentationFramework' is referencing assembly 'WindowsBase'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
        AssemblyResolver: Did not find assembly in framework directory.
AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.)
AssemblyResolver: Assembly 'PresentationFramework' is referencing assembly 'System.Xaml'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Xaml'.
Resolved assembly reference 'System.Xaml' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319\System.Xaml.dll'. (Used framework directory.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'DevExpress.Xpf.Core.v19.1'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Xpf.Core.v19.1'.
Resolved assembly reference 'DevExpress.Xpf.Core.v19.1' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Xpf.Core.v19.1.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'PresentationFramework' is referencing assembly 'PresentationCore'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
        AssemblyResolver: Did not find assembly in framework directory.
AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'DevExpress.Xpf.Grid.v19.1'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Xpf.Grid.v19.1'.
Resolved assembly reference 'DevExpress.Xpf.Grid.v19.1' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Xpf.Grid.v19.1.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'DevExpress.Xpf.Grid.v19.1' is referencing assembly 'DevExpress.Xpf.Grid.v19.1.Core'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Xpf.Grid.v19.1.Core'.
Resolved assembly reference 'DevExpress.Xpf.Grid.v19.1.Core' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Xpf.Grid.v19.1.Core.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'DevExpress.Mvvm.v19.1'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Mvvm.v19.1'.
Resolved assembly reference 'DevExpress.Mvvm.v19.1' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Mvvm.v19.1.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'DevExpress.Xpf.Grid.v19.1' is referencing assembly 'DevExpress.Data.v19.1'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Data.v19.1'.
Resolved assembly reference 'DevExpress.Data.v19.1' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Data.v19.1.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'DevExpress.Xpf.Grid.v19.1' is referencing assembly 'DevExpress.Printing.v19.1.Core'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Printing.v19.1.Core'.
Resolved assembly reference 'DevExpress.Printing.v19.1.Core' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Printing.v19.1.Core.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'DevExpress.Xpf.Docking.v19.1'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Xpf.Docking.v19.1'.
Resolved assembly reference 'DevExpress.Xpf.Docking.v19.1' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Xpf.Docking.v19.1.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'DevExpress.Xpf.Docking.v19.1' is referencing assembly 'DevExpress.Xpf.Layout.v19.1.Core'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Xpf.Layout.v19.1.Core'.
Resolved assembly reference 'DevExpress.Xpf.Layout.v19.1.Core' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Xpf.Layout.v19.1.Core.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'System.Core'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Core'.
Resolved assembly reference 'System.Core' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319\System.Core.dll'. (Used framework directory.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'DevExpress.Xpf.Controls.v19.1'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Xpf.Controls.v19.1'.
Resolved assembly reference 'DevExpress.Xpf.Controls.v19.1' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Xpf.Controls.v19.1.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'DevExpress.Xpf.Charts.v19.1'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Xpf.Charts.v19.1'.
Resolved assembly reference 'DevExpress.Xpf.Charts.v19.1' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Xpf.Charts.v19.1.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'DevExpress.Xpf.Charts.v19.1' is referencing assembly 'DevExpress.Charts.v19.1.Core'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Charts.v19.1.Core'.
Resolved assembly reference 'DevExpress.Charts.v19.1.Core' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Charts.v19.1.Core.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'Arction.WPF.Gauges'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'Arction.WPF.Gauges'.
Resolved assembly reference 'Arction.WPF.Gauges' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Arction.WPF.Gauges.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'Arction.Wpf.SemibindableCharting.LightningChartUltimate'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'Arction.Wpf.SemibindableCharting.LightningChartUltimate'.
Resolved assembly reference 'Arction.Wpf.SemibindableCharting.LightningChartUltimate' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Arction.Wpf.SemibindableCharting.LightningChartUltimate.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'Nito.AsyncEx'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'Nito.AsyncEx'.
Resolved assembly reference 'Nito.AsyncEx' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Nito.AsyncEx.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'Nito.AsyncEx' is referencing assembly 'System.Runtime'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Runtime'.
Resolved assembly reference 'System.Runtime' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319\System.Runtime.dll'. (Used framework directory.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'SharpRaven'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'SharpRaven'.
Resolved assembly reference 'SharpRaven' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\SharpRaven.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Model' is referencing assembly 'protobuf-net'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'protobuf-net'.
Resolved assembly reference 'protobuf-net' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\protobuf-net.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Model' is referencing assembly 'System.ComponentModel.DataAnnotations'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
Can not find PDB file. Debug info will not be available for assembly 'System.ComponentModel.DataAnnotations'.
Resolved assembly reference 'System.ComponentModel.DataAnnotations' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319\System.ComponentModel.DataAnnotations.dll'. (Used framework directory.)
AssemblyResolver: Assembly 'company.Model' is referencing assembly 'LiteDB'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'LiteDB'.
Resolved assembly reference 'LiteDB' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\LiteDB.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Model' is referencing assembly 'System.Runtime.Serialization'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Runtime.Serialization'.
Resolved assembly reference 'System.Runtime.Serialization' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319\System.Runtime.Serialization.dll'. (Used framework directory.)
AssemblyResolver: Assembly 'company.Common' is referencing assembly 'Unity.Container'.
        AssemblyResolver: Attempting referencing assembly's directory.
Resolved assembly reference 'Unity.Container' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Unity.Container.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'Unity.Container' is referencing assembly 'Unity.Abstractions'.
        AssemblyResolver: Attempting referencing assembly's directory.
Resolved assembly reference 'Unity.Abstractions' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Unity.Abstractions.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.UI.Common' is referencing assembly 'DevExpress.Xpf.PdfViewer.v19.1'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Xpf.PdfViewer.v19.1'.
Resolved assembly reference 'DevExpress.Xpf.PdfViewer.v19.1' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Xpf.PdfViewer.v19.1.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'DevExpress.Xpf.PdfViewer.v19.1' is referencing assembly 'DevExpress.Xpf.DocumentViewer.v19.1.Core'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Xpf.DocumentViewer.v19.1.Core'.
Resolved assembly reference 'DevExpress.Xpf.DocumentViewer.v19.1.Core' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Xpf.DocumentViewer.v19.1.Core.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'DevExpress.Xpf.PdfViewer.v19.1' is referencing assembly 'DevExpress.Pdf.v19.1.Core'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Pdf.v19.1.Core'.
Resolved assembly reference 'DevExpress.Pdf.v19.1.Core' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\DevExpress.Pdf.v19.1.Core.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.UI.Common' is referencing assembly 'Arction.Wpf.BindableCharting.LightningChartUltimate'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'Arction.Wpf.BindableCharting.LightningChartUltimate'.
Resolved assembly reference 'Arction.Wpf.BindableCharting.LightningChartUltimate' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Arction.Wpf.BindableCharting.LightningChartUltimate.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Api' is referencing assembly 'HtmlAgilityPack'.
        AssemblyResolver: Attempting referencing assembly's directory.
Resolved assembly reference 'HtmlAgilityPack' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\HtmlAgilityPack.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Api' is referencing assembly 'System.Net.Http'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Net.Http'.
Resolved assembly reference 'System.Net.Http' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\System.Net.Http.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Api' is referencing assembly 'SendGrid'.
        AssemblyResolver: Attempting referencing assembly's directory.
Resolved assembly reference 'SendGrid' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\SendGrid.dll'. (Used referencing Module's directory.)
Using assembly 'company.Editor' for assembly-level attributes for the target assembly.
Merging assembly 'company.Editor' into target assembly.
Merging assembly 'company.Model' into target assembly.
Duplicate type name: modifying name of the type '<>F{00000008}`5' (from assembly 'company.Model') to 'company.Model.<>F{00000008}`5'
Duplicate type name: modifying name of the type '<PrivateImplementationDetails>' (from assembly 'company.Model') to 'company.Model.<PrivateImplementationDetails>'
Merging assembly 'company.Common' into target assembly.
Duplicate type name: modifying name of the type '<PrivateImplementationDetails>' (from assembly 'company.Common') to 'company.Common.<PrivateImplementationDetails>'
Merging assembly 'company.UI.Common' into target assembly.
Merging assembly 'company.J2534' into target assembly.
Duplicate type name: modifying name of the type '<PrivateImplementationDetails>' (from assembly 'company.J2534') to 'company.J2534.<PrivateImplementationDetails>'
Merging assembly 'company.External' into target assembly.
Duplicate type name: modifying name of the type '<PrivateImplementationDetails>' (from assembly 'company.External') to 'company.External.<PrivateImplementationDetails>'
Merging assembly 'company.Api' into target assembly.
Copying 9 Win32 Resources from assembly 'company.Editor' into target assembly.
Transferring entry point 'company.Editor.App.Main' from assembly 'company.Editor' to assembly 'company'.
        There were no errors reported in the target assembly's metadata.
ILMerge: Writing target assembly 'company.exe'.
AssemblyResolver: Assembly 'PresentationCore' is referencing assembly 'UIAutomationTypes'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
        AssemblyResolver: Did not find assembly in framework directory.
AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.)
AssemblyResolver: Assembly 'Arction.Wpf.SemibindableCharting.LightningChartUltimate' is referencing assembly 'Arction.RenderingDefinitions'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'Arction.RenderingDefinitions'.
Resolved assembly reference 'Arction.RenderingDefinitions' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Arction.RenderingDefinitions.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'Arction.Wpf.SemibindableCharting.LightningChartUltimate' is referencing assembly 'Arction.Licensing'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'Arction.Licensing'.
Resolved assembly reference 'Arction.Licensing' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Arction.Licensing.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'Arction.Wpf.SemibindableCharting.LightningChartUltimate' is referencing assembly 'Arction.RenderingEngine'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'Arction.RenderingEngine'.
Resolved assembly reference 'Arction.RenderingEngine' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Arction.RenderingEngine.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'Arction.Wpf.SemibindableCharting.LightningChartUltimate' is referencing assembly 'Arction.DirectX'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'Arction.DirectX'.
Resolved assembly reference 'Arction.DirectX' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Arction.DirectX.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'System.Configuration'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Configuration'.
Resolved assembly reference 'System.Configuration' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319\System.Configuration.dll'. (Used framework directory.)
AssemblyResolver: Assembly 'DevExpress.Xpf.Grid.v19.1.Core' is referencing assembly 'System.Printing'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
        AssemblyResolver: Did not find assembly in framework directory.
AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.)
AssemblyResolver: Assembly 'DevExpress.Xpf.Grid.v19.1.Core' is referencing assembly 'UIAutomationProvider'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
        AssemblyResolver: Did not find assembly in framework directory.
AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.)
AssemblyResolver: Assembly 'company.Editor' is referencing assembly 'Microsoft.CSharp'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
Can not find PDB file. Debug info will not be available for assembly 'Microsoft.CSharp'.
Resolved assembly reference 'Microsoft.CSharp' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319\Microsoft.CSharp.dll'. (Used framework directory.)
AssemblyResolver: Assembly 'Nito.AsyncEx' is referencing assembly 'System.Threading.Tasks'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Threading.Tasks'.
Resolved assembly reference 'System.Threading.Tasks' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319\System.Threading.Tasks.dll'. (Used framework directory.)
AssemblyResolver: Assembly 'Nito.AsyncEx' is referencing assembly 'System.Diagnostics.Debug'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Diagnostics.Debug'.
Resolved assembly reference 'System.Diagnostics.Debug' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319\System.Diagnostics.Debug.dll'. (Used framework directory.)
AssemblyResolver: Assembly 'SharpRaven' is referencing assembly 'Newtonsoft.Json'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'Newtonsoft.Json'.
Resolved assembly reference 'Newtonsoft.Json' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Newtonsoft.Json.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Model' is referencing assembly 'CoreTechs.Common'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'CoreTechs.Common'.
Resolved assembly reference 'CoreTechs.Common' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\CoreTechs.Common.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Model' is referencing assembly 'MoreLinq'.
        AssemblyResolver: Attempting referencing assembly's directory.
Resolved assembly reference 'MoreLinq' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\MoreLinq.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'MoreLinq' is referencing assembly 'System.ValueTuple'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'System.ValueTuple'.
Resolved assembly reference 'System.ValueTuple' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\System.ValueTuple.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Common' is referencing assembly 'ICSharpCode.SharpZipLib'.
        AssemblyResolver: Attempting referencing assembly's directory.
Resolved assembly reference 'ICSharpCode.SharpZipLib' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\ICSharpCode.SharpZipLib.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Api' is referencing assembly 'System.Net.Http.WebRequest'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Net.Http.WebRequest'.
Resolved assembly reference 'System.Net.Http.WebRequest' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319\System.Net.Http.WebRequest.dll'. (Used framework directory.)
AssemblyResolver: Assembly 'System.Net.Http.WebRequest' is referencing assembly 'System.Net.Http'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Net.Http'.
Resolved assembly reference 'System.Net.Http' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Net.Http.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Api' is referencing assembly 'GoogleAnalyticsTracker.Simple'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'GoogleAnalyticsTracker.Simple'.
Resolved assembly reference 'GoogleAnalyticsTracker.Simple' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\GoogleAnalyticsTracker.Simple.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'GoogleAnalyticsTracker.Simple' is referencing assembly 'GoogleAnalyticsTracker.Core'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'GoogleAnalyticsTracker.Core'.
Resolved assembly reference 'GoogleAnalyticsTracker.Core' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\GoogleAnalyticsTracker.Core.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Api' is referencing assembly 'WebApiContrib.Formatting.ProtoBuf'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'WebApiContrib.Formatting.ProtoBuf'.
Resolved assembly reference 'WebApiContrib.Formatting.ProtoBuf' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\WebApiContrib.Formatting.ProtoBuf.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'WebApiContrib.Formatting.ProtoBuf' is referencing assembly 'System.Net.Http.Formatting'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Net.Http.Formatting'.
Resolved assembly reference 'System.Net.Http.Formatting' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\System.Net.Http.Formatting.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'WebApiContrib.Formatting.ProtoBuf' is referencing assembly 'System.Net.Http'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Net.Http'.
Resolved assembly reference 'System.Net.Http' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\System.Net.Http.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'WebApiContrib.Formatting.ProtoBuf' is referencing assembly 'protobuf-net'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'protobuf-net'.
Resolved assembly reference 'protobuf-net' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\protobuf-net.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'System.Net.Http.Formatting' is referencing assembly 'Newtonsoft.Json'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'Newtonsoft.Json'.
Resolved assembly reference 'Newtonsoft.Json' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Newtonsoft.Json.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'SendGrid' is referencing assembly 'Newtonsoft.Json'.
        AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'Newtonsoft.Json'.
Resolved assembly reference 'Newtonsoft.Json' to 'C:\Temp\company\UI\company.Editor\bin\Debug - Editor - Obfuscated\Newtonsoft.Json.dll'. (Used referencing Module's directory.)
AssemblyResolver: Assembly 'company.Api' is referencing assembly 'System.DirectoryServices.AccountManagement'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: Did not find assembly in user-supplied directories.
        AssemblyResolver: Attempting framework directory.
Can not find PDB file. Debug info will not be available for assembly 'System.DirectoryServices.AccountManagement'.
Resolved assembly reference 'System.DirectoryServices.AccountManagement' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319\System.DirectoryServices.AccountManagement.dll'. (Used framework directory.)

Process is terminated due to StackOverflowException.
@hrumhurum
Copy link

@rolandh , I can see that you use some obfuscated assemblies as ILMerge input.

Are those assemblies verifiable? You can check that with the help of PEVerify.exe tool from .NET Framework SDK.

If they are not verifiable then ILMerge or any other .NET tool cannot guarantee the consistent behavior. This can be the root cause of stack overflow you get.

Another thing to check is to temporarily exclude obfuscation from the pipeline. Does stack overflow persist?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants