mono / monodevelop

MonoDevelop is a cross platform .NET IDE
http://www.monodevelop.com
2.84k stars 1.02k forks source link

Webtools exceptions on retrieving contents after disposal #7185

Closed Therzok closed 5 years ago

Therzok commented 5 years ago
ERROR [2019-02-20 10:39:01Z]: Exception while disposing extension:WebToolingAddin.WebCompletionEditorExtension
System.NullReferenceException: Object reference not set to an instance of an object
  at WebToolingAddin.RoslynCompletionEditorExtension.Dispose () [0x00000] in C:\Cross-Plat-Editor\src\Editors\WebToolingAddin\VSEditor\Extensions\RoslynCompletionEditorExtension.cs:35 
  at MonoDevelop.Ide.Editor.TextEditor.DetachExtensionChain () [0x0000f] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs:1225 
ERROR [2019-02-20 10:39:02Z]: Error retrieving TextEditor.GetContents<WebToolingAddin.VsTextAdapterExtension>
   at System.Environment.get_StackTrace () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System/Environment.cs:316 
  at MonoDevelop.Ide.Editor.TextEditor+<GetContents>d__256`1[T].MoveNext () [0x00031] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs:1242 
  at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Boolean& found) [0x00045] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/external/corefx/src/System.Linq/src/System/Linq/First.cs:63 
  at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/external/corefx/src/System.Linq/src/System/Linq/First.cs:34 
  at MonoDevelop.Ide.Editor.TextEditor.GetContent[T] () [0x00000] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs:1236 
  at WebToolingAddin.RoslynCompletionEditorExtension.Dispose () [0x00000] in C:\Cross-Plat-Editor\src\Editors\WebToolingAddin\VSEditor\Extensions\RoslynCompletionEditorExtension.cs:35 
  at MonoDevelop.Ide.Editor.TextEditor.DetachExtensionChain () [0x0000f] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs:1225 
  at MonoDevelop.Ide.Editor.TextEditor.Dispose (System.Boolean disposing) [0x00027] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs:977 
  at MonoDevelop.Components.Control.OnGtkDestroyed (System.Object sender, System.EventArgs args) [0x00006] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Control.cs:100 
  at Gtk.Object.OnDestroyed () [0x00020] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/gtk/generated/Object.custom:46 
  at Gtk.Object.NativeDestroy (System.Object o, System.EventArgs args) [0x00014] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/gtk/generated/Object.custom:85 
  at System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception& ) [0x00000] in <3c73e0665b1b47bb9d553430a97aa942>:0 
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0003b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/reflection/methodbase.cs:229 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e1] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System/Delegate.cs:467 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System/MulticastDelegate.cs:67 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System/Delegate.cs:412 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0007f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/glib/Signal.cs:207 
  at GLib.Signal+SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00019] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/glib/SignalClosure.cs:114 
  at GLib.Signal+SignalClosure.MarshalCallback (System.IntPtr raw_closure, GLib.Value* return_val, System.UInt32 n_param_vals, GLib.Value* param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x00053] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/glib/SignalClosure.cs:143 
  at Gtk.Object.gtk_object_destroy (System.IntPtr ) [0x00000] in <40f46e55eb67454ab904dc9e5644a3a1>:0 
  at Gtk.Object.Destroy () [0x00033] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/gtk/generated/Object.custom:127 
  at Gtk.Widget.Destroy () [0x00002] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/gtk/generated/Widget.custom:34 
  at MonoDevelop.Components.Control.Dispose () [0x0000f] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Control.cs:213 
  at MonoDevelop.Ide.Editor.TextEditorViewContent.Dispose () [0x000da] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditorViewContent.cs:363 
  at MonoDevelop.Ide.Gui.SdiWorkspaceWindow.OnDestroyed () [0x0001d] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/SdiWorkspaceWindow.cs:469 
  at Gtk.Object.NativeDestroy (System.Object o, System.EventArgs args) [0x00014] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/gtk/generated/Object.custom:85 
  at System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception& ) [0x00000] in <3c73e0665b1b47bb9d553430a97aa942>:0 
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0003b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/reflection/methodbase.cs:229 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e1] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System/Delegate.cs:467 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System/MulticastDelegate.cs:67 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System/Delegate.cs:412 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0007f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/glib/Signal.cs:207 
  at GLib.Signal+SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00019] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/glib/SignalClosure.cs:114 
  at GLib.Signal+SignalClosure.MarshalCallback (System.IntPtr raw_closure, GLib.Value* return_val, System.UInt32 n_param_vals, GLib.Value* param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x00053] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/glib/SignalClosure.cs:143 
  at Gtk.Object.gtk_object_destroy (System.IntPtr ) [0x00000] in <40f46e55eb67454ab904dc9e5644a3a1>:0 
  at Gtk.Object.Destroy () [0x00033] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/gtk/generated/Object.custom:127 
  at Gtk.Widget.Destroy () [0x00002] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/gtk/generated/Widget.custom:34 
  at MonoDevelop.Ide.Gui.SdiWorkspaceWindow.CloseWindow (System.Boolean force, System.Boolean animate) [0x000fc] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/SdiWorkspaceWindow.cs:456 
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:471 
  at MonoDevelop.Ide.Gui.SdiWorkspaceWindow.CloseWindow (System.Boolean force, System.Boolean animate) [0x00000] in <26cd113c31ad4a83883ec3106f87c8f3>:0 
  at MonoDevelop.Ide.Gui.Document.Close () [0x00011] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs:562 
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:471 
  at MonoDevelop.Ide.Gui.Document.Close () [0x00000] in <26cd113c31ad4a83883ec3106f87c8f3>:0 
  at MonoDevelop.Ide.Commands.CloseFileHandler.Run () [0x0000c] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs:176 
  at MonoDevelop.Components.Commands.CommandHandler.Run (System.Object dataItem) [0x00000] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:75 
  at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:39 
  at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info, System.Object dataItem, System.Object target, MonoDevelop.Components.Commands.CommandSource source) [0x0006e] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1584 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, MonoDevelop.Components.Commands.CommandSource source, System.Nullable`1[T] time, MonoDevelop.Components.Commands.CommandInfo sourceUpdateInfo) [0x003b5] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1547 
  at MonoDevelop.Components.Commands.CommandManager.ProcessKeyEvent (Gdk.EventKey ev) [0x00149] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:515 
  at MonoDevelop.Components.Commands.CommandManager.OnKeyPressed (System.Object o, Gtk.KeyPressEventArgs e) [0x00000] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:432 
  at System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception& ) [0x00000] in <3c73e0665b1b47bb9d553430a97aa942>:0 
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0003b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/reflection/methodbase.cs:229 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e1] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System/Delegate.cs:467 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System/MulticastDelegate.cs:67 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/mcs/class/corlib/System/Delegate.cs:412 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0007f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/glib/Signal.cs:207 
  at GLib.Signal+SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00019] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/glib/SignalClosure.cs:114 
  at GLib.Signal+SignalClosure.MarshalCallback (System.IntPtr raw_closure, GLib.Value* return_val, System.UInt32 n_param_vals, GLib.Value* param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x000b9] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/glib/SignalClosure.cs:153 
  at Gtk.Application.gtk_main () [0x00000] in <40f46e55eb67454ab904dc9e5644a3a1>:0 
  at Gtk.Application.Run () [0x00001] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/gtk-sharp-None/gtk/Application.cs:145 
  at MonoDevelop.Ide.IdeApp.Run () [0x00006] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:434 
  at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions options) [0x00a52] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:396 
  at MonoDevelop.Ide.IdeStartup.Main (System.String[] args, MonoDevelop.Ide.Extensions.IdeCustomizer customizer) [0x000bc] in /Users/vsts/agent/2.147.1/work/1/s/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:846 
  at Xamarin.Startup.MainClass.Main (System.String[] args) [0x00000] in /Users/vsts/agent/2.147.1/work/1/s/md-addins/Xamarin.Startup/Main.cs:11 

VS bug #798078

Therzok commented 5 years ago

@minestarks @ToddGrun

Therzok commented 5 years ago
INFO [2019-02-20 10:37:09Z]: Starting Visual Studio 2019 Preview for Mac 8.0 Preview (8.0 build 1556)
INFO [2019-02-20 10:37:09Z]: Build Information
Release ID: 800001556
Git revision: 73b901b0b092f5f6cbd449c674b3b397e0a26102
Build date: 2019-02-20 00:20:04+00
Build branch: master
Xamarin extensions: d7b2431a48ef15125b9c81930f6cd0a6ef4fec41
Therzok commented 5 years ago

cc @nosami this was the getcontents crasher