Skip to content

Crash (ios): high watermark memory limit exceeded #2228

Open
@nbourdin

Description

@nbourdin

Which packages are you using?

stream_chat, stream_chat_flutter, stream_chat_flutter_core

On what platforms did you experience the issue?

iOS

What version are you using?

stream_chat_flutter-7.2.2

What happened?

Hello! My app crashes when there are multiple images in the channel
GalleryAttachmentBuilder seems to be problem

Relevant log output

[ServicesDaemonManager] interruptionHandler is called. -[FontServicesDaemonManager connection]_block_invoke
* thread #8, name = 'io.flutter.1.ui', stop reason = EXC_RESOURCE (RESOURCE_TYPE_MEMORY: high watermark memory limit exceeded) (limit=1450 MB)
    frame #0: 0x000000010d40248c
->  0x10d40248c: stur   x2, [x0, #0x27]
    0x10d402490: stur   x4, [x0, #0x2f]
    0x10d402494: ret    
    0x10d402498: stp    x29, x30, [x15, #-0x10]!
Target 0: (Runner) stopped.
Lost connection to device.

Flutter doctor output

[!] Flutter (Channel stable, 3.24.5, on macOS 15.4 24E248 darwin-arm64, locale fr-US)
    • Flutter version 3.24.5 on channel stable at /Users/nicolas/flutter
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.5.4/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nicolas/flutter. Consider adding
      /Users/nicolas/flutter/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision dec2ee5c1f (5 months ago), 2024-11-13 11:13:06 -0800
    • Engine revision a18df97ca5
    • Dart version 3.5.4
    • DevTools version 2.37.3
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/nicolas/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • ANDROID_HOME = /Users/nicolas/Library/Android/sdk
    • Java binary at: /opt/homebrew/opt/openjdk@17/bin/java
    • Java version OpenJDK Runtime Environment Homebrew (build 17.0.14+0)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /Applications/Xcode-16.2.0.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
    • 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)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.109.20250401

[✓] Connected device (4 available)
...
[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions