Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very rare crash when using fb_union method. #22

Open
sabiland opened this issue Dec 8, 2021 · 1 comment
Open

Very rare crash when using fb_union method. #22

sabiland opened this issue Dec 8, 2021 · 1 comment

Comments

@sabiland
Copy link

sabiland commented Dec 8, 2021

Is this project still maintained?

I am using fb_union (and other methods) quite a lot in my app, but for input I use always random generated paths created by me. And very rarely I get nil exception, very probably because splitSubcurvesWithRange returns nil paths.

Here is stack trace.

Screenshot 2021-12-08 at 10 53 58

@xhruso00
Copy link

Your crash comes from splitSubcurvesWithRange(_ range: FBRange, left: Bool, middle: Bool, right: Bool) -> (left: FBBezierCurve?, mid: FBBezierCurve?, right: FBBezierCurve?)
which sets _curve2RightBezier to be nil and this is later force unwrapped

PS: You write a pull request with fix (e.g. no one wants to do free labour)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants