Bug 29879 - crash if I type in search box
Summary: crash if I type in search box
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Shell ()
Version: 5.9
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Bugzilla
URL:
: 33959 ()
Depends on:
Blocks:
 
Reported: 2015-05-08 09:44 UTC by George Cook
Modified: 2015-12-01 19:15 UTC (History)
6 users (show)

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


Attachments
logs of a crashed session. I pressed a key with the searchbox focused, and BOOM! it popped. (55.74 KB, application/zip)
2015-05-08 11:23 UTC, George Cook
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 George Cook 2015-05-08 09:44:57 UTC
every single time.

Renders the IDE totally useless. It say's it's sending you crash reports.

can I work around this?
Comment 1 George Cook 2015-05-08 11:23:55 UTC
Created attachment 11131 [details]
logs of a crashed session. I pressed a key with the searchbox focused, and BOOM! it popped.
Comment 2 Mike Krüger 2015-05-08 12:45:13 UTC
I handled the crash - that shouldn't happen anymore.

But it's caused by MonoDevelop.PackageManagement.Extensions the InstallPackageDataSource class crashes when trying to call ItemCount on the result it gives.

Are you using an addin of some sort ? If so try to disable that - this should be a partial workaround for the problem.
Comment 3 Matt Ward 2015-05-08 12:48:47 UTC
This looks to be the NuGet extensions addin causing the problem when you type into the search box. The 0.6 version of the NuGet extensions addin is not compatible with Xamarin Studio 5.9. To fix this you can uninstall the NuGet extensions addin 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 4 Marius Ungureanu 2015-09-15 08:21:49 UTC
*** Bug 33959 has been marked as a duplicate of this bug. ***
Comment 5 Marius Ungureanu 2015-09-15 08:23:24 UTC
Shouldn't this be backported to 5.9?
Comment 6 Lluis Sanchez 2015-09-15 09:27:33 UTC
Mike, can you make a PR against cycle6?
Comment 7 Matt Ward 2015-11-16 10:12:22 UTC
This still seems to be a problem in Xamarin Studio 5.10 on the alpha channel. The fix was applied in commit:

https://github.com/mono/monodevelop/commit/e99a75ed0eccaa21f728ca9f958feb507011232c

If you have Xamarin Studio 5.10 installed and install the NuGet extensions addin 0.10 from:

https://github.com/mrward/monodevelop-addins/blob/gh-pages/5.0/MonoDevelop.PackageManagement.Extensions_0.10.mpack

Then trying to run a search with no solution open causes Xamarin Studio to crash:

An unhandled exception has occured. Terminating Xamarin Studio? True
System.TypeInitializationException: The type initializer for 'MonoDevelop.PackageManagement.PackageManagementExtendedServices' threw an exception. ---> System.TypeLoadException: Could not load type 'ICSharpCode.PackageManagement.PackageManagementSolution2' from assembly 'MonoDevelop.PackageManagement.Extensions, Version=0.10.0.0, Culture=neutral, PublicKeyToken=null'.
  --- End of inner exception stack trace ---
  at MonoDevelop.PackageManagement.InstallPackageDataSource.IsProjectSelected () <0x198cfaa8 + 0x0000b> in <filename unknown>:0 
  at MonoDevelop.PackageManagement.InstallPackageDataSource.MonoDevelop.Components.MainToolbar.ISearchDataSource.get_ItemCount () <0x198cfa40 + 0x00013> in <filename unknown>:0 
  at MonoDevelop.Components.MainToolbar.SearchPopupWindow.<OnDrawContent>m__4 (System.Tuple`2 res) [0x00006] in /Users/builder/data/lanes/2103/1212ecb5/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/SearchPopupWindow.cs:852 
  at System.Linq.Enumerable+WhereListIterator`1[TSource].MoveNext () [0x00048] 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.Core/System/Linq/Enumerable.cs:232 
  at System.Linq.Buffer`1[TElement]..ctor (IEnumerable`1 source) [0x00083] 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.Core/System/Linq/Enumerable.cs:2570 
  at System.Linq.Enumerable.ToArray[TSource] (IEnumerable`1 source) [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.Core/System/Linq/Enumerable.cs:830 
  at MonoDevelop.Components.MainToolbar.SearchPopupWindow.OnDrawContent (Gdk.EventExpose evnt, Cairo.Context context) [0x00059] in /Users/builder/data/lanes/2103/1212ecb5/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/SearchPopupWindow.cs:852 
  at MonoDevelop.Components.PopoverWindow.OnExposeEvent (Gdk.EventExpose evnt) [0x00090] in /Users/builder/data/lanes/2103/1212ecb5/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/PopoverWindow.cs:370 
  at Gtk.Widget.exposeevent_cb (IntPtr widget, IntPtr evnt) [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:1221
Comment 8 Philipp 2015-11-19 09:02:16 UTC
I had the same issue, disabling the nuget extensions addin fixed the search again.
Comment 9 xamarin-release-manager 2015-11-27 06:39:41 UTC
Fixed in version 5.11.0.484 (master)

Author: Matt Ward
Commit: ae3c2fbf12691dce8ae5748216a6a48bc92dc8a4 (mono/monodevelop)
Comment 10 Sunil Kumar 2015-11-30 17:53:59 UTC
I have checked this issue with latest master XamarinStudio-5.11.0.487_bd2f397a0320871196ec1b8c96ccfd67f5feb3a5 and observed that now this issue works fine as shown in screencast: http://www.screencast.com/t/khLyDYWVr

Hence closing this issue.
Comment 11 xamarin-release-manager 2015-12-01 19:15:51 UTC
Fixed in version 5.10.2.13 (cycle6)

Author: Matt Ward
Commit: 35988a98b4340b896f4f5a0f08e1c444b569e9fb (mono/monodevelop)