Can't get the right code position from atos, with armv7s - ios

I tried to symbolicate iOS crash report
zhou:bin zhou$ ./atos -arch armv7s -o ktv 0x001145fb
I get the following result
-[InviteChorusCell showDuetWorks] (in ktv) (InviteChorusCell.mm:108)
Everything seems ok, I am sure my dsym file and atos file are right ones, and I am sure the file name and line number he gives me are not right, I can't find the right compared error. Does anyone met the same problem with me? I'm very thankful.
Sorry for my cheap English.
*** -[NSURL initFileURLWithPath:]: nil string parameter
(null)
(
0 CoreFoundation 0x3595f8a7 __exceptionPreprocess + 186
1 libobjc.A.dylib 0x37d06259 objc_exception_throw + 32
2 CoreFoundation 0x3595f789 +[NSException raise:format:] + 0
3 CoreFoundation 0x3595f7ab +[NSException raise:format:] + 34
4 Foundation 0x353f005f -[NSURL(NSURL) initFileURLWithPath:] + 78
5 Foundation 0x353efffb +[NSURL(NSURL) fileURLWithPath:] + 42
6 ktv 0x0005ae25 _mh_execute_header + 93733
7 ktv 0x00063a25 _ZNSt11_Deque_baseIsSaIsEE15_M_create_nodesEPPsS3_ + 27336
8 ktv 0x0007341b _ZNSt11_Deque_baseIsSaIsEE15_M_create_nodesEPPsS3_ + 91326
9 ktv 0x00064b8f _ZNSt11_Deque_baseIsSaIsEE15_M_create_nodesEPPsS3_ + 31794
10 ktv 0x0007349b _ZNSt11_Deque_baseIsSaIsEE15_M_create_nodesEPPsS3_ + 91454
11 Foundation 0x3548360d __NSFireTimer + 144
12 CoreFoundation 0x35933a33 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
13 CoreFoundation 0x35933699 __CFRunLoopDoTimer + 364
14 CoreFoundation 0x3593226f __CFRunLoopRun + 1206
15 CoreFoundation 0x358b54a5 CFRunLoopRunSpecific + 300
16 CoreFoundation 0x358b536d CFRunLoopRunInMode + 104
17 GraphicsServices 0x37551439 GSEventRunModal + 136
18 UIKit 0x333c1cd5 UIApplicationMain + 1080
19 ktv 0x0004d8af _mh_execute_header + 39087
20 ktv 0x00046160 _mh_execute_header + 8544
)

Did you calculate the address correctly?
I wrote an answer to a similar question over here: https://stackoverflow.com/a/13576028/474794

Related

App crash when add Google Conversion Tracking SDK iOS-3.0.0

I am adding GoogleConversionTrackingSDK into my project and then calling the function: [ACTConversionReporter reportWithConversionID:#"972050884" label:#"Bzk1CIzPkAkQxKPBzwM" value:#"0" isRepeatable:NO];
then my app crash. Here is the stack trace:
'NSInvalidArgumentException', reason: '+[NSDate act_secondsSince1970]: unrecognized selector sent to class 0x10225d8d0'
*** First throw call stack:
(
0 CoreFoundation 0x000000010210f495 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000101bd499e objc_exception_throw + 43
2 CoreFoundation 0x00000001021a055d +[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x0000000102100d8d ___forwarding___ + 973
4 CoreFoundation 0x0000000102100938 _CF_forwarding_prep_0 + 120
5 TestMoboSDK-Client 0x00000001000143cb -[ACTReporterPrivate commonQueryParameters] + 84
6 TestMoboSDK-Client 0x0000000100014779 -[ACTReporterPrivate report] + 98
7 TestMoboSDK-Client 0x000000010001177a -[ACTReporter report] + 75
8 TestMoboSDK-Client 0x00000001000118d4 +[ACTConversionReporter reportWithConversionID:label:value:isRepeatable:] + 170
9 TestMoboSDK-Client 0x0000000100001de6 -[MoboSDK analytics] + 342
10 TestMoboSDK-Client 0x0000000100001c16 __20-[MoboSDK googleSDK]_block_invoke + 38
11 libdispatch.dylib 0x00000001027fd72d _dispatch_client_callout + 8
12 libdispatch.dylib 0x00000001027ee85f dispatch_once_f + 82
13 TestMoboSDK-Client 0x0000000100001bea -[MoboSDK googleSDK] + 122
14 TestMoboSDK-Client 0x0000000100001b53 -[MoboSDK init] + 899
15 TestMoboSDK-Client 0x0000000100001eb2 __17+[MoboSDK shared]_block_invoke + 50
16 libdispatch.dylib 0x00000001027fd72d _dispatch_client_callout + 8
17 libdispatch.dylib 0x00000001027ee85f dispatch_once_f + 82
18 TestMoboSDK-Client 0x0000000100001e6a +[MoboSDK shared] + 122
19 TestMoboSDK-Client 0x000000010000566e -[ViewController supportedInterfaceOrientations] + 254
20 UIKit 0x000000010088568b -[UIViewController __supportedInterfaceOrientations] + 378
21 UIKit 0x000000010087f7be -[UIViewController _preferredInterfaceOrientationGivenStatusBarAndDeviceAndOrientation:] + 59
22 UIKit 0x00000001007b7ef6 -[UIWindow setRootViewController:] + 103
23 TestMoboSDK-Client 0x00000001000078f0 -[AppDelegate application:didFinishLaunchingWithOptions:] + 464
24 UIKit 0x000000010077c3d9 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 264
25 UIKit 0x000000010077cbe1 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1605
26 UIKit 0x0000000100780a0c -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 660
27 UIKit 0x0000000100791d4c -[UIApplication handleEvent:withNewEvent:] + 3189
28 UIKit 0x0000000100792216 -[UIApplication sendEvent:] + 79
29 UIKit 0x0000000100782086 _UIApplicationHandleEvent + 578
30 GraphicsServices 0x00000001035a171a _PurpleEventCallback + 762
31 GraphicsServices 0x00000001035a11e1 PurpleEventCallback + 35
32 CoreFoundation 0x0000000102091679 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
33 CoreFoundation 0x000000010209144e __CFRunLoopDoSource1 + 478
34 CoreFoundation 0x00000001020ba903 __CFRunLoopRun + 1939
35 CoreFoundation 0x00000001020b9d83 CFRunLoopRunSpecific + 467
36 UIKit 0x00000001007802e1 -[UIApplication _run] + 609
37 UIKit 0x0000000100781e33 UIApplicationMain + 1010
38 TestMoboSDK-Client 0x000000010000b44a main + 138
39 TestMoboSDK-Client 0x00000001000017c4 start + 52
40 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I also tried a fresh project to add this SDK but got the same crash.If GoogleConversionTrackingSDK-iOS-3.0.0 is support for iOS 7 or not? Need guidance on what am I doing wrong here or if I am missing something.
Thanks.
This problem appears because google has used categories in static library
The solution is super simple, you need to notify linker about that
1) Click on the project
2) Click on the target
3) Open Build Settings tab
4) Search for Other Linker Flags
5) Double click on Other Linker Flags
6) Add -ObjC and -all_load flags
7)
Remove binary (delete from device/simulator),
Clean project (hitting cmd+shift+k) and
build again (hitting cmd+b).
You're ready to go!
Have you tried to follow Boudewijn P's suggestion from here ?
Add -ObjC to the "Other Linker Flags" in the build settings. Or, if
you get duplicate symbols, just force load the library by adding
-force_load to the other linker flags:
-force_load path/to/libGoogleConversionTracking.a replace "path/to" appropriately.

Crash in Aviary SDK after integrating Google Analytics

Recently I have integrated the Google Analytics framework in my iOS app . Before integration the Aviary is working fine but now Aviary is not working properly . I am using xcode 5 . The error is
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AFPhotoEditorCustomization setEditorSettingsDefaults]: unrecognized selector sent to instance 0xc2164a0'
*** First throw call stack:
(
0 CoreFoundation 0x03c2b5e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x02e338b6 objc_exception_throw + 44
2 CoreFoundation 0x03cc8903 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x03c1b90b ___forwarding___ + 1019
4 CoreFoundation 0x03c1b4ee _CF_forwarding_prep_0 + 14
5 VerizonCaseCustomizer 0x0022f436 -[AFPhotoEditorCustomization initWithDictionary:] + 192
6 VerizonCaseCustomizer 0x0022effb +[AFPhotoEditorCustomization options] + 198
7 VerizonCaseCustomizer 0x0022f32a +[AFPhotoEditorCustomization optionValueForKey:] + 58
8 VerizonCaseCustomizer 0x00222f16 +[AFLocalization isLocalizationDisabled] + 49
9 VerizonCaseCustomizer 0x001feaa1 AFLocalizedString + 52
10 VerizonCaseCustomizer 0x001c118d -[AFSDKViewController viewDidLoad] + 113
11 UIKit 0x007209a8 -[UIViewController loadViewIfRequired] + 696
12 UIKit 0x00720c44 -[UIViewController view] + 35
13 VerizonCaseCustomizer 0x0008ec37 -[verizonlibrary displayPhotoEditorWithImage:] + 2247
14 VerizonCaseCustomizer 0x0008def9 -[verizonlibrary facebookimageslater:] + 905
15 Foundation 0x0285d36c __NSFireDelayedPerform + 372
16 CoreFoundation 0x03be9c46 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
17 CoreFoundation 0x03be962d __CFRunLoopDoTimer + 1181
18 CoreFoundation 0x03bd1698 __CFRunLoopRun + 1816
19 CoreFoundation 0x03bd0b33 CFRunLoopRunSpecific + 467
20 CoreFoundation 0x03bd094b CFRunLoopRunInMode + 123
21 GraphicsServices 0x03b879d7 GSEventRunModal + 192
22 GraphicsServices 0x03b877fe GSEventRun + 104
23 UIKit 0x0060d94b UIApplicationMain + 1225
24 VerizonCaseCustomizer 0x0000611f main + 79
25 libdyld.dylib 0x0689970d start + 1
26 ??? 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Please let me know if I am not clear . Thanks in advance .
set -ObjC -all_load to other linker flags from build settings
You can also use the -force_load flag in other linker flags. You would do that by including the following in your other linker flags:
-force_load /path/to/AviarySDK.framework
Add linker flags
Update your target's (or project's) build settings to include the following "Other Linker Flags":
-ObjC
-all_load
Like this:

Parsing stack-trace of a crash

In one of my apps I have a very common crash.
I have this report in bugsense : *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array
And this stack trace after symbolication:
0 CoreFoundation 0x3796b2a3 + 162
1 libobjc.A.dylib 0x3546b97f objc_exception_throw + 30
2 CoreFoundation 0x378b6b75 + 164
3 CoreData 0x357d9c93 + 1202
4 CoreData 0x357da863 + 1858
5 CoreFoundation 0x378bc037 _CFXNotificationPost + 1426
6 Foundation 0x39992d91 + 72
7 CoreData 0x35768307 + 78
8 CoreData 0x35767867 + 298
9 CoreData 0x356e9c0b + 2698
10 CoreData 0x356e910f + 270
11 CoreFoundation 0x379406cd + 20
12 CoreFoundation 0x3793e9c1 + 276
13 CoreFoundation 0x3793ed17 + 742
14 CoreFoundation 0x378b1ebd CFRunLoopRunSpecific + 356
15 CoreFoundation 0x378b1d49 CFRunLoopRunInMode + 104
16 GraphicsServices 0x355672eb GSEventRunModal + 74
17 UIKit 0x37329301 UIApplicationMain + 1120
18 HiBye 0x000c579d main + 244
19 libdyld.dylib 0x36207b20 + 0
I understand that the problem is in an empty NSMutableArray but I can not locate the place or at least a potential place in the code. I know that this trace does not say to much but I will appreciate any idea or direction that you can get from it that I might not be aware of.
Thanks
Shani

Application received signal SIGSEGV (IOS5)

it shows error log as below, who can tell me how could I find the code where induce this crash? thanks.
my device is iphone IOS 5.0,thanks very much.
(null)
(
0 CoreFoundation 0x353aa8a7 __exceptionPreprocess + 186
1 libobjc.A.dylib 0x37751259 objc_exception_throw + 32
2 CoreFoundation 0x353aa789 +[NSException raise:format:] + 0
3 CoreFoundation 0x353aa7ab +[NSException raise:format:] + 34
4 MMBang 0x0018ccd9 MMBang + 1621209
5 libsystem_c.dylib 0x327b67e3 _sigtramp + 38
6 MMBang 0x000e9bc1 MMBang + 953281
7 CoreFoundation 0x353043fd -[NSObject performSelector:withObject:withObject:] + 52
8 MMBang 0x00094ed5 MMBang + 605909
9 CoreFoundation 0x353043fd -[NSObject performSelector:withObject:withObject:] + 52
10 MMBang 0x00093e6d MMBang + 601709
11 MMBang 0x00122ed3 MMBang + 1187539
12 CoreFoundation 0x353091fb -[NSObject performSelector:withObject:] + 42
13 Foundation 0x34ecd747 __NSThreadPerformPerform + 350
14 CoreFoundation 0x3537ead3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
15 CoreFoundation 0x3537e29f __CFRunLoopDoSources0 + 214
16 CoreFoundation 0x3537d045 __CFRunLoopRun + 652
17 CoreFoundation 0x353004a5 CFRunLoopRunSpecific + 300
18 CoreFoundation 0x3530036d CFRunLoopRunInMode + 104
19 GraphicsServices 0x36f9c439 GSEventRunModal + 136
20 UIKit 0x32e0ccd5 UIApplicationMain + 1080
21 MMBang 0x0002a583 MMBang + 169347
22 MMBang 0x00003810 MMBang + 10256
)
Go to breakpoints tab on xcode, in the bottom left hand corner there is a little plus button. Press it, click add exception breakpoint. Don't change any of the breakpoint settings and click done.
If you run your program again it should break on the line of code witch is crashing. As long as it is your code thats coursing this rather then an incorrect outlet in IB.
Hope this helps
Sam

Strange Modal View Controller NSException bug

Can anyone help me make sense of the crash log below? It came from Apple after inquiring further about a crash my app had. They rejected the app because of this crash, but I have never once been able to make it occur on my end or with 10+ beta testers. So basically, it is only occurring for them for some reason. It looks like it has to do with presenting a view, but that's weird because, like I said, this view is coming up perfectly fine.
Mar 11 14:46:09 unknown StageBloc[2309] <Error>: *** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '-[AccountOverviewViewController popupViewController]: unrecognized selector sent to instance 0x2c7820'
*** Call stack at first throw:
(
0 CoreFoundation 0x3291964f __exceptionPreprocess + 114
1 libobjc.A.dylib 0x36b5cc5d objc_exception_throw + 24
2 CoreFoundation 0x3291d1bf -[NSObject(NSObject) doesNotRecognizeSelector:] + 102
3 CoreFoundation 0x3291c649 ___forwarding___ + 508
4 CoreFoundation 0x32893180 _CF_forwarding_prep_0 + 48
5 AppName 0x0004b56d -[TTBaseViewController shouldAutorotateToInterfaceOrientation:] + 36
6 UIKit 0x35b0dead -[UIViewController _isSupportedInterfaceOrientation:] + 48
7 UIKit 0x35b76e51 -[UIViewController _preferredInterfaceOrientationGivenCurrentOrientation:] + 68
8 UIKit 0x35b75f07 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 794
9 UIKit 0x35b756f7 -[UIViewController presentModalViewController:withTransition:] + 2378
10 UIKit 0x35b74cd7 -[UIViewController presentModalViewController:animated:] + 58
11 StageBloc 0x00009bb1 -[StageBlocViewController loginSuccessful] + 196
12 StageBloc 0x00004c21 -[StageBlocAppDelegate successfulAttempt:] + 288
13 CoreFoundation 0x32886f03 -[NSObject(NSObject) performSelector:withObject:] + 22
14 AppName 0x0002aa75 -[ASIHTTPRequest reportFinished] + 60
15 CoreFoundation 0x32886f03 -[NSObject(NSObject) performSelector:withObject:] + 22
16 Foundation 0x325707a9 __NSThreadPerformPerform + 268
17 CoreFoundation 0x328f0a79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
18 CoreFoundation 0x328f275f __CFRunLoopDoSources0 + 382
19 CoreFoundation 0x328f34eb __CFRunLoopRun + 230
20 CoreFoundation 0x32883ec3 CFRunLoopRunSpecific + 230
21 CoreFoundation 0x32883dcb CFRunLoopRunInMode + 58
22 GraphicsServices 0x30b2b41f GSEventRunModal + 114
23 GraphicsServices 0x30b2b4cb GSEventRun + 62
24 UIKit 0x35af9d69 -[UIApplication _run] + 404
25 UIKit 0x35af7807 UIApplicationMain + 670
26 AppName 0x00002ae1 main + 48
27 AppName 0x00002aac start + 40
)
This had to do with forgetting to add some required built variables to my project that the Three20 libraries use. I didn't notice it because you can't run App Store release builds locally.

Resources