LineChart.swift line 295 LineChart.highlightDataPoints(_:)
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Swift/ContiguousArrayBuffer.swift:580: Fatal error: Index out of range
Crashed: com.apple.main-thread
0 libswiftCore.dylib 0x3b1a8 closure #1 in closure #1 in closure #1 in _assertionFailure(_:_:file:line:flags:) + 300
1 libswiftCore.dylib 0x3af48 closure #1 in closure #1 in _assertionFailure(_:_:file:line:flags:) + 220
2 libswiftCore.dylib 0x3a83c _assertionFailure(_:_:file:line:flags:) + 232
3 libswiftCore.dylib 0x17594 _ContiguousArrayBuffer.capacity.getter + 278
4 libswiftCore.dylib 0x1c380 Array.subscript.getter + 88
5 TVS 0x87728 LineChart.highlightDataPoints(_:) + 295 (LineChart.swift:295)
6 TVS 0x8702c LineChart.handleTouchEvents(_:event:) + 257 (LineChart.swift:257)
7 TVS 0x87204 LineChart.touchesEnded(_:with:) + 267 (LineChart.swift:267)
8 TVS 0x87290 @objc LineChart.touchesEnded(_:with:) + 4371640976 (:4371640976)
9 UIKitCore 0x17258c -[UIWindow _sendTouchesForEvent:] + 980
10 UIKitCore 0x1a3f48 -[UIWindow sendEvent:] + 4456
11 UIKitCore 0x353e34 -[UIApplication sendEvent:] + 828
12 UIKitCore 0x177140 __dispatchPreprocessedEventFromEventQueue + 7904
13 UIKitCore 0x16bf2c __processEventQueue + 6760
14 UIKitCore 0x1713d8 __eventFetcherSourceCallback + 172
15 CoreFoundation 0xbb0d0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
16 CoreFoundation 0xcbd90 __CFRunLoopDoSource0 + 208
17 CoreFoundation 0x6098 __CFRunLoopDoSources0 + 268
18 CoreFoundation 0xb8a4 __CFRunLoopRun + 820
19 CoreFoundation 0x1f468 CFRunLoopRunSpecific + 600
20 GraphicsServices 0x138c GSEventRunModal + 164
21 UIKitCore 0x5195d0 -[UIApplication _run] + 1100
22 UIKitCore 0x297f74 UIApplicationMain + 364
23 TVS 0x207e8 main + 27 (AppDelegate.swift:27)
24 ??? 0x106215aa4 (Missing)
Contributor guide
Research direction
Start with LineChart.swift at line 295 in highlightDataPoints(_:), then trace the call from handleTouchEvents(_:,event:) and touchesEnded(_:with:). Reproduce the touch interaction that triggers the crash and inspect the array access reported by the stack trace; done means the out-of-range crash is prevented and the relevant interaction remains functional.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100