{"action":"opened","issue":{"url":"https://api.github.com/repos/icsharpcode/ILSpy/issues/1367","repository_url":"https://api.github.com/repos/icsharpcode/ILSpy","labels_url":"https://api.github.com/repos/icsharpcode/ILSpy/issues/1367/labels{/name}","comments_url":"https://api.github.com/repos/icsharpcode/ILSpy/issues/1367/comments","events_url":"https://api.github.com/repos/icsharpcode/ILSpy/issues/1367/events","html_url":"https://github.com/icsharpcode/ILSpy/issues/1367","id":394967643,"node_id":"MDU6SXNzdWUzOTQ5Njc2NDM=","number":1367,"title":"v.4.x: AssertionFailedException in Decompiler.CSharp.ExpressionBuilder.VisitUnbox","user":{"login":"greenozon","id":765343,"node_id":"MDQ6VXNlcjc2NTM0Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/765343?v=4","gravatar_id":"","url":"https://api.github.com/users/greenozon","html_url":"https://github.com/greenozon","followers_url":"https://api.github.com/users/greenozon/followers","following_url":"https://api.github.com/users/greenozon/following{/other_user}","gists_url":"https://api.github.com/users/greenozon/gists{/gist_id}","starred_url":"https://api.github.com/users/greenozon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenozon/subscriptions","organizations_url":"https://api.github.com/users/greenozon/orgs","repos_url":"https://api.github.com/users/greenozon/repos","events_url":"https://api.github.com/users/greenozon/events{/privacy}","received_events_url":"https://api.github.com/users/greenozon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-31T11:33:46Z","updated_at":"2018-12-31T11:33:46Z","closed_at":null,"author_association":"NONE","body":"ILSpy version 4.0.0.4482-beta3\r\n```\r\nError decompiling Microsoft.AnalysisServices.AdomdServer.MDXValue.ToSByte\r\n ---> ICSharpCode.ILSpy.AssertionFailedException: \r\n   at ICSharpCode.ILSpy.ILSpyTraceListener.Fail(String message, String detailMessage) in offset 380\r\n   at ICSharpCode.ILSpy.ILSpyTraceListener.Fail(String message) in offset 9\r\n   at System.Diagnostics.TraceInternal.Fail(String message) in offset 55\r\n   at System.Diagnostics.Debug.Assert(Boolean condition) in offset 6\r\n   at ICSharpCode.Decompiler.CSharp.ExpressionBuilder.Translate(ILInstruction inst, IType typeHint) in offset 425\r\n   at ICSharpCode.Decompiler.CSharp.ExpressionBuilder.VisitUnbox(Unbox inst, TranslationContext context) in offset 14\r\n   at ICSharpCode.Decompiler.IL.Unbox.AcceptVisitor[C,T](ILVisitor`2 visitor, C context) in offset 9\r\n   at ICSharpCode.Decompiler.CSharp.ExpressionBuilder.Translate(ILInstruction inst, IType typeHint) in offset 61\r\n   at ICSharpCode.Decompiler.CSharp.ExpressionBuilder.VisitLdObj(LdObj inst, TranslationContext context) in offset 14\r\n   at ICSharpCode.Decompiler.IL.LdObj.AcceptVisitor[C,T](ILVisitor`2 visitor, C context) in offset 9\r\n   at ICSharpCode.Decompiler.CSharp.ExpressionBuilder.Translate(ILInstruction inst, IType typeHint) in offset 61\r\n   at ICSharpCode.Decompiler.CSharp.StatementBuilder.VisitLeave(Leave inst) in offset 151\r\n   at ICSharpCode.Decompiler.IL.Leave.AcceptVisitor[T](ILVisitor`1 visitor) in offset 1\r\n   at ICSharpCode.Decompiler.CSharp.StatementBuilder.Convert(ILInstruction inst) in offset 16\r\n   at ICSharpCode.Decompiler.CSharp.StatementBuilder.ConvertBlockContainer(BlockStatement blockStatement, BlockContainer container, IEnumerable`1 blocks, Boolean isLoop) in offset 145\r\n   at ICSharpCode.Decompiler.CSharp.StatementBuilder.ConvertBlockContainer(BlockContainer container, Boolean isLoop) in offset 7\r\n   at ICSharpCode.Decompiler.CSharp.StatementBuilder.VisitBlockContainer(BlockContainer container) in offset 168\r\n   at ICSharpCode.Decompiler.IL.BlockContainer.AcceptVisitor[T](ILVisitor`1 visitor) in offset 1\r\n   at ICSharpCode.Decompiler.CSharp.StatementBuilder.Convert(ILInstruction inst) in offset 16\r\n   at ICSharpCode.Decompiler.CSharp.StatementBuilder.ConvertAsBlock(ILInstruction inst) in offset 1\r\n   at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(IMethod method, EntityDeclaration entityDecl, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 709\r\n-- continuing with outer exception (ICSharpCode.Decompiler.DecompilerException) --\r\n   at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(IMethod method, EntityDeclaration entityDecl, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 1068\r\n   at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompile(IMethod method, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 249\r\n   at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.Decompile(IList`1 definitions) in offset 408\r\n   at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.Decompile(EntityHandle[] definitions) in offset 1\r\n   at ICSharpCode.ILSpy.CSharpLanguage.DecompileMethod(IMethod method, ITextOutput output, DecompilationOptions options) in offset 246\r\n   at ICSharpCode.ILSpy.TreeNodes.MethodTreeNode.Decompile(Language language, ITextOutput output, DecompilationOptions options) in offset 15\r\n   at ICSharpCode.ILSpy.TextView.DecompilerTextView.DecompileNodes(DecompilationContext context, ITextOutput textOutput) in offset 69\r\n   at ICSharpCode.ILSpy.TextView.DecompilerTextView.<>c__DisplayClass34_0.<DecompileAsync>b__0() in offset 38\r\n\r\n```\r\n\r\nThere are many issues of same type around (same class, ToXXX() methods)\r\n\r\ntarget: from issue #1366 "}}
{"actor":{"display_login":"greenozon"}}