Skip to content

flutter tool should recognize Android out of memory log pattern and report it cleanly to the user #6532

Closed

Description

@Hixie

In the following log, notice that the first line has a thread ID which matches the thread ID in the second line, and that the second line has a process ID that matches the process ID in the sixth line, that the sixth line indicates we had an out-of-memory issue, and that the last line lets us know that the process ID corresponds to the flutter app that we launched. The whole thing happens in less than a second.

The flutter tool should notice all this, put it together, and display a useful message to the user saying that the Flutter app was probably terminated due to an out-of-memory issue, and to verify that there isn't maybe an infinite loop or a memory leak. Maybe it could also point to the observatory and its heap inspector.

10-24 16:09:30.358 15164 15185 F libc    : Fatal signal 11 (SIGSEGV), code 2, fault addr 0x82b41e60 in tid 15185 (Thread-4)
10-24 16:09:30.360   271   271 W         : debuggerd: handling request: pid=15164 uid=10112 gid=10112 tid=15185
10-24 16:09:30.378 15502 15502 E         : debuggerd: process stopped due to unexpected signal 27
10-24 16:09:30.408   271   271 W         : debuggerd: resuming target 15164
10-24 16:09:30.409  2231 15503 W ActivityManager:   Force finishing activity io.flutter.examples.gallery/org.domokit.sky.shell.SkyActivity
10-24 16:09:30.432   295   295 E lowmemorykiller: Error writing /proc/15164/oom_score_adj; errno=22
10-24 16:09:30.471  2231  2870 W InputDispatcher: channel '20eb12d io.flutter.examples.gallery/org.domokit.sky.shell.SkyActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
10-24 16:09:30.471  2231  2870 E InputDispatcher: channel '20eb12d io.flutter.examples.gallery/org.domokit.sky.shell.SkyActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
10-24 16:09:30.476  2231  8212 D GraphicsStats: Buffer count: 4
10-24 16:09:30.476  2231 26028 I ActivityManager: Process io.flutter.examples.gallery (pid 15164) has died

Activity

  1. added
    c: new featureNothing broken; request for a new capability
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Oct 25, 2016
  2. added this to the milestone on Oct 25, 2016
  3. Hixie commented on Oct 26, 2016

    @Hixie
    ContributorAuthor

    Abort, abort, @chinmaygarde says this is mistaken!

  4. github-actions commented on Aug 8, 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.

  5. locked as resolved and limited conversation to collaborators on Aug 8, 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

    c: new featureNothing broken; request for a new capabilitytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions