Skip to content

[BUG] AccessViolationException in UWP when navigating to a page with SKGLView #1490

@kerego

Description

@kerego

Description
UWP app that has a page done in Xamarin.Forms using SkiaSharp.SKGLView
There are two pages, MainPage(native uwp) and XappWrapper(xamarin.forms)
DrawInBackground is set to true
Navigate forward and back a few times.

Actual Behavior
App crashes with the following Exception:
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'

Expected Behavior
No exception is thrown
Setting DrawInBackground = false, fixes the issue, but severely affects performance.

Basic Information

  • Version with issue: 1.68.3 - 2.80.1
  • Last known good version: 1.68.0
  • IDE: Visual Studio
  • Platform Target Frameworks:
    • UWP: 16299
  • Target Devices: Windows PC
Detailed IDE/OS information (click to expand)
Microsoft Windows 2004 (OS Build 19041.450)
Microsoft Visual Studio Community 2019 Version 16.6.1
Xamarin 16.6.000.1061 (d16-6@8e68aa8)

Reproduction Project

MemoryViolationRepro.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions