Bug 12153 - Lock up when right clicking on a variable.
Summary: Lock up when right clicking on a variable.
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.0.5
Hardware: PC Windows
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
: 12213 12448 ()
Depends on:
Blocks:
 
Reported: 2013-05-08 02:29 UTC by Simon Jefferies
Modified: 2013-09-12 06:20 UTC (History)
8 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 NOT_REPRODUCIBLE

Description Simon Jefferies 2013-05-08 02:29:49 UTC
Right clicking on a variable and attempting to bring up the context menu causes the IDE to lock up and become unresponsive.

Open a solution, trigger a compiler error and then right click on a variable to investigate line.

The context menu does not show and the IDE locks up.
Comment 1 Mike Krüger 2013-05-10 03:42:26 UTC
can you give me a KILL -QUIT output ?
Comment 2 Mike Krüger 2013-05-10 03:42:53 UTC
Oh you're using windows - there is no kill command there :/
Comment 3 Ben 2013-05-11 04:07:12 UTC
Just for a little more information - this doesn't cause a complete crash, it just hangs the UI for a long while. I let it sit while I searched for this bug, and after finding this I went back at the UI was responsive again. After the first long hang, I can right click variables and it behaves with normal speed.
Comment 4 eduard.qualls 2013-05-12 17:00:05 UTC
more info: 
   open any project (such as the database demo), 
   move the mouse over any identifier or C# keyword in a cs file
   when no info-bubble comes up, right-click on the word.
Nothing seems to happen. So,then 
   left-click anywhere on the editor
and you get the neon donut for around 5 minutes.
Comment 5 Mikayla Hutchinson [MSFT] 2013-05-13 14:21:21 UTC
Maybe it's because the type database is updating after installing the new version of XS?
Comment 6 eduard.qualls 2013-05-13 18:09:03 UTC
That is possible. XS's working set on this project is over 200 Mb, and today the IDE is really fast at putting up the right-click context menu (including those slight changes in the "Refactor" option determined by type), or putting up the type-info bubble. The IDE is now fast enough that I can't reproduce the problem.
Comment 7 Mike Krüger 2013-05-14 00:57:07 UTC
type database creation is only a few seconds - when removing it it's faster to make the type database than to load a big project (monodevelop) - 5 minutes is unlikely.
Comment 8 eduard.qualls 2013-05-14 06:24:46 UTC
Here are errors posted to the log file while this was happening, with several "The file type is not registered with this application" sections omitted:
(The "5-minute timeout" may have come from the last error in the list.)

Starting Xamarin Studio
   Loading Workbench
      Initializing Main Window
WARNING [2013-05-13 07:15:06Z]: First run content index not found.
node `classlib-gecko' is not defined on the documentation map
ERROR [2013-05-13 07:15:06Z]: Could not update jumplists
node `classlib-taglib-sharp' is not defined on the documentation map
node `classlib-webkit' is not defined on the documentation map
ERROR [2013-05-13 09:47:30Z]: Could not update jumplists
ERROR [2013-05-13 09:47:35Z]: Could not update jumplists
ERROR [2013-05-13 09:47:40Z]: Can't convert assembly: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\CustomMarshalers.dll
System.IndexOutOfRangeException: Index was outside the bounds of the array.
ERROR [2013-05-13 09:47:40Z]: Can't convert assembly: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\ISymWrapper.dll
System.IndexOutOfRangeException: Index was outside the bounds of the array.

repeated:
WARNING [2013-05-13 09:49:59Z]: Invalid cref:T:System.Collections.Generic.IList<T>
System.NullReferenceException: Object reference not set to an instance of an object.

ERROR [2013-05-13 10:00:32Z]: Add-in error (MonoDevelop.Xamarin.Ide,4.0.5): Error while getting object for node in path '/MonoDevelop/DesignerSupport/PropertyProviders'.
System.InvalidOperationException: Type 'Xamarin.Ide.Components.ComponentReferencePropertyProvider' not found in add-in 'MonoDevelop.Xamarin.Ide,4.0.5'

ERROR [2013-05-13 10:01:04Z]: Failed to upload report to the server
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
Comment 9 Brian Bird 2013-05-14 11:57:59 UTC
I am also consistently encountering this bug. When I've created a new project and then try to right-click on a class or variable name the IDE freezes without displaying the context menu. The IDE stays frozen a long time (more than several minutes.) I have to kill Xamarin Studio with the Task Manager. After I restart Xamarin Studio, I don't have a problem again until I create a new project.

The IDE also freezes sometimes when I right-click on a the References folder and select "Edit references...". This may be the same bug.
Comment 10 Mike Krüger 2013-05-17 06:31:45 UTC
*** Bug 12213 has been marked as a duplicate of this bug. ***
Comment 11 Mike Krüger 2013-05-31 03:12:58 UTC
*** Bug 12448 has been marked as a duplicate of this bug. ***
Comment 13 Mikayla Hutchinson [MSFT] 2013-07-20 21:07:20 UTC
Unfortunately we have not yet been able to reproduce this.
Comment 14 Mike Krüger 2013-07-22 01:01:00 UTC
I use right clicking every day - I don't encounter this issue ... when I do I could diagnose the problem easily (I can print the thread state of the application) 

Maybe a side effect of the machine, operating system or other running program.
Comment 15 Mike Krüger 2013-09-12 06:20:39 UTC
We were not able to reproduce that - but it doesn't get reported for newer versions.

-> re open if it happens again with newer versions