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

Crash on device - iOS 8.3 #216

Closed
carrchr opened this issue Jul 15, 2015 · 4 comments
Closed

Crash on device - iOS 8.3 #216

carrchr opened this issue Jul 15, 2015 · 4 comments

Comments

@carrchr
Copy link

carrchr commented Jul 15, 2015

Just updated our fork of ios-charts with the latest commits to master and we're experiencing a crash when running on a device with iOS 8.3 or iOS 8.4
Does not occur on 8.2 or on iOS 8.4 Simulator
Getting an EXC_BAD_ACCESS consistently with Xcode breaking at line 21 in LineRadarChartDataSet.swift

screen shot 2015-07-15 at 11 44 46 am

public class LineRadarChartDataSet: BarLineScatterCandleChartDataSet
{
    public var fillColor = UIColor(red: 140.0/255.0, green: 234.0/255.0, blue: 255.0/255.0, alpha: 1.0)
    public var fillAlpha = CGFloat(0.33)   //  <--- CRASH HERE??  -->
    private var _lineWidth = CGFloat(1.0)
    public var drawFilledEnabled = false

    /// line width of the chart (min = 0.2, max = 10)
    /// :default: 1
    public var lineWidth: CGFloat
    {

Moving up the stack trace to my code Xcode claims to be here:
screen shot 2015-07-15 at 11 46 39 am
screen shot 2015-07-15 at 12 15 32 pm

I've run the ChartDemo project and it appears fine.

@carrchr
Copy link
Author

carrchr commented Jul 15, 2015

I realize that our modifications could somehow be causing this crash, since the Demo project still appears to work fine but the fact that it does not crash on iOS 8.2 makes me wonder if it is a Swift bug...

@danielgindi
Copy link
Collaborator

There's no reason to crash there. You could be using a Beta version of
Xcode,
Or just need to make a Clean Build.

On Wed, Jul 15, 2015 at 7:41 PM, Chris Carr [email protected]
wrote:

I realize that our modifications could somehow be causing this crash,
since the Demo project still appears to work fine but the fact that it does
not crash on iOS 8.2 makes me wonder if it is a Swift bug...


Reply to this email directly or view it on GitHub
#216 (comment)
.

@carrchr
Copy link
Author

carrchr commented Jul 15, 2015

Using Xcode 6.4 (6E35b) on Mac OS X 10.10.4
However, doing a full Clean Build (including deleting the Derived Data folder,) has gotten rid of the crash. Oh, Swift....

@carrchr carrchr closed this as completed Jul 15, 2015
@liuxuan30
Copy link
Member

I have met crash after init().. clean build also helps.

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

3 participants