UWP Flicker on window resize?

BuildCalcBuildCalc USMember ✭✭✭
edited September 26 in Xamarin.Forms

Before I file a bug, I wanted to ask the community if they see this as well and if there is a work around.

Issue: Xamarin.Forms UWP apps flicker (terribly) upon window resize

How to reproduce:

  • Create a new Xamarin.Forms app (with a UWP platform project)
  • Use the default "Welcome to Xamarin.Forms!" Content page
  • Run the UWP app
  • Resize the application window
  • Try not to have a seizure.

How to make much worse:

  • Add more content (like images, layouts, you name it)

System configuration:

Microsoft Visual Studio Community 2017
Version 15.3.5
VisualStudio.15.Release/15.3.5+26730.16
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Community

Visual Basic 2017 00369-60000-00001-AA466
Microsoft Visual Basic 2017

Visual C# 2017 00369-60000-00001-AA466
Microsoft Visual C# 2017

Visual F# 4.1 00369-60000-00001-AA466
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package 8.8.00712.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017 15.0.30726.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services 1.0
Provides languages services for ASP.NET Core Razor.

ASP.NET Template Engine 2017 15.0.30726.0
ASP.NET Template Engine 2017

ASP.NET Web Frameworks and Tools 2017 5.2.50601.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0 15.0.30728.0
Azure App Service Tools v3.0.0

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

JavaScript Language Service 2.0
JavaScript Language Service

JavaScript Project System 2.0
JavaScript Project System

JavaScript UWP Project System 2.0
JavaScript UWP Project System

Merq 1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50719.1

Microsoft Continuous Delivery Tools for Visual Studio 0.3
Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio 4.6.8-pre (ec7034f)
Support for debugging Mono processes with Visual Studio.

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

SQL Server Data Tools 15.1.61707.200
Microsoft SQL Server Data Tools

TypeScript 2.3.4.0
TypeScript tools for Visual Studio

Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for Universal Windows Apps 15.0.26730.08
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 4.7.9.45 (bd7e3753c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK 7.4.5.1 (fb018c5)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK 11.0.0.0 (152b654)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

System Info:

OS Name Microsoft Windows 10 Pro
Version 10.0.15063 Build 15063
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name DESKTOP-SO17ACK
System Manufacturer Apple Inc.
System Model MacBookPro11,2
System Type x64-based PC
System SKU Unsupported
Processor Intel(R) Core(TM) i7-4750HQ CPU @ 2.00GHz, 2001 Mhz, 4 Core(s), 8 Logical Processor(s)
BIOS Version/Date Apple Inc. MBP112.88Z.0138.B18.1610201654, 10/20/2016
SMBIOS Version 2.4
BIOS Mode UEFI
BaseBoard Manufacturer Apple Inc.
BaseBoard Model Not Available
BaseBoard Name Base Board
Platform Role Mobile
Secure Boot State Unsupported
PCR7 Configuration Not Available
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "10.0.15063.502"
User Name DESKTOP-SO17ACK\ben
Time Zone Eastern Daylight Time
Installed Physical Memory (RAM) 8.00 GB
Total Physical Memory 7.91 GB
Available Physical Memory 3.08 GB
Total Virtual Memory 9.47 GB
Available Virtual Memory 3.01 GB
Page File Space 1.56 GB
Page File C:\pagefile.sys
Device Encryption Support Not Available
Hyper-V - VM Monitor Mode Extensions Yes
Hyper-V - Second Level Address Translation Extensions Yes
Hyper-V - Virtualization Enabled in Firmware Yes
Hyper-V - Data Execution Protection Yes

Best Answer

  • BuildCalcBuildCalc USMember ✭✭✭
    edited September 26 Accepted Answer

    @JohnHardman - Per the response from the Xamarin team at Microsoft to the Bugzilla report, I just tried upgrading to Xamarin.Forms v2.4.0.275 pre-3 and it addressed the problem I was seeing. If you have a moment, I would be curious to know what that version does for the ListView issue you are seeing.

Answers

  • JohnHardmanJohnHardman GBUniversity ✭✭✭✭✭

    @BuildCalc - I find UWP on desktop is fine (there used to be issues in earlier XF versions, but those seem to have been fixed). However, UWP on my Microsoft Lumia 550 flickers really badly whenever realistic (i.e. non-trivial) ListViews are used (I'm currently using XF 2.3.4.270)

  • BuildCalcBuildCalc USMember ✭✭✭
    edited September 26

    Thanks, @JohnHardman .

  • JohnHardmanJohnHardman GBUniversity ✭✭✭✭✭

    @BuildCalc - Forgot to mention - even on desktop, I find WebView flickers when first populated.

  • JohnHardmanJohnHardman GBUniversity ✭✭✭✭✭

    @BuildCalc - I somehow missed your emphasis on resizing the windows. Yes - during resizing, everything flickers.

    During development, I maintain one page where I put an example of most of the basic Xamarin.Views, so that when issues arise, I can quickly judge whether the issue is down to one of my custom controls or renderers, or whether the issue is in a basic Xamarin.Forms view. I just re-sized that page. Definitely seizure territory...

  • BuildCalcBuildCalc USMember ✭✭✭

    @JohnHardman -

    I was able to isolate it to the point of determining that it starts to happen to any non-modal page on the Navigation stack AFTER the Navigation.PushAsyc(Page page) has been used to push a page onto the Navigation stack. In other words, it doesn't happen:

    • to the root page BEFORE any other pages are Navigation.PushAsync() onto the stack
    • to any page that is Navigation.PushModalAsync()

    I've filed the following bug report: https://bugzilla.xamarin.com/show_bug.cgi?id=59759

    And you can find a demo project here that illustrates the issue: https://github.com/baskren/XamarinFormsUwpPageFlicker

  • JohnHardmanJohnHardman GBUniversity ✭✭✭✭✭

    @BuildCalc - Although it's not how the final app will be, during development I have a ListView as my main page. For me, my main page does flicker during resize, but that may be the ListView being clunky rather than a non-root page issue.

  • BuildCalcBuildCalc USMember ✭✭✭
    edited September 26 Accepted Answer

    @JohnHardman - Per the response from the Xamarin team at Microsoft to the Bugzilla report, I just tried upgrading to Xamarin.Forms v2.4.0.275 pre-3 and it addressed the problem I was seeing. If you have a moment, I would be curious to know what that version does for the ListView issue you are seeing.

  • JohnHardmanJohnHardman GBUniversity ✭✭✭✭✭

    @BuildCalc - I'll be waiting for the stable release. I've been burnt by pre-releases too many times. I'm glad other people try them, and if I was being paid by somebody else for my time, I would too. If I forget once the next stable release appears, remind me and I'll check the ListView again.

  • BuildCalcBuildCalc USMember ✭✭✭

    @JohnHardman - Very much understood. I too have been there. I still haven't taken the time to build a simple bug demo app to help me figure out the edge case created after 2.3.3.193 that caused an app I was working on to crash when I displayed a second ListView on the screen (in Android). Sometimes there are more bugs than there are time to document them.

Sign In or Register to comment.