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

Internal debugger error on latest dnspy net48 commit... #84

Closed
Deltafox79 opened this issue Apr 22, 2022 · 9 comments · Fixed by #88
Closed

Internal debugger error on latest dnspy net48 commit... #84

Deltafox79 opened this issue Apr 22, 2022 · 9 comments · Fixed by #88
Labels
debugger Relating to the debugger component needs more info More information is required
Milestone

Comments

@Deltafox79
Copy link

Before clicking Submit new issue, try the latest build

  • What version did you use?
    6.1.9 commit 4.033
    ide

  • Write down all steps needed to reproduce this issue. Also attach any needed files.

Just breakpoints debugger on Module .cctor on simple winform app.... only for net48 dnspy release

@ElektroKill
Copy link
Member

ElektroKill commented Apr 22, 2022

Hi, could you provide the sample file used? I am unable to reproduce the issue on my end.

@Deltafox79
Copy link
Author

Deltafox79 commented Apr 22, 2022

Release.rar

if that works, could you kindly provide latest version net48 compiled commit 4.033?

this is the last build of v6.1.9 commit 4.033 made today :

git clone --recursive https://github.com/dnSpyEx/dnSpy.git
cd dnSpy
# or dotnet build
./build.ps1 -NoMsbuild

dnSpy_v6.1.9_x86_x64_Framework_v4.8-Net_v6.0_Compiled_at_20_Apr_2022.rar

Thanks

@ElektroKill
Copy link
Member

ElektroKill commented Apr 23, 2022

Hi, I'm still unable to reproduce the issue on my end. On my side, everything works as it should. I am using the latest build from GitHub Actions in the recording. I have verified that using the build you uploaded also works as expected.
dnSpy_fOwi00FTmj

What you could try is to open dnSpy solution in a IDE with debugger support, place a breakpoint here:


Then debug the application and perform the same actions you did before to reproduce the issue. The breakpoint should be hit and you should be able to see a more detailed error. If you are able to provide this error it will be easier to identify the underlying issue.

@Deltafox79
Copy link
Author

Deltafox79 commented Apr 23, 2022

Hi this is the exception which is verifiable at the required breakpoints

{System.TypeLoadException: Il metodo 'SynthesizedInterfaceMethodImpls' del tipo 'Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.EENamedTypeSymbol' dell'assembly 'Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9813e10cffb0cdd6' non ha un'implementazione.
   in Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.CompilationContext.CompileGetLocals(String typeName, ArrayBuilder`1 localBuilder, Boolean argumentsOnly, ImmutableArray`1 aliases, CompilationTestData testData, DiagnosticBag diagnostics)
   in Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.EvaluationContext.CompileGetLocals(ArrayBuilder`1 locals, Boolean argumentsOnly, ImmutableArray`1 aliases, DiagnosticBag diagnostics, String& typeName, CompilationTestData testData) in C:\Users\delta\dnSpy\dnSpy\Roslyn\Roslyn.ExpressionCompiler\CSharp\CSharpExpressionCompiler\EvaluationContext.cs:riga 507
   in Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.EvaluationContext.CompileGetLocals(Boolean argumentsOnly, ImmutableArray`1 aliases, DSEELocalAndMethod[]& locals, String& typeName, String& errorMessage) in C:\Users\delta\dnSpy\dnSpy\Roslyn\Roslyn.ExpressionCompiler\CSharp\CSharpExpressionCompiler\EvaluationContext.cs:riga 486
   in dnSpy.Roslyn.Debugger.ExpressionCompiler.CSharp.CSharpExpressionCompiler.CompileGetLocals(DbgEvaluationInfo evalInfo, DbgModuleReference[] references, DbgEvaluationOptions options) in C:\Users\delta\dnSpy\dnSpy\Roslyn\dnSpy.Roslyn\Debugger\ExpressionCompiler\CSharp\CSharpExpressionCompiler.cs:riga 91
   in dnSpy.Debugger.DotNet.Evaluation.Engine.DbgEngineLocalsProviderImpl.GetNodesCore(DbgEvaluationInfo evalInfo, DbgValueNodeEvaluationOptions options, DbgLocalsValueNodeEvaluationOptions localsOptions) in C:\Users\delta\dnSpy\Extensions\dnSpy.Debugger\dnSpy.Debugger.DotNet\Evaluation\Engine\DbgEngineLocalsProviderImpl.cs:riga 178}

is it useful as information?

ex

ex2

@ElektroKill
Copy link
Member

Hi, this situation looks very strange... From the exception, it seems that the runtime is complaining that EENamedTypeSymbol does not contain an implementation of method SynthesizedInterfaceMethodImpls. However, if we look at the compiled assemblies and source code we see that there is in fact an implementation.
image
To be completely honest, I have no idea why this error is occurring. :/

Here are some more things you can try so I can get an idea of when this happened.

@Deltafox79
Copy link
Author

Hi, this situation looks very strange... From the exception, it seems that the runtime is complaining that EENamedTypeSymbol does not contain an implementation of method SynthesizedInterfaceMethodImpls. However, if we look at the compiled assemblies and source code we see that there is in fact an implementation. image To be completely honest, I have no idea why this error is occurring. :/

Here are some more things you can try so I can get an idea of when this happened.

* Does this issue occur if you download the build from https://github.com/dnSpyEx/dnSpy/actions/runs/2191613201?

* Does this issue occur if you download the build from https://github.com/dnSpyEx/dnSpy/actions/runs/2184978048 (this is the last build before the Roslyn code was updated)?

* Does this issue occur if you download the build from https://github.com/dnSpyEx/dnSpy/releases/tag/v6.1.9 (the latest stable release)?

Hi.. I would like to repeat and specify that the problem occurs only on the NET Framework 4.8 releases, the Net 6.0 versions do not have this bug ..
Here are the results of the tests required on NET48... In Order :

  1. Error is present on release 2191613201
  2. Release 2184978048 Is ok
  3. Official release v6.1.9 Is ok

Regards

@ElektroKill
Copy link
Member

Okay, so it looks like this issue occurs for you since I updated the Roslyn dependency. I'm still puzzled by how I cannot reproduce this issue on any build of dnSpy. I will have to do more research into this problem. :/

@Deltafox79
Copy link
Author

Deltafox79 commented Apr 23, 2022

Thanks for your time my tests were done on a pc with
win 11 (21h2 build 22000.613) whit all latest windows update..

in the next few days I will communicate if this bug occurs on other pc configurations

@ElektroKill
Copy link
Member

ElektroKill commented May 15, 2022

Hi, were you able to replicate the issue on any other hardware configurations? I installed Windows 11 in a VM and was unable to reproduce this.

EDIT: If anyone else is able to reproduce this problem and is able to provide more information, please let me know!

@ElektroKill ElektroKill added debugger Relating to the debugger component needs more info More information is required labels May 15, 2022
@ElektroKill ElektroKill added this to the 6.2 milestone Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger Relating to the debugger component needs more info More information is required
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants