Bug 20620 - Enable or Disable Autolayout Crashes Vistual Studio
Summary: Enable or Disable Autolayout Crashes Vistual Studio
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 3.1
Hardware: PC Windows
: Highest critical
Target Milestone: 3.3
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-06-16 11:55 UTC by Willian Correa
Modified: 2014-07-14 04:38 UTC (History)
7 users (show)

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


Attachments
Bug Logs (77.81 KB, application/x-zip)
2014-06-17 10:00 UTC, Willian Correa
Details
Mac Logs (17.22 KB, application/rar)
2014-06-24 09:41 UTC, Willian Correa
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 Willian Correa 2014-06-16 11:55:38 UTC
Specific to iOS

1) Create a new Storyboard
2) Create some views, segues and UI elements inside each view;
3) Click on white background's storyboard;
4) Enable ou disable Autolayout

In both versions (VS2012 and 2013), this simple action closes visual studio with a generic error.
Comment 1 Mohit Kheterpal 2014-06-16 14:04:35 UTC
I have tried to reproduce this issue but I am not able to reproduce this issue after following steps mention in bug description as shown in screencast : http://screencast.com/t/XYvBPOmeX7UO

Please have a look and let me know if I have missed some step?

Could you please provide IDE log via \AppData\Local\Xamarin\Log\11.0 or 12.0?

Thanks
Comment 2 Willian Correa 2014-06-17 10:00:27 UTC
Created attachment 7090 [details]
Bug Logs

Sorry, but i didn't know if these files are straight related to the bug, because i tried solve troubles by my self. I decided open this ticket when all my tries failed.

Where's the path on Mac to get log files?
Comment 3 Mohit Kheterpal 2014-06-17 10:40:07 UTC
@Willian, Thanks for logs.

You can get the log files on mac via Help->Open Log Directory
Comment 4 Willian Correa 2014-06-24 09:41:54 UTC
Created attachment 7162 [details]
Mac Logs

These files are directly related to this problem.
Comment 5 pldes 2014-07-02 13:42:31 UTC
I have the same problem in VS2010
Comment 6 pldes 2014-07-02 14:37:25 UTC
What ups with this ?
Comment 7 Alan McGovern 2014-07-10 10:15:41 UTC
Can you send us a copy of the storyboard which triggers the error? It'll make it much easier to fix the issue.
Comment 8 Alan McGovern 2014-07-10 10:35:26 UTC
I was able to trigger this locally. We're working on a fix now.
Comment 9 Alan McGovern 2014-07-10 11:07:52 UTC
We've got this fixed and will try to get it into a release soon.
Comment 10 Mohit Kheterpal 2014-07-11 08:33:18 UTC
We have tried to verify this issue. As we are not able to reproduce this issue, so we could not verify this issue.

Leaving this issue as Resolved fixed and reporter(Willian Correa) will verify and close this issue when he will get the fixed build.

Thanks.
Comment 11 PJ 2014-07-11 15:21:55 UTC
Alan, can you add any more about what changed between comment 7 and comment 8 that helped you reproduce the issue locally?
Comment 12 Alan McGovern 2014-07-11 19:48:54 UTC
I added an automated test covering the issue, but for manual verification purposes this bug can be triggered by:

1) Click on an empty part of the design surface and ensure that the storyboard properties have 'autolayout' enabled. This is constraint mode. I believe it's enabled by default.
2) Add a UIViewController to the surface
3) Drag and drop a View (a plain 'View') onto the viewcontroller
4) Drag and drop a Button into the View you just put in the ViewController 
5) Click on the button when it's already selected to enable constraint editing mode
7) Create two constraints between the button and the View it is inside.
8) Click on an empty part of the surface and disable constraint mode

Screencast: http://screencast.com/t/ZgNHu9ry9z4

Result:
Crash.
Comment 13 Mohit Kheterpal 2014-07-14 04:38:10 UTC
Thanks Alan

I have checked this issue via following steps mention in comment 12, and I am not getting any crash when I enable/disable Autolayout chekbox as shown in screencast : http://screencast.com/t/FcBexoenxq3

Hence closing this issue.

Environment info : 
VS 2012
XVS 3.3.35
X.iOS 7.2.6.22