Skip to content

Build --tree-shake-icons option crashes computer #56473

@ivanjpg

Description

@ivanjpg

I've been trying to build my application into production (iOS and Android) with:

--release \
--split-debug-info=./debug-info/${APP_VERSION}/${TARGET}/ \
--obfuscate \
--verbose

also --shrink for Android; this works well. But if I include --tree-shake-icons no matter if it is for iOS or Android, the computer hangs and then restarts (MacBook Pro, Mid 2012, 10.15.4 and 8GB of RAM). I've trying with Flutter v1.12.13+hotfix.{7,8,9} stable; Beta 1.17* and today 1.17.0 stable; all with the same results.

The last thing I saw in the log was:

Runnning command:
flutter/bin/cache/dart-sdk/bin/dart
flutter/bin/cache/artifacts/engine/darwin-x64/const_finder.dart.snapshot --kernel-file
/APPDIR/.dart_tool/flutter_build/HASH/app.dill --class-library-uri
package:flutter/src/widgets/icon_data.dart --class-name IconData

After that appears on screen the computer freezes and then shuts down. flutter doctor -v shows no problems at all.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consolefound in release: 1.17Found to occur in 1.17found in release: 1.18Occurs in 1.18toolAffects 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