Bug 5770 - Exception when opening file
Summary: Exception when opening file
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Mac OS
: Low normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-06-20 02:03 UTC by Mikayla Hutchinson [MSFT]
Modified: 2012-06-20 03:59 UTC (History)
1 user (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 FIXED

Description Mikayla Hutchinson [MSFT] 2012-06-20 02:03:03 UTC
When first opening a file with the analysis extension enabled, I sometimes get the following exception. The same exception is displayed again whenever I try to type anything. Also, may symbols are shown in red, as if unresolved. Closing and reopening the file fixes it.


I wonder if this is related to the intermittent problem of unresolved symbols in freshly opened files?

System.AggregateException:  ---> System.AggregateException:  ---> System.Threading.Tasks.TaskCanceledException: The Task was canceled
  --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task`1[System.Collections.Generic.IEnumerable`1[MonoDevelop.AnalysisCore.Result]].get_Result () [0x00000] in <filename unknown>:0 
  at MonoDevelop.AnalysisCore.Gui.ResultsEditorExtension.<OnDocumentParsed>m__0 (System.Threading.Tasks.Task`1 t) [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.TaskActionInvoker+ActionTaskInvoke`1[System.Collections.Generic.IEnumerable`1[MonoDevelop.AnalysisCore.Result]].Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Task.ThreadStart () [0x00000] in <filename unknown>:0 
 --> (Inner exception 0) System.Threading.Tasks.TaskCanceledException: The Task was canceled

  --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Task.Wait () [0x00000] in <filename unknown>:0 
  at MonoDevelop.AnalysisCore.Gui.ResultsEditorExtension.OnDocumentParsed (System.Object sender, System.EventArgs args) [0x00000] in <filename unknown>:0 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at MonoDevelop.Ide.Gui.Document.OnDocumentParsed (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.Document+<StartReparseThread>c__AnonStorey40+<StartReparseThread>c__AnonStorey41+<StartReparseThread>c__AnonStorey42.<>m__4F (System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0 
  at Gtk.Application+InvokeCB.Invoke () [0x00000] in <filename unknown>:0 
  at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in <filename unknown>:0 
 --> (Inner exception 0) System.AggregateException:  ---> System.Threading.Tasks.TaskCanceledException: The Task was canceled
  --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task`1[System.Collections.Generic.IEnumerable`1[MonoDevelop.AnalysisCore.Result]].get_Result () [0x00000] in <filename unknown>:0 
  at MonoDevelop.AnalysisCore.Gui.ResultsEditorExtension.<OnDocumentParsed>m__0 (System.Threading.Tasks.Task`1 t) [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.TaskActionInvoker+ActionTaskInvoke`1[System.Collections.Generic.IEnumerable`1[MonoDevelop.AnalysisCore.Result]].Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Task.ThreadStart () [0x00000] in <filename unknown>:0 
 --> (Inner exception 0) System.Threading.Tasks.TaskCanceledException: The Task was canceled
Comment 1 Mike Krüger 2012-06-20 02:20:42 UTC
The highlighting is unrelated - but I suppose it may be a similiar problem, yes
Comment 2 Mikayla Hutchinson [MSFT] 2012-06-20 02:38:36 UTC
Well, since this also showed the same highlighting issue, I was wondering if they're both symptoms of the same race. And maybe this exception would help to find the race and fix the highlighting issue.
Comment 3 Mike Krüger 2012-06-20 03:59:54 UTC
fixed that one. But y - when opening a project that has open files many things are happening.

It would be good, if we can revisit that process.