Bug 29290 - ViewCell exception on WinPhone
Summary: ViewCell exception on WinPhone
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 1.3.5
Hardware: PC Windows
: Normal major
Target Milestone: ---
Assignee: Chris King
URL:
Depends on:
Blocks:
 
Reported: 2015-04-21 22:39 UTC by Jeremy Herbison
Modified: 2015-07-20 07:53 UTC (History)
6 users (show)

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


Attachments
Test Case (6.52 MB, application/x-zip-compressed)
2015-05-13 12:54 UTC, Jeremy Herbison
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 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:
Status:
VERIFIED FIXED

Description Jeremy Herbison 2015-04-21 22:39:48 UTC
The following code throws a strange exception, unless the Button inside the ViewCell has its HorizonalOptions set to something other than Fill or FillAndExpand (or a it is placed in a container with said option configured). The issue was found on WinPhone. Unable to test on iOS or Android at the moment.

Message = "MeasureOverride of element 'Xamarin.Forms.Platform.WinPhone.ViewToRendererConverter+WrapperControl' should not return PositiveInfinity or NaN as its DesiredSize."


<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="TestProject.Views.AccountPage">
  <TableView Intent="Menu">
    <TableView.Root>
      <TableSection Title="Account">
        <EntryCell Placeholder="Email Address" Text="{Binding EmailAddress}"/>
        <EntryCell Placeholder="Password" Text="{Binding Password}"/>
        <ViewCell>
          <Button Text="Kaboom!"/>
        </ViewCell>
      </TableSection>
    </TableView.Root>
  </TableView>
</ContentPage>
Comment 1 Jeremy Herbison 2015-04-27 11:58:13 UTC
Definitely only a WinPhone issue.
Comment 2 Ram Chandra 2015-05-04 09:34:43 UTC
I have checked this issue but we are unable to reproduce this issue.

Could you please provide sample application? So that we can reproduce this issue at our end. If you have a chance, it might also be helpful to include some other pieces of information: like version of Xamarin.Forms you are using, logs and Environment Info.

You can get Environment info from here:

Visual Studio => Help => About Microsoft Visual Studio => Copy Info

You can get Logs from here:

Visual Studio => HELP => Xamarin => Zip Xamarin Logs (please attached that zip file with this issue).
Comment 3 Jeremy Herbison 2015-05-13 12:54:02 UTC
Created attachment 11185 [details]
Test Case
Comment 4 Jeremy Herbison 2015-05-13 12:56:02 UTC
In creating my test case, I discovered the issue is not apparent with XF 1.3.3 (which is the solution default). It first crops up with an upgrade to 1.3.5.
Comment 5 Jeremy Herbison 2015-05-15 11:43:53 UTC
Changing back to NEW because i'm not sure anyone will ever look at my test case otherwise.
Comment 6 Ram Chandra 2015-05-21 12:12:04 UTC
@Jeremy: Thanks for the test case.

I have checked this issue and with the help of attached project I am able to reproduce this issue. 

Screencast: http://www.screencast.com/t/xTh1OutUC8

Exception: MeasureOverride of element 'Xamarin.Forms.Platform.WinPhone.ViewToRendererConverter+WrapperControl' should not return PositiveInfinity or NaN as its DesiredSize.

Application output: https://gist.github.com/RamChBachkheti/1d3e96e36726061621ed
IDE logs: https://gist.github.com/RamChBachkheti/1188d43a0fc7f9c7c3ef

Note: I am not getting this behavior with android project.

Please let me know if I can provide more info to this issue.

Environment Info:

Xamarin.Forms 1.4.3.6358-pre2

Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

LightSwitch for Visual Studio 2013   06177-004-0447006-02641
Microsoft LightSwitch for Visual Studio 2013

Team Explorer for Visual Studio 2013   06177-004-0447006-02641
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06177-004-0447006-02641
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0447006-02641
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0447006-02641
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0447006-02641
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0447006-02641
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06177-004-0447006-02641
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools   12.3.50717.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Websites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.20703.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.2
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

Microsoft Azure Mobile Services Tools   1.2
Microsoft Azure Mobile Services Tools

Multilingual App Toolkit   3.1.1250.0
Multilingual App Toolkit helps you localize your Windows Store app by providing file management, pseudo and machine translation, translation editor, and build integration. http://go.microsoft.com/fwlink?linkid=245767

NuGet Package Manager   2.8.60318.734
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2013 ENU   12.0.30626
Microsoft Office Developer Tools for Visual Studio 2013 ENU

PowerShell Tools   1.2
Provides file classification services using PowerShell

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   12.0.30919.1
Microsoft SQL Server Data Tools

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   3.11.578.0 (7fd4fc7)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   5.1.2.0 (2485523223ffb88567f101866d5f73da7a37ca53)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.Forms Intellisense   1.0
Provides intellisense for Xamarin.Forms in the XML editor.

Xamarin.iOS   8.10.1.0 (b39367de851067678f8b6fe4ab8a37ff97515cf8)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified

Xamarin.TestCloud.Integration   1.0
Early preview of Xamarin Test Cloud integration
Comment 7 Chris King 2015-06-24 16:26:24 UTC
https://github.com/xamarin/Duplo/pull/3200
Comment 8 Jason Smith [MSFT] 2015-06-25 19:43:53 UTC
This should be fixed in 1.4.4-pre1
Comment 9 Jason Smith [MSFT] 2015-06-25 19:44:02 UTC
Forgot to change status
Comment 10 Parmendra Kumar 2015-07-20 07:53:58 UTC
I have checked this issue with X.F 1.4.4-pre2 and its working fine at my end. App deploy successfully on WindowsPhone.


Hence closing this issue.