Skip to content

Can't generate treemap for LTOed Android build #21686

Description

@goderbauer

flutter-team-archive/engine@35ddf87 enabled LTO on Android. Ever since then the treemap generation step on the bots is staling (example: https://uberchromegw.corp.google.com/i/client.flutter/builders/Linux%20Engine/builds/3633). No logs are provided here :(

When I try to generate the treemap locally, it does complete successfully, but in the process it prints a lot of error messages like:

addr2line: Dwarf Error: mangled line number section (bad file number).

Since the produced binary is working fine I am assuming that the treemap generation script has a problem with LTO and I am planning on disabling treemap generation on the bot for now.

Looks like chrome has switched away from the treemap generator that we've currently in use and is now using supersize: https://chromium.googlesource.com/chromium/src/+/master/tools/binary_size

We could switch to that one. Chinmay's bloaty script also still works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineflutter/engine related. See also e: labels.platform-androidAndroid applications specifically

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions