提交 d178eafa 编写于 作者: A Adam Barth

Don't call Dart_TimelineGetMicros during startup on Mac (#2696)

It crashes. We either need to make it safe to call before
Dart_Initialize on Mac or we need to use some other way of measuring
startup time.

Fixes #4006
上级 b5271b0d
......@@ -56,7 +56,11 @@ static void RedirectIOConnectionsToSyslog() {
class EmbedderState {
public:
EmbedderState(int argc, const char* argv[], std::string icu_data_path) {
#if TARGET_OS_IPHONE
// This calls crashes on MacOS because we haven't run Dart_Initialize yet.
// See https://github.com/flutter/flutter/issues/4006
blink::engine_main_enter_ts = Dart_TimelineGetMicros();
#endif
CHECK([NSThread isMainThread])
<< "Embedder initialization must occur on the main platform thread";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册