Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] [iOS] Rendering Line shape crashes the app when building using iOS SDK 15.2 #14986

@activa

Description

@activa

Description

When using iOS SDK 15.2 (with Xcode 13.2), any Xamarin Forms app that uses Line shapes crashes immediately when the line is rendered.

Steps to Reproduce

  1. Add a Line shape in XAML (or in code)
  2. Compile using iOS SDK 15.2
  3. Run app

For example, this page will crash the app:

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="XFLineBug.MainPage">

    <Grid>
        <Line X1="10" Y1="10" X2="100" Y2="50" Stroke="Red" StrokeThickness="3"/>
    </Grid>

</ContentPage>

Exception thrown: Could not initialize an instance of the type 'CoreGraphics.CGPath': handle is null.

Repro project: XFLineBug.zip
(this is a clean new Xamarin Forms iOS project with the MainPage changed to show a line shape)

Expected Behavior

Line is shown on screen

Actual Behavior

App crashes immediately.

100% reproducible

Basic Information

  • Version with issue: 5.0.0.2125 and 5.0.0.2291 (possibly earlier versions as well)
  • Last known good version: unknown
  • Platform Target Frameworks:
    • iOS: 15.2 (Xamarin.iOS 15.4.0)
    • Android: N/A
    • UWP: N/A
  • Android Support Library / AndroidX Version: N/A
  • Affected Devices: all iOS devices

Environment

Visual Studio 2022 on Windows
Visual Studio 2019 with Xamarin.iOS 15.4.0, Xcode 13.2 and iOS SDK 15.2 installed on Mac agent

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions