Bug 21864 - Error opening (any) storyboard in visual studio
Summary: Error opening (any) storyboard in visual studio
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 3.3
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-08-06 05:23 UTC by Onno
Modified: 2015-01-20 07:30 UTC (History)
8 users (show)

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


Attachments
iPadStoryBoard (10.18 KB, application/octet-stream)
2014-08-06 05:23 UTC, Onno
Details
Xamarin logs opening ios storyboard (5.19 KB, application/octet-stream)
2014-08-14 09:55 UTC, Onno
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 Onno 2014-08-06 05:23:57 UTC
Created attachment 7600 [details]
iPadStoryBoard

I've encountered an error everytime I'm opening a storyboard file in visual studio, existing ones that worked before, but I've also started a new master/detail project and got the same error. I've copied the output below:

System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.<>c__DisplayClass3.<SendPayload>b__0(VSBuildServerClient client)
   at Xamarin.VisualStudio.IOS.Utilities.Helpers.<>c__DisplayClass9c`1.<RunOnlyIfConnected>b__9a()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.<>c__DisplayClass3.<SendPayload>b__0(VSBuildServerClient client)
   at Xamarin.VisualStudio.IOS.Utilities.Helpers.<>c__DisplayClass9c`1.<RunOnlyIfConnected>b__9a()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()<---


Contents of C:\Users\Onno\AppData\Local\Xamarin\Log\12.0\iOSDesigner.2014-08-06__11-15-50.log:
[2014-08-06 11:15:59.2] INFO: Starting full reload...
[2014-08-06 11:16:01.8] INFO: Starting full reload...
[2014-08-06 11:16:01.8] INFO: Starting full reload...
[2014-08-06 11:16:01.9] INFO: Reloading: Serialization took 1ms
[2014-08-06 11:16:02.3] ERROR: EnsureSession (counter 0): System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.<>c__DisplayClass3.<SendPayload>b__0(VSBuildServerClient client)
   at Xamarin.VisualStudio.IOS.Utilities.Helpers.<>c__DisplayClass9c`1.<RunOnlyIfConnected>b__9a()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.SendPayload(DeviceTrait device, Int32 maxSdkMajorVersion, MemoryStream payload)
   at Xamarin.VisualStudio.IOS.Designer.MtbServerProcessConnection.SendRequestImpl(Action`1 send)
   at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(Action`1 send, Action`1 recv, Boolean throwIfNotRunning)
   at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning)
   at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning)
   at MonoTouch.Design.Client.ServerProcessConnection.CreateSession()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at MonoTouch.Design.Client.IPhoneDesignerSession.<>c__DisplayClass76`1.<EnsureSession>b__75(Task`1 t)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at MonoTouch.Design.Client.IPhoneDesignerSession.<>c__DisplayClass76`1.<EnsureSession>b__74()
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.<>c__DisplayClass3.<SendPayload>b__0(VSBuildServerClient client)
   at Xamarin.VisualStudio.IOS.Utilities.Helpers.<>c__DisplayClass9c`1.<RunOnlyIfConnected>b__9a()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.SendPayload(DeviceTrait device, Int32 maxSdkMajorVersion, MemoryStream payload)
   at Xamarin.VisualStudio.IOS.Designer.MtbServerProcessConnection.SendRequestImpl(Action`1 send)
   at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(Action`1 send, Action`1 recv, Boolean throwIfNotRunning)
   at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning)
   at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning)
   at MonoTouch.Design.Client.ServerProcessConnection.CreateSession()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at MonoTouch.Design.Client.IPhoneDesignerSession.<>c__DisplayClass76`1.<EnsureSession>b__75(Task`1 t)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.<>c__DisplayClass3.<SendPayload>b__0(VSBuildServerClient client)
   at Xamarin.VisualStudio.IOS.Utilities.Helpers.<>c__DisplayClass9c`1.<RunOnlyIfConnected>b__9a()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.SendPayload(DeviceTrait device, Int32 maxSdkMajorVersion, MemoryStream payload)
   at Xamarin.VisualStudio.IOS.Designer.MtbServerProcessConnection.SendRequestImpl(Action`1 send)
   at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(Action`1 send, Action`1 recv, Boolean throwIfNotRunning)
   at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning)
   at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning)
   at MonoTouch.Design.Client.ServerProcessConnection.CreateSession()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.<>c__DisplayClass3.<SendPayload>b__0(VSBuildServerClient client)
   at Xamarin.VisualStudio.IOS.Utilities.Helpers.<>c__DisplayClass9c`1.<RunOnlyIfConnected>b__9a()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()<---
<---
<---

[2014-08-06 11:16:02.4] ERROR: Unexpected exception while reloading XML for MonoTouch.Design.Client.IPhoneDesignerItem[]
System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.<>c__DisplayClass3.<SendPayload>b__0(VSBuildServerClient client)
   at Xamarin.VisualStudio.IOS.Utilities.Helpers.<>c__DisplayClass9c`1.<RunOnlyIfConnected>b__9a()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.<>c__DisplayClass3.<SendPayload>b__0(VSBuildServerClient client)
   at Xamarin.VisualStudio.IOS.Utilities.Helpers.<>c__DisplayClass9c`1.<RunOnlyIfConnected>b__9a()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()<---
Comment 1 Alan McGovern 2014-08-06 09:31:02 UTC
There was a bug in our error propagation which converted a regular exception with information into a NullReferenceException. As such, I cannot tell what is going on from just this stacktrace. Can you send us the log files from Visaul Studio by clicking Help -> Zip Log Directory? These contain the true error.
Comment 2 Alan McGovern 2014-08-12 14:18:31 UTC
If you can reproduce the issue and supply the necessary logs, please re-open the bug. We have fixed several forms of this issue over the last few weeks and the 3.5 release will show you the correct error details. So at the very least, do retry with 3.5 when it ships.

Thanks for the report!
Comment 3 Onno 2014-08-14 09:55:32 UTC
Created attachment 7690 [details]
Xamarin logs opening ios storyboard

I've added the xamarin logs from visual studio, my last action here was opening the storyboard, hope it is of any use
Comment 4 Jon Goldberger [MSFT] 2014-08-19 14:55:38 UTC
Reopening due to requested log files having been provided.
Comment 7 Alan McGovern 2014-09-10 06:08:42 UTC
None of the attach logs indicate that any error has occurred. We'll also need the log files generated by the Xamarin.iOS Build Host. This can be found by clicking on Xamarin.iOS -> View Build Server Log. This might contain the information we need to diagnose the issue.
Comment 8 Jon Goldberger [MSFT] 2014-09-10 22:09:04 UTC
@Alan, I see the mtbserver.log and the mtbservergui.log in the third attachment
Storyboards, logs, version info for case 84541

Aren't those the build server logs? 

And what you are suggesting to get it would be using the Xamarin.iOS Build Host menu:
Xamarin.iOS Build Host->View BuIld Host Log
correct? Looks like that is the same as mtbserver.log
Comment 10 Alan McGovern 2014-09-11 05:36:37 UTC
The only issues i can see in the logs look like ones we've fixed. As such, i'm gonna close this. If the issue can be reproduced with Xamarin 3.6 and MonoTouch 8 or higher, please reopen the bug with updated log files.

Thanks!
Comment 11 Parmendra Kumar 2015-01-20 07:30:17 UTC
I have checked this issue with build XVS 3.9.236.0 and its working fine at my end. so I am going to closing this issue.