Skip to content

[tests] CBCentralManagerTest failing on macOS #7108

@VincentDondain

Description

@VincentDondain

Somehow a CoreBluetooth test is failing like this:

18:32:34.5113490 ***** CBCentralManagerTest
18:32:34.5121340 ***** Constructors
18:32:34.5161670 ***** RetrievePeripherals
18:32:34.5185270 2019-09-24 18:32:34.518 xammac_tests[71702:138096085] 
18:32:34.5185730 Unhandled Exception:
18:32:34.5185900 ObjCRuntime.RuntimeException: Failed to marshal the Objective-C object 0x7ff62ff227f0 (type: MonoTouchFixtures_CoreBluetooth_CBCentralManagerTest_ManagerDelegate). Could not find an existing managed instance for this object, nor was it possible to create a new managed instance (because the type 'MonoTouchFixtures.CoreBluetooth.CBCentralManagerTest+ManagerDelegate' does not have a constructor that takes one IntPtr argument).
18:32:34.5186050 Additional information:
18:32:34.5186190 	Selector: centralManagerDidUpdateState:
18:32:34.5186330 	Method: MonoTouchFixtures.CoreBluetooth.CBCentralManagerTest/ManagerDelegate:UpdatedState (CoreBluetooth.CBCentralManager)
18:32:34.5186450 
18:32:34.5187120 [ERROR] FATAL UNHANDLED EXCEPTION: ObjCRuntime.RuntimeException: Failed to marshal the Objective-C object 0x7ff62ff227f0 (type: MonoTouchFixtures_CoreBluetooth_CBCentralManagerTest_ManagerDelegate). Could not find an existing managed instance for this object, nor was it possible to create a new managed instance (because the type 'MonoTouchFixtures.CoreBluetooth.CBCentralManagerTest+ManagerDelegate' does not have a constructor that takes one IntPtr argument).
18:32:34.5187310 Additional information:
18:32:34.5187450 	Selector: centralManagerDidUpdateState:
18:32:34.5187580 	Method: MonoTouchFixtures.CoreBluetooth.CBCentralManagerTest/ManagerDelegate:UpdatedState (CoreBluetooth.CBCentralManager)
18:32:34.5187710 
18:32:34.7760270 Test run failed.

Supposedly the TearDown happens because Asserts are raised and the CBCentralManager object is released too quickly.

However I couldn't not reproduce that locally (changing the values of various timeouts).

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci-failureThe issue only affects CImacOSIssues affecting macOS

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions