Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
In some scenarios, hovering your mouse over, for example, "RectangleF" in the expression: "new RectangleF (..." shows an "Evaluating..." tooltip that never completes.
I've tracked it down to SoftDebuggerAdaptor's ForceLoadType() trying to invoke GetType() on "System" on line 923 in git master. This invocation never returns.
Zoltan: can you look into this?
Let me know if MonoDevelop is doing something wrong, if it is.
So the problem here is that two threads hit the same breakpoint concurrently, so the runtime suspend count becomes 2, but it is only resumed once by the invoke code, causing this hang.
The invoke issue is now fixed, but 'continue' still doesn't work in this situation. This is because md receives two Breakpoint events, so the runtime is suspended two times, but md only resumes it once, so it remains suspended.
Okay, so I just need to fix MonoDevelop to keep track of the suspend count so that we can resume that number of times?
Another problem is that the GetType () method is not invoked with the IgnoreBreakpoints+SingleThreaded InvokeOptions, so if a breakpoint is hite during the invoke, the runtime will get suspended, and the invoke never completes. Normal property evaluation passes these options, but when hovering over
a class name, like 'Console', it doesn't.
Thanks Zoltan! I will look into fixing these issues in MonoDevelop.
Okay, I've fixed the InvokeOptions to pass DisableBreakpoints | SingleThreaded
next I'll fix MD to resume for each suspend.
So it turns out that MonoDevelop already handles resuming the correct number of times.
At this point, this bug is fixed - but hitting the breakpoint after the first time through the loop, MonoDevelop often doesn't highlight the breakpoint line (which is confusing in the UI). This is cause by bug #4023