Bug 54143 - [VS 2015][Designer][4.3.0.795][Xcode 8.3]-Unable to render the storyboard getting System.NullReferenceException Object reference not set to an instance of an object.
Summary: [VS 2015][Designer][4.3.0.795][Xcode 8.3]-Unable to render the storyboard get...
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: --- major
Target Milestone: 15.2
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-03-28 16:30 UTC by Mohak Barokar
Modified: 2017-04-12 12:56 UTC (History)
10 users (show)

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


Attachments
Contains zip of Mainstoryboard.xml , IDE & Desinger logs (14.87 KB, application/x-zip-compressed)
2017-03-28 16:30 UTC, Mohak Barokar
Details
Logs of ide and designer (26.43 KB, application/x-zip-compressed)
2017-03-31 13:55 UTC, Gaurav Ganorkar
Details
Randering_StoryboardIssue_logs 15.1build (4.61 KB, application/x-zip-compressed)
2017-04-03 13:16 UTC, Jacky Waswani
Details
IDE logs and Screencast (4.00 MB, application/x-zip-compressed)
2017-04-12 12:41 UTC, Aman Dharwal
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 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 Mohak Barokar 2017-03-28 16:30:13 UTC
Created attachment 20962 [details]
Contains zip of Mainstoryboard.xml , IDE & Desinger logs

Description
-When tried to open the given attachment of Mainstoryboard in VS getting System.NullReferenceException Object reference not set to an instance of an object. 
-When tried to open the same Storyboard with XIB, its getting render correctly.

Test Environment
Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01586
Installed Version: Enterprise
Xamarin 4.3.0.795 (aece090)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android 7.1.0.43 (3a62f1e)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS 10.6.0.9 (a05f40e)
Visual Studio extension to enable development for Xamarin.iOS.


Steps
1-Create an iOS single view application
2-Open the MainStoryboard in TextEditor/XML editor mode and Copy the file given in attachment XML_Mainstoryboard
3-Save the file and Once again try to open the mainstoryboard

Actual
-unable to render the mainstoryboard when opened same with XIB its getting render correctly

Expected
-Mainstoryboard should be render correctly.

Attachment given
-zip of Mainstoryboard.xml , IDE & Desinger logs.
Comment 1 Alan McGovern 2017-03-30 12:44:17 UTC
How reproducible is this and does it also happen with d15-1 based releases?
Comment 2 Alan McGovern 2017-03-30 12:45:48 UTC
Also, the log files from this version of XVS don't list any useful information about the Xcode.app being used. Can you tell us whether or not you're setting a custom xcode in the VS settings, the value of `xcode-select -p` and also the location where you installed Xcode 8.3. Is it just in the standard /Applications/Xcode.app location?
Comment 3 Neha Kharbade 2017-03-30 15:32:12 UTC
Alan, All the settings needed for Xcode is proper.

1-Xcode 8.3 is located on  /Applications/Xcode.app location
2-the value of `xcode-select -p 

/Applications/Xcode.app/Contents/Developer

MainstoryBoard File is already attached.Problem is I am able to Open this file in Xcode  but not in VS designer.
Please let me know If more input required.
Comment 4 Ben Beckley 2017-03-30 15:45:07 UTC
Hi Alan,
This was also reported as a failure in our d15-1 testing as well.

VS 2017 d15rel-Version 15.1 (26328.55) d15rel PR
Xamarin 4.4.0.33 (80d9a02)
Comment 5 Alan McGovern 2017-03-30 16:40:30 UTC
The code path in d15-1 should be different so logs from that version would help
Comment 6 Gaurav Ganorkar 2017-03-31 13:55:59 UTC
Created attachment 21108 [details]
Logs of ide and designer

Alan , I have tried the same steps given in this bug but on VS 2017 build and i am able to reproduce the same issue

I am attaching new logs (zip logs)
.

Build Info
Microsoft Visual Studio Enterprise 2017
Version 15.0.26228.12 D15RTWSVC
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Enterprise

Xamarin   4.3.0.795 (aece090)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   7.1.0.43 (3a62f1e)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   10.6.0.9 (a05f40e)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 7 Alan McGovern 2017-03-31 14:49:46 UTC
That comment, and the logs attached in it, are from C9 builds. We need logs from D15-1 based builds.
Comment 8 Luis Aguilera 2017-03-31 16:01:12 UTC
@alan... why should that matter? Do the C9 logs not demonstrate the problem?
Comment 9 Alan McGovern 2017-03-31 16:12:06 UTC
Like I said in my previous comment, that code path has changed significantly and C9 logs are not relevant to master or d15-1. If the issue actually exists in d15-1, which is not known, then we need logs from there. 

If it's a c9 only issue we probably are not fixing it, whatever it is
Comment 10 Jacky Waswani 2017-04-03 13:16:49 UTC
Created attachment 21152 [details]
Randering_StoryboardIssue_logs 15.1build

Hi Alan,

Issue is still reproducible with 15.1 build with the same steps mentioned by Gaurav.

Please find the attached latest logs.

Also note that, while rendering storyboard, storyboard displayed as white & after changing the tab or reopening the storyboard will reproduce the issue.

Environment:
Microsoft Visual Studio Enterprise 2017 
Version 15.1 (26401.1) d15rel Release
Xamarin   4.4.0.33 (80d9a02)
Xamarin.Android SDK   7.2.0.7 (b16fb82)
Xamarin.iOS and Xamarin.Mac SDK   10.8.0.174 (7656cc6)

NOTE:
Issue is also observed in VS-2015 & XS as well.
Comment 11 Jacky Waswani 2017-04-03 13:18:20 UTC
As provided the info, marking the issue to New.
Comment 12 Alan McGovern 2017-04-03 13:26:45 UTC
Whatever I did when reproing the issue didn't trigger it for me, but Alex found and fixed the underlying issue.

It should work in the latest master and d15-2 builds.

The additional logs did have (some) of the information I needed. It looks like we don't log all the important bits yet, but i'll add the extra logging now.
Comment 13 Aman Dharwal 2017-04-12 12:39:42 UTC
## Build info : https://gist.github.com/aman-daharwal/f88b7839250ec46e4bcd2399ebf2b822

## Screencast : https://www.screencast.com/t/nQoVik82qUAe

## Attached IDE logs and screencast
Comment 14 Aman Dharwal 2017-04-12 12:41:20 UTC
Created attachment 21461 [details]
IDE logs and Screencast
Comment 15 Aman Dharwal 2017-04-12 12:56:06 UTC
## also Verified this on VS 2015 Enterprise with Xamarin   4.5.0.346 (df610b7)
The issue is fixed.