Skip to content

PlatformView XCTest is flaky #70843

@cyanglaz

Description

@cyanglaz

testSetFlutterViewControllerInTheMiddleOfTouchEventShouldStillAllowGesturesToBeHandled is flaky in recent several commits.

https://ci.chromium.org/p/flutter/builders/prod/Mac%20iOS%20Engine/7804

Test Case '-[FlutterPlatformViewsTest testSetFlutterViewControllerInTheMiddleOfTouchEventShouldStillAllowGesturesToBeHandled]' started.
2020-11-18 16:07:13.965107-0800 IosUnitTests[30256:197931] +[NSSet ocmock_replaced_setWithObjects:count:]: unrecognized selector sent to class 0x1049c5fb0
2020-11-18 16:07:13.973322-0800 IosUnitTests[30256:197931] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSSet ocmock_replaced_setWithObjects:count:]: unrecognized selector sent to class 0x1049c5fb0'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001046f9bde __exceptionPreprocess + 350
	1   libobjc.A.dylib                     0x0000000103b95b20 objc_exception_throw + 48
	2   CoreFoundation                      0x000000010471a604 +[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x00000001046fe7bc ___forwarding___ + 1436
	4   CoreFoundation                      0x00000001047006c8 _CF_forwarding_prep_0 + 120
	5   CoreFoundation                      0x000000010470095c __invoking___ + 140
	6   CoreFoundation                      0x00000001046fdd8f -[NSInvocation invoke] + 287
	7   CoreFoundation                      0x00000001046fe566 ___forwarding___ + 838
	8   CoreFoundation                      0x00000001047006c8 _CF_forwarding_prep_0 + 120
	9   CoreFoundation                      0x00000001047202f6 -[NSSet setByAddingObjectsFromSet:] + 710
	10  DTXConnectionServices               0x000000011f93d0c2 -[DTXProxyChannel _allowedClassesForReturnValues] + 109
	11  DTXConnectionServices               0x000000011f93d7ee __42-[DTXProxyChannel _sendInvocationMessage:]_block_invoke + 260
	12  DTXConnectionServices               0x000000011f94a8d2 __51-[DTXChannel _scheduleMessage:tracker:withHandler:]_block_invoke.617 + 159
	13  libdispatch.dylib                   0x0000000105522888 _dispatch_call_block_and_release + 12
	14  libdispatch.dylib                   0x00000001055237f9 _dispatch_client_callout + 8
	15  libdispatch.dylib                   0x0000000105529566 _dispatch_lane_serial_drain + 707
	16  libdispatch.dylib                   0x0000000105529f9c _dispatch_lane_invoke + 388
	17  libdispatch.dylib                   0x000000010553406c _dispatch_workloop_worker_thread + 626
	18  libsystem_pthread.dylib             0x00007fff5141fa3d _pthread_wqthread + 290
	19  libsystem_pthread.dylib             0x00007fff5141eb77 start_wqthread + 15
)

It looks like some issue with OCMock.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: flakeTests that sometimes, but not always, incorrectly passengineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions