Bug 33353 - Layout cycle detected. Layout could not complete. (Windows phone 8.1 Runtime)
Summary: Layout cycle detected. Layout could not complete. (Windows phone 8.1 Runtime)
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 1.4.4
Hardware: PC Windows
: Normal critical
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-08-25 07:50 UTC by Christiaan Veeningen
Modified: 2016-01-04 22:49 UTC (History)
4 users (show)

Tags: ac windows crash layout
Is this bug a regression?: ---
Last known good build:

Sample project displaying the crash (406.59 KB, application/x-zip-compressed)
2015-08-25 07:50 UTC, Christiaan Veeningen

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 or GitHub 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:

Description Christiaan Veeningen 2015-08-25 07:50:19 UTC
Created attachment 12629 [details]
Sample project displaying the crash

I have a simple contentpage with a standard listview bound to a viewmodel with an observablecollection<string>.
When i add 100 items to the collection, and run the app from a WP8.1 runtime project the listview is working fine.

When I add 250 items, the app is crashing with the message "Layout cycle detected.  Layout could not complete."

I have tested it with both XF 1.4.4 and 1.5.0. This behavior is only seen in the WP runtime variant, the silverlight variant is working fine with the 250 items.

I have attached the sample project with both the working variant in silverlight and the crashing one in runtime.
Comment 1 Jesse Hamilton 2015-09-27 02:48:59 UTC
I have encountered the same behavior in WP8.1 and XF 1.5.0

The collection works with a ViewCell up to 116 items.  At 117 items the exception "Layout cycle detected" occurred.
Comment 2 Rui Marinho 2015-10-27 08:58:30 UTC
Should be fixed in 1.5.2-pre2
Comment 3 Marco 2016-01-04 22:49:17 UTC
I have scrollview as child of a relativelayout and an absoluteLayout as content of this scrollview.

If I add several objects to the absolutelayout, on WP8.1 I receive this error: 

Layout cycle detected. Layout could not complete.

I have xamarin forms v. (I have the same problem also on XF