Bug 20035 - Crash if you use the find in files keyboard shortcut while finding
Summary: Crash if you use the find in files keyboard shortcut while finding
Status: RESOLVED DUPLICATE of bug 20910
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 5.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-05-25 22:54 UTC by Josh Simmons
Modified: 2014-12-10 19:42 UTC (History)
3 users (show)

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

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 DUPLICATE of bug 20910

Description Josh Simmons 2014-05-25 22:54:46 UTC
If you press find in files more than once too quickly Xamarin Studio wigs out.

Flow was "Cmd-Shift-F <search term> Cmd-Shift-F" then pressing stop on the "There is a search already in progress" popup.

System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
  at System.Collections.Generic.List`1[MonoDevelop.Ide.FindInFiles.ISearchProgressMonitor].RemoveAt (Int32 index) [0x00038] in /Volumes/build-root-ramdisk/mono-3.4.0/mcs/class/corlib/System.Collections.Generic/List.cs:564 
  at System.Collections.Generic.List`1[MonoDevelop.Ide.FindInFiles.ISearchProgressMonitor].Remove (ISearchProgressMonitor item) [0x0000f] in /Volumes/build-root-ramdisk/mono-3.4.0/mcs/class/corlib/System.Collections.Generic/List.cs:524 
  at MonoDevelop.Ide.FindInFiles.FindInFilesDialog+<SearchReplace>c__AnonStorey1.<>m__0 (System.Object ) [0x0024d] in /Users/builder/data/lanes/886/892675cb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.FindInFiles/FindInFilesDialog.cs:825

Full version is 5.0 (build 876)
Comment 1 Josh Simmons 2014-05-25 23:05:32 UTC
Actually that repro process isn't quite right.

Actual process is

Cmd-Shift-F <search term> Enter Enter Enter

Which gives two search in progress dialogs, pressing stop on the top one produces the exception.
Comment 2 narayanp 2014-05-26 08:48:12 UTC
I have followed both steps mentioned in this Issue and comment#1. But I am not seeing this crash at my end. I have checked it with same builds:

X.S 5.0 (Build 876)
Git revision: 892675cba83be2d00954bfdf22dd8a29e6a47502
Mono 3.4.0

This is the screencast for the same: http://www.screencast.com/t/l9IJvKaTljM1

@Josh, Could you please provide screencast and IDE log? 
IDE log from /Library/Logs/XamarinStudio-5.0/IDE.log
Comment 3 Josh Simmons 2014-05-26 09:06:01 UTC
Sure thing I can provide those tomorrow.

It's worth noting that I saw the issue on a MacBook Air running a large project, so the search was rather slow to respond (and I was performing the actions rather quickly). Potentially you're not able to trigger the bug on a faster machine.
Comment 4 Josh Simmons 2014-05-26 21:12:07 UTC
Here's the full log, I'll try and make a cast later on today.

http://codepad.org/FttKMxXr
Comment 5 Marius Ungureanu 2014-12-10 19:42:20 UTC
Marked as dupe.
Comment 6 Marius Ungureanu 2014-12-10 19:42:35 UTC
.

*** This bug has been marked as a duplicate of bug 20910 ***