Bug 11118 - SQL scripts that always execute correctly suddenly crash XS
Summary: SQL scripts that always execute correctly suddenly crash XS
Status: NEW
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Database ()
Version: 4.0.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-03-13 11:20 UTC by Zambiorix
Modified: 2013-03-13 11:20 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 for Bug 11118 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Zambiorix 2013-03-13 11:20:26 UTC
I have 2 scripts, one to generate tables / stored procs (install.sql) etc .. and one that deletes them all (uninstall.sql).

By executing alternated install / uninstall, I suddenly get a crash in XS. There is nothing wrong with the scripts, because I do get crashes with other scripts (that on other occasions run fine) or regular basis.

So, XS crashes out of the blue on scripts that usually run fine. I'd say 1 out of 20 i get a crash.


System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Database.Query.SqlQueryView.ExecuteQueryCallback (MonoDevelop.Database.Sql.DatabaseConnectionContext context, Boolean connected, System.Object state) [0x00038] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/monodevelop/extras/MonoDevelop.Database/MonoDevelop.Database.Query/SqlQueryView.cs:247 
  at MonoDevelop.Database.Sql.QueryService.EnsureConnection (MonoDevelop.Database.Sql.DatabaseConnectionContext context, MonoDevelop.Database.Sql.DatabaseConnectionContextCallback callback, System.Object state) [0x00034] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/monodevelop/extras/MonoDevelop.Database/MonoDevelop.Database.Sql/QueryService.cs:66 
  at MonoDevelop.Database.Query.SqlQueryView.ExecuteQuery () [0x00029] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/monodevelop/extras/MonoDevelop.Database/MonoDevelop.Database.Query/SqlQueryView.cs:234 
  at MonoDevelop.Database.Query.SqlQueryView.ExecuteClicked (System.Object sender, System.EventArgs e) [0x00011] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/monodevelop/extras/MonoDevelop.Database/MonoDevelop.Database.Query/SqlQueryView.cs:322 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d5] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:226 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:234 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Reflection/MethodBase.cs:96 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000bf] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/Delegate.cs:413 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/MulticastDelegate.cs:70 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/Delegate.cs:387 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0