Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@jason-simmons
Copy link
Member

This is required so that Dart initialization can find the platform kernel
assets when running in Dart 2 mode

… API

This is required so that Dart initialization can find the platform kernel
assets when running in Dart 2 mode
@jason-simmons
Copy link
Member Author

@chinmaygarde

@stuartmorgan-g
Copy link
Contributor

Would this also cause google/flutter-desktop-embedding#33 ?

@jason-simmons
Copy link
Member Author

I don't have a MacOS environment set up to test it, but based on the stack trace in google/flutter-desktop-embedding#33 I suspect that this is the same issue.

Without this patch, InitDartVM in dart_init.cc will be unable to find the platform kernel assets and will configure the VM for Dart 1 mode. If the engine proceeds to load a Dart 2 kernel blob, the VM will crash.

@jason-simmons jason-simmons merged commit deea535 into flutter:master Apr 3, 2018
cbracken added a commit to cbracken/flutter that referenced this pull request Apr 4, 2018
Includes:
* libtxt: add missing dependency for Mac/iOS builds (flutter/engine#4931)
* libtxt: use Helvetica as a fallback font on iOS 8 and earlier (flutter/engine#4930)
* Make Rect.largest match the "largest" rect used in DefaultLayerBuilder (flutter/engine#4926)
* [vulkan] Add VK_ERROR_NOT_PERMITTED_EXT
* Roll buildroot to 8dddd90 (flutter/engine#4928)
* Set the asset bundle path when initializing the shell in the embedder API (flutter/engine#4925)
cbracken added a commit to flutter/flutter that referenced this pull request Apr 4, 2018
Includes:
* libtxt: add missing dependency for Mac/iOS builds (flutter/engine#4931)
* libtxt: use Helvetica as a fallback font on iOS 8 and earlier (flutter/engine#4930)
* Make Rect.largest match the "largest" rect used in DefaultLayerBuilder (flutter/engine#4926)
* [vulkan] Add VK_ERROR_NOT_PERMITTED_EXT
* Roll buildroot to 8dddd90 (flutter/engine#4928)
* Set the asset bundle path when initializing the shell in the embedder API (flutter/engine#4925)
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
Includes:
* libtxt: add missing dependency for Mac/iOS builds (flutter/engine#4931)
* libtxt: use Helvetica as a fallback font on iOS 8 and earlier (flutter/engine#4930)
* Make Rect.largest match the "largest" rect used in DefaultLayerBuilder (flutter/engine#4926)
* [vulkan] Add VK_ERROR_NOT_PERMITTED_EXT
* Roll buildroot to 8dddd90 (flutter/engine#4928)
* Set the asset bundle path when initializing the shell in the embedder API (flutter/engine#4925)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants