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

[Bug] Shapes: ArcSegment throwing on iOS, doing nothing on Android #11190

Closed
davidbritch opened this issue Jun 24, 2020 · 3 comments
Closed

[Bug] Shapes: ArcSegment throwing on iOS, doing nothing on Android #11190

davidbritch opened this issue Jun 24, 2020 · 3 comments
Assignees
Labels
a/shapes e/3 🕒 3 in-progress This issue has an associated pull request that may resolve it! p/Android p/iOS 🍎 t/bug 🐛
Milestone

Comments

@davidbritch
Copy link

Description

I'd expect the following code to work:

        <Path Stroke="Black">
                <Path.Data>
                    <PathGeometry>
                        <PathGeometry.Figures>
                            <PathFigureCollection>
                                <PathFigure StartPoint="10,100">
                                    <PathFigure.Segments>
                                        <PathSegmentCollection>
                                            <ArcSegment Size="100,50"
                                                        RotationAngle="45"
                                                        IsLargeArc="True"
                                                        SweepDirection="CounterClockwise"
                                                        Point="200,100" />
                                        </PathSegmentCollection>
                                    </PathFigure.Segments>
                                </PathFigure>
                            </PathFigureCollection>
                        </PathGeometry.Figures>
                    </PathGeometry>
                </Path.Data>
            </Path>

On iOS this throws a ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

On Android, nothing renders.

Steps to Reproduce

  1. Run the attached sample.
  2. Browse to the PathGeometry page.
  3. Scroll down to "PathGeometry with an ArcSegment".

Expected Behavior

ArcSegment is drawn.

Actual Behavior

iOS: ArgumentOutOfRangeException
Android: Nothing drawn.

Basic Information

  • Version with issue: 4.7.0.968
  • IDE: VSMac 8.6.4
  • Platform Target Frameworks:
    • iOS: 13.5
    • Android: API 28

Reproduction Link

ShapesDemos.zip

@davidbritch davidbritch added t/bug 🐛 s/unverified New report that has yet to be verified labels Jun 24, 2020
@jsuarezruiz jsuarezruiz self-assigned this Jun 24, 2020
@jsuarezruiz jsuarezruiz added e/3 🕒 3 and removed s/unverified New report that has yet to be verified labels Jun 24, 2020
@samhouts samhouts added the in-progress This issue has an associated pull request that may resolve it! label Jun 25, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@eli191
Copy link

eli191 commented Dec 4, 2020

Hi, I have this issue, can you tell me if the fix is released please?

@davidbritch
Copy link
Author

Hi @eli191

It's fixed in 5.0 (which is currently a pre-release).

@eli191
Copy link

eli191 commented Dec 4, 2020

Super ! I will try it then !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/shapes e/3 🕒 3 in-progress This issue has an associated pull request that may resolve it! p/Android p/iOS 🍎 t/bug 🐛
Projects
None yet
Development

No branches or pull requests

4 participants