Closed innomatica closed 4 years ago
Hi, @innomatica, Are you able to run the original 'Bridge' demo successfully? Noticed you have made some modifications('position.target') in the demo, please make sure the segment fault was not there.
Hi hao-gao,
I was able to run the original Bridge demo without an issue. But when I turn the USE_HW_AUTH switch on, it too shows a bit strange behavior. It stuck at the point below and shows no response. So the HomeKit app shows warning of 'not responding'.
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:KeyValueStore] Storage configuration: keyValueStore = 4
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:AccessorySetup] Storage configuration: accessorySetup = 4
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] Storage configuration: tcpStreamManager = 72
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] Storage configuration: maxTCPStreams = 17
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] Storage configuration: tcpStreams = 408
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:ServiceDiscovery] Storage configuration: serviceDiscovery = 552
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] HAPPlatformMFiHWAuthCreate
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] Storage configuration: mfiHWAuth = 8
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:RunLoop] Storage configuration: runLoop = 320
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:RunLoop] Storage configuration: fileHandle = 28
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:RunLoop] Storage configuration: timer = 24
2020-03-20'T'21:58:04'Z' Default [com.apple.mfi.HomeKit.Core:AccessoryServer] Version information:
libhap: OpenWrt-mipsel-openwrt-1-musl
- Version: 4.0 (e9d7913) - compatibility version 8
- Extensions:
- Key Export
- HomeKit Data Stream (TCP)
Using platform: Linux
- Version: 4.14.81 (Mar 23 2020 17:28:27) - compatibility version 8
- Available features:
- Key-Value store
- Accessory setup manager
- TCP stream manager
- Service discovery
- Apple Authentication Coprocessor provider
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:AccessoryServer] Storage configuration: server = 2152
2020-03-20'T'21:58:04'Z' Info [com.apple.mfi.HomeKit.Core:MFiHWAuth] Turning on Apple Authentication Coprocessor.
2020-03-20'T'21:58:04'Z' Default [com.apple.mfi.HomeKit.Platform:Clock] Using 'clock_gettime' with 'CLOCK_MONOTONIC_RAW'.
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x00.
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x01.
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x02.
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x03.
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:04'Z' Default [com.apple.mfi.HomeKit.Core:MFiHWAuth] Apple Authentication Coprocessor information:
- Device Version: 3.0 (0x07)
- Authentication Revision: 1
- Authentication Protocol Version: 3.0
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x40.
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Storage configuration: ipAccessoryServerStorage = 32
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Storage configuration: numSessions = 17
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Storage configuration: sessions = 14688
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Storage configuration: sessions[0...16].inboundBuffer.numBytes = 32768
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Storage configuration: sessions[0...16].outboundBuffer.numBytes = 32768
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Storage configuration: sessions[0...16].numEventNotifications = 42
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Storage configuration: sessions[0...16].eventNotifications = 1008
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Storage configuration: numReadContexts = 42
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Storage configuration: readContexts = 2016
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Storage configuration: numWriteContexts = 42
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Storage configuration: writeContexts = 2688
2020-03-20'T'21:58:04'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Storage configuration: scratchBuffer.numBytes = 32768
2020-03-20'T'21:58:05'Z' Info AppCreate
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Core:AccessoryServer] Checking accessory definition. If this crashes, verify that accessory, service and characteristic lists are properly NULL-terminated.
2020-03-20'T'21:58:05'Z' Default [com.apple.mfi.HomeKit.Core:AccessoryValidation] [0000000000000001 AXIS Smart Bridge] An accessory should advertise one of its services as its primary service.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Core:AccessoryServer] Accessory definition ok.
2020-03-20'T'21:58:05'Z' Info [com.apple.mfi.HomeKit.Core:AccessoryServer] Accessory server starting.
2020-03-20'T'21:58:05'Z' Info [com.apple.mfi.HomeKit.Core:AccessoryServer] Firmware version: 1.0.0
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Core:AccessoryServer] Registering accessories.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Core:AccessoryServer] Loading accessory identity.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Core:AccessoryServer] Checking if admin pairing exists.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Core:AccessorySetupInfo] HAPAccessorySetupInfoHandleAccessoryServerStart
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Starting server engine.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] TCP stream listener interface index: 0
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] TCP stream listener port: 46773.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] listen(6, 64);
2020-03-20'T'21:58:05'Z' Info [com.apple.mfi.HomeKit.Core:IPServiceDiscovery] Not incrementing IP GSN because accessory server is not paired.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x00.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x01.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x02.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x03.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:05'Z' Default [com.apple.mfi.HomeKit.Core:MFiHWAuth] Apple Authentication Coprocessor information:
- Device Version: 3.0 (0x07)
- Authentication Revision: 1
- Authentication Protocol Version: 3.0
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x40.
2020-03-20'T'21:58:05'Z' Info [com.apple.mfi.HomeKit.Core:IPServiceDiscovery] Registering _hap._tcp service.
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:ServiceDiscovery] interfaceIndex: 0
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:ServiceDiscovery] name: "AXIS Smart Bridge"
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:ServiceDiscovery] protocol: "_hap._tcp"
2020-03-20'T'21:58:05'Z' Debug [com.apple.mfi.HomeKit.Platform:ServiceDiscovery] port: 46773
2020-03-20'T'21:58:05'Z' Info [com.apple.mfi.HomeKit.Platform:RunLoop] Entering run loop.
2020-03-20'T'21:58:05'Z' Info Accessory Server State did update: Running.
2020-03-20'T'21:58:07'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x02.
2020-03-20'T'21:58:07'Z' Info [com.apple.mfi.HomeKit.Core:MFiHWAuth] Turning off Apple Authentication Coprocessor.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] accept(6, NULL, NULL);
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Opening HAP session.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:Session] HAPSessionCreate
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Starting TCP progression timer.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:accepted
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:AccessorySetupInfo] Pairing attempt started.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] Pair Setup M1: SRP Start Request.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] Pair Setup M1: kTLVType_Method = 1.
2020-03-20'T'21:58:18'Z' Info [com.apple.mfi.HomeKit.Core:MFiHWAuth] Turning on Apple Authentication Coprocessor.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x00.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x01.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x02.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x03.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:18'Z' Default [com.apple.mfi.HomeKit.Core:MFiHWAuth] Apple Authentication Coprocessor information:
- Device Version: 3.0 (0x07)
- Authentication Revision: 1
- Authentication Protocol Version: 3.0
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x40.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] Pair Setup M2: SRP Start Response.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] Pair Setup M2: Processing using kPairingFlag_Transient = false / kPairingFlag_Split = false.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:AccessorySetupInfo] Loading static setup code.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M2: verifier.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M2: b.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] Pair Setup M3: SRP Verify Request.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] Pair Setup M4: SRP Verify Response.
2020-03-20'T'21:58:18'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M4: u.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M4: S.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M4: K.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M4: M1
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M4: SessionKey
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x00.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x01.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x02.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x03.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:19'Z' Default [com.apple.mfi.HomeKit.Core:MFiHWAuth] Apple Authentication Coprocessor information:
- Device Version: 3.0 (0x07)
- Authentication Revision: 1
- Authentication Protocol Version: 3.0
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x40.
2020-03-20'T'21:58:19'Z' Info [com.apple.mfi.HomeKit.Core:PairingPairSetup] Using Apple Authentication Coprocessor.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M4: MFiChallenge.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x02.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi write complete.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi write complete.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x10.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x11.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x12.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M4: kTLVType_Signature.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x02.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x30.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x31.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x32.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x33.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x34.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x35.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M4: kTLVType_Certificate.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M4: kTLVType_ProductData.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] Pair Setup M5: Exchange Request.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M5: kTLVType_EncryptedData (decrypted).
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M5: iOSDeviceInfo.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M5: kTLVType_Signature.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] Pair Setup M6: Exchange Response.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M6: ed_LTSK.
2020-03-20'T'21:58:19'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M6: ed_LTPK.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M6: AccessoryDeviceInfo.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairSetup] <private> Pair Setup M6: kTLVType_Signature.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:AccessorySetupInfo] Pairing attempt completed.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:AccessorySetupInfo] Invalidating setup code.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x00.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x01.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x02.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x03.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x05.
2020-03-20'T'21:58:20'Z' Default [com.apple.mfi.HomeKit.Core:MFiHWAuth] Apple Authentication Coprocessor information:
- Device Version: 3.0 (0x07)
- Authentication Revision: 1
- Authentication Protocol Version: 3.0
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x40.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:IPServiceDiscovery] Updating _hap._tcp service.
2020-03-20'T'21:58:20'Z' Info Accessory Server State did update: Running.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:input closed
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:closing
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:closing security context
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Closing HAP session.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:Session] HAPSessionRelease
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:Session] HAPSessionInvalidate
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:closing TCP stream
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] shutdown(8, SHUT_RDWR);
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] close(8);
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:closed
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:releasing session
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8: session released
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Attempting to send event notifications.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Stopping TCP progression timer.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] accept(6, NULL, NULL);
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Opening HAP session.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:Session] HAPSessionCreate
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Starting TCP progression timer.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:accepted
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] Pair Verify M1: Verify Start Request.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] Pair Verify M1: kTLVType_Method = 2.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] Pair Verify M2: Verify Start Response.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M2: cv_SK.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M2: cv_KEY.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M2: AccessoryInfo
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M2: kTLVType_Signature
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M2: SessionKey
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] Pair Verify M3: Verify Finish Request.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M3: iOSDeviceInfo.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M3: kTLVType_Signature.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] Pair Verify M4: Verify Finish Response.
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify Start Session: AccessoryToControllerKey
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify Start Session: ControllerToAccessoryKey
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:PairingPairVerify] Pair Verify procedure completed (pairing ID 0).
2020-03-20'T'21:58:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Established HAP security session.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000003 manufacturer] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000004 model] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000005 name] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000006 serial-number] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000007 firmware.revision] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000008 hardware.revision] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000009 adk-version] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [000000000000000A product-data] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000012 version] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000003 manufacturer] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000004 model] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000005 name] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000006 serial-number] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000007 firmware.revision] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000008 hardware.revision] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000009 adk-version] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [000000000000000A product-data] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000032 name] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000033 on] Calling read handler.
2020-03-20'T'21:58:20'Z' Info HandleLightBulbOnRead: [Light bulb 1] false
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000003 Acme Light Bulb] [0000000000000003 manufacturer] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000003 Acme Light Bulb] [0000000000000004 model] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000003 Acme Light Bulb] [0000000000000005 name] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000003 Acme Light Bulb] [0000000000000006 serial-number] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000003 Acme Light Bulb] [0000000000000007 firmware.revision] Calling read handler.
2020-03-20'T'21:58:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000003 Acme Light Bulb] [0000000000000008 hardware.revision] Calling read handler.
2020-03-20'T'21:58:21'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000003 Acme Light Bulb] [0000000000000009 adk-version] Calling read handler.
2020-03-20'T'21:58:21'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000003 Acme Light Bulb] [000000000000000A product-data] Calling read handler.
2020-03-20'T'21:58:21'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000003 Acme Light Bulb] [0000000000000032 name] Calling read handler.
2020-03-20'T'21:58:21'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000003 Acme Light Bulb] [0000000000000033 on] Calling read handler.
2020-03-20'T'21:58:21'Z' Info HandleLightBulbOnRead: [Light bulb 2] false
2020-03-20'T'21:58:21'Z' Debug [com.apple.mfi.HomeKit.Platform:MFiHWAuth] MFi read 0x02.
2020-03-20'T'21:58:21'Z' Info [com.apple.mfi.HomeKit.Core:MFiHWAuth] Turning off Apple Authentication Coprocessor.
2020-03-20'T'21:58:22'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000003 Acme Light Bulb] [0000000000000033 on] Calling read handler.
2020-03-20'T'21:58:22'Z' Info HandleLightBulbOnRead: [Light bulb 2] false
2020-03-20'T'21:58:22'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000033 on] Calling read handler.
2020-03-20'T'21:58:22'Z' Info HandleLightBulbOnRead: [Light bulb 1] false
2020-03-20'T'21:58:23'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000003 Acme Light Bulb] [0000000000000033 on] Calling read handler.
2020-03-20'T'21:58:23'Z' Info HandleLightBulbOnRead: [Light bulb 2] false
2020-03-20'T'21:58:23'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000033 on] Calling read handler.
2020-03-20'T'21:58:23'Z' Info HandleLightBulbOnRead: [Light bulb 1] false
2020-03-20'T'21:58:24'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000002 identify] Calling write handler.
2020-03-20'T'21:58:24'Z' Info IdentifyAccessory
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:input closed
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:closing
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:closing security context
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Closing HAP session.
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Core:Session] HAPSessionRelease
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Core:Session] HAPSessionInvalidate
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:closing TCP stream
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] shutdown(8, SHUT_RDWR);
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] close(8);
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:closed
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:releasing session
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8: session released
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Attempting to send event notifications.
2020-03-20'T'21:59:06'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Stopping TCP progression timer.
I have to correct my finding above. The demo app did not stuck permanently. It suddenly came back after 10 min. After that it works with USE_HW_AUTH=1 setting. Check the message below between T22:46:57 and T
22:56:20
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:input closed
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:closing
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:closing security context
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Closing HAP session.
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Core:Session] HAPSessionRelease
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Core:Session] HAPSessionInvalidate
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:closing TCP stream
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] shutdown(8, SHUT_RDWR);
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] close(8);
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:closed
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:releasing session
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8: session released
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Attempting to send event notifications.
2020-03-20'T'22:46:57'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Stopping TCP progression timer.
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Platform:TCPStreamManager] accept(6, NULL, NULL);
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Opening HAP session.
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:Session] HAPSessionCreate
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Starting TCP progression timer.
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] session:0x60d3e8:accepted
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] Pair Verify M1: Verify Start Request.
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] Pair Verify M1: kTLVType_Method = 2.
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] Pair Verify M2: Verify Start Response.
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M2: cv_SK.
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M2: cv_KEY.
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M2: AccessoryInfo
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M2: kTLVType_Signature
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M2: SessionKey
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] Pair Verify M3: Verify Finish Request.
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M3: iOSDeviceInfo.
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify M3: kTLVType_Signature.
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] Pair Verify M4: Verify Finish Response.
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify Start Session: AccessoryToControllerKey
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:PairingPairVerify] <private> Pair Verify Start Session: ControllerToAccessoryKey
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:PairingPairVerify] Pair Verify procedure completed (pairing ID 0).
2020-03-20'T'22:56:20'Z' Debug [com.apple.mfi.HomeKit.Core:IPAccessoryServer] Established HAP security session.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000003 manufacturer] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000004 model] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000005 name] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000006 serial-number] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000007 firmware.revision] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000008 hardware.revision] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000009 adk-version] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [000000000000000A product-data] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 AXIS Smart Bridge] [0000000000000012 version] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000003 manufacturer] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000004 model] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000005 name] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000006 serial-number] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000007 firmware.revision] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000008 hardware.revision] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000009 adk-version] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [000000000000000A product-data] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000032 name] Calling read handler.
2020-03-20'T'22:56:20'Z' Info [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000002 Acme Light Bulb] [0000000000000033 on] Calling read handler.
2020-03-20'T'22:56:20'Z' Info HandleLightBulbOnRead: [Light bulb 1] false
So the moment when my app crashes and the moment when the demo app stuck are not that distant.
Hi, @innomatica, you must have terminated the tcp session at T22:46:57, didn't you? And at T22:56:20, you started a new tcp session to the accessory. I can repro your log using HAT's 'Disconnect' and 'Discover' button. That's correct behavior.
Could you please paste your modifications here? 1. db structures for service that contains position.target and 2. the read callbacks
It turned out that those are two different types of incidence. Segment fault was caused by mistakes at my side during migration from the previous version of ADK. So I'd like to close this issue.
But the second issue of app not returning after the SIGTERM reception happens in both cases, in demo and in my app at the same spot. Since that is not directly related to the title of this issue, I may create another one.
I'm implementing a bridge and encounter with segmentation fault during adding it using HomeKit app:
It looks like HomeKit Core tries to access wrong memory address just before reading the characteristics of the bridge.
This is the debug message:
Any clue or suggestion would be appreciated.