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

iOS8 simulator crashed iOS 8模拟器崩溃在画Y轴线的地方 #2746

Closed
MikasaAckerman opened this issue Aug 23, 2017 · 5 comments
Closed

Comments

@MikasaAckerman
Copy link

是模拟器的问题吗
Is it the simulator's problem?

崩溃在charts/core/YAxisRenderer.swift 226行
crashed at charts/core/YAxisRenderer.swift 226 line

Assertion failed: (CGFloatIsValid(x) && CGFloatIsValid(y)), function void CGPathMoveToPoint(CGMutablePathRef, const CGAffineTransform *, CGFloat, CGFloat), file Paths/CGPath.cc, line 254.

@liuxuan30
Copy link
Member

Reproducible on ChartsDemo? How about on real device?

@MikasaAckerman
Copy link
Author

@liuxuan30 err..no, ChartsDemo uses OC, but i'm using Swift..

i changed the code lineChartView.leftAxis.drawGridLinesEnabled = false(origin is true but not ok) and it'ok, but i added leftAxis.drawGridLinesEnabled = NO; in Charts demo, there is no problem ether, is it Swift's problem?

open func drawGridLine(context: CGContext,  position: CGPoint)  {
        guard let viewPortHandler = self.viewPortHandler else { return }
        context.beginPath()
        context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: position.y)) ## // crashed here.  And i don't have iOS 8 iPhone, ether, so i'm not sure is there problem on real device... 
        context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: position.y))
        context.strokePath()
    }

@liuxuan30
Copy link
Member

Well I need you to debug on your side. You have the tools already.

@MikasaAckerman
Copy link
Author

after a week, there is no problem at here, i didn't change any code so i don't no what happened......................................................................................................................................is it the simulator's problem? - -

@liuxuan30
Copy link
Member

I don't know

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