Skip to content

[ios] platform_views_layout crashes on subsequent runs #61584

@blasten

Description

@blasten

Here's a sample log:

platform_channel.dart:161)
stdout: [   +3 ms] <asynchronous suspension>
stdout: [        ] #2      PlatformViewsService.initUiKitView (package:flutter/src/services/platform_views.dart:219)
stdout: [        ] <asynchronous suspension>
stdout: [        ] #3      _UiKitViewState._createNewUiKitView (package:flutter/src/widgets/platform_view.dart:624)
stdout: [        ] <asynchronous suspension>
stdout: [   +1 ms] [VERBOSE-2:ui_dart_state.cc(166)] Unhandled Exception: PlatformException(create_failed, can't create a view on a headless engine, null)
stdout: [        ] #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:572)
stdout: [        ] #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:161)
stdout: [        ] <asynchronous suspension>
stdout: [        ] #2      PlatformViewsService.initUiKitView (package:flutter/src/services/platform_views.dart:219)
stdout: [        ] <asynchronous suspension>

2020-07-15T14:52:19.045273: INFO [task runner] [platform_views_scroll_perf_ios__timeline_summary] stdout: [        ] #3      _UiKitViewState._createNewUiKitView (package:flutter/src/widgets/platform_view.dart:624)
stdout: [        ] <asynchronous suspension>
stdout: [        ] [VERBOSE-2:ui_dart_state.cc(166)] Unhandled Exception: PlatformException(create_failed, can't create a view on a headless engine, null)
stdout: [        ] #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:572)
stdout: [        ] #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:161)
stdout: [        ] <asynchronous suspension>
stdout: [        ] #2      PlatformViewsService.initUiKitView (package:flutter/src/services/platform_views.dart:219)
stdout: [        ] <asynchronous suspension>
stdout: [        ] #3      _UiKitViewState._createNewUiKitView (package:flutter/src/widgets/platform_view.dart:624)
stdout: [        ] <asynchronous suspension>

fwiw, the framework fires a message to create the native view, which is handled in https://github.com/flutter/engine/blob/24d2143b98d6b0dfffd52eaad60d3900ea6a5190/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm#L124.

cc @dnfield, @cyanglaz

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressiona: platform-viewsEmbedding Android/iOS views in Flutter appsc: crashStack traces logged to the consolec: flakeTests that sometimes, but not always, incorrectly passc: regressionIt was better in the past than it is nowengineflutter/engine related. See also e: labels.platform-iosiOS applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions