mono / monodevelop

MonoDevelop is a cross platform .NET IDE
http://www.monodevelop.com
2.84k stars 1.02k forks source link

Debugging application MD application never starts and hangs in a loop forever #5835

Open netonjm opened 6 years ago

netonjm commented 6 years ago

It only happened 1 time. Killing the process and open new instance solved the problem.

1) Open a project 2) Press Start with Debug

Expected: MD compiles and executes with debug Result: MD is frozen in a forever loop.

Log details: https://gist.github.com/netonjm/c109256d7b5a2e099493d7a863d1d100

=== Visual Studio Enterprise 2017 for Mac ===

Version 7.6.1 (build 7) Installation UUID: ac2f5f5a-65c6-4e02-aae1-61d2ac9aabc1 Runtime: Mono 5.12.0.305 (2018-02/e0e035e3b14) (64-bit) GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac 4.4.1.178 (master / eeaeb7e6)

Package version: 512000305

=== NuGet ===

Version: 4.3.1.4445

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 2.1.2 2.1.1 2.0.5 2.0.3 2.0.0 1.1.2 1.1.1 1.0.5 1.0.4 1.0.3 SDK: /usr/local/share/dotnet/sdk/2.1.302/Sdks SDK Versions: 2.1.302 2.1.301 2.1.4 2.0.3 2.0.0 1.0.3 1.0.1 1.0.0-preview2-003156 MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.6.9 Location: /Users/jmedrano/Projects/profiler/src/XamarinProfiler.Mac/bin/Debug/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: 9.0.0.19 (Visual Studio Enterprise) Android SDK: /Users/jmedrano/Library/Developer/Xamarin/android-sdk-macosx Supported Android versions: 6.0 (API level 23) 8.1 (API level 27)

SDK Tools Version: 25.2.5 SDK Platform Tools Version: 28.0.0 SDK Build Tools Version: 25.0.3

Java SDK: /usr java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL

=== Apple Developer Tools ===

Xcode 9.4.1 (14161) Build 9F2000

=== Xamarin.Mac ===

Version: 4.99.3.658 (Visual Studio Enterprise) Hash: 1eefd4e3 Branch: Build date: 2018-08-21 15:01:53-0400

=== Xamarin.iOS ===

Version: 11.99.3.538 (Visual Studio Enterprise) Hash: 1eefd4e3 Branch: HEAD Build date: 2018-08-21 15:01:52-0400

=== Xamarin Inspector ===

Version: 1.4.3 Hash: db27525 Branch: 1.4-release Build date: Mon, 09 Jul 2018 21:20:18 GMT Client compatibility: 1

=== Build Information ===

Release ID: 706010007 Git revision: 7c9e755fe667840f2eed42b2e7910ec18ef51b82 Build date: 2018-08-24 02:25:33+00 Build branch: release-7.6-xcode10 Xamarin extensions: 1196f085605a84ce99f390a1aaee0bf257d31a50

=== Operating System ===

Mac OS X 10.13.6 Darwin 17.7.0 Darwin Kernel Version 17.7.0 Thu Jun 21 22:53:14 PDT 2018 root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64

=== Enabled user installed extensions ===

Gist Ide Information 1.1.0 AddinMaker 1.4.3 Internet of Things (IoT) extras 7.5.3 MSBuild Editor 2.0.4 NuGet Package Explorer 0.2 NuGet Package Management Extensions 0.13 Redth's Addins 1.0.9 Show in Github 1.0.4 VSMarketPlaceManager 1.0 Internet of Things (IoT) development (Preview) 7.5.3

VS bug #676988

Therzok commented 6 years ago

@sandyarmstrong @abock seems like a problem in the inspector support

sandyarmstrong commented 6 years ago

This seems to me like it's more likely to be a Mono runtime bug. Inspector is calling DebuggerSession.Breakpoints, and the runtime is failing an assertion on the lock call here https://github.com/mono/debugger-libs/blob/47186451bd72d8ec944bf3b21d3c229818a70e11/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs#L229.