locked
Clicking on IOS application in VS 2015 causes VS to Crash!! RRS feed

  • Question

  • User35081 posted

    Does not happen with new apps, just existing projects.

    Any ideas?

    Tuesday, May 2, 2017 8:59 PM

All replies

  • User35081 posted

    I found this in the log file

    Xamarin.VisualStudio.IOS.Widgets.EntitlementsPanel|Warning|0|Failed to parse PList data type: System.ArgumentException: Failed to parse PList data type: ---> System.ArgumentException: Must specify valid information for parsing in the string. at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument) at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult) at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) at System.Enum.Parse(Type enumType, String value) at Xamarin.MacDev.PropertyListFormat.XmlFormat.Context.ReadObjectHead() --- End of inner exception stack trace --- at Xamarin.MacDev.PropertyListFormat.XmlFormat.Context.ReadObjectHead() at Xamarin.MacDev.PropertyListFormat.XmlFormat.Context..ctor(XmlReader reader) at Xamarin.MacDev.PropertyListFormat.XmlFormat.StartReading(Stream input) at Xamarin.MacDev.PropertyListFormat.CreateReadContext(Stream input) at Xamarin.MacDev.PObject.FromFile(String fileName, Boolean& isBinary) at Xamarin.MacDev.PDictionary.FromFile(String fileName, Boolean& isBinary) at Xamarin.MacDev.PDictionary.FromFile(String fileName) at Xamarin.VisualStudio.IOS.Widgets.EntitlementsPanel.ReadLoadedEntitlements(Project project, String entitlementsFileName) in C:\d\lanes\4471\3f99c5a7\source\xamarinvs\src\Core\VisualStudio.IOS\Widgets\EntitlementsPanel.cs:line 228 at Xamarin.VisualStudio.IOS.Widgets.EntitlementsPanel.cbEnableEntitlements_CheckedChanged(Object sender, EventArgs e) in C:\d\lanes\4471\3f99c5a7\source\xamarinvs\src\Core\VisualStudio.IOS\Widgets\EntitlementsPanel.cs:line 331 Xamarin.VisualStudio.UnhandledExceptionsManager|Error|0|An unhandled error occurred. Details: Object reference not set to an instance of an object.

    System.NullReferenceException: Object reference not set to an instance of an object. at Xamarin.VisualStudio.IOS.Widgets.EntitlementsPanel.EntitlementsChanged() in C:\d\lanes\4471\3f99c5a7\source\xamarinvs\src\Core\VisualStudio.IOS\Widgets\EntitlementsPanel.cs:line 173 at Xamarin.VisualStudio.IOS.Widgets.EntitlementsPanel.OnEntitlementsPanelLoad(Object sender, EventArgs e) in C:\d\lanes\4471\3f99c5a7\source\xamarinvs\src\Core\VisualStudio.IOS\Widgets\EntitlementsPanel.cs:line 212 at System.Windows.Forms.UserControl.OnLoad(EventArgs e) at System.Windows.Forms.UserControl.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.UserControl.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Tuesday, May 2, 2017 9:21 PM
  • User35081 posted

    If i delete my entitlements.plist file before i click on IOSApplication, i does not crash.

    This is the error - Failed to parse PList data type: System.ArgumentException: Failed to parse PList data type: ---> System.ArgumentException: Must specify valid information for parsing in the string

    So this is clearly a bug in the plist parser.

    Tuesday, May 2, 2017 9:25 PM
  • User43 posted

    @mbalsam_nyc: Great find! Would you mind direct messaging me your Entitlements.plist file so I can get the team to investigate the issue. Alternatively, file a private bug at bugzilla.xamarin.com/newbug and DM it to me so I can follow up. :smile:

    Tuesday, May 2, 2017 9:53 PM
  • User35081 posted

    i think i found the solution. The Entitlements.plist file was incorrectly formatted by an older version of VS.

    This is what i Had

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0"> 
    

    And when i started a new copy of VS it generated this

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict/>
    </plist>
    

    So adding the last two lines stopped the crashing..

    I think. We will need to run it for a while and let you know.

    Tuesday, May 2, 2017 10:36 PM
  • User35081 posted

    I also posted it on buzilla but i dont see it listed yet?

    I do now see that this must be a duplicate of my post.

    https://bugzilla.xamarin.com/show_bug.cgi?id=54661

    Tuesday, May 2, 2017 11:00 PM