Flake in Mac Host Engine tests

This issue has been tracked since 2023-03-17.

Flake in Mac Host Engine tests.

Failed run: https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20Host%20Engine/51369/overview

[ RUN      ] FlutterTextInputPluginTest.TestSetEditingStateWithTextEditingDelta
[       OK ] FlutterTextInputPluginTest.TestSetEditingStateWithTextEditingDelta (2 ms)
[ RUN      ] FlutterTextInputPluginTest.TestFirstRectForCharacterRangeWithEsotericAffineTransform
[ERROR:flutter/fml/backtrace.cc(108)] Caught signal SIGABRT during program execution.
Frame 0: 0x7ff807dae357 has_default_zone0
Frame 1: 0x7ff807dc2308 malloc_zone_error
Frame 2: 0x7ff807da10e8 nanov2_allocate_from_block
Frame 3: 0x7ff807da0677 nanov2_allocate
Frame 4: 0x7ff807da268f nanov2_calloc
Frame 5: 0x7ff807dbcb75 _malloc_zone_calloc
Frame 6: 0x7ff807e1c8c5 objc_initializeClassPair_internal()
Frame 7: 0x7ff807e20bce objc_allocateClassPair
Frame 8: 0x10d89f250 OCMCreateSubclass
Frame 9: 0x10d891aa0 -[OCClassMockObject prepareClassForClassMethodMocking]
Frame 10: 0x10d891685 -[OCClassMockObject initWithClass:]
Frame 11: 0x10d897c36 +[OCMockObject mockForClass:]
Frame 12: 0x10d897d4f +[OCMockObject niceMockForClass:]
Frame 13: 0x10cd4f863 -[FlutterInputPluginTestObjc testFirstRectForCharacterRangeWithEsotericAffineTransform]
Frame 14: 0x10cd5b208 flutter::testing::FlutterTextInputPluginTest_TestFirstRectForCharacterRangeWithEsotericAffineTransform_Test::TestBody()
Frame 15: 0x10d915c1c testing::Test::Run()
Frame 16: 0x10d9168d5 testing::TestInfo::Run()
Frame 17: 0x10d9175e5 testing::TestSuite::Run()
Frame 18: 0x10d92617d testing::internal::UnitTestImpl::RunAllTests()
Frame 19: 0x10d925be4 testing::UnitTest::Run()
Frame 20: 0x10cde9a3f main
Frame 21: 0x11e4ae52e start

From the same run in impeller_unittests:

[----------] 4 tests from Compute/ComputeTest
[ RUN      ] Compute/ComputeTest.CanCreateComputePass/Metal
[ERROR:flutter/fml/backtrace.cc(108)] Caught signal SIGSEGV during program execution.
Frame 0: 0x7ff8109db0fd __191-[MTLCompiler pipelineStateWithVariant:descriptor:options:computeProgram:kernelDriverCompileTimeData:serializedComputeDataDescriptor:compileTimeStatistics:reflection:error:completionHandler:]_block_invoke
Frame 1: 0x7ff807dcd0cc _dispatch_call_block_and_release
Frame 2: 0x7ff807dce317 _dispatch_client_callout
Frame 3: 0x7ff807dd4317 _dispatch_lane_serial_drain
Frame 4: 0x7ff807dd4dfd _dispatch_lane_invoke
Frame 5: 0x7ff807ddeeee _dispatch_workloop_worker_thread
Frame 6: 0x7ff807f81fd0 _pthread_wqthread
Frame 7: 0x7ff807f80f57 start_wqthread

and also:

[ RUN      ] Play/RuntimeStageTest.CanCreatePipelineFromRuntimeStage/Metal
[ERROR:flutter/fml/backtrace.cc(108)] Caught signal SIGSEGV during program execution.
Frame 0: 0x7ff81094b177 newRenderPipeline()
Frame 1: 0x7ff8109d7b7c __233-[MTLCompiler createVertexStageAndLinkPipelineWithFragment:fragmentVariant:vertexFunction:serializedVertexDescriptor:descriptor:destinationArchive:options:reflection:compileStatistics:fragmentCompileTimeData:error:completionHandler:]_block_invoke.1436
Frame 2: 0x7ff8109d6f3e -[MTLCompiler createVertexStageAndLinkPipelineWithFragment:fragmentVariant:vertexFunction:serializedVertexDescriptor:descriptor:destinationArchive:options:reflection:compileStatistics:fragmentCompileTimeData:error:completionHandler:]
Frame 3: 0x7ff8109d981c __128-[MTLCompiler newRenderPipelineStateWithDescriptorInternal:options:reflection:destinationBinaryArchive:error:completionHandler:]_block_invoke_3
Frame 4: 0x7ff8109d8a42 -[MTLCompiler newRenderPipelineStateWithDescriptorInternal:options:reflection:destinationBinaryArchive:error:completionHandler:]
Frame 5: 0x7ff810947c75 -[MTLCompiler newRenderPipelineStateWithDescriptor:options:reflection:error:completionHandler:]
Frame 6: 0x7ff81099dbe3 -[_MTLDevice newRenderPipelineStateWithDescriptor:options:reflection:error:]
Frame 7: 0x7ff808742a44 -[MTLGPUDebugDevice newRenderPipelineStateWithDescriptor:options:reflection:error:]
Frame 8: 0x10e703057 impeller::PipelineLibraryMTL::GetPipeline()
Frame 9: 0x10dd5dac5 impeller::testing::RuntimeStageTest_CanCreatePipelineFromRuntimeStage_Test::TestBody()
Frame 10: 0x10e8a929c testing::Test::Run()
Frame 11: 0x10e8aa255 testing::TestInfo::Run()
Frame 12: 0x10e8aaf65 testing::TestSuite::Run()
Frame 13: 0x10e8b9afd testing::internal::UnitTestImpl::RunAllTests()
Frame 14: 0x10e8b9564 testing::UnitTest::Run()
Frame 15: 0x10df5ee7f main
Frame 16: 0x1186ea52e start
More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2023-03-30
Star Count 151602
Watcher Count 3555
Fork Count 25000
Issue Count 11498

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date