Bug 43823 - Storyboard documents doesn't open
Summary: Storyboard documents doesn't open
Status: VERIFIED ANSWERED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: 4.2.1 (C8SR1)
Assignee: Alex Corrado [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-08-29 09:13 UTC by Rishi
Modified: 2016-08-29 19:35 UTC (History)
5 users (show)

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


Attachments
Log files from Visual studio (14.59 KB, text/plain)
2016-08-29 09:13 UTC, Rishi
Details
Error message form Visual Studio when opening Storyboard (8.65 KB, image/png)
2016-08-29 09:15 UTC, Rishi
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 ANSWERED

Description Rishi 2016-08-29 09:13:41 UTC
Created attachment 17239 [details]
Log files from Visual studio

key points:

1) I have done the latest update of xamarin for visual studio .
2) After which, it asked me to upgrade to xcode 8 , so i installed xcode 8 beta 6 on mac machine.
3) When i work from visual studio , it gets connected to xamarin mac agent.but,

Issue:

Storyboard doesn't open and shows an error message. 

Also the attaching the log file generated from xamarin -> zip logs in visual studio.
Comment 1 Rishi 2016-08-29 09:15:35 UTC
Created attachment 17240 [details]
Error message form Visual Studio when opening Storyboard
Comment 2 Rishi 2016-08-29 09:48:06 UTC
On opening the storyboard file on Xamarin Studio on mac , I get the following message:


There was a problem rendering this document

System.NullReferenceException: Object reference not set to an instance of an object
  at MonoTouch.Hosting.CoreSimulatorFullSession.ResetNativeSession () [0x0000c] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/external/ios-sim-sharp/MonoTouch.Hosting/CoreSimulatorFullSession.cs:59 
  at MonoTouch.Hosting.CoreSimulatorFullSession..ctor (MonoTouch.Hosting.DeviceConfig system, System.String sessionName, System.String homeDirectory) [0x00009] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/external/ios-sim-sharp/MonoTouch.Hosting/CoreSimulatorFullSession.cs:46 
  at MonoTouch.Hosting.CoreSimulatorDeviceConfig.CreateSessionImpl (System.String sessionName, System.String homeDirectory, SessionType type) [0x00000] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/external/ios-sim-sharp/MonoTouch.Hosting/CoreSimulatorDeviceConfig.cs:151 
  at MonoTouch.Hosting.DeviceConfig.CreateSession (System.String sessionName, System.String homeDirectory, SessionType type) [0x00099] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/external/ios-sim-sharp/MonoTouch.Hosting/DeviceConfig.cs:263 
  at MonoTouch.Design.Client.Mac.MacServerProcessConnection.set_SimulatedDevice (MonoTouch.Hosting.DeviceConfig value) [0x00080] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client.Mac/MacServerProcessConnection.cs:72 
  at MonoTouch.Design.Client.Mac.IPhoneDesignerServiceMac.CreateConnection (MonoTouch.Design.Client.ConnectionAttributes attributes) [0x00084] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client.Mac/IPhoneDesignerServiceMac.cs:51 
  at MonoTouch.Design.Client.PooledConnectionProvider+<GetConnection>c__AnonStorey0.<>m__0 () [0x00000] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:24 
  at MonoTouch.Design.Client.PooledConnectionProvider+Pool.Acquire () [0x00000] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:83 
  at MonoTouch.Design.Client.PooledConnectionProvider+Pool..ctor (Int32 count, System.Func`1 acquire) [0x00020] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:67 
  at MonoTouch.Design.Client.PooledConnectionProvider.GetConnection (MonoTouch.Design.Client.ConnectionAttributes attributes) [0x0003d] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:24 
  at MonoTouch.Design.Client.IPhoneDesignerService.GetConnection (MonoTouch.Design.Client.ConnectionAttributes attributes, Boolean remember) [0x00027] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerService.cs:162 
  at MonoTouch.Design.Client.IPhoneDesignerSession.GetRenderConnection () [0x00000] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:1834 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<EnsureSession>c__AnonStorey31`1[TResult].<>m__0 () [0x0006d] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:1714 
--- End of stack trace from previous location where exception was thrown ---
  at MonoTouch.Design.Client.IPhoneDesignerSession+<RenderXmlWithPartialReloadRetry>c__async4.MoveNext () [0x001e0] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:607 
--- End of stack trace from previous location where exception was thrown ---
  at MonoTouch.Design.Client.IPhoneDesignerSession+<RenderXml>c__async3.MoveNext () [0x00168] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:593 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:357 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<ReloadItemsAsync>c__async2.MoveNext () [0x00241] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:494 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113 
  at MonoTouch.Design.Tasks+<Cancellable>c__async0.MoveNext () [0x00032] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/TaskExtensions.cs:22 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<ReloadItems>c__async1.MoveNext () [0x00074] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:450 

Contents of /Users/admin/Library/Logs/XamarinStudio-6.0/iOSDesigner.2016-08-29__15-09-14.log:
MDAddinsHash: f5acb37866a0141bc5ddbe95118f18dae4014568

[2016-08-29 15:10:05.3] INFO: Starting full reload...
[2016-08-29 15:10:05.5] ERROR: EnsureSession (counter 1): System.NullReferenceException: Object reference not set to an instance of an object
  at MonoTouch.Hosting.CoreSimulatorFullSession.ResetNativeSession () [0x0000c] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/external/ios-sim-sharp/MonoTouch.Hosting/CoreSimulatorFullSession.cs:59 
  at MonoTouch.Hosting.CoreSimulatorFullSession..ctor (MonoTouch.Hosting.DeviceConfig system, System.String sessionName, System.String homeDirectory) [0x00009] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/external/ios-sim-sharp/MonoTouch.Hosting/CoreSimulatorFullSession.cs:46 
  at MonoTouch.Hosting.CoreSimulatorDeviceConfig.CreateSessionImpl (System.String sessionName, System.String homeDirectory, SessionType type) [0x00000] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/external/ios-sim-sharp/MonoTouch.Hosting/CoreSimulatorDeviceConfig.cs:151 
  at MonoTouch.Hosting.DeviceConfig.CreateSession (System.String sessionName, System.String homeDirectory, SessionType type) [0x00099] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/external/ios-sim-sharp/MonoTouch.Hosting/DeviceConfig.cs:263 
  at MonoTouch.Design.Client.Mac.MacServerProcessConnection.set_SimulatedDevice (MonoTouch.Hosting.DeviceConfig value) [0x00080] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client.Mac/MacServerProcessConnection.cs:72 
  at MonoTouch.Design.Client.Mac.IPhoneDesignerServiceMac.CreateConnection (MonoTouch.Design.Client.ConnectionAttributes attributes) [0x00084] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client.Mac/IPhoneDesignerServiceMac.cs:51 
  at MonoTouch.Design.Client.PooledConnectionProvider+<GetConnection>c__AnonStorey0.<>m__0 () [0x00000] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:24 
  at MonoTouch.Design.Client.PooledConnectionProvider+Pool.Acquire () [0x00000] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:83 
  at MonoTouch.Design.Client.PooledConnectionProvider+Pool..ctor (Int32 count, System.Func`1 acquire) [0x00020] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:67 
  at MonoTouch.Design.Client.PooledConnectionProvider.GetConnection (MonoTouch.Design.Client.ConnectionAttributes attributes) [0x0003d] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:24 
  at MonoTouch.Design.Client.IPhoneDesignerService.GetConnection (MonoTouch.Design.Client.ConnectionAttributes attributes, Boolean remember) [0x00027] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerService.cs:162 
  at MonoTouch.Design.Client.IPhoneDesignerSession.GetRenderConnection () [0x00000] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:1834 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<EnsureSession>c__AnonStorey31`1[TResult].<>m__0 () [0x0006d] in /Users/builder/data/lanes/3541/a6f7a24a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:1714
Comment 3 Alan McGovern 2016-08-29 10:18:49 UTC
Hey,

Xcode8 is preview/beta level support so upgrading to that should be optional. If you remain on the stable version of Xamarin.iOS you should be able to continue using Xcode 7.3.1. If the workaround I provide doesn't work for you then i'd recommend you downgrade back to stable.

So, to work around this issue can you launch Xcode 8 at least once and then restart your Mac. This will ensure all the services are reset correctly after the Xcode 8 upgrade. Visual Studio should be able to connect to the mac reliably again.

Similarly, if you want to downgrade back to Xcode 7.3.1 then I'd recommend restarting the mac again. There are issues when swapping between Xcode 8 and Xcode 7 as start conflicting services as soon as they are launched.
Comment 4 Rishi 2016-08-29 10:49:11 UTC
" So, to work around this issue can you launch Xcode 8 at least once and then restart your Mac. This will ensure all the services are reset correctly after the Xcode 8 upgrade. Visual Studio should be able to connect to the mac reliably again." 


The above workaround didn't work for me .

I will try the other alternative now.
I am going to downgrade to Xcode 7.3.1 and restart mac again. I ll keep you in the loop .
Comment 5 Alan McGovern 2016-08-29 12:58:14 UTC
I just double checked the logs and it looks like you are already using our stable builds. The Xamarin version you have installed is

`Xamarin - 4.1.2.18-cycle7-sr1+fcbe082`

The cycle 7 builds, our current stable, do not have support for Xcode8 as it is still in preview and apple are modifying it frequently. As such, no cycle 7 build shoulf prompt you to install Xcode 8. I would love more information about what triggered that prompt to appear, and what exactly it said.

If you installed our cycle 8 betas, which are in the beta and alpha channel, you may have received a prompt to upgrade to Xcode 8 when you compiled an i
Comment 6 Alan McGovern 2016-08-29 13:00:52 UTC
I just double checked the logs and it looks like you are already using our stable builds. The Xamarin version you have installed is

`Xamarin - 4.1.2.18-cycle7-sr1+fcbe082`

The cycle 7 builds, our current stable, do not have support for Xcode8 as it is still in preview and apple are modifying it frequently. As such, no cycle 7 build should prompt you to install Xcode 8. I would love more information about what triggered that prompt to appear, and what exactly it said.

If you installed our cycle 8 preview releases, which are in the beta and alpha channel, you may have received a prompt to upgrade to Xcode 8 when you compiled an iOS application. However if you installed cycle 8 builds on your mac you should also install them on your Windows machine.

I'm going to close this as answered for now as the logs indicate the versions you have installed do not contain support for Xcode8, so the errors you're seeing are expected. if this isn't the case please reopen the bug with as much extra information as you can.

Thanks!
Comment 7 Rishi 2016-08-29 14:46:38 UTC
downgrading back to Xcode 7.3.1 has worked.

Thanks Alan.