Bug 51611 - Crash in iOS Designer tries to render a Horizontal UIStackView with Alignment = Top
Summary: Crash in iOS Designer tries to render a Horizontal UIStackView with Alignment...
Status: RESOLVED DUPLICATE of bug 51185
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-01-18 16:28 UTC by Tom Harvey
Modified: 2017-01-19 19:52 UTC (History)
5 users (show)

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


Attachments
Environment details + Screenshot of the issue (106.94 KB, image/png)
2017-01-18 16:28 UTC, Tom Harvey
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:
RESOLVED DUPLICATE of bug 51185

Description Tom Harvey 2017-01-18 16:28:23 UTC
Created attachment 19384 [details]
Environment details + Screenshot of the issue

This is a single scenario where this occurs. Not tested to see if it's on Xamarin Studio as well.

Environment
1. Visual Studio 2015, Windows 10, Latest Alpha channel
2. (See screenshot)

Steps to reproduce
1. Create a XIB for a UITableViewCell
2. Add a Horizontal UIStackView constrained to the Cell boundary
3. Add a UILabel to the UIStackView
4 Set the UIStackView Alignment to "Top"

Expected Behaviour
1. It doesn't crash

Actual Behaviour
1. Crashes with the following details:
System.NullReferenceException: Object reference not set to an instance of an object.
   at MonoTouch.Design.Client.Windows.NativePropertyTable.RefreshPropertyChooseEditor(PropertyTableRow row, PropertyEditorContext context)
   at MonoTouch.Design.Client.Windows.NativePropertyTable.SetContextForRows(PropertyEditorContext context, IEnumerable`1 currentRows)
   at MonoTouch.Design.Client.Windows.NativePropertyTable.SetContext(PropertyEditorContext context, IEnumerable`1 panels)
   at Xamarin.Designer.DesignerPropertyPanel.SwitchToSection(PropertySection section, Boolean animated)
   at Xamarin.Designer.DesignerPropertyPanel.Refresh()
   at Xamarin.Designer.PropertyEditing.IPhoneDesignerPropertyPanel.HandleContentChanged(Object s, EventArgs args)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at Xamarin.Designer.DesignerSession.OnContentChanged()
   at MonoTouch.Design.Client.IPhoneDesignerSession.<ReloadItemsAsync>d__170.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MonoTouch.Design.Tasks.<Cancellable>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MonoTouch.Design.Client.IPhoneDesignerSession.<ReloadItems>d__169.MoveNext()

Contents of C:\Users\Tom\AppData\Local\Xamarin\Logs\14.0\iOSDesigner-14008.2017-01-18__15-57-08.log:
MDAddinsHash: 3ea2e145863004103d37d20fc2c94fcd7bb6a1ce

[2017-01-18 16:10:51.2] INFO: Starting full reload...
[2017-01-18 16:10:51.2] INFO: Reloading: Serialization took 1ms
[2017-01-18 16:11:03.9] INFO: Reloading: Deserialization took 23ms
[2017-01-18 16:11:03.9] INFO: Reloading: Server rendering completed in 12713ms with 265576 bytes
[2017-01-18 16:11:04.0] INFO: Fetched iOS SDK data in C:\Users\Tom\AppData\Local\Temp\xd-support-files-18bcd353
[2017-01-18 16:11:04.1] WARN: Not adding `FodyWeavers.xml' to image resources due to error: System.NotSupportedException: No imaging component suitable to complete this operation was found. ---> System.Runtime.InteropServices.COMException: The component cannot be found. (Exception from HRESULT: 0x88982F50)
   --- End of inner exception stack trace ---
   at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
   at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
   at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
   at System.Windows.Media.Imaging.BitmapImage.EndInit()
   at Xwt.WPFBackend.ImageHandler.LoadFromStream(Stream stream)
   at Xwt.Drawing.Image.FromStream(Stream stream)
   at MonoTouch.Design.Client.IPhoneDesignerSession.ConvertBundleResources(IEnumerable`1 resources)
[2017-01-18 16:11:04.1] INFO: Added image resource: arrow-big-11.png
[2017-01-18 16:11:04.1] INFO: Added image resource: Checked Checkbox.png
[2017-01-18 16:11:04.1] INFO: Added image resource: connect-arrow-left-right-7.png
[2017-01-18 16:11:04.1] INFO: Added image resource: Heebo-Thin.ttf
[2017-01-18 16:11:04.1] INFO: Added image resource: home.png
[2017-01-18 16:11:04.1] INFO: Added image resource: house-7.png
[2017-01-18 16:11:04.1] INFO: Added image resource: info.png
[2017-01-18 16:11:04.1] INFO: Added image resource: invida_grey_reverse_vert_250px.png
[2017-01-18 16:11:04.1] INFO: Added image resource: layer-7.png
[2017-01-18 16:11:04.1] INFO: Added image resource: layer.png
[2017-01-18 16:11:04.1] INFO: Added image resource: list-simple-7.png
[2017-01-18 16:11:04.1] INFO: Added image resource: map-pin.png
[2017-01-18 16:11:04.1] INFO: Added image resource: message.png
[2017-01-18 16:11:04.1] INFO: Added image resource: monitor.png
[2017-01-18 16:11:04.1] INFO: Added image resource: text-list.png
[2017-01-18 16:11:04.1] INFO: Added image resource: threelines.png
[2017-01-18 16:11:04.1] INFO: Added image resource: Unchecked Checkbox.png
[2017-01-18 16:11:04.1] INFO: Reloading: Serialization took 0ms
[2017-01-18 16:11:04.2] INFO: Reloading: Deserialization took 1ms
[2017-01-18 16:11:04.2] INFO: Reloading: Server rendering completed in 81ms with 686 bytes
[2017-01-18 16:11:04.2] INFO: Gathered the following assemblies to upload to the renderer:
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\DotNetCross.Memory.Unsafe.0.2.3.4\lib\netstandard1.0\DotNetCross.Memory.Unsafe.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\Lib\Enums.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\HockeySDK.Xamarin.4.1.0\lib\Xamarin.iOS10\HockeySDK.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\HockeySDK.Xamarin.4.1.0\lib\Xamarin.iOS10\HockeySDK.iOSBindings.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\SharpZipLib.0.86.0\lib\11\ICSharpCode.SharpZipLib.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\Newtonsoft.Json.9.0.1\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\Xam.Plugin.Connectivity.2.2.12\lib\Xamarin.iOS10\Plugin.Connectivity.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\Xam.Plugin.Connectivity.2.2.12\lib\Xamarin.iOS10\Plugin.Connectivity.Abstractions.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\Realm.0.81.0\lib\Xamarin.iOS10\Realm.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\Remotion.Linq.2.1.1\lib\portable-net45+win+wpa81+wp80\Remotion.Linq.dll
[2017-01-18 16:11:04.2] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.dll
[2017-01-18 16:11:04.2] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.Net.dll
[2017-01-18 16:11:04.2] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.Xml.dll
[2017-01-18 16:11:04.2] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.Core.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\SidebarNavigation.1.9.3\lib\Xamarin.iOS10\Xamarin-Sidebar-Unified.dll
[2017-01-18 16:11:04.2] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\Humanizer.Core.2.1.0\lib\netstandard1.0\Humanizer.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\InvidaMobile\InvidaMobile\bin\Debug\InvidaMobile.dll
[2017-01-18 16:11:04.2] INFO: 	
[2017-01-18 16:11:04.2] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\mscorlib.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\InvidaMobile\InvidaMobile.iOS\bin\iPhoneSimulator\Debug\InvidaMobile.iOS.exe
[2017-01-18 16:11:04.2] INFO: These assembly will not be uploaded as they have already been sent:
[2017-01-18 16:11:04.2] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.dll
[2017-01-18 16:11:04.2] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.Xml.dll
[2017-01-18 16:11:04.2] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.Core.dll
[2017-01-18 16:11:04.2] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll
[2017-01-18 16:11:04.2] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\mscorlib.dll
[2017-01-18 16:11:04.2] INFO: These assembly will not be uploaded as they cannot be found on disk:
[2017-01-18 16:11:04.2] INFO: 	
[2017-01-18 16:11:04.2] INFO: These assemblies will be uploaded:
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\DotNetCross.Memory.Unsafe.0.2.3.4\lib\netstandard1.0\DotNetCross.Memory.Unsafe.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\Lib\Enums.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\HockeySDK.Xamarin.4.1.0\lib\Xamarin.iOS10\HockeySDK.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\HockeySDK.Xamarin.4.1.0\lib\Xamarin.iOS10\HockeySDK.iOSBindings.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\SharpZipLib.0.86.0\lib\11\ICSharpCode.SharpZipLib.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\Newtonsoft.Json.9.0.1\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\Xam.Plugin.Connectivity.2.2.12\lib\Xamarin.iOS10\Plugin.Connectivity.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\Xam.Plugin.Connectivity.2.2.12\lib\Xamarin.iOS10\Plugin.Connectivity.Abstractions.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\Realm.0.81.0\lib\Xamarin.iOS10\Realm.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\Remotion.Linq.2.1.1\lib\portable-net45+win+wpa81+wp80\Remotion.Linq.dll
[2017-01-18 16:11:04.2] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.Net.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\SidebarNavigation.1.9.3\lib\Xamarin.iOS10\Xamarin-Sidebar-Unified.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\packages\Humanizer.Core.2.1.0\lib\netstandard1.0\Humanizer.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\InvidaMobile\InvidaMobile\bin\Debug\InvidaMobile.dll
[2017-01-18 16:11:04.2] INFO: 	C:\NewCoDev\invida-mobile\InvidaMobile\InvidaMobile.iOS\bin\iPhoneSimulator\Debug\InvidaMobile.iOS.exe
[2017-01-18 16:11:04.5] INFO: Reloading: Serialization took 40ms
[2017-01-18 16:11:08.9] INFO: Reloading: Deserialization took 1ms
[2017-01-18 16:11:08.9] INFO: Reloading: Server rendering completed in 4456ms with 1624 bytes
[2017-01-18 16:11:08.9] INFO: Loaded 0 custom classes from the server
[2017-01-18 16:11:09.0] ERROR: Error while retrieving class icon for UIWindow
[2017-01-18 16:11:09.1] INFO: Reloading: Serialization took 0ms
[2017-01-18 16:11:12.1] INFO: Reloading: Deserialization took 74ms
[2017-01-18 16:11:12.1] INFO: Reloading: Server rendering completed in 3056ms with 1228636 bytes
[2017-01-18 16:11:13.5] INFO: Reloading: Serialization took 0ms
[2017-01-18 16:11:13.7] INFO: Reloading: Deserialization took 2ms
[2017-01-18 16:11:13.7] INFO: Reloading: Server rendering completed in 193ms with 37554 bytes
[2017-01-18 16:11:13.8] INFO: Reloading: EndDeferSelectionChanged took 1ms
[2017-01-18 16:11:13.8] INFO: Actions and outlets synchronized in 38ms
[2017-01-18 16:11:13.9] INFO: OnContentChanged: 55ms
[2017-01-18 16:11:13.9] INFO: ImagesChanged: 5ms
[2017-01-18 16:11:13.9] INFO: Reload complete in 22686ms.
[2017-01-18 16:11:24.6] INFO: Reloading: Serialization took 0ms
[2017-01-18 16:11:24.8] INFO: Reloading: Deserialization took 2ms
[2017-01-18 16:11:24.8] INFO: Reloading: Server rendering completed in 204ms with 40761 bytes
[2017-01-18 16:11:24.8] INFO: Reloading: EndDeferSelectionChanged took 0ms
Comment 1 Alan McGovern 2017-01-18 16:36:33 UTC
I think this was already fixed in master and cycle9 with this commit:

https://github.com/xamarin/md-addins/commit/7294888dd418e0e067e3dd1a27b3b99fdccd2a2a

Vinicius can you double check? I think it's safe to dupe this one against the other bug.
Comment 2 Vinicius Jarina 2017-01-19 19:52:50 UTC

*** This bug has been marked as a duplicate of bug 51185 ***