ChartsOrg / ChartsOrg/Charts

BarChartView.initialize() crash

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

Description

Does anyone know how to resolve this issue? It started with 4.1.0 version and XCode14.

Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000665623738
Crashed: com.apple.main-thread

0 libobjc.A.dylib 0x21f70 objc_class::isInitialized() + 182
1 Foundation 0x6df1c +[NSObject(NSKeyValueObservingCustomization) keyPathsForValuesAffectingValueForKey:] + 164
2 Foundation 0x6dcdc -[NSKeyValueUnnestedProperty _givenPropertiesBeingInitialized:getAffectingProperties:] + 168
3 Foundation 0x6db18 -[NSKeyValueUnnestedProperty _initWithContainerClass:key:propertiesBeingInitialized:] + 116
4 Foundation 0x6da08 NSKeyValuePropertyForIsaAndKeyPathInner + 256
5 Foundation 0x9faec NSKeyValuePropertyForIsaAndKeyPath + 172
6 Foundation 0x664fc -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 112
7 Nodle Cash 0x1c1dec BarLineChartViewBase.initialize() + 4343225836 (:4343225836)
8 Nodle Cash 0x1c0844 BarChartView.initialize() + 28 (BarChartView.swift:28)
9 Nodle Cash 0x1d3478 ChartViewBase.init(frame:) + 4343297144 (:4343297144)
10 Nodle Cash 0x1d34d0 @objc ChartViewBase.init(frame:) + 4343297232 (:4343297232)
11 Nodle Cash 0x1c98f0 BarLineChartViewBase.init(frame:) + 103 (BarLineChartViewBase.swift:103)
12 Nodle Cash 0x1c9928 @objc BarLineChartViewBase.init(frame:) + 4343257384 (:4343257384)
13 Nodle Cash 0x1c1ba8 @objc BarChartView.init(frame:) + 4343225256 (:4343225256)
14 Nodle Cash 0xa9464 closure #1 in variable initialization expression of StatsViewController.barChart + 4342076516 (:4342076516)
15 Nodle Cash 0xad550 StatsViewController.init(nibName:bundle:) + 46 (StatsViewController.swift:46)
16 Nodle Cash 0xad914 @objc StatsViewController.init(nibName:bundle:) + 4342094100 (:4342094100)
17 Nodle Cash 0x90f1c MainViewController.addScrollViewForTabs() + 4341976860 (:4341976860)
18 Nodle Cash 0x8d7d0 MainViewController.viewDidLoad() + 89 (MainViewController.swift:89)
19 Nodle Cash 0x8d904 @objc MainViewController.viewDidLoad() + 4341963012 (:4341963012)
20 UIKitCore 0x383330 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 84
21 UIKitCore 0x1b0a8 -[UIViewController loadViewIfRequired] + 712
22 UIKitCore 0x2e21bc -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 124
23 UIKitCore 0x1a85ec -[UINavigationController _startTransition:fromViewController:toViewController:] + 196
24 UIKitCore 0x1a7aa4 -[UINavigationController _startDeferredTransitionIfNeeded:] + 608
25 UIKitCore 0x1a70f4 -[UINavigationController __viewWillLayoutSubviews] + 96
26 UIKitCore 0x1a7058 -[UILayoutContainerView layoutSubviews] + 172
27 UIKitCore 0x4cec -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1980
28 QuartzCore 0xa4e8 CA::Layer::layout_if_needed(CA::Transaction*) + 500
29 QuartzCore 0x1db9c CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 148
30 QuartzCore 0x2f098 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 456
31 QuartzCore 0x663c4 CA::Transaction::commit() + 652
32 QuartzCore 0x4d408 CA::Transaction::flush_as_runloop_observer(bool) + 88
33 CoreFoundation 0x92070 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
34 CoreFoundation 0x1a690 __CFRunLoopDoObservers + 532
35 CoreFoundation 0x7bf8c __CFRunLoopRun + 1048
36 CoreFoundation 0x811e4 CFRunLoopRunSpecific + 612
37 GraphicsServices 0x1368 GSEventRunModal + 164
38 UIKitCore 0x3a2d88 -[UIApplication _run] + 888
39 UIKitCore 0x3a29ec UIApplicationMain + 340
40 Nodle Cash 0x10c04c main + 18 (AppDelegate.swift:18)
41 ??? 0x1a521d948 (Missing)

**Charts version/Branch/Commit Number: 4.1.0**
**Xcode version: 14**
**Swift version: 5**
**Platform(s) running Charts: iOS**

## Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.

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.