-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
CombinedChartView - EXC_BAD_ACCESS with doubleTapToZoomEnabled #3614
Comments
please post the stack trace of your crash. |
Sorry for the late response. Stack trace:
|
you should check what's going on with
|
I cannot check it, since materializeForSet method is generated by Swift. It does not exist in Chart code. Stepping in debugger ends in Assembler. The main problem I see, is that only happens if I build Charts via Carthage. If I directly include them in project, no crash at all. |
I think something wrong with your setup or data? @objc open var scaleXEnabled: Bool
{
get
{
return _scaleXEnabled
}
set
{
if _scaleXEnabled != newValue
{
_scaleXEnabled = newValue
#if !os(tvOS)
_pinchGestureRecognizer.isEnabled = _pinchZoomEnabled || _scaleXEnabled || _scaleYEnabled
#endif
}
}
} you should check what you are setting.. it's weird, never see this issue before Also, did you ChartsDemo with your config? |
I have downloaded latest XCode 10/Swift 4.2 and switch to Charts 3.2.0 and it seems that the problem is gone. |
What did you do?
I have initialized chart with this code:
What did you expect to happen?
I have migrated from directly embeding Charts workspace into my worskapce to Carthage and linked it with the latest Charts 3.1.1. Before, with workspace directly in my project, all was running fine, now the crash occurs.
What happened instead?
The code crashes on line with chart.doubleTapToZoomEnabled = false
I have tried to comment out that line, but in that case it crash later on other lines.
In debug console, I can see:
Can't select by touch. No data set.
Charts was compiled with optimization - stepping may behave oddly; variables may not be available.
Charts Environment
Charts version/Branch/Commit Number: 3.1.1.
Xcode version: 9.4.1
Swift version: 4
Platform(s) running Charts: iOS
macOS version running Xcode: 10.13.6
Carthage related ?
As it turns out, this is carthage problem. If I manually embed entire Charts workspace into mine and build Framework together with my project, all is running fine.
The text was updated successfully, but these errors were encountered: