Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug report] iOS Out Of Memory Issue #592

Closed
membersubs opened this issue Jun 25, 2023 · 4 comments
Closed

[Bug report] iOS Out Of Memory Issue #592

membersubs opened this issue Jun 25, 2023 · 4 comments

Comments

@membersubs
Copy link

membersubs commented Jun 25, 2023

Version

8.0.2

Platforms

iOS

Device Model

iPad (16.3.1)

flutter info

[✓] Flutter (Channel stable, 3.10.5, on macOS 13.3.1 22E772610a darwin-x64, locale en-US)
    • Flutter version 3.10.5 on channel stable at /Users/***/Applications/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (11 days ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc4)
    • Android SDK at /Users/***/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0-rc4
    • ANDROID_HOME = /Users/***/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/***/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.11.2

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

[✓] Android Studio (version 2022.2)
    • 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 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.79.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • ****** (mobile) • ************* • ios            • iOS 16.3.1 20D67
    • macOS (desktop)     • macos                                    • darwin-x64     • macOS 13.3.1 22E772610a darwin-x64
    • Chrome (web)        • chrome                                   • web-javascript • Google Chrome 114.0.5735.133

[✓] Network resources
    • All expected network resources are available.

• No issues found!

How to reproduce?

I'm currently loading Firebase Storage images (urls stored in Cloud Firestore) in ListView.builder. App crashes after loading about 100 images. I've already tried the memory management steps from README and other issues. Would really appreciate any help on this.

Logs

* thread #14, name = 'io.worker.2', stop reason = EXC_RESOURCE (RESOURCE_TYPE_MEMORY: high watermark memory limit exceeded) (limit=1450 MB)
    frame #0: 0x00000001148cc628 Flutter`ycc_rgb_convert + 140
Flutter`ycc_rgb_convert:
->  0x1148cc628 <+140>: strb   w21, [x5]
    0x1148cc62c <+144>: ldr    x21, [x12, x19, lsl #3]
    0x1148cc630 <+148>: ldr    x20, [x11, x20, lsl #3]
    0x1148cc634 <+152>: add    x20, x20, x21
Target 0: (Runner) stopped.

Example code (optional)

ExtendedImage.network(
    url,
    cache: true,
    clearMemoryCacheWhenDispose: true,
    imageCacheName: cachedImages,
    compressionRatio: null,
    // maxBytes: 1000,
  );

Contact

No response

@zmtzawqlp
Copy link
Member

what the size of the image? perfer to compression them in a list

@membersubs
Copy link
Author

@zmtzawqlp images are mostly under 1MB (500KB). They are already compressed and compressing further will affect quality.

@zmtzawqlp
Copy link
Member

it's better to provide a runnable simple demo to reproduce it

@zmtzawqlp
Copy link
Member

reopen it if you can provide the demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants