Application crash when hook popViewControllerAnimated - ios

I hook the method popViewControllerAnimated .sometime i receive the crash
I need to resolve the crash but I'm stuck here so any help is highly appreciated.
Incident Identifier: 19B778C7-623F-40D4-871E-EDF3C16240DB
CrashReporter Key: TODO
Hardware Model: iPhone6,2
Version: 8.2.2 (1814)
Code Type: ARM-64
Parent Process: launchd [1]
Date/Time: 2017-07-02 14:41:07 +0000
OS Version: iPhone OS 8.3 (12F70)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x10
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib objc_msgSend + 16
1 UIKit -[UINavigationController _customTransitionController:] + 320
2 UIKit _popViewControllerNormal + 412
3 UIKit -[UINavigationController _popViewControllerWithTransition:allowPoppingLast:] + 644
4 UIKit -[UINavigationController popViewControllerAnimated:] + 572
5 METDyldCollection -[UINavigationController(KMNavigationBarTransition) km_popViewControllerAnimated:] (UINavigationController+KMNavigationBarTransition.m:94)
6 imeituan -[UINavigationController(HTKPushPopHook) pushpop_hook_popViewControllerAnimated:] (UINavigationController+HTKPushPopHook.m:50)
7 METDyldCollection __67-[SAKTransitionSafeNavigationController popViewControllerAnimated:]_block_invoke (SAKTransitionSafeNavigationController.m:75)
8 METDyldCollection -[SAKTransitionSafeNavigationController addTransitionBlock:] (SAKTransitionSafeNavigationController.m:167)
9 METDyldCollection -[SAKTransitionSafeNavigationController popViewControllerAnimated:] (SAKTransitionSafeNavigationController.m:73)
10 METDyldCollection -[MLNavigationController popViewControllerAnimated:] (MLNavigationController.m:51)

Related

iOS doesNotRecognizeSelector in CoreFoundation

I'm getting crash from our custom keyboard extension that shows doesNotRecognizeSelector in the report but the code that's crashing isn't mine... it's in Foundation/CoreFoundation. Here's the crash report...
Incident Identifier: B7818....
CrashReporter Key: 57ce8....
Hardware Model: iPhone9,2
Process: MyApp Keyboard [7390]
Path: /private/var/containers/Bundle/Application/AB6EA.....B37/MyApp.app/PlugIns/MyApp Keyboard.appex/MyApp Keyboard
Identifier: com.MyDomain.MyApp.MyApp-Keyboard
Version: 288 (3.12)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.MyDomain.MyApp.MyApp-Keyboard [710]
Date/Time: 2018-03-07 16:51:29.4017 -0500
Launch Time: 2018-03-07 16:51:28.3872 -0500
OS Version: iPhone OS 11.2.6 (15D100)
Baseband Version: 3.42.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 4
Last Exception Backtrace:
0 CoreFoundation 0x18146b164 __exceptionPreprocess + 124 (NSException.m:166)
1 libobjc.A.dylib 0x1806b4528 objc_exception_throw + 56 (objc-exception.mm:521)
2 CoreFoundation 0x181478628 -[NSObject(NSObject) doesNotRecognizeSelector:] + 140 (NSObject.m:322)
3 CoreFoundation 0x181470b10 ___forwarding___ + 1380 (NSForwarding.m:3220)
4 CoreFoundation 0x181355ccc _CF_forwarding_prep_0 + 92
5 Foundation 0x181df65e4 -[NSExtensionContext _willPerformHostCallback:] + 180 (NSExtensionContext.m:838)
6 Foundation 0x181df32d4 __105-[_NSExtensionContextVendor _beginRequestWithExtensionItems:listenerEndpoint:withContextUUID:completion:]_block_invoke + 780 (NSExtensionContext.m:268)
7 libdispatch.dylib 0x180deaa54 _dispatch_call_block_and_release + 24 (init.c:994)
8 libdispatch.dylib 0x180deaa14 _dispatch_client_callout + 16 (object.m:502)
9 libdispatch.dylib 0x180df496c _dispatch_queue_serial_drain$VARIANT$mp + 528 (inline_internal.h:2500)
10 libdispatch.dylib 0x180df52fc _dispatch_queue_invoke$VARIANT$mp + 340 (queue.c:5302)
11 libdispatch.dylib 0x180df5d20 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 404 (queue.c:5920)
12 libdispatch.dylib 0x180dfe03c _dispatch_workloop_worker_thread$VARIANT$mp + 644 (source.c:2529)
13 libsystem_pthread.dylib 0x181092f1c _pthread_wqthread + 932 (pthread.c:2207)
14 libsystem_pthread.dylib 0x181092b6c start_wqthread + 4
I can see the doesNotRecognizeSelector at line 2 and the nearest thing in the stack is NSExtensionContext _willPerformHostCallback. I looked through all the threads in the report and nothing shows anything from our code. I searched our codebase and I don't see any code where we override willPerformHostCallback or anything derived from NSExtensionContext for that matter.
Can anybody see what the deal is here?
TIA, Mike

App open a wkwebview, can,t scroll and wait 3s app crash

The same code run to iphone se, or other one 5s is not crash
The crashed iphone is a iphone5s.
This crash is in WKWebview
This is the crash logļ¼š
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2017-02-21 19:28:26.069 +0800
Launch Time: 2017-02-21 19:27:45.145 +0800
OS Version: iOS 8.4.1 (12H321)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 12
Last Exception Backtrace:
0 CoreFoundation 0x1846a022c __exceptionPreprocess + 132
1 libobjc.A.dylib 0x19631c0e4 objc_exception_throw + 60
2 CoreFoundation 0x1846a72f4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 220
3 CoreFoundation 0x1846a40a8 ___forwarding___ + 928
4 CoreFoundation 0x1845a696c _CF_forwarding_prep_0 + 92
5 UIKit 0x189156814 -[UIGestureRecognizer _delegateShouldReceiveTouch:] + 152
6 UIKit 0x1891565f4 -[UITouchesEvent _addGestureRecognizersForView:toTouch:currentTouchMap:newTouchMap:] + 912
7 UIKit 0x18914977c -[UITouchesEvent _addTouch:forDelayedDelivery:] + 624
8 UIKit 0x1891494c0 _AddTouchToEvent + 196
9 UIKit 0x1893bdc80 _UIApplicationHandleEventFromQueueEvent + 14236
10 UIKit 0x18911b488 _UIApplicationHandleEventQueue + 1716
11 CoreFoundation 0x184657f8c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
in ios8 set
allowsBackForwardNavigationGestures = YES;
then set
allowsBackForwardNavigationGestures = NO;
The app will crash when you touched WKWebView

Can't Determine Reason for Crash from Xcode Crash Log

I had a user running my app on his iPhone 5. He performed a backup with iTunes. Bought a new iPhone 6S and restored from his iTunes backup.
When he launches my app it immediately crashes during launch. I got the crash logs from him, but there is no error message. It's crashing during the auto-generated -applicationDocumentsDirectory function in my AppDelegate.
- (NSURL *)applicationDocumentsDirectory
{
return [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
}
Is there any way for me to determine what actually went wrong to see if it's something I can fix?
Incident Identifier: 3A0D56CA-EEAF-4F5A-8D16-D182E61034D5
CrashReporter Key: 9f4ce42b70e98d925f135c618394817f9451767b
Hardware Model: iPhone8,1
Process: MyApp [1198]
Path: /private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX/MyApp.app/MyApp
Identifier: com.inadaydevelopment.myapp
Version: 1.0.1 (1.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-10-02 14:30:25.25 -0700
Launch Time: 2015-10-02 14:30:25.25 -0700
OS Version: iOS 9.0.1 (13A405)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000019950b1e0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001995d4f0c pthread_kill + 112
2 libsystem_c.dylib 0x000000019947eb78 abort + 140
3 MyApp 0x000000010001ef7c -[AppDelegate applicationDocumentsDirectory] (AppDelegate.m:517)
4 MyApp 0x000000010001eae8 -[AppDelegate managedObjectContext] (AppDelegate.m:430)
5 MyApp 0x000000010002d004 -[BaseViewController awakeFromNib] (BaseViewController.m:54)
6 UIKit 0x00000001890e6058 -[UINib instantiateWithOwner:options:] + 2188
7 UIKit 0x0000000189324ea0 -[UIStoryboard instantiateViewControllerWithIdentifier:] + 196
8 UIKit 0x0000000189325000 -[UIStoryboard instantiateInitialViewController] + 68
9 UIKit 0x0000000188edd178 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 108
10 UIKit 0x0000000188caee40 -[UIApplication _loadMainInterfaceFile] + 264
11 UIKit 0x0000000188edc068 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1316
12 UIKit 0x0000000188ed9300 -[UIApplication workspaceDidEndTransaction:] + 168
13 FrontBoardServices 0x000000018d7737ec -[FBSSerialQueue _performNext] + 184
14 FrontBoardServices 0x000000018d773b6c -[FBSSerialQueue _performNextFromRunLoopSource] + 56
15 CoreFoundation 0x000000018369c5a4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
16 CoreFoundation 0x000000018369c038 __CFRunLoopDoSources0 + 540
17 CoreFoundation 0x0000000183699d38 __CFRunLoopRun + 724
18 CoreFoundation 0x00000001835c8dc0 CFRunLoopRunSpecific + 384
19 UIKit 0x0000000188ca80c8 -[UIApplication _run] + 460
20 UIKit 0x0000000188ca2f60 UIApplicationMain + 204
21 MyApp 0x000000010001bdd0 main (main.m:16)
22 libdyld.dylib 0x00000001993ee8b8 start + 4
Crashes without any useful stacktrace often happen when a message is sent to a deallocated instance. I struggled with this a few weeks ago when messing around with a UIViewController category.
Of course, you are right, a message sent to nil doesn't do no harm. A message sent to a deallocated instance of sth on the other hand leads to a crash.
Try turning ZombieObjects on, then you will get a log when this occurs, which can help you find the bug.

RoboVM app crashes on ptr.get()

Is there some kind of magic required to get ptr.get() to work? For some reason the following code always crashes my app:
AudioStreamBasicDescription asbd = new AudioStreamBasicDescription(mSampleRate, mFormatID, mFormatFlags, mBytesPerPacket, mFramesPerPacket, mBytesPerFrame, mChannelsPerFrame, mBitsPerChannel, 0);
AudioFilePtr outAudioFile = new AudioFilePtr();
File f = File.createTempFile("ptt", ".caf");
AudioFileError afe = AudioFile.createWithURL(new NSURL(f), 1667327590, asbd, 1, outAudioFile);
System.out.println(afe.name());
System.out.println(outAudioFile.get());
It successfully returns from AudioFile.createWithURL with no errors (error code: No), but crashes as soon as I try to get the java instance. I'm also experiencing the same type of crash in another section of code where I instantiate an AudioQueuePtr as queueptr, pass it in to AudioQueue.newInput and try to call queueptr.get(). Is there something I'm missing here?
There's no stack trace in java, but here's the XCode Organizer Device Log:
Incident Identifier: 2EEFF4F0-9031-4798-80E7-69F55BB70576
CrashReporter Key: 08d7c27d21cb15553295bbae1b2aa2040e94b517
Hardware Model: iPhone3,1
Process: iOS_RVM_NN [1972]
Path: /var/mobile/Applications/B2571332-7C2F-4A5A-8932-8BF5EC94EE33/iOS_RVM_NN.app/iOS_RVM_NN
Identifier: iOS_RVM_NN
Version: 1 (1.0)
Code Type: ARM (Native)
Parent Process: debugserver [1971]
Date/Time: 2014-12-02 11:22:50.710 -0500
OS Version: iOS 7.1.2 (11D257)
Report Version: 104
Exception Type: EXC_CRASH (SIGSEGV)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x39838a58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39838854 mach_msg + 44
2 CoreFoundation 0x2eaa2846 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2eaa0fb2 __CFRunLoopRun + 850
4 CoreFoundation 0x2ea0beba CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2ea0bc9e CFRunLoopRunInMode + 102
6 GraphicsServices 0x3391165e GSEventRunModal + 134
7 UIKit 0x31358148 UIApplicationMain + 1132
8 iOS_RVM_NN 0x007b024e 0x8c000 + 7488078
9 iOS_RVM_NN 0x007af7e2 0x8c000 + 7485410
10 iOS_RVM_NN 0x007af822 0x8c000 + 7485474
11 iOS_RVM_NN 0x00344afe 0x8c000 + 2853630
12 iOS_RVM_NN 0x00953ca0 0x8c000 + 9206944
13 iOS_RVM_NN 0x0094cbfa 0x8c000 + 9178106
14 iOS_RVM_NN 0x0094e876 0x8c000 + 9185398
15 iOS_RVM_NN 0x0094e8d0 0x8c000 + 9185488
16 iOS_RVM_NN 0x00948ce6 0x8c000 + 9161958
17 iOS_RVM_NN 0x009417ae 0x8c000 + 9131950
18 iOS_RVM_NN 0x00212f84 0x8c000 + 1601412
Turns out this was a bug in the RoboVM bindings. Should be fixed in future releases. View the bug report here: https://github.com/robovm/robovm/issues/627
Also, I posted a full working example here: RoboVM implementation of recording demo using AudioQueue results in "No #Marshaler found" error

How i can find error iTunes connect

I am development one program with Cordova 2.1.0 for iOS, bur when this app have been reviewed Apple found that your app crashed on iPhone 5 and iPad (3rd Generation) running iOS 6.0.1, which is not in compliance with the App Store Review Guidelines.
The crash is this, but i don't know how find the error in this crash and how solucionated the crash
Incident Identifier: D118AC06-AE7A-45FC-B006-480445F1AEE7
CrashReporter Key: 61fff04272e67e35a7d37d24f9e047e4b111fe0c
Hardware Model: xxx
Process: Coto [4429]
Path: /var/mobile/Applications/CE1C6A84-01B4-4324-B2E7-60F28C05B03A/Coto.app/Coto
Identifier: Coto
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-12-11 16:43:37.661 -0800
OS Version: iOS 6.0.1 (10A523)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
(0x3427c29e 0x3af5e97a 0x3427fe02 0x3427e52c 0x341d5f64 0x3506c 0x8784 0x39fab588 0x39febd6c 0x39fe7ae0 0x3a0291c4 0x8454 0x39fecacc 0x39fec656 0x39fe483e 0x39f8cc34 0x39f8c6c8 0x39f8c116 0x3770859e 0x377081ce 0x3425116e 0x34251112 0x3424ff94 0x341c2eb8 0x341c2d44 0x39fe3478 0x39fe02f4 0x8092 0x806c)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x331a6350 __pthread_kill + 8
1 libsystem_c.dylib 0x3aefd11e pthread_kill + 54
2 libsystem_c.dylib 0x3af3996e abort + 90
3 libc++abi.dylib 0x39106d4a abort_message + 70
4 libc++abi.dylib 0x39103ff4 default_terminate() + 20
5 libobjc.A.dylib 0x3af5ea74 _objc_terminate() + 144
6 libc++abi.dylib 0x39104078 safe_handler_caller(void (*)()) + 76
7 libc++abi.dylib 0x39104110 std::terminate() + 16
8 libc++abi.dylib 0x39105594 __cxa_rethrow + 84
9 libobjc.A.dylib 0x3af5e9cc objc_exception_rethrow + 8
10 CoreFoundation 0x341c2f1c CFRunLoopRunSpecific + 452
11 CoreFoundation 0x341c2d44 CFRunLoopRunInMode + 100
12 UIKit 0x39fe3478 -[UIApplication _run] + 664
13 UIKit 0x39fe02f4 UIApplicationMain + 1116
14 Coto 0x00008092 0x6000 + 8338
15 Coto 0x0000806c 0x6000 + 8300
Thread 1:
0 libsystem_kernel.dylib 0x331a6d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3aed4cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3aed4a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3aed48a0 start_wqthread + 4

Resources