Crash in MobileCoreServices -[LSOpenOperation completeOperation] - ios

I've received a crash report (iPod4,1, iOS 5.1.1) with this in a thread:
Hardware Model: iPod4,1
Process: AAA [969]
Path: /var/mobile/Applications/33B2C5DC-78CE-4A99-9D5D-279DDF417DFD/AAA.app/AAA
Identifier: AAA
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-07-05 18:16:33.606 +0200
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xd055a967
Crashed Thread: 11
Thread 11 Crashed:
0 libobjc.A.dylib 0x346e5f78 objc_msgSend + 16
1 Foundation 0x37f8a74c NSKVOPendingNotificationCreate + 216
2 Foundation 0x37f8a652 NSKeyValuePushPendingNotificationPerThread + 62
3 Foundation 0x37f7c744 NSKeyValueWillChange + 408
4 Foundation 0x37f53848 -[NSObject(NSKeyValueObserverNotification) willChangeValueForKey:] + 176
5 MobileCoreServices 0x33ffa00c -[LSOpenOperation completeOperation] + 32
6 MobileCoreServices 0x33ffa48a -[LSOpenOperation main] + 1050
7 Foundation 0x37f61a7a -[NSThread main] + 66
8 Foundation 0x37ff558a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x30f3172e _pthread_start + 314
10 libsystem_c.dylib 0x30f315e8 thread_start + 0
Do you know what can be the reason of this crash?
Thanks for any help in advance!

My wild guess would be that either you are writing a code which shares some document or receive a document from another application (through "Open In" or openURL) and most likely you are passing some wrong address as parameter to some of API. However, it's hard to tell without knowing what you are doing and after which circumstances it crashed.

Related

App is crashed on launch by app store reviewed

I've tested my apps with all sort of iOs version and result is working fine on those devices. But when I published to App Store, they rejected that app is crashed on launch. I cannot convince why app is crashed on their phone even I've tested with same iOs version.
Please let me know, how to solve that issue and I've attached error logs.
{"app_name":"CakeApp","timestamp":"2017-08-10 06:54:09.29 -0700","app_version":"3","slice_uuid":"ba63de93-382a-3879-933d-e584d00cb7aa","adam_id":1233988265,"build_version":"1.2","bundleID":"com.ppshein.CakeApp","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 10.3.3 (14G60)","incident_id":"81B4B45E-ACB0-4305-81BE-B88E4E257238","name":"CakeApp"}
Incident Identifier: 81B4B45E-ACB0-4305-81BE-B88E4E257238
CrashReporter Key: 318083a7319cbe05fd01b4c953a58aebe938f998
Hardware Model: xxx
Process: CakeApp [5822]
Path: /private/var/containers/Bundle/Application/126924F1-2DBF-4F12-8355-1C5787680F75/CakeApp.app/CakeApp
Identifier: com.ppshein.CakeApp
Version: 1.2 (3)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.ppshein.CakeApp [1034]
Date/Time: 2017-08-10 06:54:09.0262 -0700
Launch Time: 2017-08-10 06:54:06.9573 -0700
OS Version: iPhone OS 10.3.3 (14G60)
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001002749c8
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 CakeApp 0x00000001002749c8 0x100098000 + 1952200
1 CakeApp 0x000000010026dca4 0x100098000 + 1924260
2 UIKit 0x00000001930eae48 0x19306a000 + 527944
3 UIKit 0x00000001932f737c 0x19306a000 + 2675580
4 UIKit 0x00000001932fce24 0x19306a000 + 2698788
5 UIKit 0x00000001933118b0 0x19306a000 + 2783408
6 UIKit 0x00000001932fa0b8 0x19306a000 + 2687160
7 FrontBoardServices 0x000000018eaf8884 0x18eabe000 + 239748
8 FrontBoardServices 0x000000018eaf86f0 0x18eabe000 + 239344
9 FrontBoardServices 0x000000018eaf8aa0 0x18eabe000 + 240288
10 CoreFoundation 0x000000018cefd42c 0x18ce22000 + 898092
11 CoreFoundation 0x000000018cefcd9c 0x18ce22000 + 896412
12 CoreFoundation 0x000000018cefa9a8 0x18ce22000 + 887208
13 CoreFoundation 0x000000018ce2ada4 0x18ce22000 + 36260
14 UIKit 0x00000001930e3fc8 0x19306a000 + 499656
15 UIKit 0x00000001930dec9c 0x19306a000 + 478364
16 CakeApp 0x00000001000a5e3c 0x100098000 + 56892
17 libdyld.dylib 0x000000018be3959c 0x18be35000 + 17820
Did you test your app in a clean environment? Uninstall the app and delete all of its data and then install again.
You can try to resolve the crash by symbolicating the stack trace, as described in this technical note from Apple, which can help you identify the part of your code that crashed.

NSLogger in iOS freeze my app

I am integrate NSLogger into my iOS app, I found that after integrate NSLogger, My app become easy to freeze, especially when there is no internet.
I added code below to main.m, anyone know why?
Logger *logger = LoggerGetDefaultLogger();
LoggerSetOptions(logger,
kLoggerOption_BufferLogsUntilConnection |
kLoggerOption_CaptureSystemConsole |
kLoggerOption_BrowseBonjour |
kLoggerOption_BrowseOnlyLocalDomain);
LoggerSetupBonjour(logger, NULL, NULL));
this is crash log:
Incident Identifier: 5278EF6A-1128-49D6-B31A-B6AA03AC856C
CrashReporter Key: 848d8e4999dd36db808023480dc660a86c173fee
Hardware Model: iPad6,7
Process: My App [386]
Path: /private/var/containers/Bundle/Application/579502B0-20F3-4C83-82F0-ED50BC79C831/My App.app/My App
Identifier: com.xiang.My App
Version: 1140 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.xiang.My App [490]
Date/Time: 2016-11-18 13:41:18.1326 +0900
Launch Time: 2016-11-18 13:33:07.3810 +0900
OS Version: iPhone OS 10.1.1 (14B100)
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018e8d9948 writev + 8
1 CoreFoundation 0x000000018f909cc0 _CFLogvEx2Predicate + 452
2 CoreFoundation 0x000000018f909eec _CFLogvEx3 + 408
3 Foundation 0x00000001903f0454 _NSLogv + 132
4 Foundation 0x000000019031735c NSLog + 32
5 My App 0x00000001000511a4 0x100030000 + 135588
6 My App 0x0000000100050f2c 0x100030000 + 134956
7 My App 0x000000010008b18c 0x100030000 + 373132
8 My App 0x0000000100089530 0x100030000 + 365872
9 UIKit 0x00000001958a7dc0 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 728
10 UIKit 0x0000000195958b34 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 268
11 UIKit 0x0000000195a0bd5c _runAfterCACommitDeferredBlocks + 292
12 UIKit 0x00000001959fdb10 _cleanUpAfterCAFlushAndRunDeferredBlocks + 560
13 UIKit 0x000000019576c854 _afterCACommitHandler + 168
14 CoreFoundation 0x000000018f8d37dc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
15 CoreFoundation 0x000000018f8d140c __CFRunLoopDoObservers + 372
16 CoreFoundation 0x000000018f8d189c __CFRunLoopRun + 1024
17 CoreFoundation 0x000000018f800048 CFRunLoopRunSpecific + 444
18 GraphicsServices 0x0000000191286198 GSEventRunModal + 180
19 UIKit 0x00000001957e52fc -[UIApplication _run] + 684
20 UIKit 0x00000001957e0034 UIApplicationMain + 208
21 GroundStation Pro 0x00000001000f27b0 0x100030000 + 796592
22 libdyld.dylib 0x000000018e7e45b8 start + 4
Firstly you should not be adding code to main.m. Look into placing code like this in your application delegate.
Secondly, the 0x8badf00d crash is a known error caused by your application taking too long to start. This may be because you have the log start code in the wrong location as I've said above. Or it may be something else.
As a general rule, anything you have in the startup of your application take may take time, should be either delayed or placed on a back ground thread. Application startup should get the user to the home screen of your app as soon as possible.

How to test iOS app like iTunesConnect?

I want to put my app online in AppStore, but ItunesConnect finds crash. When I test on Xcode it works fine, no crash. I symbolicated the crash log, but I would like to have the same result like ItunesConnect : crash.
Does ItunesConnect have special configuration for testing app ?
Maybe I have to change some parameters in Xcode ?
Thanks for your help!
Crashlog :
Incident Identifier: 16DC5C30-0DCB-47D3-863B-9AE9E887DF78
CrashReporter Key: 45e776ed0586d581aba248bf3f23eaf42a231f2c
Hardware Model: xxx
Process: BundoranSurfCo [3413]
Path: /private/var/mobile/Containers/Bundle/Application/19330ECC-7A30-4453-BCBD-E7841A50CD4F/BundoranSurfCo.app/BundoranSurfCo
Identifier: JardelCompany.BundoranSurfCo
Version: 1.5.1 (1.5)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-05-18 07:34:27.773 -0700
Launch Time: 2015-05-18 07:29:41.671 -0700
OS Version: iOS 8.3 (12F69)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x185bec2d8 0x185ac4000 + 1213144
1 libobjc.A.dylib 0x19730c0e4 0x197304000 + 32996
2 CoreFoundation 0x185bf33a4 0x185ac4000 + 1242020
3 CoreFoundation 0x185bf0154 0x185ac4000 + 1229140
4 CoreFoundation 0x185af2ccc 0x185ac4000 + 191692
5 BundoranSurfCo 0x100024f78 -[Contact viewDidLoad] (Contact.m:24)
6 UIKit 0x18a62cc84 0x18a61c000 + 68740
7 UIKit 0x18a62c994 0x18a61c000 + 67988
8 UIKit 0x18a762e68 0x18a61c000 + 1338984
9 UIKit 0x18a762b58 0x18a61c000 + 1338200
10 UIKit 0x18a82a378 0x18a61c000 + 2155384
11 UIKit 0x18a661404 0x18a61c000 + 283652
12 UIKit 0x18a82a1cc 0x18a61c000 + 2154956
13 UIKit 0x18a661404 0x18a61c000 + 283652
14 UIKit 0x18a64a4e0 0x18a61c000 + 189664
15 UIKit 0x18a829e04 0x18a61c000 + 2153988
16 UIKit 0x18a661404 0x18a61c000 + 283652
17 UIKit 0x18a64a4e0 0x18a61c000 + 189664
18 UIKit 0x18a660da0 0x18a61c000 + 282016
19 UIKit 0x18a61ffc0 0x18a61c000 + 16320
20 CoreFoundation 0x185ba42a4 0x185ac4000 + 918180
21 CoreFoundation 0x185ba1230 0x185ac4000 + 905776
22 CoreFoundation 0x185ba1610 0x185ac4000 + 906768
23 CoreFoundation 0x185acd2d4 0x185ac4000 + 37588
24 GraphicsServices 0x18f1bb6fc 0x18f1b0000 + 46844
25 UIKit 0x18a692fac 0x18a61c000 + 487340
26 BundoranSurfCo 0x10002b2a4 main (main.m:14)
27 libdyld.dylib 0x19798aa08 0x197988000 + 10760
I would suggest you to test your application on all architectures like armv7, arm64 etc.
I have seen a few third-party codes not supporting particular architectures, or combination of architecture and OS versions. SKSTableView is one of the examples that has been reported to be crashing with iOS 7 and arm64 architecture.
Make sure this is not the case with you.
Additionally, integrate Crash reporting APIs to be sure to get a report even when Apple Reviewers are testing, that way, you get the version and device information on which it crashed...
Things will be easier to ask and answer... ;)

iOS Xcode 5 EXEC_BREAKPOINT (SIGTRAP) App Startup ONLY ON ONE DEVICE

I am building a mobile app using PhoneGap and I have send it to Beta using TestFlight. Everyone has been able to download and test the app except for one user out of roughly 10. He can install the app perfectly fine, but when he goes to launch it, it crashes immediately. The first time he tried he got into the app, but when gave permissions to a plugin it crashed.
He provided me with a crash log, which I've shortened to:
Incident Identifier: BE251DD5-6D68-4084-84F6-EC629B24F2CA
CrashReporter Key: 7cccfe6ca4af8513c8cdb2fc1cacf253a416553b
Hardware Model: iPhone6,1
Process: Loaner [1549]
Path: /var/mobile/Applications/5B7BB625-9A3D-4ACE-A8A0-74424577067C/Loaner.app/Loaner
Identifier: com.cardeninteractive.loaner
Version: 1.1d (1.1d)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2014-05-27 11:54:57.681 -0400
OS Version: iOS 7.1.1 (11D201)
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x0000000185806198 Triggered by Thread: 0 Thread 0 Crashed:
0 CoreFoundation 0x0000000185806198 0x185800000 + 24984
1 Loaner 0x00000001000407b4 0x100020000 + 133044
2 Loaner 0x000000010003ec64 0x100020000 + 126052
3 Loaner 0x0000000100039174 0x100020000 + 102772
4 Loaner 0x000000010003a25c 0x100020000 + 107100
5 libdispatch.dylib 0x00000001923ebfd0 0x1923e8000 + 16336
6 libdispatch.dylib 0x00000001923f3834 0x1923e8000 + 47156
7 libdispatch.dylib 0x00000001923ebfd0 0x1923e8000 + 16336
8 libdispatch.dylib 0x00000001923ef1d8 0x1923e8000 + 29144
9 CoreFoundation 0x00000001858cac28 0x185800000 + 830504
10 CoreFoundation 0x00000001858c8f68 0x185800000 + 823144
11 CoreFoundation 0x0000000185809c1c 0x185800000 + 39964
12 GraphicsServices 0x000000018b4f1c08 0x18b4e4000 + 56328
13 UIKit 0x000000018893afd8 0x1888c0000 + 503768
14 Loaner 0x0000000100035f68 0x100020000 + 89960
15 libdyld.dylib 0x0000000192407a9c 0x192404000 + 15004
I have read a number of posts on SO and can't seem to gain any insight into this.
Both myself and this guy are using an iPhone 5S and the problem doesn't affect me at all, even if I download the build from TestFlight and not through the IDE.

IOS, strange crash when app try to exit.

See the following crash got from apple app store, confused on the following questions.
When will app try to exit and crash in such call stack?
Which cases will cause app crash in this way?
Any discussion or suggestion will be appreciated, thanks in advance.
Hardware Model: iPhone3,3
Process: ScoutFree [2276]
Path: /var/mobile/Applications/BD0A91F2-DEA3-439C-B8A0-4CB695CEF735/MyApp.app/MyApp
Identifier: ScoutFree
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-08-14 16:31:38.700 -0400
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xff6ca1f8
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 ??? 0xff6ca1f8 0 + -9657864
1 libsystem_c.dylib 0x349534f8 exit
2 UIKit 0x31746fe6 -[UIApplication _terminateWithStatus:]
3 UIKit 0x3174389a -[UIApplication _handleApplicationSuspend:eventInfo:]
4 UIKit 0x316d3efa -[UIApplication handleEvent:withNewEvent:]
5 UIKit 0x316d3562 -[UIApplication sendEvent:]
6 UIKit 0x316d2f36 _UIApplicationHandleEvent
7 GraphicsServices 0x31347226 PurpleEventCallback
8 CoreFoundation 0x30f8551e __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
9 CoreFoundation 0x30f854c0 __CFRunLoopDoSource1
10 CoreFoundation 0x30f8430e __CFRunLoopRun + 1366
11 CoreFoundation 0x30f074a0 CFRunLoopRunSpecific
12 CoreFoundation 0x30f07368 CFRunLoopRunInMode
13 GraphicsServices 0x31346434 GSEventRunModal
14 UIKit 0x31701cd0 UIApplicationMain
15 ScoutFree 0x000739f8 -[TelenavNavigatorAppDelegate application:didFinishLaunchingWithOptions:] (TelenavNavigatorAppDelegate.m:312)
16 ScoutFree 0x00003384 0x00003384 (in MyApp)

Resources