Comments (5)
Maybe same issue - seen on PowerShell 7.2.22 assemblies:
Failed to decompile the assembly 'C:\Program Files\PowerShell\7\System.Private.DataContractSerialization.dll':
System.AggregateException: One or more errors occurred. (Error decompiling for 'System.Runtime.Serialization\FastInvokerBuilder.cs')
---> Error decompiling for 'System.Runtime.Serialization\FastInvokerBuilder.cs'
in assembly "C:\Program Files\PowerShell\7\System.Private.DataContractSerialization.dll"
---> ICSharpCode.ILSpy.AssertionFailedException:
at ICSharpCode.ILSpy.ILSpyTraceListener.Fail(String message, String detailMessage) in offset 379
at System.Diagnostics.TraceInternal.Fail(String message, String detailMessage) in offset 48
at System.Diagnostics.Debug.Fail(String message, String detailMessage) in offset 0
at ICSharpCode.Decompiler.CSharp.Transforms.DeclareVariables.ResolveCollisions() in DeclareVariables.cs:line 479
at ICSharpCode.Decompiler.CSharp.Transforms.DeclareVariables.Analyze(AstNode rootNode) in DeclareVariables.cs:line 173
at ICSharpCode.Decompiler.CSharp.Transforms.PatternStatementTransform.Run(AstNode rootNode, TransformContext context) in PatternStatementTransform.cs:line 47
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.RunTransforms(AstNode rootNode, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in CSharpDecompiler.cs:line 565
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileTypes(IEnumerable`1 types) in CSharpDecompiler.cs:line 951
at ICSharpCode.Decompiler.CSharp.ProjectDecompiler.WholeProjectDecompiler.<>c__DisplayClass46_0.<WriteCodeFilesInProject>b__5(IGrouping`2 file) in WholeProjectDecompiler.cs:line 289
-- continuing with outer exception (ICSharpCode.Decompiler.DecompilerException) --
at ICSharpCode.Decompiler.CSharp.ProjectDecompiler.WholeProjectDecompiler.<>c__DisplayClass46_0.<WriteCodeFilesInProject>b__5(IGrouping`2 file) in WholeProjectDecompiler.cs:line 313
at System.Threading.Tasks.Parallel.<>c__DisplayClass43_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) in offset 259
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in offset 17
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source) in offset 0
at System.Threading.Tasks.Parallel.<>c__DisplayClass43_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) in offset 609
at System.Threading.Tasks.TaskReplicator.Replica.Execute() in offset 35
--- End of inner exception stack trace ---
at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 body)
at ICSharpCode.Decompiler.CSharp.ProjectDecompiler.WholeProjectDecompiler.<>c__DisplayClass46_0.<WriteCodeFilesInProject>g__ProcessFiles|3(List`1 files) in /_/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs:line 270
at ICSharpCode.Decompiler.CSharp.ProjectDecompiler.WholeProjectDecompiler.WriteCodeFilesInProject(MetadataFile module, IList`1 partialTypes, CancellationToken cancellationToken) in /_/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs:line 225
at ICSharpCode.Decompiler.CSharp.ProjectDecompiler.WholeProjectDecompiler.DecompileProject(MetadataFile file, String targetDirectory, TextWriter projectFileWriter, CancellationToken cancellationToken) in /_/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs:line 154
at ICSharpCode.ILSpy.CSharpLanguage.DecompileAssembly(LoadedAssembly assembly, ITextOutput output, DecompilationOptions options)
at ICSharpCode.ILSpy.SolutionWriter.WriteProject(LoadedAssembly loadedAssembly, Language language, String targetDirectory, CancellationToken ct)
-------------
from ilspy.
the last issue was tested on latest CI debug build:
ILSpy version 9.0.0.7707-preview2
.NET version 8.0.7+2aade6beb02ea367fd97c4070a4198802fe61c03
from ilspy.
Could you please test with https://github.com/icsharpcode/ILSpy/actions/runs/10123262446?pr=3243#artifacts ?
from ilspy.
hi!
tried on your link
ILSpy 9.0.0.7706-preview2-pr3243 (Debug)
ILSpy version 9.0.0.7706-(HEAD detached at pull/3243/merge)-preview2
.NET version 8.0.7+2aade6beb02ea367fd97c4070a4198802fe61c03
results:
SUCCESS
but why does the newer CI build (9.0.0.7707) fails... not clear ?!
see my post above
from ilspy.
You picked a mainline build, and the one I provided was for a not-yet-merged pull request that is intended to fix exactly this issue.
from ilspy.
Related Issues (20)
- ILSpy generates worse code with NullableAttribute
- Missing `readonly` on ref-local can result in ArrayTypeMismatchException
- Load assemblies that were loaded in the last instance doesnt work HOT 2
- Error code on decompiled file HOT 1
- Choppy scrolling when scrolling fast after smooth scrolling introduction HOT 3
- `InvalidOperationException` thrown when reading debug metadata files HOT 3
- Settings panel shows strange hover/selection behavior
- Decompiler Settings: Checkbox in group header does not reflect state of the group
- Weird cast HOT 4
- Failed to decompile file .NETCoreApp v8 HOT 7
- Quicksearch box font cut below HOT 6
- It is not possible to use NRT attributes in the ILSpy project HOT 4
- FR: IL view on the GUI HOT 2
- FR: Symbols removal & renaming in the ILSpy GUI HOT 1
- Empty dotnet version folders lead to problems with resolving core assemblies in DotNetCorePathFinder HOT 1
- Assert at ICSharpCode.Decompiler.CSharp.Transforms.DeclareVariables.ResolveCollisions() HOT 1
- ILSpy crash
- Can't export project: System.UnauthorizedAccessException: Access to the path 'xxxx' is denied.
- Open class in new tab by default option HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ilspy.