Bug 35112 - Quick backspacing when searching for type will crash the studio
Summary: Quick backspacing when searching for type will crash the studio
Status: RESOLVED ANSWERED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 5.9
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Matt Ward
URL:
Depends on:
Blocks:
 
Reported: 2015-10-20 16:40 UTC by Doron
Modified: 2015-10-22 12:46 UTC (History)
1 user (show)

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


Attachments
A screen capture of the problem (3.20 MB, video/quicktime)
2015-10-20 16:40 UTC, Doron
Details
Xamarin Studio log. I think the exception at the end of the log is what crashes the studio (29.01 KB, application/octet-stream)
2015-10-21 01:15 UTC, Doron
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:
RESOLVED ANSWERED

Description Doron 2015-10-20 16:40:12 UTC
Created attachment 13465 [details]
A screen capture of the problem

Steps to reproduce:
1. Press Cmd+Shift+T to search for type
2. The search box gets focus and 'type:' is pre-entered
3. Start typing
3. Quickly press backspace several times until it starts deleting the 'type:'
4. Xamarin Studio crashes

This will usually happen to me when I'm searching for a type. If I have a typo in the type's name I press backspace several times and if I'm not careful I accidently delete part of the 'type:' string and crash the studio.
It reproduces on all mac laptops in our office.
Comment 1 Mike Krüger 2015-10-21 00:00:49 UTC
I'm unable to reproduce it:

http://screencast.com/t/Qu7YeiBKjW

Anything in the logs ?
May be related to the installed gtk or mono - can you give me the about box versions to get sure that we're on the same version ?
Comment 2 Doron 2015-10-21 01:12:44 UTC
I am attaching the Ide.log file which I think contains the stack trace for the exception.
This is the about box contents:
Xamarin Studio
Version 5.9.7 (build 22)
Installation UUID: 85f21222-2e68-4345-a0d8-ecb7e74b3c66
Runtime:
	Mono 4.0.4 ((detached/d481017)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400040004

Apple Developer Tools
Xcode 7.0.1 (8228)
Build 7A1001

Xamarin.iOS
Version: 9.0.1.29 (Business Edition)
Hash: 1d27ac2
Branch: master
Build date: 2015-09-25 18:08:44-0400

Xamarin.Android
Version: 5.1.7.12 (Business Edition)
Android SDK: /Users/doron/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

Xamarin Android Player
Not Installed

Xamarin.Mac
Not Installed

Build Information
Release ID: 509070022
Git revision: 6bd1f169df44ca96addf8a035316c535a4fa46fa
Build date: 2015-09-30 12:30:15-04
Xamarin addins: 1c3e5c0859bdfec0ecd481a57ad6c03bc22f5536

Operating System
Mac OS X 10.10.5
Darwin Dorons-MacBook-Pro.local 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
Comment 3 Doron 2015-10-21 01:15:44 UTC
Created attachment 13474 [details]
Xamarin Studio log. I think the exception at the end of the log is what crashes the studio
Comment 4 Doron 2015-10-21 01:18:52 UTC
My solution contains an android project, an ios project and several shared projects.
This is the stacktrace of the exception:
2015-10-20 22:17:14.737 XamarinStudio[45452:8270932] warning: Could not load signature of ICSharpCode.PackageManagement.PackageManagementSolution2:GetActiveProject due to: Could not load file or assembly or one of its dependencies.
ERROR [2015-10-20 22:17:14Z]: An unhandled exception has occured. Terminating Xamarin Studio? False
System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.PackageManagement.PackageManagementExtendedServices ---> System.TypeLoadException: Could not load type 'ICSharpCode.PackageManagement.PackageManagementSolution2' from assembly 'MonoDevelop.PackageManagement.Extensions, Version=0.6.0.0, Culture=neutral, PublicKeyToken=null'.
  --- End of inner exception stack trace ---
  at MonoDevelop.PackageManagement.InstallPackageDataSource.IsProjectSelected () [0x00000] in <filename unknown>:0
  at MonoDevelop.PackageManagement.InstallPackageDataSource.MonoDevelop.Components.MainToolbar.ISearchDataSource.get_ItemCount () [0x00000] in <filename unknown>:0
  at MonoDevelop.Components.MainToolbar.SearchPopupWindow.ShowResult (MonoDevelop.Components.MainToolbar.SearchCategory cat, ISearchDataSource result) [0x00082] in /Users/builder/data/lanes/1936/6bd1f169/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/SearchPopupWindow.cs:250
  at MonoDevelop.Components.MainToolbar.SearchPopupWindow+<Update>c__AnonStorey1+<Update>c__AnonStorey2.<>m__0 (System.Object , System.EventArgs ) [0x0002e] in /Users/builder/data/lanes/1936/6bd1f169/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/SearchPopupWindow.cs:229
  at Gtk.Application+InvokeCB.Invoke () [0x00013] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/gtk-sharp-2.12.21/gtk/Application.cs:202
  at GLib.Timeout+TimeoutProxy.Handler () [0x0000f] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/gtk-sharp-2.12.21/glib/Timeout.cs:70
ERROR [2015-10-20 22:17:14Z]: An unhandled exception has occured. Terminating Xamarin Studio? True
System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.PackageManagement.PackageManagementExtendedServices ---> System.TypeLoadException: Could not load type 'ICSharpCode.PackageManagement.PackageManagementSolution2' from assembly 'MonoDevelop.PackageManagement.Extensions, Version=0.6.0.0, Culture=neutral, PublicKeyToken=null'.
  --- End of inner exception stack trace ---
  at MonoDevelop.PackageManagement.InstallPackageDataSource.IsProjectSelected () [0x00000] in <filename unknown>:0
  at MonoDevelop.PackageManagement.InstallPackageDataSource.MonoDevelop.Components.MainToolbar.ISearchDataSource.get_ItemCount () [0x00000] in <filename unknown>:0
  at MonoDevelop.Components.MainToolbar.SearchPopupWindow.ShowResult (MonoDevelop.Components.MainToolbar.SearchCategory cat, ISearchDataSource result) [0x00082] in /Users/builder/data/lanes/1936/6bd1f169/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/SearchPopupWindow.cs:250
  at MonoDevelop.Components.MainToolbar.SearchPopupWindow+<Update>c__AnonStorey1+<Update>c__AnonStorey2.<>m__0 (System.Object , System.EventArgs ) [0x0002e] in /Users/builder/data/lanes/1936/6bd1f169/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/SearchPopupWindow.cs:229
  at Gtk.Application+InvokeCB.Invoke () [0x00013] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/gtk-sharp-2.12.21/gtk/Application.cs:202
  at GLib.Timeout+TimeoutProxy.Handler () [0x0000f] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/gtk-sharp-2.12.21/glib/Timeout.cs:70
Comment 5 Doron 2015-10-21 01:20:03 UTC
It reproduces also with a single console project. Sorry for spamming with comments...
Comment 6 Mike Krüger 2015-10-22 04:26:16 UTC
The NuGet extension is not compatible with your XS version.

Uninstall the NuGetExtension or download a newer version from GitHub

https://github.com/mrward/temp-addin-upload

Download the .mpack from here. Then use the Add-in Manager and select Install
from file to install the version 0.6.1 addin which works with Xamarin Studio
5.9.
Comment 7 Doron 2015-10-22 12:43:25 UTC
I had to install version 0.10.1 and it fixed the issue. Thanks.
Quick question - I installed Xamarin Studio some time ago and since then I only updated it through the Studio's update manager. 
Is there some place that could have indicated to me that I need to update the add-in?
Comment 8 Matt Ward 2015-10-22 12:46:48 UTC
Check for updates should show you there is an update. However you would need to be on the alpha channel for it to appear. Currently 0.10.1 is on alpha whilst 0.10 is on the beta channel.