ChartsOrg / ChartsOrg/Charts

"UnsafeMutablePointer.initialize overlapping range" crashes in iOS 14

Open
#4,417 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Hi! I am using Charts for my mood tracking app Moodline. The app has a big scrollable chart which is made using CATiledLayer, ScrollView and LineChart. Everything works fine on iOS 13 but after updating to iOS 14 beta my app became super unstable: if you scroll a chart for some time it will crash. It is also hard for me to find out what exactly causes crashing: when I try debugging it crashes in many different places with different exceptions. The most popular occurs in `AxisRendererBase.swift` line 188: `axis.entries.append(Double(f))`

Console output in some cases:

_Fatal error: UnsafeMutablePointer.initialize overlapping range: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1200.2.19.2/swift/stdlib/public/core/UnsafePointer.swift, line 832_

_Fatal error: UnsafeMutablePointer.initialize overlapping range: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1200.2.19.2/swift/stdlib/public/core/UnsafePointer.swift, line 832_

In some other cases:

_Moodline(39581,0x16c0d3000) malloc: pointer 0x280258000 being freed was not allocated_

_Moodline(39581,0x16c0d3000) malloc: *** set a breakpoint in malloc_error_break to debug_

Any ideas how to fix this? How likely is it to be fixed before iOS 14 release comes out?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.