Bug 36249 - double clicking in build output hangs XS
Summary: double clicking in build output hangs XS
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Shell ()
Version: 5.9
Hardware: PC Mac OS
: High major
Target Milestone: (C9)
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2015-11-25 11:37 UTC by Zoltan Varga
Modified: 2016-11-10 09:32 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
testcase (22.53 KB, application/octet-stream)
2015-11-25 11:38 UTC, Zoltan Varga
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
VERIFIED FIXED

Description Zoltan Varga 2015-11-25 11:37:19 UTC
Sometimes, double clicking in the build output causes xs to hang. The stack trace is the following:

The regex used by TryExtractFileAndLine seems to take a very long time on long lines, like 'mtouch' command lines.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
"GUI Thread"  at System.Text.RegularExpressions.RegexInterpreter.Backtrack () [0x00019] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/external/referencesource/System/regex/system/text/regularexpressions/RegexInterpreter.cs:129
  at System.Text.RegularExpressions.RegexInterpreter.Go () [0x00f67] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/external/referencesource/System/regex/system/text/regularexpressions/RegexInterpreter.cs:1094
  at System.Text.RegularExpressions.RegexRunner.Scan (System.Text.RegularExpressions.Regex,string,int,int,int,int,bool,System.TimeSpan) [0x00109] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/external/referencesource/System/regex/system/text/regularexpressions/RegexRunner.cs:179
  at System.Text.RegularExpressions.Regex.Run (bool,int,string,int,int,int) [0x000af] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/external/referencesource/System/regex/system/text/regularexpressions/Regex.cs:1287
  at System.Text.RegularExpressions.Regex.Match (string,int) [0x00011] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/external/referencesource/System/regex/system/text/regularexpressions/Regex.cs:824
  at System.Text.RegularExpressions.Regex.Match (string) [0x00011] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/external/referencesource/System/regex/system/text/regularexpressions/Regex.cs:809
  at MonoDevelop.Ide.Gui.Components.LogView/LogTextView.TryExtractFileAndLine (string,string&,int&) [0x00007] in /Users/builder/data/lanes/2103/4e9c5abb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/LogView.cs:140
  at MonoDevelop.Ide.Gui.Components.LogView/LogTextView.OnButtonPressEvent (Gdk.EventButton) [0x000c0] in /Users/builder/data/lanes/2103/4e9c5abb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/LogView.cs:176
  at Gtk.Widget.buttonpressevent_cb (intptr,intptr) [0x00016] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/gtk-sharp-2.12.21/gtk/generated/Widget.cs:494
  at (wrapper native-to-managed) Gtk.Widget.buttonpressevent_cb (intptr,intptr) <IL 0x00028, 0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <IL 0x00026, 0xffffffff>
  at Gtk.Application.Run () [0x00001] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/gtk-sharp-2.12.21/gtk/Application.cs:135
  at MonoDevelop.Ide.IdeApp.Run () [0x00000] in /Users/builder/data/lanes/2103/4e9c5abb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:376
  at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions) [0x00833] in /Users/builder/data/lanes/2103/4e9c5abb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:291
  at MonoDevelop.Ide.IdeStartup.Main (string[],MonoDevelop.Ide.Extensions.IdeCustomizer) [0x00093] in /Users/builder/data/lanes/2103/4e9c5abb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:652
  at Xamarin.Startup.MainClass.Main (string[]) [0x00003] in /Users/builder/data/lanes/2103/4e9c5abb/source/md-addins/Xamarin.Startup/Main.cs:11
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <IL 0x00064, 0xffffffff>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Comment 1 Zoltan Varga 2015-11-25 11:38:44 UTC
Created attachment 13992 [details]
testcase

Attached a testcase which shows the regex on a build output line.
Comment 2 Zoltan Varga 2015-11-25 11:39:33 UTC
Version info:
=== Xamarin Studio ===

Version 5.10 (build 871)
Installation UUID: 7c96df2a-3cbd-4569-939c-38d3d2cdf645
Runtime:
	Mono 4.2.1 (explicit/6dd2d0d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010102

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 7.1.1 (9081)
Build 7B1005

=== Xamarin.iOS ===

Version: 9.3.2.385 (Enterprise Edition)
Hash: faa5967
Branch: master
Build date: 2015-11-23 12:17:20-0500

=== Xamarin.Android ===

Version: 5.1.2 (Enterprise Edition)
Android SDK: /Users/vargaz/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)

SDK Tools Version: 24.1.2
SDK Platform Tools Version: 22.0.0
SDK Build Tools Version: 22.0.1

Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

=== Xamarin Android Player ===

Version: 0.1.1
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: 2.5.0.2372 (Enterprise Edition)

=== Build Information ===

Release ID: 510000871
Git revision: 4e9c5abb5ffdae12ba02ac49da83f8b2011dbb88
Build date: 2015-11-12 06:02:54-05
Xamarin addins: 55007ed0e56436f385d8e26394a45be563abc7e8
Build lane: monodevelop-lion-cycle6

=== Operating System ===

Mac OS X 10.11.1
Darwin Zoltans-Mac-Pro.local 15.0.0 Darwin Kernel Version 15.0.0
    Sat Sep 19 15:53:46 PDT 2015
    root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64
Comment 3 Zoltan Varga 2016-10-11 17:21:40 UTC
Bumping priority, this causes the UI to hang.
Comment 4 xamarin-release-manager 2016-10-20 11:28:55 UTC
Fixed in version 6.2.0.1258 (master)

Author: Mike Kr??ger
Commit: 7bf5684d5ffdd6362dcb98e7d85631ce9146f533 (mono/monodevelop)
Comment 5 Mohit Kheterpal 2016-11-07 11:35:55 UTC
I have checked this issue and able to reproduce this issue.

And with latest build of master i.e. XamarinStudio-6.3.0.7_0d4935e056917bd277e079abc44574f9b9e1b900 this issue has been fixed.

Hence closing this issue by marking it as Verified.

thanks
Comment 6 Mohit Kheterpal 2016-11-07 11:38:50 UTC
By Mistake I have verified this issue. So please ignore comment 5, changing its status again as RESOLVE FIXED.
Comment 7 Saurabh 2016-11-10 09:32:51 UTC
I have checked this Issue with latest Cycle 9 build (XS 6.2.0.1357). Double clicking in build output working fine in XS. XS does not hang.

Environment Info and Logs: https://gist.github.com/0b9f3cae77486037d2f927853ae5df4f