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

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. :-)

Related

Airplay error Unknown VADPortStatus: -16612

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?

Watchkit`s WKInterfaceImage setImage causes "Terminated due to Memory error"

I want to animate images on a watch (like the activity app, if you´re interested, but it´s not important for this problem)
I draw images in a loop first: GlanceController.m
NSMutableArray *images = [[NSMutableArray alloc] init];
for(int i = 0, j = 0; i < 10; i++, j++){
#autoreleasepool {
// ...
UIGraphicsBeginImageContextWithOptions(rect.size, NO, 0);
// ...
// create UIImage and save it to an array for later
UIImage *ejCircle = UIGraphicsGetImageFromCurrentImageContext();
[images addObject: ejCircle];
ejCircle = nil;
UIGraphicsEndImageContext();
}
}
So far everything works fine, thanks to autoreleasepool, the memory consumption is not too high here, (about 5 mB before autoreleasepool gets drained back to 2 mB)
However now I try to animate this in a WKInterfaceImage, I get a Memory Error:
// take the array and create an animated image out of it
UIImage * img = [UIImage animatedImageWithImages:images duration:1.0];
// memory about normal 2 mB after this line
[wkInterfaceImage setImage:img]; // APP CRASHES HERE
// memory consumption jumps to 30 mB after this line: too much
// for the watch app, the app gets terminated.
[wkInterfaceImage startAnimatingWithImagesInRange:NSMakeRange(0,50) duration: 1.0 repeatCount: 1];
My question is, why the app crashes in this line. The memory consumption explodes, but I don´t alloc/malloc/new something here.
Edit
I just found this crash log in XCode Devices:
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Identifier: MyApp WatchKit Extension
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Version: ???
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Code Type: ARM-64 (Native)
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Parent Process: debugserver [620]
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Date/Time: 2015-07-14 16:04:04.134 +0200
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Launch Time: 2015-07-14 16:03:42.401 +0200
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: OS Version: iOS 8.4 (12H143)
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Report Version: 105
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Exception Type: EXC_RESOURCE
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Exception Subtype: MEMORY
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Exception Message: (Limit 30 MB) Crossed High Water Mark
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Triggered by Thread: 0
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Thread 0 name: Dispatch queue: com.apple.main-thread
Jul 14 16:04:04 iPhone-6-Plus ReportCrash[622] <Error>: Thread 0 Attributed:

Xamarin SIGSEGV error on quick switch

My app crashes whenever I try to quickly switch between 3 different views (each one containing some shinobi charts and webview as subviews) via 3 UIButtons. However I don't get any exception trown in my Application Logs.
I am new to Xamarin development and I am trying to fix some issue on an already existing application.
While inspecting the iOS Device Logs I have found a SIGSEGV stacktrace that says:
"Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application."
If I slowly switch (after something like a second) between the 3 views everything is working fine. I fear there is a problem with the way the views gets disposed, maybe the garbage collector fixes the issue by itself if i don't quickly switch the view that gets displayed.
Here it is the iOS Device Logs output:
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Warning>: Disposing FinancialTableViewController...
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Warning>: Disposing FinancialLCViewController...
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: Stacktrace:
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: at <unknown> <0xffffffff>
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0xffffffff>
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: at MonoTouch.UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0001c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:45
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: at LoroPiana.Application.Main (string[]) [0x00009] in /Users/nautessrl/Projects/Monotouch/LoroPianaTMS/Main.cs:18
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>:
Native stacktrace:
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 0 LoroPiana 0x00b7f4a9 mono_handle_native_sigsegv + 240
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 1 LoroPiana 0x00b89781 mono_sigsegv_signal_handler + 208
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 2 libsystem_platform.dylib 0x38e8087b _sigtramp + 42
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 3 UIKit 0x2e4eca2d <redacted> + 140
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 4 CoreFoundation 0x2ae4af3f <redacted> + 354
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 5 CoreFoundation 0x2ad7d208 _CF_forwarding_prep_0 + 24
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 6 UIKit 0x2e32f82d <redacted> + 84
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 7 UIKit 0x2e32f765 <redacted> + 24
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 8 UIKit 0x2e32f71d <redacted> + 64
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 9 UIKit 0x2e32f26d <redacted> + 104
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 10 UIKit 0x2e32f0c7 <redacted> + 38
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 11 UIKit 0x2e32f085 <redacted> + 56
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 12 UIKit 0x2e32e7d7 <redacted> + 618
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 13 UIKit 0x2e32e0ed <redacted> + 292
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 14 UIKit 0x2e32d727 <redacted> + 338
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 15 UIKit 0x2e437261 <redacted> + 108
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 16 UIKit 0x2e3361ab <redacted> + 910
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 17 CoreFoundation 0x2ae4c3e4 <redacted> + 68
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 18 CoreFoundation 0x2ad79845 <redacted> + 300
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 19 CoreFoundation 0x2ad7d2c7 <redacted> + 50
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 20 WebKitLegacy 0x36d9a261 <redacted> + 224
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 21 CoreFoundation 0x2ae4af3f <redacted> + 354
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 22 CoreFoundation 0x2ad7d208 _CF_forwarding_prep_0 + 24
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 23 CoreFoundation 0x2ae4c3e4 <redacted> + 68
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 24 CoreFoundation 0x2ad79845 <redacted> + 300
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 25 WebCore 0x362c0c79 <redacted> + 100
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 26 CoreFoundation 0x2ae0e58f <redacted> + 14
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 27 CoreFoundation 0x2ae0d99f <redacted> + 218
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 28 CoreFoundation 0x2ae0c005 <redacted> + 772
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 29 CoreFoundation 0x2ad5a621 CFRunLoopRunSpecific + 476
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 30 CoreFoundation 0x2ad5a433 CFRunLoopRunInMode + 106
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 31 GraphicsServices 0x320a00a9 GSEventRunModal + 136
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 32 UIKit 0x2e345359 UIApplicationMain + 1440
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 33 LoroPiana 0x00441ab0 wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 272
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 34 LoroPiana 0x003f7c98 MonoTouch_UIKit_UIApplication_Main_string___intptr_intptr + 52
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 35 LoroPiana 0x003f7c58 MonoTouch_UIKit_UIApplication_Main_string___string_string + 204
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 36 LoroPiana 0x0015e000 LoroPiana_Application_Main_string__ + 208
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 37 LoroPiana 0x005ca8a4 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 200
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 38 LoroPiana 0x00b8b97b mono_jit_runtime_invoke + 1158
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 39 LoroPiana 0x00bd38e9 mono_runtime_invoke + 88
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 40 LoroPiana 0x00bd6e0b mono_runtime_exec_main + 282
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 41 LoroPiana 0x00bd6c53 mono_runtime_run_main + 438
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 42 LoroPiana 0x00b75d29 mono_jit_exec + 48
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 43 LoroPiana 0x00c207fc monotouch_main + 2292
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 44 LoroPiana 0x00b58aed main + 108
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>: 45 LoroPiana 0x0015df1c start + 40
Oct 15 12:40:36 Meraxes LoroPiana[4675] <Error>:
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Oct 15 12:40:36 Meraxes ReportCrash[4677] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
Oct 15 12:40:36 Meraxes ReportCrash[4677] <Notice>: ReportCrash acting against PID 4675
Where should I start inspecting this kind of issue?
I am current developing on a retina ipad mini with iOS 8.0.2 using Xamarin 5.5.
The problem was that two views out of three got Disposed twice.
Fixing that solved my issue.

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

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?

Resources