Closed greenozon closed 6 years ago
Thank you for the report! I fear this method is difficult to reassemble without additional information. Could you please do one of the following to help us:
1) Provide the full assembly + references as zip file for us to investigate 2) Provide an IL file that can be reassembled with ilasm without warnings
And one tip: If you want to include multiple lines of code in a GitHub issue, please use three backticks followed by a newline at the start of the block and three backticks (on their own line) at the end, thank you!
It's inside the archive from #1173 BTW, it has dozen of other asserts...
Thanks for GH tip, it is very cool! appreciating your time & educational light :)
There is no method called "ErrorReportingExceptions" in any of the assemblies you posted... at least I cannot find any...
Here is another assembly having same assert case - ICSharpCode.Decompiler.IL.StObj.CheckInvariant(ILPhase phase)
I guess this assert is present on some mixed mode items
Error decompiling System.Void scoped_refptr<CefBrowser>::<MarshalCopy>(scoped_refptr<CefBrowser>*,scoped_refptr<CefBrowser>*)
---> ICSharpCode.ILSpy.AssertionFailedException:
at ICSharpCode.ILSpy.ILSpyTraceListener.Fail(String message, String detailMessage) in offset 380
at ICSharpCode.ILSpy.ILSpyTraceListener.Fail(String message) in offset 9
at System.Diagnostics.TraceInternal.Fail(String message) in offset 55
at System.Diagnostics.Debug.Assert(Boolean condition) in offset 6
at ICSharpCode.Decompiler.IL.StObj.CheckInvariant(ILPhase phase) in offset 75
at ICSharpCode.Decompiler.IL.ILInstruction.CheckInvariant(ILPhase phase) in offset 126
at ICSharpCode.Decompiler.IL.StLoc.CheckInvariant(ILPhase phase) in offset 8
at ICSharpCode.Decompiler.IL.Transforms.StatementTransform.Run(Block block, BlockTransformContext context) in offset 255
at ICSharpCode.Decompiler.IL.Block.RunTransforms(IEnumerable`1 transforms, BlockTransformContext context) in offset 69
at ICSharpCode.Decompiler.IL.Transforms.BlockILTransform.VisitBlock(ControlFlowNode cfgNode, BlockTransformContext context) in offset 146
at ICSharpCode.Decompiler.IL.Transforms.BlockILTransform.Run(ILFunction function, ILTransformContext context) in offset 146
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(MethodDefinition methodDefinition, IMethod method, EntityDeclaration entityDecl, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 420
-- continuing with outer exception (ICSharpCode.Decompiler.DecompilerException) --
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(MethodDefinition methodDefinition, IMethod method, EntityDeclaration entityDecl, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 954
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompile(MethodDefinition methodDefinition, IMethod method, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 126
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompile(ITypeDefinition typeDef, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 696
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompileTypes(IEnumerable`1 types, DecompileRun decompileRun, ITypeResolveContext decompilationContext, SyntaxTree syntaxTree) in offset 205
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileTypes(IEnumerable`1 types) in offset 106
at ICSharpCode.Decompiler.CSharp.WholeProjectDecompiler.<>c__DisplayClass22_0.<WriteCodeFilesInProject>b__1(IGrouping`2 file) in offset 68
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1() in offset 589
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) in offset 6
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object) in offset 134
Validated on version ILSpy version 4.0.0.4254-beta1
issue still present
I can't reproduce this anymore; I think one of the fixes on #1195 also solved this issue.
version used: ILSpy version 3.2.0.3746-alpha (from appveyor builds)
Yet another assert seen After pressing "Throw" button have got this error text:
IL bytes:
visual error: