Bug 13284 - html tag completion cause crash
Summary: html tag completion cause crash
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: XML Editor ()
Version: 4.1
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Mikayla Hutchinson [MSFT]
URL:
: 6344 6760 13418 13902 ()
Depends on:
Blocks:
 
Reported: 2013-07-17 02:06 UTC by Anton Heryanto
Modified: 2014-01-20 07:05 UTC (History)
6 users (show)

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


Attachments
xamarin studio log contain crash info (14.16 KB, application/octet-stream)
2013-07-23 09:09 UTC, Anton Heryanto
Details


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:
VERIFIED FIXED

Description Anton Heryanto 2013-07-17 02:06:06 UTC
when edit html file and insert start tag <tag> will trigger completion dialog of close tag </tag> accepting the completion cause ide crash cause by NRE of location null. quick debug shown that location context of completion windows is null
Comment 1 Mikayla Hutchinson [MSFT] 2013-07-18 19:42:59 UTC
Do you have a stack trace? It works fine for me.
Comment 2 Anton Heryanto 2013-07-18 23:35:50 UTC
System.NullReferenceException: Object reference not set to an instance of an object

Server stack trace: 
  at MonoDevelop.Ide.MessageService+InternalMessageService.ShowException (Gtk.Window parent, System.String title, System.String message, System.Exception e, MonoDevelop.Ide.AlertButton[] buttons) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x000c2] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.1.2/mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs:151 

Exception rethrown at [0]: 

  at MonoDevelop.Ide.MessageService+InternalMessageService.ShowException (Gtk.Window parent, System.String title, System.String message, System.Exception e, MonoDevelop.Ide.AlertButton[] buttons) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x000c2] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.1.2/mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs:151
Comment 3 Anton Heryanto 2013-07-18 23:38:48 UTC
Using XS 4.1.6 just throw error but not crash
using XS 4.1.7 throw error and crash
Comment 4 Mikayla Hutchinson [MSFT] 2013-07-20 02:11:00 UTC
That's the crash in the dialog showing the error, not the error itself. Please check the log files for the real error.
Comment 5 Anton Heryanto 2013-07-23 09:09:41 UTC
Created attachment 4399 [details]
xamarin studio log contain crash info
Comment 6 Mikayla Hutchinson [MSFT] 2013-07-23 12:15:02 UTC
Thanks, fixed.
Comment 7 Mikayla Hutchinson [MSFT] 2013-07-23 17:05:15 UTC
*** Bug 13418 has been marked as a duplicate of this bug. ***
Comment 8 Mikayla Hutchinson [MSFT] 2013-08-11 17:28:51 UTC
*** Bug 13902 has been marked as a duplicate of this bug. ***
Comment 9 Mikayla Hutchinson [MSFT] 2013-08-11 17:29:01 UTC
*** Bug 6760 has been marked as a duplicate of this bug. ***
Comment 10 Mikayla Hutchinson [MSFT] 2013-08-27 13:11:21 UTC
*** Bug 6344 has been marked as a duplicate of this bug. ***
Comment 11 Nischal 2014-01-20 07:05:28 UTC
We have checked this issue and now no error is shown on selecting completion
text. Screencast: http://screencast.com/t/3QaRyeWY

Environment info:
Xamarin Studio
Version 4.2.3 (build 127)
Git revision: 781819ed590c05a48201be53eb9602b56a4c1fde

Xam.Android 4.13.0-33(Mac master)

Xamarin.iOS
Version: 7.0.7.50 
Hash: aed2b17