Open
Description
Bug description
Plotting an HistogramSeries
in SfCartesianChart
with dataSource
with 1 data point and showNormalDistributionCurve
set to true
seems to crash the entire app (tested on Chrome and iOS Simulator) and I can't see any stack trace from vscode debugger.
Steps to reproduce
plot an histogram series with 1 data point and set showNormalDistributionCurve: true
Code sample
Code sample
@override
Widget build(BuildContext context) {
return SfCartesianChart(
series: [
HistogramSeries(
dataSource: [1],
yValueMapper: (e, i) => e,
showNormalDistributionCurve: true,
),
],
);
}
Stack Traces
Stack Traces
Exhausted heap space, trying to allocate 1760 bytes.
[ERROR:flutter/shell/common/shell.cc(115)] Dart Error: Out of memory
Application finished.
On which target platforms have you observed this bug?
iOS
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.29.2, on macOS 15.3.2 24D81 darwin-arm64, locale en-US) [903ms]
• Flutter version 3.29.2 on channel stable at /opt/homebrew/Caskroom/flutter/3.16.5/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c236373904 (5 weeks ago), 2025-03-13 16:17:06 -0400
• Engine revision 18b71d647a
• Dart version 3.7.2
• DevTools version 2.42.3
[✗] Android toolchain - develop for Android devices [829ms]
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/to/macos-android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [1,689ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16E140
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [10ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed) [9ms]
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/to/macos-android-setup for detailed instructions).
[✓] VS Code (version 1.99.2) [9ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.108.0
[✓] Connected device (6 available) [5.9s]
• iPhone 16 (mobile) • 044837D9-0C49-4690-BF96-E6C91A231E01 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-18-4 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.3.2 24D81
darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.3.2 24D81
darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome
135.0.7049.85
[✓] Network resources [700ms]
• All expected network resources are available.
! Doctor found issues in 2 categories.