Skip to content

FlutterTextInputPluginTest crashes with "closure argument passed as @noescape to Objective-C has escaped" #183407

@okorohelijah

Description

@okorohelijah

testInteractiveKeyboardAfterUserScrollToTopOfKeyboardWillTakeScreenshot crashes on iOS 26.2. The test calls -[FlutterTextInputPlugin takeKeyboardScreenshotAndDisplay], which calls [UIScreen snapshotViewAfterScreenUpdates:YES]. On iOS 26, this UIKit API seems to violate a @noescape block contract, crashing the process with:

 closure argument passed as @noescape to Objective-C has escaped: file , line 19, column 162

The crash kills the test process mid-run. XCTest restarts and the remaining tests pass but the process crash causes xcodebuild to exit with code 65 (TEST FAILED).

build: https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Mac%20mac_unopt/9/overview
log: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8688125810590247857/+/u/test:_Tests_for_ios_debug_unopt_sim/stdout?format=raw

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listengineflutter/engine related. See also e: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions