Skip to content

[Xcode 16] Mac plugin_test_macos timing out #164902

Closed

Description

@vashworth

Mac plugin_test_macos seems to flakily time out with Xcode 16 on the ══╡ ••• Test plugin ••• ╞══ section of the test.

When it fails it ends with this log:

 [2025-03-07 16:01:29.329280] [STDOUT] stderr: 2025-03-07 16:01:29.329 xcodebuild[69053:601537] [MT] IDETestOperationsObserverDebug: 3.937 elapsed -- Testing started completed.
 [2025-03-07 16:01:29.329310] [STDOUT] stderr: 2025-03-07 16:01:29.329 xcodebuild[69053:601537] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
 [2025-03-07 16:01:29.329319] [STDOUT] stderr: 2025-03-07 16:01:29.329 xcodebuild[69053:601537] [MT] IDETestOperationsObserverDebug: 3.937 sec, +3.937 sec -- end

When it passes it ends with this log:

[2025-03-10 07:17:05.097310] [STDOUT] stderr: 2025-03-10 07:17:05.096 xcodebuild[22222:236457] [MT] IDETestOperationsObserverDebug: 4.302 elapsed -- Testing started completed.
 [2025-03-10 07:17:05.097341] [STDOUT] stderr: 2025-03-10 07:17:05.096 xcodebuild[22222:236457] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
 [2025-03-10 07:17:05.097350] [STDOUT] stderr: 2025-03-10 07:17:05.096 xcodebuild[22222:236457] [MT] IDETestOperationsObserverDebug: 4.302 sec, +4.302 sec -- end
 [2025-03-10 07:17:05.100044] [STDOUT] stdout: 
 [2025-03-10 07:17:05.100066] [STDOUT] stdout: Test session results, code coverage, and logs:
 [2025-03-10 07:17:05.100074] [STDOUT] stdout: 	/Volumes/Work/s/w/ir/x/t/flutter_xcresult.abTDQG/result
 [2025-03-10 07:17:05.100081] [STDOUT] stdout: 
 [2025-03-10 07:17:05.100086] [STDOUT] stdout: ** TEST SUCCEEDED **
 [2025-03-10 07:17:05.100092] [STDOUT] stdout: 
 [2025-03-10 07:17:05.261253] [STDOUT] stdout: Testing started
 [2025-03-10 07:17:05.261433] [STDOUT] stdout: Test suite 'RunnerTests' started on 'My Mac - plugintest_example (22673)'
 [2025-03-10 07:17:05.261484] [STDOUT] stdout: Test case 'RunnerTests.testGetPlatformVersion()' passed on 'My Mac - plugintest_example (22673)' (0.002 seconds)
 [2025-03-10 07:17:05.280800] [STDOUT] 

Failing examples:
https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20plugin_test_macos/26819/overview
https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20plugin_test_macos/26827/overview

Perhaps a dialog is being displayed on the mac and causing it to hang.

Activity

  1. added
    platform-macosBuilding on or for macOS specifically
    P2Important issues not at the top of the work list
    team-macosOwned by the macOS platform team
    triaged-macosTriaged by the macOS platform team
    on Mar 10, 2025
  2. vashworth commented on Mar 10, 2025

    @vashworth
    ContributorAuthor

    Looks like the app is hanging. It's not the entire computer, just the app. I was able to get a sample of the app, but I'm not sure what to look for.

    @cbracken Any ideas?

    Image

    sample of plugintest_example
    Analysis of sampling plugintest_example (pid 14401) every 1 millisecond
    Process:         plugintest_example [14401]
    Path:            /Users/USER/Library/Developer/Xcode/DerivedData/Runner-envruyuyobwlrchgqdszqujvopwk/Build/Products/Debug/plugintest_example.app/Contents/MacOS/plugintest_example
    Load Address:    0x10f1d4000
    Identifier:      io.flutter.devicelab.plugintestExample
    Version:         1.0.0 (1)
    Code Type:       X86-64
    Platform:        macOS
    Parent Process:  ??? [1]
    
    Date/Time:       2025-03-10 08:46:45.081 -0700
    Launch Time:     2025-03-10 08:41:27.850 -0700
    OS Version:      macOS 14.7 (23H124)
    Report Version:  7
    Analysis Tool:   /usr/bin/sample
    
    Physical footprint:         104.3M
    Physical footprint (peak):  104.5M
    Idle exit:                  untracked
    ----
    
    Call graph:
        7586 Thread_107613   DispatchQueue_1: com.apple.main-thread  (serial)
        + 7586 start  (in dyld) + 1909  [0x7ff8131ed345]
        +   7586 __debug_main_executable_dylib_entry_point  (in plugintest_example.debug.dylib) + 24  [0x10f619f48]  AppDelegate.swift:5
        +     7586 static AppDelegate.$main()  (in plugintest_example.debug.dylib) + 39  [0x10f619eb7]  /<compiler-generated>:0
        +       7586 static NSApplicationDelegate.main()  (in plugintest_example.debug.dylib) + 36  [0x10f619ee4]  /<compiler-generated>:0
        +         7586 NSApplicationMain  (in AppKit) + 816  [0x7ff816c894f3]
        +           7586 -[NSApplication run]  (in AppKit) + 603  [0x7ff816cb5585]
        +             7586 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]  (in AppKit) + 1273  [0x7ff8175d8af0]
        +               7586 _DPSNextEvent  (in AppKit) + 880  [0x7ff816cc4171]
        +                 7586 _BlockUntilNextEventMatchingListInModeWithFilter  (in HIToolbox) + 66  [0x7ff81e073561]
        +                   7586 ReceiveNextEventCommon  (in HIToolbox) + 665  [0x7ff81e073816]
        +                     7586 RunCurrentEventLoopInMode  (in HIToolbox) + 292  [0x7ff81e073a09]
        +                       7586 CFRunLoopRunSpecific  (in CoreFoundation) + 557  [0x7ff813654112]
        +                         7586 __CFRunLoopRun  (in CoreFoundation) + 2700  [0x7ff813655166]
        +                           7586 __CFRunLoopDoSource1  (in CoreFoundation) + 534  [0x7ff8136564ee]
        +                             7586 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__  (in CoreFoundation) + 41  [0x7ff8136565b7]
        +                               7586 __CFMachPortPerform  (in CoreFoundation) + 274  [0x7ff8136848c0]
        +                                 7586 RunTestsFromRunLoop  (in libXCTestBundleInject.dylib) + 119  [0x10f1e37ce]
        +                                   7586 _XCTestMain  (in XCTestCore) + 187  [0x10fdac62d]
        +                                     7586 -[XCTestDriver _runTests]  (in XCTestCore) + 1474  [0x10fdaa4e1]
        +                                       7586 -[XCTestObservationCenter _observeTestExecutionForTestBundle:inBlock:]  (in XCTestCore) + 189  [0x10fdc6171]
        +                                         7586 __25-[XCTestDriver _runTests]_block_invoke.360  (in XCTestCore) + 61  [0x10fdaac76]
        +                                           7586 -[XCTExecutionWorker runWithError:]  (in XCTestCore) + 51  [0x10fdacf5e]
        +                                             7586 -[XCTBlockingQueue dequeueObject]  (in XCTestCore) + 70  [0x10fd76b1d]
        +                                               7586 _dispatch_semaphore_wait_slow  (in libdispatch.dylib) + 98  [0x7ff8133d8781]
        +                                                 7586 _dispatch_sema4_wait  (in libdispatch.dylib) + 16  [0x7ff8133d828c]
        +                                                   7586 semaphore_wait_trap  (in libsystem_kernel.dylib) + 10  [0x7ff813538fea]
        7586 Thread_107619: io.flutter.ui
        + 7586 thread_start  (in libsystem_pthread.dylib) + 15  [0x7ff813574ae3]
        +   7586 _pthread_start  (in libsystem_pthread.dylib) + 99  [0x7ff81357918b]
        +     7586 fml::ThreadHandle::ThreadHandle(std::_fl::function<void ()>&&)::$_0::__invoke(void*)  (in FlutterMacOS) + 38  [0x112c21256]
        +       7586 std::_fl::__function::__func<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0, std::_fl::allocator<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>, void ()>::operator()()  (in FlutterMacOS) + 153  [0x112c21699]
        +         7586 fml::MessageLoopImpl::DoRun()  (in FlutterMacOS) + 37  [0x112c1a1e5]
        +           7586 fml::MessageLoopDarwin::Run()  (in FlutterMacOS) + 141  [0x112c2312d]
        +             7586 CFRunLoopRunSpecific  (in CoreFoundation) + 557  [0x7ff813654112]
        +               7586 __CFRunLoopRun  (in CoreFoundation) + 1371  [0x7ff813654c35]
        +                 7586 __CFRunLoopServiceMachPort  (in CoreFoundation) + 143  [0x7ff8136561c5]
        +                   7586 mach_msg  (in libsystem_kernel.dylib) + 19  [0x7ff81353935d]
        +                     7586 mach_msg_overwrite  (in libsystem_kernel.dylib) + 653  [0x7ff813540158]
        +                       7586 mach_msg2_internal  (in libsystem_kernel.dylib) + 84  [0x7ff813547858]
        +                         7586 mach_msg2_trap  (in libsystem_kernel.dylib) + 10  [0x7ff81353906e]
        7586 Thread_107620: io.flutter.raster
        + 7586 thread_start  (in libsystem_pthread.dylib) + 15  [0x7ff813574ae3]
        +   7586 _pthread_start  (in libsystem_pthread.dylib) + 99  [0x7ff81357918b]
        +     7586 fml::ThreadHandle::ThreadHandle(std::_fl::function<void ()>&&)::$_0::__invoke(void*)  (in FlutterMacOS) + 38  [0x112c21256]
        +       7586 std::_fl::__function::__func<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0, std::_fl::allocator<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>, void ()>::operator()()  (in FlutterMacOS) + 153  [0x112c21699]
        +         7586 fml::MessageLoopImpl::DoRun()  (in FlutterMacOS) + 37  [0x112c1a1e5]
        +           7586 fml::MessageLoopDarwin::Run()  (in FlutterMacOS) + 141  [0x112c2312d]
        +             7586 CFRunLoopRunSpecific  (in CoreFoundation) + 557  [0x7ff813654112]
        +               7586 __CFRunLoopRun  (in CoreFoundation) + 1371  [0x7ff813654c35]
        +                 7586 __CFRunLoopServiceMachPort  (in CoreFoundation) + 143  [0x7ff8136561c5]
        +                   7586 mach_msg  (in libsystem_kernel.dylib) + 19  [0x7ff81353935d]
        +                     7586 mach_msg_overwrite  (in libsystem_kernel.dylib) + 653  [0x7ff813540158]
        +                       7586 mach_msg2_internal  (in libsystem_kernel.dylib) + 84  [0x7ff813547858]
        +                         7586 mach_msg2_trap  (in libsystem_kernel.dylib) + 10  [0x7ff81353906e]
        7586 Thread_107621: io.flutter.io
        + 7586 thread_start  (in libsystem_pthread.dylib) + 15  [0x7ff813574ae3]
        +   7586 _pthread_start  (in libsystem_pthread.dylib) + 99  [0x7ff81357918b]
        +     7586 fml::ThreadHandle::ThreadHandle(std::_fl::function<void ()>&&)::$_0::__invoke(void*)  (in FlutterMacOS) + 38  [0x112c21256]
        +       7586 std::_fl::__function::__func<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0, std::_fl::allocator<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>, void ()>::operator()()  (in FlutterMacOS) + 153  [0x112c21699]
        +         7586 fml::MessageLoopImpl::DoRun()  (in FlutterMacOS) + 37  [0x112c1a1e5]
        +           7586 fml::MessageLoopDarwin::Run()  (in FlutterMacOS) + 141  [0x112c2312d]
        +             7586 CFRunLoopRunSpecific  (in CoreFoundation) + 557  [0x7ff813654112]
        +               7586 __CFRunLoopRun  (in CoreFoundation) + 1371  [0x7ff813654c35]
        +                 7586 __CFRunLoopServiceMachPort  (in CoreFoundation) + 143  [0x7ff8136561c5]
        +                   7586 mach_msg  (in libsystem_kernel.dylib) + 19  [0x7ff81353935d]
        +                     7586 mach_msg_overwrite  (in libsystem_kernel.dylib) + 653  [0x7ff813540158]
        +                       7586 mach_msg2_internal  (in libsystem_kernel.dylib) + 84  [0x7ff813547858]
        +                         7586 mach_msg2_trap  (in libsystem_kernel.dylib) + 10  [0x7ff81353906e]
        7586 Thread_107622: io.worker.1
        + 7586 thread_start  (in libsystem_pthread.dylib) + 15  [0x7ff813574ae3]
        +   7586 _pthread_start  (in libsystem_pthread.dylib) + 99  [0x7ff81357918b]
        +     7586 std::_fl::__thread_proxy[abi:v15000]<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*)  (in FlutterMacOS) + 188  [0x112c15eac]
        +       7586 fml::ConcurrentMessageLoop::WorkerMain()  (in FlutterMacOS) + 179  [0x112c151f3]
        +         7586 std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)  (in FlutterMacOS) + 36  [0x112be3144]
        +           7586 _pthread_cond_wait  (in libsystem_pthread.dylib) + 1211  [0x7ff8135796f3]
        +             7586 __psynch_cvwait  (in libsystem_kernel.dylib) + 10  [0x7ff81353bc1a]
        7586 Thread_107623: io.worker.2
        + 7586 thread_start  (in libsystem_pthread.dylib) + 15  [0x7ff813574ae3]
        +   7586 _pthread_start  (in libsystem_pthread.dylib) + 99  [0x7ff81357918b]
        +     7586 std::_fl::__thread_proxy[abi:v15000]<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*)  (in FlutterMacOS) + 188  [0x112c15eac]
        +       7586 fml::ConcurrentMessageLoop::WorkerMain()  (in FlutterMacOS) + 179  [0x112c151f3]
        +         7586 std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)  (in FlutterMacOS) + 36  [0x112be3144]
        +           7586 _pthread_cond_wait  (in libsystem_pthread.dylib) + 1211  [0x7ff8135796f3]
        +             7586 __psynch_cvwait  (in libsystem_kernel.dylib) + 10  [0x7ff81353bc1a]
        7586 Thread_107624: io.worker.3
        + 7586 thread_start  (in libsystem_pthread.dylib) + 15  [0x7ff813574ae3]
        +   7586 _pthread_start  (in libsystem_pthread.dylib) + 99  [0x7ff81357918b]
        +     7586 std::_fl::__thread_proxy[abi:v15000]<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*)  (in FlutterMacOS) + 188  [0x112c15eac]
        +       7586 fml::ConcurrentMessageLoop::WorkerMain()  (in FlutterMacOS) + 179  [0x112c151f3]
        +         7586 std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)  (in FlutterMacOS) + 36  [0x112be3144]
        +           7586 _pthread_cond_wait  (in libsystem_pthread.dylib) + 1211  [0x7ff8135796f3]
        +             7586 __psynch_cvwait  (in libsystem_kernel.dylib) + 10  [0x7ff81353bc1a]
        7586 Thread_107625: io.worker.4
        + 7586 thread_start  (in libsystem_pthread.dylib) + 15  [0x7ff813574ae3]
        +   7586 _pthread_start  (in libsystem_pthread.dylib) + 99  [0x7ff81357918b]
        +     7586 std::_fl::__thread_proxy[abi:v15000]<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*)  (in FlutterMacOS) + 188  [0x112c15eac]
        +       7586 fml::ConcurrentMessageLoop::WorkerMain()  (in FlutterMacOS) + 179  [0x112c151f3]
        +         7586 std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)  (in FlutterMacOS) + 36  [0x112be3144]
        +           7586 _pthread_cond_wait  (in libsystem_pthread.dylib) + 1211  [0x7ff8135796f3]
        +             7586 __psynch_cvwait  (in libsystem_kernel.dylib) + 10  [0x7ff81353bc1a]
        7586 Thread_107626: dart:io EventHandler
        + 7586 thread_start  (in libsystem_pthread.dylib) + 15  [0x7ff813574ae3]
        +   7586 _pthread_start  (in libsystem_pthread.dylib) + 99  [0x7ff81357918b]
        +     7586 dart::bin::ThreadStart(void*)  (in FlutterMacOS) + 83  [0x1134c37a3]
        +       7586 dart::bin::EventHandlerImplementation::EventHandlerEntry(unsigned long)  (in FlutterMacOS) + 312  [0x11349e288]
        +         7586 kevent  (in libsystem_kernel.dylib) + 10  [0x7ff81353dd4e]
        7586 Thread_107628: com.apple.NSEventThread
        + 7586 thread_start  (in libsystem_pthread.dylib) + 15  [0x7ff813574ae3]
        +   7586 _pthread_start  (in libsystem_pthread.dylib) + 99  [0x7ff81357918b]
        +     7586 _NSEventThread  (in AppKit) + 122  [0x7ff816e2229c]
        +       7586 CFRunLoopRunSpecific  (in CoreFoundation) + 557  [0x7ff813654112]
        +         7586 __CFRunLoopRun  (in CoreFoundation) + 1371  [0x7ff813654c35]
        +           7586 __CFRunLoopServiceMachPort  (in CoreFoundation) + 143  [0x7ff8136561c5]
        +             7586 mach_msg  (in libsystem_kernel.dylib) + 19  [0x7ff81353935d]
        +               7586 mach_msg_overwrite  (in libsystem_kernel.dylib) + 653  [0x7ff813540158]
        +                 7586 mach_msg2_internal  (in libsystem_kernel.dylib) + 84  [0x7ff813547858]
        +                   7586 mach_msg2_trap  (in libsystem_kernel.dylib) + 10  [0x7ff81353906e]
        7586 Thread_108598
          7586 start_wqthread  (in libsystem_pthread.dylib) + 15  [0x7ff813574acf]
            7586 _pthread_wqthread  (in libsystem_pthread.dylib) + 416  [0x7ff813575bdd]
              7586 __workq_kernreturn  (in libsystem_kernel.dylib) + 10  [0x7ff81353a796]
    
    Total number in stack (recursive counted multiple, when >=5):
            9       _pthread_start  (in libsystem_pthread.dylib) + 99  [0x7ff81357918b]
            9       thread_start  (in libsystem_pthread.dylib) + 15  [0x7ff813574ae3]
            5       CFRunLoopRunSpecific  (in CoreFoundation) + 557  [0x7ff813654112]
    
    Sort by top of stack, same collapsed (when >= 5):
            __psynch_cvwait  (in libsystem_kernel.dylib)        30344
            mach_msg2_trap  (in libsystem_kernel.dylib)        30344
            __workq_kernreturn  (in libsystem_kernel.dylib)        7586
            kevent  (in libsystem_kernel.dylib)        7586
            semaphore_wait_trap  (in libsystem_kernel.dylib)        7586
    
  3. vashworth commented on Mar 18, 2025

    @vashworth
    ContributorAuthor
  4. github-actions commented on Apr 1, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listplatform-macosBuilding on or for macOS specificallyteam-macosOwned by the macOS platform teamtriaged-macosTriaged by the macOS platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions