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

The IAsyncVisualizerObjectProvider.GetDeserializableObjectAsync method is not work. #266

Open
aetos382 opened this issue Aug 11, 2022 · 0 comments

Comments

@aetos382
Copy link

Installed products

  • Visual Studio: Community 17.3.0

Description

The IAsyncVisualizerObjectProvider.GetDeserializableObjectAsync method always returns null.

Steps to recreate

  1. git clone https://github.com/aetos382/SimpleVisualizer.git
  2. cd SimpleVisualizer\SimpleVisualizer.TestConsole
  3. dotnet run

Current behavior

An exception message is displayed in the visualizer window.

Expected behavior

The visualizer window will display "Hello".

Notes

Open SimpleVisualizer.DebuggerSide/Visualizer.cs, rewrite it to UseAsyncProvider = false and run again, it will work as expected.
In this case, the IVisualizerObjectProvider.GetObject method is used instead of the IAsyncVisualizerObjectProvider.GetDeserializableObjectAsync method.

Inside the implementation of the IAsyncVisualizerObjectProvider.GetDeserializableObjectAsync method, it tries to get the object from another AppDomain, but the SerializationException was thrown because CancellationToken passed as an argument of the method is not serializable, and the method returns null.

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

No branches or pull requests

1 participant