Skip to content

[packages] Flaky iOS simulator failures in Pigeon custom tests #189005

Description

@stuartmorgan-g

For the past week or two, we've been having persistent but not 100% reproducible failures in flutter/packages CI (usually Mac_arm64 custom_package_tests master; I think we've seen it in Mac_arm64 custom_package_tests stable but I'm not 100% sure about that) affecting anything that runs Pigeon tests (notably, all flutter/flutter -> flutter/packages rolls, since they run all tests). The failure is:

2026-07-05 18:46:03.173 xcodebuild[21750:162570]  iOSSimulator: 88E0920D-848F-4FD1-B417-B7625D9ACBC7: Failed to launch app with identifier: com.example.alternateLanguageTestPluginExample and options: {
    "activate_suspended" = 0;
    arguments =     (
    );
    environment =     {
        "APP_DISTRIBUTOR_ID_OVERRIDE" = "com.apple.AppStore";
        "CA_ASSERT_MAIN_THREAD_TRANSACTIONS" = 0;
        "CA_DEBUG_TRANSACTIONS" = 0;
        "DYLD_FRAMEWORK_PATH" = "/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator/PackageFrameworks:/Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17c52/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator/PackageFrameworks:/Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17c52/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks";
        "DYLD_INSERT_LIBRARIES" = "/usr/lib/libRPAC.dylib:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/libXCTestBundleInject.dylib:/Library/Developer/CoreSimulator/Volumes/iOS_23C54/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/libXCTestBundleInject.dylib:/Library/Developer/CoreSimulator/Volumes/iOS_23C54/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib";
        "DYLD_LIBRARY_PATH" = "/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator:/Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17c52/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator:/Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17c52/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib";
        "LLVM_PROFILE_FILE" = "/dev/null";
        NSUnbufferedIO = YES;
        "OS_ACTIVITY_DT_MODE" = YES;
        "PERFC_ENABLE_EXTENDED_DIAGNOSTIC_FORMAT" = 1;
        "PERFC_ENABLE_PROFILE_MODE" = 1;
        "PERFC_RESET_INSERT_LIBRARIES" = 1;
        "PERFC_SUPPRESS_SYSTEM_REPORTS" = 1;
        "RUN_DESTINATION_DEVICE_NAME" = "Clone 2 of Pigeon-Test-iPhone";
        "RUN_DESTINATION_DEVICE_PLATFORM_IDENTIFIER" = "com.apple.platform.iphonesimulator";
        "RUN_DESTINATION_DEVICE_UDID" = "88E0920D-848F-4FD1-B417-B7625D9ACBC7";
        "SQLITE_ENABLE_THREAD_ASSERTIONS" = 1;
        TERM = dumb;
        XCInjectBundleInto = unused;
        "XCODE_SCHEME_NAME" = Runner;
        XCTestBundleInjectPath = "/usr/lib/libRPAC.dylib:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/libXCTestBundleInject.dylib:/Library/Developer/CoreSimulator/Volumes/iOS_23C54/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/libXCTestBundleInject.dylib:/Library/Developer/CoreSimulator/Volumes/iOS_23C54/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib";
        XCTestBundlePath = "PlugIns/RunnerTests.xctest";
        XCTestConfigurationFilePath = "";
        XCTestSessionIdentifier = "48881A90-F0DE-4234-9772-C01D7179704E";
        "__XCODE_BUILT_PRODUCTS_DIR_PATHS" = "/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator";
        "__XPC_DYLD_FRAMEWORK_PATH" = "/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator";
        "__XPC_DYLD_LIBRARY_PATH" = "/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator";
        "__XPC_LLVM_PROFILE_FILE" = "/dev/null";
    };
    stderr = "/dev/ttys001";
    stdout = "/dev/ttys001";
    "terminate_running_process" = 1;
    "wait_for_debugger" = 1;
} (error = Error Domain=NSMachErrorDomain Code=-308 "(ipc/mig) server died")

(From https://ci.chromium.org/ui/p/flutter/builders/try/Mac_arm64%20custom_package_tests%20master/28952/overview)

2026-07-01 14:46:37.798 xcodebuild[99524:1498235]  DVTAssertions: Warning in IDEFrameworks/IDEFoundation/Logging/ActivityLog/IDEActivityLogSectionRecorder.m:810
Details:  log recorder for IDEActivityLogSection “Launch RunnerTests” was sent -addMessage: after it had already been asked to stop recording.
Object:   <IDEActivityLogSectionRecorder: 0x600001b30cb0>
Method:   -addMessage:
Thread:   <NSThread: 0x600006974340>{number = 66, name = (null)}
Please file a bug at https://feedbackassistant.apple.com/ with this warning message and any useful information you can provide.
2026-07-01 14:46:37.798 xcodebuild[99524:1498235]  DVTAssertions: Warning in IDEFrameworks/IDEFoundation/Logging/ActivityLog/IDEActivityLogSectionRecorder.m:810
Details:  log recorder for IDEActivityLogSection “Launch RunnerTests” was sent -addMessage: after it had already been asked to stop recording.
Object:   <IDEActivityLogSectionRecorder: 0x600001b30cb0>
Method:   -addMessage:
Thread:   <NSThread: 0x600006974340>{number = 66, name = (null)}
Please file a bug at https://feedbackassistant.apple.com/ with this warning message and any useful information you can provide.
2026-07-01 14:46:37.798 xcodebuild[99524:1498235]  DVTAssertions: Warning in IDEFrameworks/IDEFoundation/Logging/ActivityLog/IDEActivityLogSectionRecorder.m:810
Details:  log recorder for IDEActivityLogSection “Launch RunnerTests” was sent -addMessage: after it had already been asked to stop recording.
Object:   <IDEActivityLogSectionRecorder: 0x600001b30cb0>
Method:   -addMessage:
Thread:   <NSThread: 0x600006974340>{number = 66, name = (null)}
Please file a bug at https://feedbackassistant.apple.com/ with this warning message and any useful information you can provide.
2026-07-01 14:46:37.798 xcodebuild[99524:1498235]  DVTAssertions: Warning in IDEFrameworks/IDEFoundation/Logging/ActivityLog/IDEActivityLogSectionRecorder.m:810
Details:  log recorder for IDEActivityLogSection “Launch RunnerTests” was sent -addMessage: after it had already been asked to stop recording.
Object:   <IDEActivityLogSectionRecorder: 0x600001b30cb0>
Method:   -addMessage:
Thread:   <NSThread: 0x600006974340>{number = 66, name = (null)}
Please file a bug at https://feedbackassistant.apple.com/ with this warning message and any useful information you can provide.
2026-07-01 14:46:37.798 xcodebuild[99524:1498235]  DVTAssertions: Warning in IDEFrameworks/IDEFoundation/Logging/ActivityLog/IDEActivityLogSectionRecorder.m:810
Details:  log recorder for IDEActivityLogSection “Launch RunnerTests” was sent -addMessage: after it had already been asked to stop recording.
Object:   <IDEActivityLogSectionRecorder: 0x600001b30cb0>
Method:   -addMessage:
Thread:   <NSThread: 0x600006974340>{number = 66, name = (null)}
Please file a bug at https://feedbackassistant.apple.com/ with this warning message and any useful information you can provide.
2026-07-01 14:46:37.799 xcodebuild[99524:1498235]  DVTAssertions: Warning in IDEFrameworks/IDEFoundation/Logging/ActivityLog/IDEActivityLogSectionRecorder.m:465
Details:  log recorder for IDEActivityLogSection “Launch RunnerTests” was sent -addCommandSectionWithDomainType:title:detailDescription: after it had already been asked to stop recording
Object:   <IDEActivityLogSectionRecorder: 0x600001b30cb0>
Method:   -addCommandSectionWithDomainType:title:detailDescription:
Thread:   <NSThread: 0x600006974340>{number = 66, name = (null)}
Please file a bug at https://feedbackassistant.apple.com/ with this warning message and any useful information you can provide.
2026-07-01 14:46:37.921 xcodebuild[99524:1498235]  DVTAssertions: Warning in IDEFrameworks/IDEFoundation/Logging/ActivityLog/IDEActivityLogSectionRecorder.m:465
Details:  log recorder for IDEActivityLogSection “Launch RunnerTests” was sent -addCommandSectionWithDomainType:title:detailDescription: after it had already been asked to stop recording
Object:   <IDEActivityLogSectionRecorder: 0x600001b30cb0>
Method:   -addCommandSectionWithDomainType:title:detailDescription:
Thread:   <NSThread: 0x600006974340>{number = 66, name = (null)}
Please file a bug at https://feedbackassistant.apple.com/ with this warning message and any useful information you can provide.
2026-07-01 14:48:56.800 xcodebuild[99524:1486672] [MT] IDETestOperationsObserverDebug: 243.985 elapsed -- Testing started completed.
2026-07-01 14:48:56.801 xcodebuild[99524:1486672] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2026-07-01 14:48:56.801 xcodebuild[99524:1486672] [MT] IDETestOperationsObserverDebug: 243.985 sec, +243.985 sec -- end

(From https://ci.chromium.org/ui/p/flutter/builders/try/Mac_arm64%20custom_package_tests%20master/28869/overview)

2026-07-05 17:42:35.176 xcodebuild[6653:70631]  iOSSimulator: DA09F4CB-C1BF-40F2-B7FC-5F7E4BCCFD8F: Failed to launch app with identifier: com.example.alternateLanguageTestPluginExample and options: {
    "activate_suspended" = 0;
    arguments =     (
    );
    environment =     {
        "APP_DISTRIBUTOR_ID_OVERRIDE" = "com.apple.AppStore";
        "CA_ASSERT_MAIN_THREAD_TRANSACTIONS" = 0;
        "CA_DEBUG_TRANSACTIONS" = 0;
        "DYLD_FRAMEWORK_PATH" = "/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator/PackageFrameworks:/Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17c52/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator/PackageFrameworks:/Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17c52/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks";
        "DYLD_INSERT_LIBRARIES" = "/usr/lib/libRPAC.dylib:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/libXCTestBundleInject.dylib:/Library/Developer/CoreSimulator/Volumes/iOS_23C54/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/libXCTestBundleInject.dylib:/Library/Developer/CoreSimulator/Volumes/iOS_23C54/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib";
        "DYLD_LIBRARY_PATH" = "/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator:/Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17c52/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator:/Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17c52/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib";
        "LLVM_PROFILE_FILE" = "/dev/null";
        NSUnbufferedIO = YES;
        "OS_ACTIVITY_DT_MODE" = YES;
        "PERFC_ENABLE_EXTENDED_DIAGNOSTIC_FORMAT" = 1;
        "PERFC_ENABLE_PROFILE_MODE" = 1;
        "PERFC_RESET_INSERT_LIBRARIES" = 1;
        "PERFC_SUPPRESS_SYSTEM_REPORTS" = 1;
        "RUN_DESTINATION_DEVICE_NAME" = "Clone 2 of Pigeon-Test-iPhone";
        "RUN_DESTINATION_DEVICE_PLATFORM_IDENTIFIER" = "com.apple.platform.iphonesimulator";
        "RUN_DESTINATION_DEVICE_UDID" = "DA09F4CB-C1BF-40F2-B7FC-5F7E4BCCFD8F";
        "SQLITE_ENABLE_THREAD_ASSERTIONS" = 1;
        TERM = dumb;
        XCInjectBundleInto = unused;
        "XCODE_SCHEME_NAME" = Runner;
        XCTestBundleInjectPath = "/usr/lib/libRPAC.dylib:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/libXCTestBundleInject.dylib:/Library/Developer/CoreSimulator/Volumes/iOS_23C54/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/libXCTestBundleInject.dylib:/Library/Developer/CoreSimulator/Volumes/iOS_23C54/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib";
        XCTestBundlePath = "PlugIns/RunnerTests.xctest";
        XCTestConfigurationFilePath = "";
        XCTestSessionIdentifier = "A8697FF3-5A01-4B2D-A5B3-FE3DC8C454AA";
        "__XCODE_BUILT_PRODUCTS_DIR_PATHS" = "/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator";
        "__XPC_DYLD_FRAMEWORK_PATH" = "/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator";
        "__XPC_DYLD_LIBRARY_PATH" = "/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator:/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-gdxqnlbgxtntmebxfknpseckjadn/Build/Products/Debug-iphonesimulator";
        "__XPC_LLVM_PROFILE_FILE" = "/dev/null";
    };
    stderr = "/dev/ttys001";
    stdout = "/dev/ttys001";
    "terminate_running_process" = 1;
    "wait_for_debugger" = 1;
} (error = Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "Simulator device failed to launch com.example.alternateLanguageTestPluginExample." UserInfo={NSLocalizedDescription=Simulator device failed to launch com.example.alternateLanguageTestPluginExample., NSUnderlyingError=0x6000028db7e0 {Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.example.alternateLanguageTestPluginExample" failed." UserInfo={BSErrorCodeDescription=RequestDenied, NSLocalizedDescription=The request to open "com.example.alternateLanguageTestPluginExample" failed., NSUnderlyingError=0x60000371f000 {Error Domain=FBProcessExit Code=64 "The process failed to launch." UserInfo={NSUnderlyingError=0x60000371e0d0 {Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo=0x600007f66200 (not displayed)}, BSErrorCodeDescription=launch-failed, NSLocalizedFailureReason=The process failed to launch.}}, FBSOpenApplicationRequestID=0x7fea, NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace).}}, NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace)., FBSOpenApplicationRequestID=0x7fea, SimCallingSelector=launchApplicationWithID:options:pid:error:, BSErrorCodeDescription=RequestDenied})

This one looks similar to the first, but the interesting part seems to be the underlying error message: The request was denied by service delegate (SBMainWorkspace)

(From https://ci.chromium.org/ui/p/flutter/builders/try/Mac_arm64%20custom_package_tests%20master/28948/overview)

We have not been able to reproduce this locally. Originally I thought it might have been triggered by a Dart change, but when I tried to bisect it each individual PR passed. I've also had at least a couple of PRs that ran all tests but didn't fail. At the same time, the roller is pretty much completely blocked. We have multiple PRs where we re-ran the failure many times and never got it to pass. We're over 150 commits behind flutter/flutter master at this point.

One theory is that this is an OOB issue caused by a change on the bots, and specifically we're wondering if the reason it sometimes passes is due to which bot gets the test. It may also be something that came in with master, but that doesn't explain why it isn't always reproducible, but also doesn't seem to be flake in that re-runs aren't helping. Maybe a combination of the two, where a specific combination of bot and an upstream change (Dart compiler???) causes a bad state.

We don't know why it's the Pigeon test specifically, but these tests are compiling an unusual amount of code, so could be triggering some edge case.

Any suggestions from the iOS team about how to narrow this down would be extremely helpful.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.c: flakeTests that sometimes, but not always, incorrectly passp: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.team-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