Airplay error Unknown VADPortStatus: -16612 - ios

I've created two bonjour services: _airplay._tcp.local (port 7000) and _raop._tcp.local (port 41952). When I publish these services, they show up in the control center in iOS as expected. However, when I attempt to connect to them the airplay service fails with the following error:
Jan 11 10:02:18 Jakes-iPhone mediaserverd(CoreUtils)[27] <Notice>: 2017-01-11 10:02:18.217822 AM APTransportTrafficRegistrar: Deregister AirPlay traffic for AWDL at MAC 00:00:00:00:00:00 with target infra non critical PeerIndication=0 err=0
Jan 11 08:58:28 Jakes-iPhone mediaremoted[10160] <Notice>: AirPlay Error: Unknown VADPortStatus: -16612
Jan 11 08:58:28 Jakes-iPhone mediaremoted[10160] <Notice>: VAD port status changed to -16612 for route <private>
Jan 11 08:58:28 Jakes-iPhone mediaremoted[10160] <Notice>: MRMediaRemoteRouteStatus changed to 5 for route <private>
Jan 11 08:58:28 Jakes-iPhone mediaremoted[10160] <Notice>: AirPlay Error 5: <private>: <private>.
Everything in logs:
Jan 11 10:01:07 Jakes-iPhone kernel(Sandbox)[0] <Notice>: SandboxViolation: logd(47) deny(1) file-read-data /private/var/containers/Bundle/Application/B8F713B7-A311-4FAC-8BFD-990F26543808/ScreenShare.app/Frameworks/AMANetworking.framework/AMANetworking
Jan 11 10:01:07 Jakes-iPhone kernel(Sandbox)[0] <Notice>: SandboxViolation: logd(47) deny(1) file-read-data /private/var/containers/Bundle/Application/B8F713B7-A311-4FAC-8BFD-990F26543808/ScreenShare.app/Frameworks/AMAUtils.framework/AMAUtils
Jan 11 10:01:07 Jakes-iPhone kernel(Sandbox)[0] <Notice>: SandboxViolation: logd(47) deny(1) file-read-data /private/var/containers/Bundle/Application/B8F713B7-A311-4FAC-8BFD-990F26543808/ScreenShare.app/Frameworks/AMAScreenSharing.framework/AMAScreenSharing
Jan 11 10:01:08 Jakes-iPhone ScreenShare(CoreFoundation)[261] <Debug>: Language lookup at CFBundle 0x100d0e560 </var/containers/Bundle/Application/B8F713B7-A311-4FAC-8BFD-990F26543808/ScreenShare.app/Frameworks/AMAScreenSharing.framework> (not loaded)
Jan 11 10:01:08 Jakes-iPhone ScreenShare(CoreFoundation)[261] <Debug>: Resource lookup at CFBundle 0x100d0e560 </var/containers/Bundle/Application/B8F713B7-A311-4FAC-8BFD-990F26543808/ScreenShare.app/Frameworks/AMAScreenSharing.framework> (not loaded)
Result : file:///var/containers/Bundle/Application/B8F713B7-A311-4FAC-8BFD-990F26543808/ScreenShare.app/Frameworks/AMAScreenSharing.framework/Localizable.strings
Jan 11 10:01:08 Jakes-iPhone ScreenShare(CoreFoundation)[261] <Debug>: Resource lookup at CFBundle 0x100d0e560 </var/containers/Bundle/Application/B8F713B7-A311-4FAC-8BFD-990F26543808/ScreenShare.app/Frameworks/AMAScreenSharing.framework> (not loaded)
Jan 11 10:01:08 Jakes-iPhone ScreenShare(CoreFoundation)[261] <Debug>: Bundle: CFBundle 0x100d0e560 </var/containers/Bundle/Application/B8F713B7-A311-4FAC-8BFD-990F26543808/ScreenShare.app/Frameworks/AMAScreenSharing.framework> (not loaded), key: defaultServiceName, value: , table: Localizable, localizationName: (null), result: Share My Screen
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: 13: DNSServiceQueryRecord(100, 0, Share\134032My\134032Screen._airplay._tcp.local., TXT) START PID[261](ScreenShare)
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_StartQuery_internal: NumAllInterfaceRecords 0 NumAllInterfaceQuestions 2 Share\134032My\134032Screen._airplay._tcp.local. (TXT)
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: 16: DNSServiceRegister(0, 0, "Share My Screen", "_airplay._tcp", "local", "", 7000) START PID[261](ScreenShare)
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_Register_internal: Adding to active record list 26 Share\134032My\134032Screen._airplay._tcp.local. SRV 0 0 7000 Jakes-iPhone.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: IncrementAutoTargetServices: NumAllInterfaceRecords 1 NumAllInterfaceQuestions 2 26 Share\134032My\134032Screen._airplay._tcp.local. SRV 0 0 7000 Jakes-iPhone.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: IncrementAutoTargetServices: AutoTargetServices 1 Record 26 Share\134032My\134032Screen._airplay._tcp.local. SRV 0 0 7000 Jakes-iPhone.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_Register_internal: Adding to active record list 1 Share\134032My\134032Screen._airplay._tcp.local. TXT
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: IncrementAutoTargetServices: NumAllInterfaceRecords 28 NumAllInterfaceQuestions 2 1 Share\134032My\134032Screen._airplay._tcp.local. TXT
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_Register_internal: Adding to active record list 21 _services._dns-sd._udp.local. PTR _airplay._tcp.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: IncrementAutoTargetServices: NumAllInterfaceRecords 29 NumAllInterfaceQuestions 2 21 _services._dns-sd._udp.local. PTR _airplay._tcp.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_Register_internal: Adding to active record list 37 _airplay._tcp.local. PTR Share\134032My\134032Screen._airplay._tcp.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: IncrementAutoTargetServices: NumAllInterfaceRecords 30 NumAllInterfaceQuestions 2 37 _airplay._tcp.local. PTR Share\134032My\134032Screen._airplay._tcp.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: 16: DNSServiceRegister(Share\134032My\134032Screen._airplay._tcp.local., 7000) ADDED
Jan 11 10:01:09 Jakes-iPhone ScreenShare(libswiftFoundation.dylib)[261] <Notice>: AMA (INFO): Bonjour service "Share My Screen" will publish.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: 16: DNSServiceUpdateRecord(Share\134032My\134032Screen._airplay._tcp.local., TXT)
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: 17: DNSServiceQueryRecord(100, 0, C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local., TXT) START PID[261](ScreenShare)
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_StartQuery_internal: NumAllInterfaceRecords 30 NumAllInterfaceQuestions 3 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. (TXT)
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: 18: DNSServiceRegister(0, 0, "C922CD95-A752-480B-A663-8A97D967E15C#Share My Screen", "_raop._tcp", "local", "", 49152) START PID[261](ScreenShare)
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_Register_internal: Adding to active record list 26 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. SRV 0 0 49152 Jakes-iPhone.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: IncrementAutoTargetServices: NumAllInterfaceRecords 31 NumAllInterfaceQuestions 3 26 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. SRV 0 0 49152 Jakes-iPhone.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: IncrementAutoTargetServices: AutoTargetServices 2 Record 26 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. SRV 0 0 49152 Jakes-iPhone.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_Register_internal: Adding to active record list 1 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. TXT
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: IncrementAutoTargetServices: NumAllInterfaceRecords 32 NumAllInterfaceQuestions 3 1 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. TXT
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_Register_internal: Adding to active record list 18 _services._dns-sd._udp.local. PTR _raop._tcp.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: IncrementAutoTargetServices: NumAllInterfaceRecords 33 NumAllInterfaceQuestions 3 18 _services._dns-sd._udp.local. PTR _raop._tcp.local.
Jan 11 10:01:09 Jakes-iPhone ScreenShare(libswiftFoundation.dylib)[261] <Notice>: AMA (INFO): Bonjour service "C922CD95-A752-480B-A663-8A97D967E15C#Share My Screen" will publish.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_Register_internal: Adding to active record list 71 _raop._tcp.local. PTR C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: IncrementAutoTargetServices: NumAllInterfaceRecords 34 NumAllInterfaceQuestions 3 71 _raop._tcp.local. PTR C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: 18: DNSServiceRegister(C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local., 49152) ADDED
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: 18: DNSServiceUpdateRecord(C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local., TXT)
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: ServiceCallback: All records Registered for _airplay._tcp.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: 16: DNSServiceRegister(Share\134032My\134032Screen._airplay._tcp.local., 7000) REGISTERED
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: ServiceCallback: All records Registered for _raop._tcp.local.
Jan 11 10:01:09 Jakes-iPhone mDNSResponder[104] <Info>: 18: DNSServiceRegister(C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local., 49152) REGISTERED
Jan 11 10:01:09 Jakes-iPhone ScreenShare(libswiftFoundation.dylib)[261] <Notice>: AMA (INFO): Bonjour service "Share My Screen" published.
Jan 11 10:01:09 Jakes-iPhone ScreenShare(libswiftFoundation.dylib)[261] <Notice>: AMA (INFO): Bonjour service "C922CD95-A752-480B-A663-8A97D967E15C#Share My Screen" published.
Jan 11 10:01:10 Jakes-iPhone mDNSResponder[104] <Info>: 13: DNSServiceQueryRecord(Share\134032My\134032Screen._airplay._tcp.local., TXT) ADD 227 Share\134032My\134032Screen._airplay._tcp.local. TXT features=0x5A7FFFF7,0x1E\M-B\M-&srcvers=220.68\M-B\M-&vv=2\M-B\M-&deviceId=C922CD95-A752-480B-A663-8A97D967E15C\M-B\M-&model=AppleTV3,2\M-B\M-&pk=b51418f6854133f71572fe4202a93189981b209cc9ffb9b55f9076b16455d45d\M-B\M-&pi=df2d3315-f53f-44de-8acf-fd405e3ad6a6\M-B\M-&flags=0x44
Jan 11 10:01:10 Jakes-iPhone mDNSResponder[104] <Info>: 17: DNSServiceQueryRecord(C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local., TXT) ADD 177 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. TXT et=0,3,5\M-B\M-&am=AppleTV3,2\M-B\M-&ft=0x5A7FFFF7,0x1E\M-B\M-&sf=0x44\M-B\M-&vn=65537\M-B\M-&vs=220.68\M-B\M-&vv=2\M-B\M-&tp=UDP\M-B\M-&pk=b51418f6854133f71572fe4202a93189981b209cc9ffb9b55f9076b16455d45d\M-B\M-&md=0,1,2\M-B\M-&da=true\M-B\M-&cn=0,1,2,3
Jan 11 10:01:10 Jakes-iPhone ScreenShare(libswiftFoundation.dylib)[261] <Notice>: AMA (INFO): Bonjour service "Share My Screen" did update txt record: Optional(\^Xfeatures=0x5A7FFFF7,0x1E\^Nsrcvers=220.68\^Dvv=2-deviceId=C922CD95-A752-480B-A663-8A97D967E15C\^Pmodel=AppleTV3,2Cpk=b51418f6854133f71572fe4202a93189981b209cc9ffb9b55f9076b16455d45d'pi=df2d3315-f53f-44de-8acf-fd405e3ad6a6
Jan 11 10:01:10 Jakes-iPhone ScreenShare(libswiftFoundation.dylib)[261] <Notice>: AMA (INFO): Bonjour service "C922CD95-A752-480B-A663-8A97D967E15C#Share My Screen" did update txt record: Optional(et=0,3,5
am=AppleTV3,2\^Rft=0x5A7FFFF7,0x1Esf=0x44vn=65537 vs=220.68\^Dvv=2\^Ftp=UDPCpk=b51418f6854133f71572fe4202a93189981b209cc9ffb9b55f9076b16455d45dmd=0,1,2da=true
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: 20: DNSServiceBrowse(2004000, 0, "_raop._tcp.", "local.") START PID[27](mediaserverd)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_StartQuery_internal: NumAllInterfaceRecords 34 NumAllInterfaceQuestions 4 _raop._tcp.local. (PTR)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: 20: DNSServiceBrowse(_raop._tcp.local.) START PID[27](mediaserverd)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: 19: DNSServiceBrowse(2004000, 0, "_airplay._tcp.", "local.") START PID[27](mediaserverd)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_StartQuery_internal: NumAllInterfaceRecords 34 NumAllInterfaceQuestions 5 _airplay._tcp.local. (PTR)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: 19: DNSServiceBrowse(_airplay._tcp.local.) START PID[27](mediaserverd)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: 20: DNSServiceBrowse(_raop._tcp.local., PTR) RESULT Add 8: 71 _raop._tcp.local. PTR C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local.
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: 19: DNSServiceBrowse(_airplay._tcp.local., PTR) RESULT Add 8: 37 _airplay._tcp.local. PTR Share\134032My\134032Screen._airplay._tcp.local.
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: 20: DNSServiceQueryRecord(404000, 8, C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local., TXT) START PID[27](mediaserverd)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: InitCommonState: setting RequestUnicast = 2 for C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. (TXT)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_StartQuery_internal: NumAllInterfaceRecords 34 NumAllInterfaceQuestions 6 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. (TXT)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: 19: DNSServiceQueryRecord(404000, 8, Share\134032My\134032Screen._airplay._tcp.local., TXT) START PID[27](mediaserverd)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: InitCommonState: setting RequestUnicast = 2 for Share\134032My\134032Screen._airplay._tcp.local. (TXT)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_StartQuery_internal: NumAllInterfaceRecords 34 NumAllInterfaceQuestions 7 Share\134032My\134032Screen._airplay._tcp.local. (TXT)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: 20: DNSServiceQueryRecord(C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local., TXT) ADD 177 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. TXT et=0,3,5\M-B\M-&am=AppleTV3,2\M-B\M-&ft=0x5A7FFFF7,0x1E\M-B\M-&sf=0x44\M-B\M-&vn=65537\M-B\M-&vs=220.68\M-B\M-&vv=2\M-B\M-&tp=UDP\M-B\M-&pk=b51418f6854133f71572fe4202a93189981b209cc9ffb9b55f9076b16455d45d\M-B\M-&md=0,1,2\M-B\M-&da=true\M-B\M-&cn=0,1,2,3
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: 19: DNSServiceQueryRecord(Share\134032My\134032Screen._airplay._tcp.local., TXT) ADD 227 Share\134032My\134032Screen._airplay._tcp.local. TXT features=0x5A7FFFF7,0x1E\M-B\M-&srcvers=220.68\M-B\M-&vv=2\M-B\M-&deviceId=C922CD95-A752-480B-A663-8A97D967E15C\M-B\M-&model=AppleTV3,2\M-B\M-&pk=b51418f6854133f71572fe4202a93189981b209cc9ffb9b55f9076b16455d45d\M-B\M-&pi=df2d3315-f53f-44de-8acf-fd405e3ad6a6\M-B\M-&flags=0x44
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: 20: DNSServiceQueryRecord(C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local., TXT) STOP PID[27](mediaserverd)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_StopQuery_internal: NumAllInterfaceRecords 34 NumAllInterfaceQuestions 6 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. (TXT)
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: SendQueries: (PTR) _raop._tcp.local. reached threshold of 1 answers
Jan 11 10:01:15 Jakes-iPhone mDNSResponder[104] <Info>: SendQueries: (PTR) _airplay._tcp.local. reached threshold of 1 answers
Jan 11 10:01:16 Jakes-iPhone mDNSResponder[104] <Info>: 20: DNSServiceBrowse(104000, 0, "_raop._tcp.", "local.") START PID[27](mediaserverd)
Jan 11 10:01:16 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_StartQuery_internal: NumAllInterfaceRecords 34 NumAllInterfaceQuestions 7 _raop._tcp.local. (PTR)
Jan 11 10:01:16 Jakes-iPhone mDNSResponder[104] <Info>: 20: DNSServiceBrowse(_raop._tcp.local.) START PID[27](mediaserverd)
Jan 11 10:01:16 Jakes-iPhone mDNSResponder[104] <Info>: internal_start_browsing_for_service: Starting browse for: _raop._tcp.local. PTR
Jan 11 10:01:16 Jakes-iPhone mDNSResponder[104] <Info>: D2DBrowseListRetain: _raop._tcp.local. PTR refcount now 1
Jan 11 10:01:16 Jakes-iPhone mDNSResponder[104] <Info>: 19: DNSServiceBrowse(104000, 0, "_airplay._tcp.", "local.") START PID[27](mediaserverd)
Jan 11 10:01:16 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_StartQuery_internal: NumAllInterfaceRecords 34 NumAllInterfaceQuestions 8 _airplay._tcp.local. (PTR)
Jan 11 10:01:16 Jakes-iPhone mDNSResponder[104] <Info>: 19: DNSServiceBrowse(_airplay._tcp.local.) START PID[27](mediaserverd)
Jan 11 10:01:16 Jakes-iPhone mDNSResponder[104] <Info>: internal_start_browsing_for_service: Starting browse for: _airplay._tcp.local. PTR
Jan 11 10:01:16 Jakes-iPhone mDNSResponder[104] <Info>: D2DBrowseListRetain: _airplay._tcp.local. PTR refcount now 1
Jan 11 10:01:16 Jakes-iPhone mDNSResponder[104] <Info>: 20: DNSServiceBrowse(_raop._tcp.local., PTR) RESULT Add 8: 71 _raop._tcp.local. PTR C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local.
Jan 11 10:01:16 Jakes-iPhone mDNSResponder[104] <Info>: 19: DNSServiceBrowse(_airplay._tcp.local., PTR) RESULT Add 8: 37 _airplay._tcp.local. PTR Share\134032My\134032Screen._airplay._tcp.local.
Jan 11 10:01:17 Jakes-iPhone mDNSResponder[104] <Info>: 22: DNSServiceQueryRecord(400000, 8, C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local., SRV) START PID[27](mediaserverd)
Jan 11 10:01:17 Jakes-iPhone mDNSResponder[104] <Info>: InitCommonState: setting RequestUnicast = 2 for C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. (SRV)
Jan 11 10:01:17 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_StartQuery_internal: NumAllInterfaceRecords 38 NumAllInterfaceQuestions 9 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. (SRV)
Jan 11 10:01:17 Jakes-iPhone mDNSResponder[104] <Info>: 22: DNSServiceQueryRecord(C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local., SRV) ADD 26 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. SRV 0 0 49152 Jakes-iPhone.local.
Jan 11 10:01:17 Jakes-iPhone mediaserverd(CoreUtils)[27] <Notice>: 2017-01-11 10:01:17.707953 AM APTransportTrafficRegistrar: Register AirPlay traffic for AWDL at MAC 00:00:00:00:00:00 with target infra critical PeerIndication=2 err=0
Jan 11 10:01:17 Jakes-iPhone mDNSResponder[104] <Info>: 22: DNSServiceQueryRecord(C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local., SRV) STOP PID[27](mediaserverd)
Jan 11 10:01:17 Jakes-iPhone mDNSResponder[104] <Info>: mDNS_StopQuery_internal: NumAllInterfaceRecords 38 NumAllInterfaceQuestions 8 C922CD95-A752-480B-A663-8A97D967E15C#Share\134032My\134032Screen._raop._tcp.local. (SRV)
Jan 11 10:01:17 Jakes-iPhone ScreenShare(libswiftFoundation.dylib)[261] <Notice>: AMA (INFO): Bonjour service "C922CD95-A752-480B-A663-8A97D967E15C#Share My Screen" did accept connection
Jan 11 10:01:17 Jakes-iPhone ScreenShare(libswiftFoundation.dylib)[261] <Notice>: AMA (INFO): Bonjour service "C922CD95-A752-480B-A663-8A97D967E15C#Share My Screen" did accept connection
Jan 11 10:02:18 Jakes-iPhone mediaserverd(CoreUtils)[27] <Notice>: 2017-01-11 10:02:18.217822 AM APTransportTrafficRegistrar: Deregister AirPlay traffic for AWDL at MAC 00:00:00:00:00:00 with target infra non critical PeerIndication=0 err=0
Jan 11 10:02:18 Jakes-iPhone mediaremoted[33] <Notice>: AirPlay Error: Unknown VADPortStatus: -16612
Jan 11 10:02:18 Jakes-iPhone mediaremoted[33] <Notice>: AirPlay Error 5: <private>: <private>.
The raop service is able to connect and my app appears to be receiving a stream from iOS.
Here is the code that configures the services:
airplayService = NetService(domain: "local", type: "_airplay._tcp", name: serviceName, port: 7000)
airplayService?.delegate = self
airplayService?.startMonitoring()
airplayService?.publish(options: NetService.Options.listenForConnections)
airplayService?.setTXTRecord(NetService.data(fromTXTRecord: [
"model": "AppleTV3,2".data(using: .utf8)!,
"features": "0x5A7FFFF7,0x1E".data(using: .utf8)!,
"deviceId": "\(deviceId)".data(using: .utf8)!,
"flags": "0x44".data(using: .utf8)!,
"srcvers": "220.68".data(using: .utf8)!,
"vv": "2".data(using: .utf8)!,
"pk": "b51418f6854133f71572fe4202a93189981b209cc9ffb9b55f9076b16455d45d".data(using: .utf8)!,
"pi": "df2d3315-f53f-44de-8acf-fd405e3ad6a6".data(using: .utf8)!
]))
raopService = NetService(domain: "local", type: "_raop._tcp", name: "\(deviceId.replacingOccurrences(of: ":", with: ""))#\(serviceName)", port: 49152)
raopService?.delegate = self
raopService?.startMonitoring()
raopService?.publish(options: NetService.Options.listenForConnections)
raopService?.setTXTRecord(NetService.data(fromTXTRecord: [
"cn": "0,1,2,3".data(using: .utf8)!,
"et": "0,3,5".data(using: .utf8)!,
"tp": "UDP".data(using: .utf8)!,
"vn": "65537".data(using: .utf8)!,
"md": "0,1,2".data(using: .utf8)!,
"pk": "b51418f6854133f71572fe4202a93189981b209cc9ffb9b55f9076b16455d45d".data(using: .utf8)!,
"am": "AppleTV3,2".data(using: .utf8)!,
"vs": "220.68".data(using: .utf8)!,
"da": "true".data(using: .utf8)!,
"ft": "0x5A7FFFF7,0x1E".data(using: .utf8)!,
"sf": "0x44".data(using: .utf8)!,
"vv": "2".data(using: .utf8)!
]))
I can't find anything on this error. What does it mean? Is there something specific on my txt record that I need to change?

Related

App crash after taken 260 photos on iPad mini 2 or 560 photos on iPad air 2 - UIImagePickerController

After iOS 10 released, we are getting support emails from our users where the app crashes after the user takes certain number of photos.
We managed to replicated issue using the source code below, it looks like iOS 10 issue. (UIImagePickerController)
https://drive.google.com/open?id=0B3yGkt2WatFKd0p3bndEUkdBd00
on iPad Mini2 (iOS 10), it crashes around 267 photos taken.
on iPad Air2(iOS 10), it crashes around 560.
It should be able to take unlimited photos.
Anybody have any workaround to this apple/iOS10 issue or any pointer will be great help?
Thanks in advance.
#import "ViewController.h"
#interface ViewController () {
UIImagePickerController* vc;
UIButton *shutterButton;
int count;
}
#end
#implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)shutterButton_TouchUpInside:(UIButton*)button
{
[vc takePicture];
// [NSTimer scheduledTimerWithTimeInterval:.3 repeats:YES block:^(NSTimer * _Nonnull timer) {
// [vc takePicture];
///}];
}
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info {
NSLog(#"Took picture %d", count++);
NSString *string1 = [NSString stringWithFormat:#"Taken %d", count];
[shutterButton setTitle:string1 forState:UIControlStateNormal];
[vc takePicture];
[NSThread sleepForTimeInterval:1.0f];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)ButtonToPush:(id)sender {
UIButton *shutter = [[UIButton alloc] init];
shutterButton =shutter;
vc = [[UIImagePickerController alloc] init];
[[vc view] setUserInteractionEnabled:YES];
[vc setMediaTypes:#[#"public.image"]];
[vc setSourceType:UIImagePickerControllerSourceTypeCamera];
[vc setCameraDevice:UIImagePickerControllerCameraDeviceRear];
[vc setCameraCaptureMode:UIImagePickerControllerCameraCaptureModePhoto];
[vc setCameraFlashMode:UIImagePickerControllerCameraFlashModeOff];
[vc setAllowsEditing:NO];
[vc setShowsCameraControls:NO];
[shutter setFrame:CGRectMake(0, 0, 100, 100)];
[shutter setTitle:#"Take" forState:UIControlStateNormal];
[shutter addTarget:self action:#selector(shutterButton_TouchUpInside:) forControlEvents:UIControlEventTouchUpInside];
[vc setCameraOverlayView:shutter];
[vc setDelegate:self];
[self presentViewController:vc animated:YES completion:nil];
}
#end
Logs from iPad Air2|iOS 10.1
App crashed when it took around 560 photos.
Nov 1 13:33:51 HAIR2 CameraTest[855] <Notice>: Took picture 556
Nov 1 13:33:51 HAIR2 CameraTest(CameraUI)[855] <Notice>: capturePhotoWithSettings: <private>
Nov 1 13:33:51 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 622: -> Incoming Request : actionID 1108, inClientPID 855(CameraTest), inBehavior 0, customVibeDataProvided 0, loop 0, loopPeriod 0.000000, inFlags 0, inClientCompletionToken 558
Nov 1 13:33:51 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 263: mAudioToken /System/Library/Audio/UISounds/photoShutter.caf, mInUseCount 558
Nov 1 13:33:51 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 203: Data was marked NON-purgeable for actionID: 1108; this: 0x11d86db70
Nov 1 13:33:51 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:51 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:51 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMSystSounds- CMSession: Called for SSID 1108, returning flags 0
Nov 1 13:33:51 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 126: mSSID 1108, mShouldPlayAudio 0, mShouldVibe 0, mAudioVolume 0.322500, mVibeIntensity 1.000000, mNeedsFinishCall 0, mSynchronizedSystemSound 0, mInterruptCurrentSystemSounds 0
Nov 1 13:33:51 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 875: Both sound and vibe flags are false for actionID 1108
Nov 1 13:33:51 HAIR2 CameraTest(CameraUI)[855] <Notice>: Delaying application idle timer by 300.000000 seconds
Nov 1 13:33:51 HAIR2 CameraTest(CameraUI)[855] <Notice>: captureOutput:didFinishProcessingPhotoSurface: uniqueID=561, error=(null)
Nov 1 13:33:51 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x12003ee00] Created session
Nov 1 13:33:51 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x120866200] Releasing session
Nov 1 13:33:51 HAIR2 CameraTest[855] <Notice>: Took picture 557
Nov 1 13:33:51 HAIR2 CameraTest(CameraUI)[855] <Notice>: capturePhotoWithSettings: <private>
Nov 1 13:33:51 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 622: -> Incoming Request : actionID 1108, inClientPID 855(CameraTest), inBehavior 0, customVibeDataProvided 0, loop 0, loopPeriod 0.000000, inFlags 0, inClientCompletionToken 559
Nov 1 13:33:51 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 263: mAudioToken /System/Library/Audio/UISounds/photoShutter.caf, mInUseCount 559
Nov 1 13:33:51 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 203: Data was marked NON-purgeable for actionID: 1108; this: 0x11d86db70
Nov 1 13:33:51 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:51 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:51 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMSystSounds- CMSession: Called for SSID 1108, returning flags 0
Nov 1 13:33:51 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 126: mSSID 1108, mShouldPlayAudio 0, mShouldVibe 0, mAudioVolume 0.322500, mVibeIntensity 1.000000, mNeedsFinishCall 0, mSynchronizedSystemSound 0, mInterruptCurrentSystemSounds 0
Nov 1 13:33:51 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 875: Both sound and vibe flags are false for actionID 1108
Nov 1 13:33:52 HAIR2 CameraTest(CameraUI)[855] <Notice>: Delaying application idle timer by 300.000000 seconds
Nov 1 13:33:52 HAIR2 mediaserverd(VoiceTrigger)[361] <Info>: ::: heartbeat: 4731904 score: -10.930287
Nov 1 13:33:52 HAIR2 CameraTest(CameraUI)[855] <Notice>: captureOutput:didFinishProcessingPhotoSurface: uniqueID=562, error=(null)
Nov 1 13:33:52 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x120866200] Created session
Nov 1 13:33:52 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x12003ee00] Releasing session
Nov 1 13:33:52 HAIR2 CameraTest[855] <Notice>: Took picture 558
Nov 1 13:33:52 HAIR2 CameraTest(CameraUI)[855] <Notice>: capturePhotoWithSettings: <private>
Nov 1 13:33:52 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 622: -> Incoming Request : actionID 1108, inClientPID 855(CameraTest), inBehavior 0, customVibeDataProvided 0, loop 0, loopPeriod 0.000000, inFlags 0, inClientCompletionToken 560
Nov 1 13:33:52 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 263: mAudioToken /System/Library/Audio/UISounds/photoShutter.caf, mInUseCount 560
Nov 1 13:33:52 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 203: Data was marked NON-purgeable for actionID: 1108; this: 0x11d86db70
Nov 1 13:33:52 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:52 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:52 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMSystSounds- CMSession: Called for SSID 1108, returning flags 0
Nov 1 13:33:52 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 126: mSSID 1108, mShouldPlayAudio 0, mShouldVibe 0, mAudioVolume 0.322500, mVibeIntensity 1.000000, mNeedsFinishCall 0, mSynchronizedSystemSound 0, mInterruptCurrentSystemSounds 0
Nov 1 13:33:52 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 875: Both sound and vibe flags are false for actionID 1108
Nov 1 13:33:52 HAIR2 CameraTest(CameraUI)[855] <Notice>: Delaying application idle timer by 300.000000 seconds
Nov 1 13:33:52 HAIR2 CameraTest(CameraUI)[855] <Notice>: captureOutput:didFinishProcessingPhotoSurface: uniqueID=563, error=(null)
Nov 1 13:33:52 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x12003ee00] Created session
Nov 1 13:33:52 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x120866200] Releasing session
Nov 1 13:33:52 HAIR2 CameraTest[855] <Notice>: Took picture 559
Nov 1 13:33:52 HAIR2 CameraTest(CameraUI)[855] <Notice>: capturePhotoWithSettings: <private>
Nov 1 13:33:52 HAIR2 identityservicesd[373] <Notice>: localObjectDiedNotification: <private>
Nov 1 13:33:52 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 622: -> Incoming Request : actionID 1108, inClientPID 855(CameraTest), inBehavior 0, customVibeDataProvided 0, loop 0, loopPeriod 0.000000, inFlags 0, inClientCompletionToken 561
Nov 1 13:33:52 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 263: mAudioToken /System/Library/Audio/UISounds/photoShutter.caf, mInUseCount 561
Nov 1 13:33:52 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 203: Data was marked NON-purgeable for actionID: 1108; this: 0x11d86db70
Nov 1 13:33:52 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:52 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:52 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMSystSounds- CMSession: Called for SSID 1108, returning flags 0
Nov 1 13:33:52 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 126: mSSID 1108, mShouldPlayAudio 0, mShouldVibe 0, mAudioVolume 0.322500, mVibeIntensity 1.000000, mNeedsFinishCall 0, mSynchronizedSystemSound 0, mInterruptCurrentSystemSounds 0
Nov 1 13:33:52 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 875: Both sound and vibe flags are false for actionID 1108
Nov 1 13:33:52 HAIR2 identityservicesd[373] <Notice>: Removing listener ID: <private>
Nov 1 13:33:52 HAIR2 identityservicesd[373] <Notice>: Cleaning up session(s) for client ID: <private> because it died
Nov 1 13:33:52 HAIR2 UserEventAgent(MemoryMonitor)[22] <Notice>: jetsam: kernel termination snapshot being created
Nov 1 13:33:52 HAIR2 apsd(PersistentConnection)[368] <Notice>: 2016-11-01 13:33:52 +1100 apsd[368]: peer(830) received XPC_ERROR_CONNECTION_INVALID
Nov 1 13:33:52 HAIR2 ReportCrash[902] <Notice>: Launched ReportCrash to service - <private>
Nov 1 13:33:52 HAIR2 ReportCrash(CrashReporterSupport)[902] <Info>: scanned 28 logs with 1 types and 3 unknowns (sentinel is <private>)
Nov 1 13:33:52 HAIR2 ReportCrash(CrashReporterSupport)[902] <Notice>: Report of type '298(298)' not saved because the limit of 25 logs has been reached
Nov 1 13:33:53 HAIR2 CameraTest(CameraUI)[855] <Notice>: Delaying application idle timer by 300.000000 seconds
Nov 1 13:33:53 HAIR2 apsd(Security)[368] <Notice>: got event: Connection interrupted
Nov 1 13:33:53 HAIR2 locationd[372] <Notice>: Client /System/Library/PrivateFrameworks/WirelessDiagnostics.framework disconnected
Nov 1 13:33:53 HAIR2 locationd[372] <Info>: CLGyroBiasEstimator unknown client instance <private>
Nov 1 13:33:53 HAIR2 locationd[372] <Info>: CLGyroBiasEstimator,SPUEnabled,<private>,BuildingGYTT,<private>,NumClients,<private>
Nov 1 13:33:53 HAIR2 UserEventAgent(MemoryMonitor)[22] <Notice>: jetsam: kernel termination snapshot being created
Nov 1 13:33:53 HAIR2 CameraTest(CameraUI)[855] <Notice>: captureOutput:didFinishProcessingPhotoSurface: uniqueID=564, error=(null)
Nov 1 13:33:53 HAIR2 ReportCrash(CrashReporterSupport)[902] <Notice>: Report of type '298(298)' not saved because the limit of 25 logs has been reached
Nov 1 13:33:53 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x121087200] Created session
Nov 1 13:33:53 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x12003ee00] Releasing session
Nov 1 13:33:53 HAIR2 CameraTest[855] <Notice>: Took picture 560
Nov 1 13:33:53 HAIR2 CameraTest(CameraUI)[855] <Notice>: capturePhotoWithSettings: <private>
Nov 1 13:33:53 HAIR2 callservicesd(PlugInKit)[895] <Error>: Communications error: <OS_xpc_error: <error: 0x1a5193af0> { count = 1, transaction: 0, voucher = 0x0, contents =
"XPCErrorDescription" => <string: 0x1a5193df0> { length = 22, contents = "Connection interrupted" }
}>
Nov 1 13:33:53 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 622: -> Incoming Request : actionID 1108, inClientPID 855(CameraTest), inBehavior 0, customVibeDataProvided 0, loop 0, loopPeriod 0.000000, inFlags 0, inClientCompletionToken 562
Nov 1 13:33:53 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 263: mAudioToken /System/Library/Audio/UISounds/photoShutter.caf, mInUseCount 562
Nov 1 13:33:53 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 203: Data was marked NON-purgeable for actionID: 1108; this: 0x11d86db70
Nov 1 13:33:53 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:53 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:53 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMSystSounds- CMSession: Called for SSID 1108, returning flags 0
Nov 1 13:33:53 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 126: mSSID 1108, mShouldPlayAudio 0, mShouldVibe 0, mAudioVolume 0.322500, mVibeIntensity 1.000000, mNeedsFinishCall 0, mSynchronizedSystemSound 0, mInterruptCurrentSystemSounds 0
Nov 1 13:33:53 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 875: Both sound and vibe flags are false for actionID 1108
Nov 1 13:33:53 HAIR2 CameraTest(CameraUI)[855] <Notice>: Delaying application idle timer by 300.000000 seconds
Nov 1 13:33:53 HAIR2 CameraTest(CameraUI)[855] <Notice>: captureOutput:didFinishProcessingPhotoSurface: uniqueID=565, error=(null)
Nov 1 13:33:53 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x120866200] Created session
Nov 1 13:33:53 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x121087200] Releasing session
Nov 1 13:33:53 HAIR2 CameraTest[855] <Notice>: Took picture 561
Nov 1 13:33:53 HAIR2 CameraTest(CameraUI)[855] <Notice>: capturePhotoWithSettings: <private>
Nov 1 13:33:53 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 622: -> Incoming Request : actionID 1108, inClientPID 855(CameraTest), inBehavior 0, customVibeDataProvided 0, loop 0, loopPeriod 0.000000, inFlags 0, inClientCompletionToken 563
Nov 1 13:33:53 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 263: mAudioToken /System/Library/Audio/UISounds/photoShutter.caf, mInUseCount 563
Nov 1 13:33:53 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 203: Data was marked NON-purgeable for actionID: 1108; this: 0x11d86db70
Nov 1 13:33:53 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:53 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:53 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMSystSounds- CMSession: Called for SSID 1108, returning flags 0
Nov 1 13:33:53 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 126: mSSID 1108, mShouldPlayAudio 0, mShouldVibe 0, mAudioVolume 0.322500, mVibeIntensity 1.000000, mNeedsFinishCall 0, mSynchronizedSystemSound 0, mInterruptCurrentSystemSounds 0
Nov 1 13:33:53 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 875: Both sound and vibe flags are false for actionID 1108
Nov 1 13:33:53 HAIR2 mediaserverd(VoiceTrigger)[361] <Info>: ::: heartbeat: 4762624 score: -10.930287
Nov 1 13:33:54 HAIR2 CameraTest(CameraUI)[855] <Notice>: Delaying application idle timer by 300.000000 seconds
Nov 1 13:33:54 HAIR2 CameraTest(CameraUI)[855] <Notice>: captureOutput:didFinishProcessingPhotoSurface: uniqueID=566, error=(null)
Nov 1 13:33:54 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x12108bc00] Created session
Nov 1 13:33:54 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x120866200] Releasing session
Nov 1 13:33:54 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMSessionMgr- CMSession: 'AVSC FigPlayer - 894' mediaremoted(pid = 894) requesting to set the discovery mode to DiscoveryMode_None
Nov 1 13:33:54 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMRoutingMgr- CMSession: Session requesting to set the discovery mode to DiscoveryMode_None
Nov 1 13:33:54 HAIR2 CameraTest[855] <Notice>: Took picture 562
Nov 1 13:33:54 HAIR2 CameraTest(CameraUI)[855] <Notice>: capturePhotoWithSettings: <private>
Nov 1 13:33:54 HAIR2 UserEventAgent(MemoryMonitor)[22] <Notice>: jetsam: kernel termination snapshot being created
Nov 1 13:33:54 HAIR2 SpringBoard(MediaRemote)[54] <Notice>: MediaRemote server disconnected.
Nov 1 13:33:54 HAIR2 SpringBoard(MediaRemote)[54] <Notice>: Service client's connection was interrupted. Reregistering custom origins with the media remote service.
Nov 1 13:33:54 HAIR2 ReportCrash(CrashReporterSupport)[902] <Notice>: Report of type '298(298)' not saved because the limit of 25 logs has been reached
Nov 1 13:33:54 HAIR2 coreduetd(MediaRemote)[901] <Notice>: MediaRemote server disconnected.
Nov 1 13:33:54 HAIR2 coreduetd(MediaRemote)[901] <Notice>: Service client's connection was interrupted. Reregistering custom origins with the media remote service.
Nov 1 13:33:54 HAIR2 callservicesd(CallKit)[895] <Notice>: Connection invalidated for call controller host connection: <private>
Nov 1 13:33:54 HAIR2 callservicesd(CallKit)[895] <Notice>: Connection invalidated for call controller host connection: <private>
Nov 1 13:33:54 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 622: -> Incoming Request : actionID 1108, inClientPID 855(CameraTest), inBehavior 0, customVibeDataProvided 0, loop 0, loopPeriod 0.000000, inFlags 0, inClientCompletionToken 564
Nov 1 13:33:54 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 263: mAudioToken /System/Library/Audio/UISounds/photoShutter.caf, mInUseCount 564
Nov 1 13:33:54 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 203: Data was marked NON-purgeable for actionID: 1108; this: 0x11d86db70
Nov 1 13:33:54 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:54 HAIR2 mediaserverd(VirtualAudio)[361] <Info>: 228: Client request to get virtual format ([ 32/48000/2; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ]) on virtual audio stream 113.
Nov 1 13:33:54 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMSystSounds- CMSession: Called for SSID 1108, returning flags 0
Nov 1 13:33:54 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 126: mSSID 1108, mShouldPlayAudio 0, mShouldVibe 0, mAudioVolume 0.322500, mVibeIntensity 1.000000, mNeedsFinishCall 0, mSynchronizedSystemSound 0, mInterruptCurrentSystemSounds 0
Nov 1 13:33:54 HAIR2 mediaserverd(AudioToolbox)[361] <Info>: 875: Both sound and vibe flags are false for actionID 1108
Nov 1 13:33:54 HAIR2 CameraTest(CameraUI)[855] <Notice>: Delaying application idle timer by 300.000000 seconds
Nov 1 13:33:54 HAIR2 CameraTest(CameraUI)[855] <Notice>: captureOutput:didFinishProcessingPhotoSurface: uniqueID=567, error=(null)
Nov 1 13:33:54 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x12003ee00] Created session
Nov 1 13:33:54 HAIR2 CameraTest(AppleJPEG)[855] <Notice>: [0x12108bc00] Releasing session
Nov 1 13:33:54 HAIR2 CameraTest[855] <Notice>: Took picture 563
Nov 1 13:33:54 HAIR2 CameraTest(CameraUI)[855] <Notice>: capturePhotoWithSettings: <private>
Nov 1 13:33:54 HAIR2 mediaserverd(AudioToolbox)[361] <Notice>: 94: sid:0x169056, coreduetd(901), 'prim'
Nov 1 13:33:54 HAIR2 BTServer[360] <Notice>: Sending 'session detached' event for session "com.apple.coreduetd-901-7299"
Nov 1 13:33:54 HAIR2 CommCenter[76] <Notice>: #I CTServerConnection from pid 901 has closed (conn=0x101377fc0)
Nov 1 13:33:54 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMSessionMgr- CMSession: 'AVSC FigPlayer - 901' coreduetd(pid = 901) requesting to set the discovery mode to DiscoveryMode_None
Nov 1 13:33:54 HAIR2 locationd[372] <Notice>: Client /System/Library/LocationBundles/TimeZone.bundle disconnected
Nov 1 13:33:54 HAIR2 UserEventAgent(MemoryMonitor)[22] <Notice>: jetsam: kernel termination snapshot being created
Nov 1 13:33:54 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMRoutingMgr- CMSession: Session requesting to set the discovery mode to DiscoveryMode_None
Nov 1 13:33:54 HAIR2 locationd[372] <Info>: CLGyroBiasEstimator unknown client instance <private>
Nov 1 13:33:54 HAIR2 identityservicesd[373] <Notice>: localObjectDiedNotification: <private>
Nov 1 13:33:54 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMSessionMgr- CMSession: 'sid:0x169056, coreduetd(901), 'prim'' coreduetd(pid = 901) requesting to set the discovery mode to DiscoveryMode_None
Nov 1 13:33:54 HAIR2 locationd[372] <Info>: CLGyroBiasEstimator,SPUEnabled,<private>,BuildingGYTT,<private>,NumClients,<private>
Nov 1 13:33:54 HAIR2 identityservicesd[373] <Notice>: Removing listener ID: com.apple.coreduetd
Nov 1 13:33:54 HAIR2 mediaserverd(CoreMedia)[361] <Notice>: -CMRoutingMgr- CMSession: Session requesting to set the discovery mode to DiscoveryMode_None
Nov 1 13:33:54 HAIR2 identityservicesd[373] <Notice>: Cleaning up session(s) for client ID: com.apple.coreduetd because it died
Nov 1 13:33:54 HAIR2 ReportCrash(CrashReporterSupport)[902] <Notice>: Report of type '298(298)' not saved because the limit of 25 logs has been reached
Nov 1 13:33:54 HAIR2 callservicesd(CallKit)[895] <Notice>: Connection invalidated for call controller host connection: <private>
Nov 1 13:33:54 HAIR2 SpringBoard(BatteryCenter)[54] <Notice>: Power sources changed
Nov 1 13:33:54 HAIR2 SpringBoard(BatteryCenter)[54] <Notice>: Query power sources
Nov 1 13:33:54 HAIR2 symptomsd(SymptomEvaluator)[374] <Notice>: 0x13ff095d0 for pid: 901, client event: 0
Nov 1 13:33:54 HAIR2 SpringBoard(BatteryCenter)[54] <Notice>: Got a list of 1 sources
Nov 1 13:33:54 HAIR2 SpringBoard(BatteryCenter)[54] <Notice>: Found 1 power sources

HDMI out of streaming Fairplay Encrypted HLS stream via AVPlayer works iOS 8 but frozen picture on iOS7

I would like to know if there anything to fix this problem we have with HDMI out on iOS 7.1 only:
We have a Video on Demand app that we want people to be able to use with Airplay or HDMI via the Lightning HDMI cable. We support both iOS 7.1 and iOS 8.x. We have enabled allowsExternalPlayback on our AVPlayer.
We use Fairplay Encrypted HLS streams for our videos and these work fine on playback on the device (iOS 7 & 8), Airplay via the Apple TV (iOS 7 & 8) and HDMI out on iOS 8. However on iOS 7 devices when you plug in the Lightning-HDMI cable into the device whilst the video is playing on the device and TV, the TV just shows a single frame of the video and is paused (AVPlayer rate:0). The same happens when you plug it in before you play the video when you start the video on the device.
Unfortunately you can't run the xCode debugger as you need the usb cable plugged into the device. The device logs are not very helpful.
Oct 24 13:14:46 iapd[177] <Warning>: {MediaLibrary} Database validation succeeded
Oct 24 13:14:47 iapd[177] <Warning>: /SourceCache/iapd/iapd-1386.10.43/iapd/EAManager.mm:-[EAManager _takeClientAssertionsForAccessoryConnection]-1607 client (null)
Oct 24 13:14:47 iapd[177] <Warning>: AccessoryInfo = {
Oct 24 13:14:47 iapd[177] <Warning>: IAPAppAccessoryNameKey = Apple Digital AV Adapter;
Oct 24 13:14:47 iapd[177] <Warning>: IAPAppAccessoryManufacturerKey = Apple;
Oct 24 13:14:47 iapd[177] <Warning>: IAPAppAccessoryModelNumberKey = A1438;
Oct 24 13:14:47 iapd[177] <Warning>: IAPAppAccessoryFirmwareRevisionKey = 7.1.0 (11D7155);
Oct 24 13:14:47 iapd[177] <Warning>: IAPAppAccessoryHardwareRevisionKey = 1.0.0;
Oct 24 13:14:47 iapd[177] <Warning>: } // End AccessoryInfo
Oct 24 13:14:47 mediaserverd[29] <Notice>: [13:14:47.083] <<< neroendpoint >>> nmanager_discoveryHandler: mediaserverd detected a Nero USB device
Oct 24 13:14:47 mediaserverd[29] <Notice>: 2014-10-24 01:14:47.083479 PM [AirPlay] Inhibit AirPlay Screen: yes
Oct 24 13:14:47 backboardd[31] <Notice>: IOMFB setting virtual mode: 0 0
Oct 24 13:14:47 backboardd[31] <Notice>: IOMFB setting virtual mode: 0 0
Oct 24 13:14:47 backboardd[31] <Warning>: CoreAnimation: updates deferred for too long
Oct 24 13:14:47 kernel[0] <Debug>: VXE380: openGated (0xffffff809072ca00 current 0xffffff8000900000 ID 1 dev f6 (force f0)) cl registered = 1 (clock 0 H5speed 0 H5f 65535)
Oct 24 13:14:47 iapd[177] <Warning>: ERROR - /SourceCache/iapd/iapd-1386.10.43/iapd/IAPPortManager.mm:__accessoryPortManagerInterest - 69 no transport found for portNumber 1
Oct 24 13:14:47 mediaserverd[29] <Notice>: [13:14:47.527] <<<< FigVirtualDisplaySinkOctavia >>>> octaviaSink_PushFrame: mediaserverd started mirroring to Nero
Oct 24 13:14:47 kernel[0] <Debug>: virtual void AppleMobileADBE0::mieEnable(bool, bool), Pixel-Backlight Modulator: 0
Oct 24 13:14:47 kernel[0] <Debug>: void DPBDriver::bypass(), DPB Bypassed
Oct 24 13:14:47 kernel[0] <Debug>: VXE380: STOP sent 2 enc 2 dropped 0 I 1 P 1 P->I 0 B 0 re-encI 0 re-encP 0 should-be-dropped 0 HSH5 0 (stats 2 0 0 0 0 0 0 0)
Oct 24 13:14:47 kernel[0] <Debug>: VXE380: closeGated (0xffffff809072ca00) cl left: 0
Oct 24 13:14:47 kernel[0] <Debug>: VXE380: openGated (0xffffff809072ca00 current 0xffffff80008db000 ID 2 dev f6 (force f0)) cl registered = 1 (clock 0 H5speed 0 H5f 65535)
Oct 24 13:14:48 MyApp[172] <Warning>: [1414152888.370] sid=440785955 Monitor: player state changes to BUFFERING (6).
Oct 24 13:14:48 MyApp[172] <Warning>: <redacted> + DEBUG: Silent switch is off, route: HDMI
Oct 24 13:14:48 MyApp[172] <Warning>: <redacted> + DEBUG: Updating resume milestone to: 28.339840
Oct 24 13:14:48 MyApp[172] <Warning>: <redacted> + DEBUG: EpisodeResumeDetail: Setting last milestone to 28
Oct 24 13:14:51 MyApp[172] <Warning>: springstreams (iOS 1.1.0)> http status code: 200 - no error
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff80906d4a00]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:53 kernel[0] <Debug>: VXE380: STOP sent 364 enc 364 dropped 0 I 1 P 363 P->I 0 B 0 re-encI 0 re-encP 0 should-be-dropped 0 HSH5 0 (stats 363 1 0 0 0 0 0 0)
Oct 24 13:14:53 kernel[0] <Debug>: VXE380: closeGated (0xffffff809072ca00) cl left: 0
Oct 24 13:14:56 mediaserverd[29] <Error>: 13:14:56.964 ERROR: [0x1024b0000] >aq> 1584: Exiting because mConverterError is 'nope' (0x2000 req, 0x0 primed)
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: IOAudioCodecsUserClient::setProperties : compressionType = 0
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: targetLevel = 0x00000000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: cutFactor = 0x3f800000
Oct 24 13:14:56 kernel[0] <Debug>: IOAudioCodecsUserClient[0xffffff808f7c4000]::setProperties: boostFactor = 0x3f800000
Oct 24 13:14:56 mediaserverd[29] <Error>: 13:14:56.965 ERROR: [0x1024b0000] >aq> 1605: failed ('nope'); will stop (8192/0 frames)
Oct 24 13:14:57 mediaserverd[29] <Error>: 13:14:57.254 ERROR: [0x1024b0000] >aq> 1584: Exiting because mConverterError is 'nope' (0x20000 req, 0x0 primed)
Oct 24 13:14:57 mediaserverd[29] <Error>: 13:14:57.255 ERROR: [0x1024b0000] >aq> 1605: failed ('nope'); will stop (131072/0 frames)
Oct 24 13:14:57 MyApp[172] <Warning>: [1414152897.282] sid=440785955 Monitor: player state changes to PLAYING (3).
Oct 24 13:14:57 MyApp[172] <Warning>: <redacted> + DEBUG: ###### handleDurationDidChange, time now 2783.040000
Oct 24 13:14:57 MyApp[172] <Warning>: <redacted> + DEBUG: Updating resume milestone to: 28.338840
Oct 24 13:14:57 MyApp[172] <Warning>: <redacted> + DEBUG: EpisodeResumeDetail: Setting last milestone to 28
Oct 24 13:14:59 MyApp[172] <Warning>: [1414152899.456] sid=440785955 Monitor: player state changes to PAUSED (12).
Oct 24 13:14:59 MyApp[172] <Warning>: <redacted> + DEBUG: EpisodeResumeDetail: Setting last milestone to 28
Oct 24 13:15:00 fud[174] <Notice>: Nothing left to do, exiting.
Oct 24 13:15:00 fud[174] <Notice>: Successfully serialized to disk

How to debug an iOS app crash at launch time, breakpoint only in assembly file

I'am facing an issue with an app currently in development.
The problem is that the App crash at launch time when it was in background for a while, and only in that case.
Launching the app while it was killed doesn't lead to crash, from debugger or from phone.
Launching the app while it was in background for about 5-10 min doesn't lead to crash, while debugging or not.
Launching the app while in backgorund for about 15-20 min lead to a crash. Using debugger and breakpoint on exception gave me this file :
libdispatch.dylib`_dispatch_assert_queue_fail:
0x349c6ce4: push {r4, r5, r7, lr}
0x349c6ce6: add r7, sp, #0x8
0x349c6ce8: sub sp, #0xc
0x349c6cea: movw r5, #0x7810
0x349c6cee: mov r4, r0
0x349c6cf0: movt r5, #0x1
0x349c6cf4: movw r12, #0x7af0
0x349c6cf8: movt r12, #0x1
0x349c6cfc: movw r9, #0x7a83
0x349c6d00: movt r9, #0x1
0x349c6d04: ldr r0, [r4, #0x48]
0x349c6d06: movw r2, #0x7a93
0x349c6d0a: movt r2, #0x1
0x349c6d0e: movw r3, #0x7af5
0x349c6d12: movt r3, #0x1
0x349c6d16: add r5, pc
0x349c6d18: cmp r0, #0x0
0x349c6d1a: it ne
0x349c6d1c: movne r5, r0
0x349c6d1e: add r12, pc
0x349c6d20: add r9, pc
0x349c6d22: add r3, pc
0x349c6d24: cmp r1, #0x0
0x349c6d26: add r2, pc
0x349c6d28: strd r4, r5, [sp]
0x349c6d2c: it ne
0x349c6d2e: movne r3, r12
0x349c6d30: add r0, sp, #0x8
0x349c6d32: mov r1, r9
0x349c6d34: blx 0x349dda4c ; symbol stub for: -[OS_object retainWeakReference]
0x349c6d38: movw r0, #0x7ae0
0x349c6d3c: movt r0, #0x1
0x349c6d40: ldr r1, [sp, #0x8]
0x349c6d42: add r0, pc
0x349c6d44: bl 0x349c65cc ; _dispatch_log
0x349c6d48: trap
0x349c6d4a: nop
The debugger break on the trap line, just before the nop at the end with :
Thread 1: EXC_BREAKPOINT (code=EXC_ARM_BREAKPOINT, subcode=0xdefe)
I can't find any clue on how to debug this.
Any help would be appreciated.
EDIT : here is a crash log with the stacktrace (I replaced my device name with DeviceName and the app name and my company name with com.company.myAppName) :
Sep 22 11:36:31 DeviceName locationd[63] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Sep 22 11:36:31 DeviceName myAppName[6750] <Warning>: *** Assertion failure in -[UIFetchContentInBackgroundAction sendResponse:], /SourceCache/BaseBoard/BaseBoard-97/BaseBoard/BSAction.m:221
Sep 22 11:36:32 DeviceName myAppName[6750] <Notice>: BUG in client of libdispatch: Assertion failed: Block was run on an unexpected queue
Expected queue: 0x0x3713cd40[com.apple.main-thread]
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Notice>: ReportCrash acting against PID 6750
Sep 22 11:36:32 DeviceName diagnosticd[5999] <Error>: error evaluating process info - pid: 6750, punique: 6750
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Notice>: Formulating crash report for process myAppName[6750]
Sep 22 11:36:32 DeviceName SpringBoard[2836] <Warning>: BSXPCMessage received error for message: Connection invalid
Sep 22 11:36:32 DeviceName wifid[68] <Notice>: WiFi:[433071392.290519]: BG Application: Not Present, BG Daemon: Present. Daemons: lockdownd networkd assistantd
Sep 22 11:36:32 DeviceName com.apple.xpc.launchd[1] (UIKitApplication:com.company.myAppName[0x3ff0][6750]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Not saving crash log because we have reached the limit for logs to store on disk. Sync or otherwise clear logs from /var/mobile/Library/Logs/CrashReporter to save new logs.
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Could not save crash report to disk!
Sep 22 11:36:32 DeviceName SpringBoard[2836] <Warning>: Application 'UIKitApplication:com.company.myAppName[0x3ff0]' crashed.
Sep 22 11:36:32 DeviceName assertiond[57] <Warning>: Could not set priority of <BKNewProcess: 0x145437b0; com.company.myAppName; pid: 6750> to 2, priority: No such process
Sep 22 11:36:32 DeviceName assertiond[57] <Warning>: Could not set priority of <BKNewProcess: 0x145437b0; com.company.myAppName; pid: 6750> to 4096, priority: No such process
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Incident Identifier: DF8D30C9-4F46-43CB-B192-323E819180A6
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: CrashReporter Key: a93a18a1167cbedc4b3623154bd083fdd7770808
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Hardware Model: iPhone5,2
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Process: myAppName [6750]
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Path: /private/var/mobile/Containers/Bundle/Application/DE60F941-317E-49C2-95EA-0F152A117C16/myAppName.app/myAppName
Sep 22 11:36:32 DeviceName UserEventAgent[17] <Warning>: id=com.company.myAppName pid=6750, state=0
Sep 22 11:36:32 DeviceName backboardd[56] <Warning>: Unable to bootstrap_look_up port with name com.company.myAppName.gsEvents: unknown error code (1102)
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Identifier: myAppName
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Version: ???
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Code Type: ARM (Native)
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Parent Process: launchd [1]
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Date/Time: 2014-09-22 11:36:32.054 +0200
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Launch Time: 2014-09-22 11:25:29.726 +0200
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: OS Version: iOS 8.0 (12A365)
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Report Version: 105
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Exception Type: EXC_BREAKPOINT (SIGTRAP)
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Exception Codes: 0x0000000000000001, 0x000000000000defe
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Triggered by Thread: 0
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Last Exception Backtrace:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: (0x26db3e3a 0x34461c86 0x26db3d10 0x27a845aa 0x2b8bf8c8 0x349c8b64 0x2b8bf832 0x2a7c7ba8 0x349c18c6 0x349c18b2 0x349c50ba 0x26d79be4 0x26d782e4 0x26cc661c 0x26cc642e 0x2e0740a4 0x2a2b0804 0xcee48 0x349e1aaa)
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 0 Crashed:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libdispatch.dylib 0x349c6d48 0x349c0000 + 27976
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 libdispatch.dylib 0x349c4be4 0x349c0000 + 19428
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 FrontBoardServices 0x2d4e7830 0x2d4df000 + 34864
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 3 FrontBoardServices 0x2d4f40e6 0x2d4df000 + 86246
Sep 22 11:36:32 DeviceName SpringBoard[2836] <Warning>: Unable to deliver -[UIRemoteApplication showTopMostMiniAlertWithSynchronizationPort:] message to port 0: (ipc/send) invalid destination port
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 4 CoreFoundation 0x26d7a5b2 0x26cae000 + 837042
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 5 CoreFoundation 0x26d79874 0x26cae000 + 833652
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 6 CoreFoundation 0x26d77ff6 0x26cae000 + 827382
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 7 CoreFoundation 0x26cc661c 0x26cae000 + 99868
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 8 CoreFoundation 0x26cc642e 0x26cae000 + 99374
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 9 myAppName 0x00177f72 0x4f000 + 1216370
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 10 CoreFoundation 0x26db416c 0x26cae000 + 1073516
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 11 libobjc.A.dylib 0x34461f10 0x3445b000 + 28432
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 12 libc++abi.dylib 0x33d9ade0 0x33d83000 + 97760
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 13 libc++abi.dylib 0x33d9a5a4 0x33d83000 + 95652
Sep 22 11:36:32 DeviceName locationd[63] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 14 libobjc.A.dylib 0x34461d5a 0x3445b000 + 27994
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 15 CoreFoundation 0x26db3d10 0x26cae000 + 1072400
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 16 Foundation 0x27a845aa 0x279f2000 + 599466
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 17 BaseBoard 0x2b8bf8c8 0x2b89b000 + 149704
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 18 libdispatch.dylib 0x349c8b64 0x349c0000 + 35684
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 19 BaseBoard 0x2b8bf832 0x2b89b000 + 149554
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 20 UIKit 0x2a7c7ba8 0x2a242000 + 5790632
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 21 libdispatch.dylib 0x349c18c8 0x349c0000 + 6344
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 22 libdispatch.dylib 0x349c18b4 0x349c0000 + 6324
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 23 libdispatch.dylib 0x349c50ba 0x349c0000 + 20666
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 24 CoreFoundation 0x26d79be4 0x26cae000 + 834532
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 25 CoreFoundation 0x26d782e4 0x26cae000 + 828132
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 26 CoreFoundation 0x26cc661c 0x26cae000 + 99868
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 27 CoreFoundation 0x26cc642e 0x26cae000 + 99374
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 28 GraphicsServices 0x2e0740a4 0x2e06b000 + 37028
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 29 UIKit 0x2a2b0804 0x2a242000 + 452612
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 30 myAppName 0x000cee48 0x4f000 + 523848
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 31 libdyld.dylib 0x349e1aac 0x349e0000 + 6828
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 1:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libsystem_kernel.dylib 0x34a942a0 0x34a93000 + 4768
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 libdispatch.dylib 0x349cd9fc 0x349c0000 + 55804
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 libdispatch.dylib 0x349c331e 0x349c0000 + 13086
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 2 name: GAIThread Dispatch queue: NSPersistentStoreCoordinator 0x15582b60
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 2:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libsystem_kernel.dylib 0x34aa9388 0x34a93000 + 91016
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 libsqlite3.dylib 0x347e4164 0x3474b000 + 627044
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 libsqlite3.dylib 0x3479334a 0x3474b000 + 295754
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 3 libsqlite3.dylib 0x347d2544 0x3474b000 + 554308
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 4 libsqlite3.dylib 0x347d1e54 0x3474b000 + 552532
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 5 libsqlite3.dylib 0x34792f8e 0x3474b000 + 294798
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 6 libsqlite3.dylib 0x34787c72 0x3474b000 + 248946
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 7 libsqlite3.dylib 0x347657dc 0x3474b000 + 108508
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 8 libsqlite3.dylib 0x34783f10 0x3474b000 + 233232
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 9 libsqlite3.dylib 0x34778ed6 0x3474b000 + 188118
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 10 CoreData 0x26ab7ab8 0x26aa2000 + 88760
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 11 CoreData 0x26af0d92 0x26aa2000 + 322962
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 12 CoreData 0x26b87110 0x26aa2000 + 938256
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 13 CoreData 0x26b6c3ac 0x26aa2000 + 828332
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 14 CoreData 0x26b717c8 0x26aa2000 + 849864
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 15 libdispatch.dylib 0x349c18b4 0x349c0000 + 6324
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 16 libdispatch.dylib 0x349c8b64 0x349c0000 + 35684
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 17 CoreData 0x26b65302 0x26aa2000 + 799490
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 18 CoreData 0x26b6bf9a 0x26aa2000 + 827290
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 19 CoreData 0x26b3d5be 0x26aa2000 + 636350
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 20 myAppName 0x0017312c 0x4f000 + 1196332
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 21 myAppName 0x00171c46 0x4f000 + 1190982
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 22 myAppName 0x00172fe2 0x4f000 + 1196002
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 23 myAppName 0x0017d77e 0x4f000 + 1238910
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 24 myAppName 0x0017e9ee 0x4f000 + 1243630
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 25 myAppName 0x0017e7ec 0x4f000 + 1243116
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 26 Foundation 0x27ac359a 0x279f2000 + 857498
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 27 CoreFoundation 0x26d7a58c 0x26cae000 + 837004
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 28 CoreFoundation 0x26d7999a 0x26cae000 + 833946
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 29 CoreFoundation 0x26d78000 0x26cae000 + 827392
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 30 CoreFoundation 0x26cc661c 0x26cae000 + 99868
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 31 CoreFoundation 0x26cc642e 0x26cae000 + 99374
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 32 Foundation 0x279fe428 0x279f2000 + 50216
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 33 Foundation 0x27a4c8e8 0x279f2000 + 370920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 34 myAppName 0x0016f678 0x4f000 + 1181304
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 35 Foundation 0x27ac3386 0x279f2000 + 856966
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 36 libsystem_pthread.dylib 0x34b24e90 0x34b22000 + 11920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 37 libsystem_pthread.dylib 0x34b24e02 0x34b22000 + 11778
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 38 libsystem_pthread.dylib 0x34b22b8c 0x34b22000 + 2956
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 3:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libsystem_kernel.dylib 0x34aa7b38 0x34a93000 + 84792
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 libsystem_pthread.dylib 0x34b243f4 0x34b22000 + 9204
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 libsystem_pthread.dylib 0x34b252d8 0x34b22000 + 13016
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 3 Foundation 0x27a48f62 0x279f2000 + 356194
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 4 myAppName 0x0011f036 0x4f000 + 852022
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 5 Foundation 0x27ac3386 0x279f2000 + 856966
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 6 libsystem_pthread.dylib 0x34b24e90 0x34b22000 + 11920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 7 libsystem_pthread.dylib 0x34b24e02 0x34b22000 + 11778
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 8 libsystem_pthread.dylib 0x34b22b8c 0x34b22000 + 2956
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 4:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libsystem_kernel.dylib 0x34aa89cc 0x34a93000 + 88524
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 libsystem_pthread.dylib 0x34b22ea8 0x34b22000 + 3752
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 libsystem_pthread.dylib 0x34b22b80 0x34b22000 + 2944
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 5 name: PF_AFNetworking
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 5:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libsystem_kernel.dylib 0x34a944f0 0x34a93000 + 5360
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 libsystem_kernel.dylib 0x34a942e4 0x34a93000 + 4836
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 CoreFoundation 0x26d79b4e 0x26cae000 + 834382
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 3 CoreFoundation 0x26d780f4 0x26cae000 + 827636
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 4 CoreFoundation 0x26cc661c 0x26cae000 + 99868
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 5 CoreFoundation 0x26cc642e 0x26cae000 + 99374
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 6 Foundation 0x279fe428 0x279f2000 + 50216
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 7 Foundation 0x27a4c8e8 0x279f2000 + 370920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 8 myAppName 0x001317ee 0x4f000 + 927726
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 9 Foundation 0x27ac3386 0x279f2000 + 856966
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 10 libsystem_pthread.dylib 0x34b24e90 0x34b22000 + 11920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 11 libsystem_pthread.dylib 0x34b24e02 0x34b22000 + 11778
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 12 libsystem_pthread.dylib 0x34b22b8c 0x34b22000 + 2956
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 6 name: com.apple.NSURLConnectionLoader
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 6:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libsystem_kernel.dylib 0x34a944f0 0x34a93000 + 5360
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 libsystem_kernel.dylib 0x34a942e4 0x34a93000 + 4836
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 CoreFoundation 0x26d79b4e 0x26cae000 + 834382
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 3 CoreFoundation 0x26d780f4 0x26cae000 + 827636
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 4 CoreFoundation 0x26cc661c 0x26cae000 + 99868
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 5 CoreFoundation 0x26cc642e 0x26cae000 + 99374
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 6 CFNetwork 0x2687f3da 0x26803000 + 508890
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 7 Foundation 0x27ac3386 0x279f2000 + 856966
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 8 libsystem_pthread.dylib 0x34b24e90 0x34b22000 + 11920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 9 libsystem_pthread.dylib 0x34b24e02 0x34b22000 + 11778
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 10 libsystem_pthread.dylib 0x34b22b8c 0x34b22000 + 2956
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 7 name: com.apple.CFSocket.private
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 7:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libsystem_kernel.dylib 0x34aa808c 0x34a93000 + 86156
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 CoreFoundation 0x26d7e31a 0x26cae000 + 852762
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 libsystem_pthread.dylib 0x34b24e90 0x34b22000 + 11920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 3 libsystem_pthread.dylib 0x34b24e02 0x34b22000 + 11778
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 4 libsystem_pthread.dylib 0x34b22b8c 0x34b22000 + 2956
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 8:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libsystem_kernel.dylib 0x34aa89cc 0x34a93000 + 88524
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 libsystem_pthread.dylib 0x34b22ea8 0x34b22000 + 3752
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 libsystem_pthread.dylib 0x34b22b80 0x34b22000 + 2944
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 9:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libsystem_kernel.dylib 0x34aa89cc 0x34a93000 + 88524
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 libsystem_pthread.dylib 0x34b22ea8 0x34b22000 + 3752
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 libsystem_pthread.dylib 0x34b22b80 0x34b22000 + 2944
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 10:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libsystem_kernel.dylib 0x34aa89cc 0x34a93000 + 88524
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 libsystem_pthread.dylib 0x34b22ea8 0x34b22000 + 3752
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 libsystem_pthread.dylib 0x34b22b80 0x34b22000 + 2944
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 11:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libsystem_kernel.dylib 0x34aa89cc 0x34a93000 + 88524
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 libsystem_pthread.dylib 0x34b22ea8 0x34b22000 + 3752
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 libsystem_pthread.dylib 0x34b22b80 0x34b22000 + 2944
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 12:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0 libsystem_kernel.dylib 0x34aa89cc 0x34a93000 + 88524
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1 libsystem_pthread.dylib 0x34b22ea8 0x34b22000 + 3752
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2 libsystem_pthread.dylib 0x34b22b80 0x34b22000 + 2944
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 0 crashed with ARM Thread State (32-bit):
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: r0: 0x0056c500 r1: 0x00000000 r2: 0x156a7a00 r3: 0x00000fff
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: r4: 0x3713cd40 r5: 0x349de338 r6: 0x352bfca8 r7: 0x005622e8
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: r8: 0x155c4610 r9: 0x156a8000 r10: 0x155c4610 r11: 0x156cb5f0
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: ip: 0x37154124 sp: 0x005622d4 lr: 0x349c6d49 pc: 0x349c6d48
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: cpsr: 0x60000030
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Binary Images:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0x4f000 - 0x2eefff myAppName armv7 <8d48834e6e563ba08bd970b675b2c2b1> /var/mobile/Containers/Bundle/Application/DE60F941-317E-49C2-95EA-0F152A117C16/myAppName.app/myAppName
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0x1fed6000 - 0x1fef9fff dyld armv7s <fd3fef9c43c9382e8e46d5d59fb52f86> /usr/lib/dyld
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0x25852000 - 0x259befff AVFoundation armv7s <291c7a621b65396491697e7a7f728b16> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0x259bf000 - 0x25a1dfff libAVFAudio.dylib armv7s <1b452a7a75513cf9aa82e59feb7eef33> /System/Library/Frameworks/AVFoundation.framework/libAVFAudio.dylib
A lot of lines like the previous one
Take a look at this error messages. It seems an assertion check was failed in iOS SDK.
*** Assertion failure in -[UIFetchContentInBackgroundAction sendResponse:], /SourceCache/BaseBoard/BaseBoard-97/BaseBoard/BSAction.m:221
BUG in client of libdispatch: Assertion failed: Block was run on an unexpected queue
Expected queue: 0x0x3713cd40[com.apple.main-thread]
The assertion did check that the specified block would run on the right dispatch queue. From the assertion message and the stack trace, -[UIFetchContentInBackgroundAction sendResponse:] uses dispatch_assert_queue to check that the application code are using the main queue for the block properly.
So you'd better check your background fetch code that should use the main queue, but your code is using global queue, serial queue or concurrent queue.
In my case the issue was that the completion handler was called twice subsequently
Code with issue
-(void) application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
{
if(condition)
{
completionHandler(UIBackgroundFetchResultNoData);
}
completionHandler(UIBackgroundFetchResultNewData);
}
Fix
-(void) application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
{
if(condition)
{
completionHandler(UIBackgroundFetchResultNoData);
}
else //fix
{
completionHandler(UIBackgroundFetchResultNewData);
}
}
Please make sure you are not making such a mistake.
I have exactly the same issue depicted by #Kazuki Sakamoto:
2014-10-16 01:37:05.284 musiXmatch[1589:400275] *** Assertion failure in -`[UIFetchContentInBackgroundAction sendResponse:], /SourceCache/BaseBoard/BaseBoard-97/BaseBoard/BSAction.m:221`
Adding a
dispatch_async(dispatch_get_main_queue(), ^{
Fixed the issue!

EKCalendar title crashing app (MonoTouch.EventKit.EKCalendar.set_Title)

I have a problem with EKCalendar from MonoTouch.EventKit. Application is crashing when I try to set a title by a property. It doesn't occur every time, just twice. Here are a fragment of my logs:
Apr 29 16:49:19 iPad[973] <Error>: Stacktrace:
Apr 29 16:49:19 iPad[973] <Error>: at <unknown> <0xffffffff>
Apr 29 16:49:19 iPad[973] <Error>: at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (intptr,intptr,intptr) <0xffffffff>
Apr 29 16:49:19 iPad[973] <Error>: at MonoTouch.EventKit.EKCalendar.set_Title (string) [0x0001b] in /Developer/MonoTouch/Source/monotouch/src/EventKit/.pp-EKCalendar.g.cs:134
Apr 29 16:49:19 iPad[973] <Error>: at OverwriteEKCalendar (MonoTouch.EventKit.EKCalendar) [0x00022] in \Services\Calendar\EKCalendarTouch.cs:229
Apr 29 16:49:19 iPad[973] <Error>: at Services.Calendar.CalendarService.OverwriteCalendar
Code is very simple:
public void OverwriteEKCalendar(EKCalendar calendar)
{
if (this.CGColor != null)
{
calendar.CGColor = this.CGColor.ToCGColor();
}
calendar.Title = this.Title;
}
Do you have any idea what's going on?

App running on iOS 5, iOS 6, but crashing on iOS 7

We have submitted the app on the app store, and it was approved.
But after a day we found out that it is running fine on iOS 5 and 6, but it is crashing on iOS7.
Following is the crash log.
Nov 14 01:45:16 Mys-iPhone AchMyieveCard[4871] <Warning>: Successfully received the test notification!
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Remove User
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Hide the Progress Bar1
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Hide waiting view
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Hide the Progress Bar2
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: view did dis appear
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: MainNavController :: setMyToolbar
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Menu Name = My Cards
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: MCPClient :: Method to prepare URL with provided url parameter values
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Key : lastName
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Value : Cunningham
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: key lastName, value Cunningham
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Key : ssn4
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Value : 2123
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: key ssn4, value 2123
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Key : zipCode MyNov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Value : 12345
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: key zipCode, value 12345
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Prepared URL after appending parameters lastName=Cunningham&ssn4=2123&zipCode=12345
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: Hidden --- 0
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: View Controllers = (
"<UINavigationController: 0x16557a40>",
"<UINavigationController: 0x165cd7b0>",
"<UINavigationController: 0x165d6490>",
"<UINavigationController: 0x165d89e0>"
)
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: View will appear
Nov 14 01:45:16 Mys-iPhone MyApp[4871] <Warning>: --- >>>>> hasEnteredInAppFirstTime ::: 1
Nov 14 01:45:16 Mys-iPhone ReportCrash[4877] <Notice>: ReportCrash acting against PID 4871
Nov 14 01:45:16 Mys-iPhone ReportCrash[4877] <Notice>: Formulating crash report for process MyApp[4871]
Nov 14 01:45:16 Mys-iPhone com.apple.launchd[1] (UIKitApplication:com.i2cinc.MyApp[0xbb1c][4871]) <Warning>: (UIKitApplication:com.i2cinc.MyApp[0xbb1c]) Job appears to have crashed: Segmentation fault: 11
Nov 14 01:45:16 Mys-iPhone backboardd[28] <Warning>: Application 'UIKitApplication:com.i2cinc.MyApp[0xbb1c]' exited abnormally with signal 11: Segmentation fault: 11
Nov 14 01:45:16 Mys-iPhone ReportCrash[4877] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/MyApp_2013-11-14-014516_Mys-iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Nov 14 01:45:25 Mys-iPhone mstreamd[4878] <Notice>: (Note ) mstreamd: mstreamd starting up.
Nov 14 01:45:25 Mys-iPhone mstreamd[4878] <Notice>: (Note ) PS: Media stream daemon starting...
Nov 14 01:45:26 Mys-iPhone awdd[4879] <Error>: CoreLocation: CLClient is deprecated. Will be obsolete soon.
Nov 14 01:45:36 Mys-iPhone routined[34] <Notice>: CoreLocation: </System/Library/LocationBundles/Routine.bundle> woken up by Core Location
Nov 14 01:45:36 Mys-iPhone kernel[0] <Debug>: 154088.182708 wlan.A[27556] AppleBCMWLANNetManager::updateLinkQualityMetrics(): Report LQM to User Land 100, fAverageRSSI -69
Nov 14 01:45:36 Mys-iPhone backboardd[28] <Warning>: Launch Services: Registering unknown app identifier /System/Library/LocationBundles/Routine.bundle failed
Nov 14 01:45:36 Mys-iPhone backboardd[28] <Warning>: Launch Services: Unable to find app identifier /System/Library/LocationBundles/Routine.bundle
Nov 14 01:45:36 Mys-iPhone SpringBoard[33] <Warning>: Unknown application display identifier /System/Library/LocationBundles/Routine.bundle.
Code
NSLog(#"View will appear");
NSLog(#" --- >>>>> hasEnteredInAppFirstTime ::: %u", [mClient hasEnteredInAppFirstTime]);
if([mClient hasEnteredInAppFirstTime]) {
mClient.hasEnteredInAppFirstTime = NO;
NSLog(#"Default Screen %#", mClient.defaultScreen);
if([mClient defaultScreen] == (id)[NSNull null] || [mClient defaultScreen].length == 0 ) {
NSLog(#"Default screen is nil, going to load dashboard");
[mClient setUPProgressHUDForView:self.view withLable:#"Generating Dashboard" andMessage:#"Please Wait.."];
for(UIView *subview in [self.scrollView subviews]) {
[subview removeFromSuperview];
}
NSLog(#"--> ::: Going to change here");
[self generateDashboard];
} else {
NSLog(#"Going to push default screen : %#", mClient.defaultScreen);
//[mClient setUPProgressHUDForView:self.view withLable:#"Loading Default Screen" andMessage:#"Please Wait.."];
[self pushDefaultScreen:mClient.defaultScreen];
}
}
Kindly help me and let me know what the issue is, why it is crashing and what the solution is.
You are mutating an array as you change it:
for(UIView *subview in [self.scrollView subviews]) {
[subview removeFromSuperview];
}
You should make a copy of the subview array, and send the message to each object in it:
NSArray *oldSubviews = [self.scrollView.subviews copy];
for(UIView *subview in oldSubviews) {
[subview removeFromSuperview];
}
I was accessing
mClient defaultScreen
property of another class. and while setting the value in defaultScreen, i was not using this operator with property name. this was working fine in iOS6, but was causing crash in iOS7.
Previous line of code in mClient:
defaultScreen = #"screen name";
New code:
this.defaultScreen = #"screen name";
now crashed is fixed. :-)

Resources