Bug 31541 - [WinPhone] ListView Crashing
Summary: [WinPhone] ListView Crashing
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 1.4.3
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-07-01 11:45 UTC by Eder
Modified: 2015-10-14 05:39 UTC (History)
5 users (show)

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

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:
RESOLVED FIXED

Description Eder 2015-07-01 11:45:33 UTC
ListView is Crashing on Windows Phone Emulator and on my Lumia 930 Device;
On Android it Works perfectly;
THIS IS A DEAL BREAK WHILE THINKING ABOUT ADOPTING XAMARIN ON MY COMPANY.

The listview has just 23 items

** FOLLOW THE SAMPLE ATTACHED AND THE STEPS TO REPRODUCE DE BUG;

1) Download the Sample:  http://1drv.ms/1JvAglf
2) Open the solution on Visual Studio 2015 RC on Windows 10 TP Build 10130
3) Run the Epimed.Mobile.NAS.WinPhone project

4) HIT THE "LOGIN" BUTTON ON MAINPAGE
5) Scrool the list all way down
6) Scrool the list all way up

And see the bug.
Comment 1 Eder 2015-07-01 11:56:13 UTC
It's hard to say it but this is a basic bug for a tool supposed to support cross platform development. 


If Xamarin doesn't provide us a workaround AND a dead line to solve this bug, probably my team will choose another tool.
Comment 2 Eder 2015-07-01 17:29:04 UTC
Follows the stacktrace:

Message	" [Line: 0 Position: 0]"	string

   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.UIElement_Measure(UIElement element, Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at Microsoft.Phone.Controls.LongListSelector.RealizeDisplayItem(Iterator`1 iterator, RealizeOptions options)
   at Microsoft.Phone.Controls.LongListSelector.RealizedRange.Prepend()
   at Microsoft.Phone.Controls.LongListSelector.PrependElement(RealizedRange range)
   at Microsoft.Phone.Controls.LongListSelector.HealElements(Rect requireRect, Rect allowRect, Boolean& areBoundsUpdated)
   at Microsoft.Phone.Controls.LongListSelector.Balance(Boolean containerViewport)
   at Microsoft.Phone.Controls.LongListSelector.MeasureOverride(Size availableSize)
   at Xamarin.Forms.Platform.WinPhone.FixedLongListSelector.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
Comment 3 Eder 2015-07-01 17:29:55 UTC
.
Comment 4 Jason Smith [MSFT] 2015-07-01 19:59:19 UTC
This I believe is fixed in 1.4.4-pre1 (which is not released yet). The cause was due to a potential case where infinite could be passed to measure with headers.

If after getting 1.4.4-pre1 this issue still exists for you please re-open.
Comment 5 Kent Green [MSFT] 2015-09-08 19:08:59 UTC
Using the sample in the description, I was able to reproduce the issue in the following Xamarin.Forms versions:

Xamarin.Forms 1.5.0.6404-pre3
Xamarin.Forms 1.4.4.6392

Build Info:
Microsoft Visual Studio Community 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00081

Installed Version: Community

Visual Basic 2015   00322-20000-00000-AA926
Microsoft Visual Basic 2015

Visual C# 2015   00322-20000-00000-AA926
Microsoft Visual C# 2015

Visual C++ 2015   00322-20000-00000-AA926
Microsoft Visual C++ 2015

Visual F# 2015 RC   00322-20000-00000-AA926
Microsoft Visual F# 2015 RC

Windows Phone SDK 8.0 - ENU   00322-20000-00000-AA926
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   14.0.20626.0
ASP.NET and Web Tools

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

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

GenerateUnitTest   1.0
Generates unit test code for methods in classes under test.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

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

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

Python Tools for Visual Studio   2.2.30718.00
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.

Python Tools for Visual Studio - Django Integration   2.2.30718.00
Provides templates and integration for the Django web framework.

Python Tools for Visual Studio - Profiling Support   2.2.30718.00
Profiling support for Python projects.

SQL Server Data Tools   14.0.50616.0
Microsoft SQL Server Data Tools

Visual Studio Tools for Universal Windows Apps   14.0.23121.00 D14OOB
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   3.11.837.0 (f10676f)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   5.1.5.3 (f98871a95a479f6d71b3067b7e5834d41fcb2118)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.10.4.0 (6db87c53c073f4af2f5247fb738a27ea08c094fd)
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


Per comment 4, reopening this bug report.
Comment 6 Thierry Fierens 2015-10-12 10:17:50 UTC
Hi guys,

We're having exactly the same problem as listed above. 

I am concerned that this has been opened since July and it still isn't resolved and while WP may not be a high priority for most users and/or Xamarin, the reason we went with Xamarin was to be able to provide a solution for all 3 OS, not 2.

Do you have any indication as to when this will be resolved as this basically means that we cannot release a WP app without having a fix for this first. It's a total show breaker for us!

Regards,

Thierry
Comment 7 Rui Marinho 2015-10-14 05:39:42 UTC
Should be fixed in 1.5.1-pre1