Skip to content

Graphics Memory very high in real device #39475

Closed

Description

@lequanghiep74

I use flutter flame to make animation and precacheImage to preload Image.
In emulator, everything's fine. But when i run app in real device, graphics memory is very high and app crash. My other application only shows the list and the image has the same issue.
Ps: Flutter v1.9.6

In emulator:

In real device:

Activity

  1. BondarenkoStas commented on Aug 29, 2019

    @BondarenkoStas

    Please provide flutter doctor -v output as well as the steps to reproduce the issue. It may be connected to a specific device.

  2. lequanghiep74 commented on Aug 29, 2019

    @lequanghiep74
    Author

    This issue only appear on android device with chipset Snapdragon - gpu Adreno (LG G6, LG v40, huawei honor 7A). Galaxy Note 5 with exynos working fine.

    [✓] Flutter (Channel unknown, v1.9.6, on Mac OS X 10.14.6 18G87, locale en-US)
        • Flutter version 1.9.6 at /Users/xxx/Downloads/flutter
        • Framework revision 35de8d5278 (21 hours ago), 2019-08-28 16:49:49 +0300
        • Engine revision f8c4546eb4
        • Dart version 2.5.0
    
     
    [!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
        • Android SDK at /Users/xxxf/Library/Android/sdk
        • Android NDK location not configured (optional; useful for native profiling support)
        • Platform android-28, build-tools 28.0.3
        • Java binary at: /Users/xxx/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.5692245/Android
          Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
        ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
    
    [✓] Xcode - develop for iOS and macOS (Xcode 10.3)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 10.3, Build version 10G8
        • CocoaPods version 1.6.1
    
    [✓] Android Studio (version 3.4)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin version 35.2.1
        • Dart plugin version 183.6270
        • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    
    [✓] Android Studio (version 3.4)
        • Android Studio at /Users/xxx/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.5692245/Android Studio.app/Contents
        • Flutter plugin version 35.2.1
        • Dart plugin version 183.6270
        • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    
    [!] IntelliJ IDEA Ultimate Edition (version 2018.2.6)
        • IntelliJ at /Users/xxx/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
        ✗ Flutter plugin not installed; this adds Flutter specific functionality.
        ✗ Dart plugin not installed; this adds Dart specific functionality.
        • For information about installing plugins, see
          https://flutter.dev/intellij-setup/#installing-the-plugins
    
    [✓] Connected device (2 available)
        • LGM G600L                 • LGMG600L743f1c72 • android-arm64 • Android 8.0.0 (API 26)
        • Android SDK built for x86 • emulator-5554    • android-x86   • Android 9 (API 28) (emulator)
    
  3. mjaffa-figure commented on Sep 3, 2019

    @mjaffa-figure

    @dnfield Does this have to do with this issue:
    #28037
    #28037

  4. mjaffa-figure commented on Sep 3, 2019

    @mjaffa-figure

    @lequanghiep74 Try running this on flutter 1.1.8 and see if the crashing goes away for you. If flutter flare is supported on that version of flutter.

  5. dnfield commented on Sep 6, 2019

    @dnfield
    Contributor

    /cc @gw280 - this might be up your alley

  6. maks commented on Oct 10, 2019

    @maks
    Contributor

    I would also suggest trying current master channel:

    Flutter 1.10.15-pre.37 • channel master • https://github.com/flutter/flutter.git
    Framework • revision 609de08881 (12 minutes ago) • 2019-10-09 19:33:43 -0400
    Engine • revision e693192167
    Tools • Dart 2.6.0 (build 2.6.0-dev.6.0 41d13f0ffe)
    

    for me this resolved an issue with OOM crashes (using profile build) of my app running on a Neuxs 5x (also an adreno gpu though not sure if thats relevant).

    My crash came from scrolling back and forwards through a listview (~60 items) with medium sized images (850x435 JPEGs) on each item, memory usage would just keep grtowing until OOM using Flutter current stable and beta, but on master the mem usage peeks at around 100MB below the 800MB threshold that would cause the OOM crashes, so some of the recent fixes for image memory management issues on master branch fixed at least my issue.

  7. darshankawar commented on Nov 10, 2020

    @darshankawar
    Member

    Hi @lequanghiep74
    Is this still a valid issue using latest Flutter version ?

  8. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 10, 2020
  9. pedromassangocode commented on Dec 2, 2020

    @pedromassangocode

    Without additional information, we are unfortunately not sure how to resolve this issue.
    We are therefore reluctantly going to close this bug for now.
    Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
    Thanks for your contribution.

    Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
    All system setups can be slightly different, so it's always better to open new issues and reference related issues.

  10. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 2, 2020
  11. dnfield commented on Dec 2, 2020

    @dnfield
    Contributor

    This may be helped by #58870

  12. pedromassangocode commented on Dec 2, 2020

    @pedromassangocode

    @dnfield should this be reopened?

  13. dnfield commented on Dec 2, 2020

    @dnfield
    Contributor

    No. This bug does not really have reproducible steps - more just pointing out that there are other similar cases we do have reproducible steps for, and fixing those may help this one :)

  14. github-actions commented on Aug 9, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: imagesLoading, displaying, rendering imagese: device-specificOnly manifests on certain devicesengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions