-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Details
Hello, I'm trying to implement the BackgroundIsolateBinaryMessenger as described here: https://medium.com/flutter/introducing-background-isolate-channels-7a299609cad8 but it seems that on iOS the data is never released and therefore the memory used increases until the application crashes.
I made a sample with a simple plugin who send Uint8List, you can run the example project to try it.
https://github.com/BenoitOutman/BackgroundIsolateBinaryMessengerLeak
same issue on master channel
**Target Platform: IOS
**Target OS version/browser:14.7.1
**Devices: iphone 6S and Iphone 12 mini simulator
Logs
Logs
[✓] Flutter (Channel stable, 3.7.7, on macOS 13.2.1 22D68 darwin-x64, locale fr-FR)
• Flutter version 3.7.7 on channel stable at /Users/atombu/fvm/versions/stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2ad6cd7 (8 days ago), 2023-03-08 09:41:59 -0800
• Engine revision 1837b5be5f
• Dart version 2.19.4
• DevTools version 2.20.1
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/atombu/Library/Android/sdk
• Platform android-33, build-tools 30.0.3
• Java binary at: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
• Java version Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14C18
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
[✓] IntelliJ IDEA Community Edition (version 2020.2.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 52.2.3
• Dart plugin version 202.8531
[✓] VS Code (version 1.76.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.60.0
[✓] Connected device (5 available)
• SM A530F (mobile) • 5200f39c43a5b545 • android-arm64 • Android
8.0.0 (API 26) (emulator)
• iPhone de Yannick (mobile) • 01008c8ec0b7bd4655f6c3d21d009e2bd7af41e6 • ios • iOS 14.7.1
18G82
• iPhone 12 mini (mobile) • D47E2D66-50D6-4B63-AFCA-1F716E8789E6 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
• macOS (desktop) • macos • darwin-x64 • macOS
13.2.1 22D68 darwin-x64
• Chrome (web)
• chrome • web-javascript • Google
Chrome 111.0.5563.64
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!