[flutter_tool] Various fixes for 'run' for Fuchsia.#44920
[flutter_tool] Various fixes for 'run' for Fuchsia.#44920zanderso merged 1 commit intoflutter:masterfrom zanderso:fix-pkgctl-rm
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
There was a problem hiding this comment.
@rmacnak-google @alexmarkov without removing this, apps crash on startup on a missing class in dart:ui. Is this expected?
There was a problem hiding this comment.
That sounds like there's a mismatch between the platform being used to compile the app and the platform embedded in the runner's core snapshot. Is the missing class something that was recently introduced?
There was a problem hiding this comment.
- We shouldn't pass --no-link-platform in AOT mode (kernel compiler should complain).
- In JIT (debug) mode, the recommended way to load platform libraries is from core snapshot, and --no-link-platform will save some time and space. If app crashes when --no-link-platform is used, it means that isolate is not initialized from core snapshot, and platform libraries were loaded from kernel file. We saw similar problem with desktop embedder recently. If, for some reason, we don't want to use core snapshots then we can remove --no-link-platform, but this is less efficient compared to spawning isolates from core snapshot.
There was a problem hiding this comment.
There's currently no automated way to generate the cmx files. I initially copied one from the Fuchsia tree for the stocks example, then copied that one here, changing the component name.
There was a problem hiding this comment.
We'll likely need to generate one when we want to support Fuchsia with 'flutter create' though.
Description
A few things:
Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?