I'm using a UIWebview to play YouTube video on my iOS app, after iOS 7.1 release, I got lots of following crash report:
Exception Type: EXC_CRASH (SIGSEGV)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 1
Thread 0:
0 libobjc.A.dylib 0x393dd637 objc_msgSend + 23
1 Foundation 0x2f563d57 +[NSConcreteNotification newTempNotificationWithName:object:userInfo:] + 119
2 Foundation 0x2f563ca9 -[NSNotificationCenter postNotificationName:object:userInfo:] + 45
3 Foundation 0x2f5685c3 -[NSNotificationCenter postNotificationName:object:] + 27
4 MediaPlayer 0x2feb17b9 __53-[MPAVItem _playerItemNewAccessLogEntryNotification:]_block_invoke + 69
5 libdispatch.dylib 0x398bcd51 _dispatch_call_block_and_release + 9
6 libdispatch.dylib 0x398bcd3d _dispatch_client_callout + 21
7 libdispatch.dylib 0x398bf6bf _dispatch_main_queue_callback_4CF + 275
8 CoreFoundation 0x2ec0d675 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 5
9 CoreFoundation 0x2ec0bf41 __CFRunLoopRun + 1305
10 CoreFoundation 0x2eb767a5 CFRunLoopRunSpecific + 521
11 CoreFoundation 0x2eb76587 CFRunLoopRunInMode + 103
12 GraphicsServices 0x33ad36cf GSEventRunModal + 135
13 UIKit 0x314d588d UIApplicationMain + 1133
14 myApp 0x000eb679 0xe7000 + 18041
15 myApp 0x000eb5c4 0xe7000 + 17860
Thread 1 Crashed:
0 libsystem_kernel.dylib 0x39975804 kevent64 + 24
1 libdispatch.dylib 0x398c4051 _dispatch_mgr_invoke + 229
2 libdispatch.dylib 0x398be2df _dispatch_mgr_thread + 35
Maybe the OS is trying to post a notification to an object that doesn't exist anymore. I didn't use MBAVItem directly, so it should be called while UIWebview is playing YouTube video. According iTunes connect, this crash just happened on iOS 7.1 (at least for now) and become the most frequent crash.
I used to create new YouTube HTML player for each song, and this crash happens after playing 5 - 10 songs.
After doing some experiments, this crash can be avoided by loading different songs with same YouTube HTML player (don't create a new one, just call loadVideoById()), hope this answer can help someone =)
My current main Application is randomly crashing on iOS 6 devices when i compile with iOS 7. It is system deep i think and don't know how to fix this little nasty bug. In my App there are plenty of iOS 6 user with this crash and it's driving me nuts.
Thread : Fatal Exception: NSGenericException
0 CoreFoundation 0x32b902a3 __exceptionPreprocess + 162
1 libobjc.A.dylib 0x3a8b897f objc_exception_throw + 30
2 CoreFoundation 0x32b8fd85 -[NSException name]
3 UIKit 0x34d22f75 __54+[_UIAppearance _recordersExcludingSource:withWindow:]_block_invoke_0 + 332
4 CoreFoundation 0x32b8d62f __NSDictionaryEnumerate + 714
5 UIKit 0x34d22e1d +[_UIAppearance _recordersExcludingSource:withWindow:] + 136
6 UIKit 0x34e013a5 UIViewServiceCurrentAppearanceSerializedRepresentations + 60
7 UIKit 0x34d8f7c7 -[_UIRemoteViewControllerConnectionRequest _sendServiceViewControllerRequest] + 206
8 UIKit 0x34d8f65d __block_global_5 + 264
9 libdispatch.dylib 0x3acd39f7 _dispatch_barrier_sync_f_invoke + 30
10 UIKit 0x34d8f551 __76-[_UIRemoteViewControllerConnectionRequest _connectToViewControllerOperator]_block_invoke_0 + 92
11 UIKit 0x34d98bc5 __block_global_0 + 32
12 libdispatch.dylib 0x3acd53f7 dispatch_once_f$VARIANT$mp + 42
13 UIKit 0x34d98ba1 __73-[_UIViewServiceSessionEndpoint connectToDeputyOfType:connectionHandler:]_block_invoke_0 + 88
14 libdispatch.dylib 0x3acd011f _dispatch_call_block_and_release + 10
15 libdispatch.dylib 0x3acd3ecf _dispatch_queue_drain$VARIANT$mp + 142
16 libdispatch.dylib 0x3acd3dc1 _dispatch_queue_invoke$VARIANT$mp + 40
17 libdispatch.dylib 0x3acd491d _dispatch_root_queue_drain + 184
18 libdispatch.dylib 0x3acd4ac1 _dispatch_worker_thread2 + 84
19 libsystem_c.dylib 0x3ad04a11 _pthread_wqthread + 360
20 libsystem_c.dylib 0x3ad048a4 start_wqthread + 8
Add a Exception breakpoint you will get some more info about your crash.. for adding a Exception Breakpoint have a look on this https://developer.apple.com/library/ios/recipes/xcode_help-breakpoint_navigator/articles/adding_an_exception_breakpoint.html
Add breakpoints step into every line of code to find the bug , Or maybe this would help you read crash reports. http://www.raywenderlich.com/23704/demystifying-ios-application-crash-logs
I need some help with this crash log. I've seen other posts about this error having to do with the watchdog timing out but I have not been able to figure this out.
Exception type: 02
exception code: 08badf00d
failed to launch in time
Elapsed total CPU time (seconds): 26.920 (user 26.920, system 0.000), 67% CPU Elapsed application CPU time (seconds): 0.850, 2% CPU
Unknown thread crashed with unknown flavor: 5, state_count: 1
MORE details:
Thread0name: Dispatchqueue:com.apple.main-thread Thread 0:
0 libsystem_kernel.dylib 1 libsystem_c.dylib
2 CoreData
3 CoreData performFetch:] + 334
4 MyPaleo
5 UIKit
loadViewIfRequired] + 360
6 UIKit
contentScrollView] + 22
7 UIKit
_computeAndApplyScrollContentInsetDeltaForViewController:] + 24
8 UIKit 0x3346ef70-[UINavigationController _layoutViewController:] + 28
9 UIKit 0x3346ee94-[UINavigationController _updateScrollViewFromViewController:toViewController:] + 268
10 UIKit 0x3346e5d4-[UINavigationController _startTransition:fromViewController:toViewController:] + 60
11 UIKit 0x3346e4bc-[UINavigationController _startDeferredTransitionIfNeeded:] + 320
0x399950fc__psynch_mutexwait+24 0x398de124 pthread_mutex_lock + 388 0x31383e8c -[_PFLock lock] + 20 0x31465752 -[NSFetchedResultsController
0x0001a5d2 0x2000 + 99794 0x3341a590 -[UIViewController
0x3346f146 -[UIViewController 0x3346f08c -[UINavigationController
12 UIKit
layoutSubviews] + 176
13 UIKit
layoutSublayersOfLayer:] + 254
14 QuartzCore
15 QuartzCore
CA::Layer::layout_if_needed(CA::Transaction*) + 456
16 QuartzCore 0x331d77ca-[CALayerlayoutIfNeeded]+138 17 UIKit 0x334a80e4-[UIViewController window:setupWithInterfaceOrientation:] + 204
18 UIKit 0x334a72d0-[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3616
0x3343f4e4-[UILayoutContainerView 0x333fe7fe-[UIView(CALayerDelegate)
0x331a8d86-[CALayerlayoutSublayers]+210 0x331a8924
19 UIKit 0x334a64a2-[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 42 20 UIKit 0x334a642c-[UIWindow _setRotatableViewOrientation:duration:force:] + 64
21 UIKit 0x335dc304__57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke_0 + 100
22 UIKit 0x3346468e-[UIWindow _updateToInterfaceOrientation:duration:force:] + 214
23 UIKit 0x334643d0-[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 688
24 UIKit 0x33463d36-[UIViewController _tryBecomeRootViewControllerInWindow:] + 154
25 UIKit 0x3345aea6-[UIWindow addRootViewControllerViewIfPossible] + 366
26 UIKit
360
27 UIKit
28 UIKit
_callInitializationDelegatesForURL:payload:suspended:] + 1662
29 UIKit 0x33453846-[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
30 UIKit
handleEvent:withNewEvent:] + 1000
31 UIKit
32 UIKit
33 GraphicsServices
34 GraphicsServices
35 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
36 CoreFoundation 37 CoreFoundation 38 CoreFoundation 39 CoreFoundation 40 UIKit
41 UIKit
42 MyPaleo
43 libdyld.dylib
0x315c8112 __CFRunLoopDoSource1 + 134 0x315c6f94 __CFRunLoopRun + 1380 0x31539eb8 CFRunLoopRunSpecific + 352 0x31539d44 CFRunLoopRunInMode + 100 0x33452480 -[UIApplication _run] + 664 0x3344f2fc UIApplicationMain + 1116 0x0001eb16 0x2000 + 117526
0x398ceb1c start + 0
Ate Bad Food (0x8badf00d) is when the Watch Dog kills your app because its taking too long to launch. Your application:didFinishLaunchingWithOptions: method must complete in less then 5 second or the Watch Dog will bite you. Note: when you run in the debugger the watch dog is disabled. You must test a release build on a device before submitting to the App Store. To fix this error you need to run you App on a device in Instruments using a Time Profiler.
You should to watch WWDC 2012 Session 225 Up and Running - Making a great impression with every launch. It demos exactly how to fix this error.
https://developer.apple.com/videos/wwdc/2012/?id=225
What I did:
I was refactoring when xcode seems was trying to download something 10.8x document or what. How do I resume what ever xcode hasn't download?
I already clean projects, and clean snapshot, delete snapshot directory.
This one project make xcode hang when trying to refactor. The other projects do not have this problem.
If I want to reinstall xcode do I have to redownload it?
This is the error message
Process: Xcode [8490]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.6 (2066)
Build Info: IDEApplication-2066000000000000~3
App Item ID: 497799835
App External ID: 13668903
Code Type: X86-64 (Native)
Parent Process: launchd [144]
User ID: 501
Date/Time: 2013-02-07 13:16:52.813 +0700
OS Version: Mac OS X 10.8.2 (12C60)
Report Version: 10
Interval Since Last Report: 376575 sec
Crashes Since Last Report: 8
Per-App Interval Since Last Report: 6013 sec
Per-App Crashes Since Last Report: 7
Anonymous UUID: 1CBC3344-3A0F-4006-F51E-8FF9902D7CC5
Crashed Thread: 8 Dispatch queue: Refactoring parser lock
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000040
VM Regions Near 0x40:
-->
__TEXT 000000010fb35000-000000010fb38000 [ 12K] r-x/rwx SM=COW /Applications/Xcode.app/Contents/MacOS/Xcode
Application Specific Information:
ProductBuildVersion: 4H127
objc[8490]: garbage collection is ON
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff96df3686 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff96df2c42 mach_msg + 70
2 com.apple.CoreFoundation 0x00007fff92683803 __CFRunLoopServiceMachPort + 195
3 com.apple.CoreFoundation 0x00007fff92688ee6 __CFRunLoopRun + 1078
4 com.apple.CoreFoundation 0x00007fff926886b2 CFRunLoopRunSpecific + 290
5 com.apple.HIToolbox 0x00007fff90cac0a4 RunCurrentEventLoopInMode + 209
6 com.apple.HIToolbox 0x00007fff90cabe42 ReceiveNextEventCommon + 356
7 com.apple.HIToolbox 0x00007fff90cabcd3 BlockUntilNextEventMatchingListInMode + 62
8 com.apple.AppKit 0x00007fff9573c613 _DPSNextEvent + 685
9 com.apple.AppKit 0x00007fff9573bed2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
10 com.apple.AppKit 0x00007fff95733283 -[NSApplication run] + 517
11 com.apple.AppKit 0x00007fff956d7cb6 NSApplicationMain + 869
12 com.apple.dt.Xcode 0x000000010fb36b6f 0x10fb35000 + 7023
13 com.apple.dt.Xcode 0x000000010fb36b00 0x10fb35000 + 6912
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff96df5d16 kevent + 10
1 libdispatch.dylib 0x00007fff8d5d0dea _dispatch_mgr_invoke + 883
2 libdispatch.dylib 0x00007fff8d5d09ee _dispatch_mgr_thread + 54
Thread 2:
0 libsystem_kernel.dylib 0x00007fff96df56d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8b0aceec _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8b0accb3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8b097171 start_wqthread + 13
Thread 3:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fff96df3686 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff96df2c42 mach_msg + 70
2 com.apple.CoreFoundation 0x00007fff92683803 __CFRunLoopServiceMachPort + 195
3 com.apple.CoreFoundation 0x00007fff92688ee6 __CFRunLoopRun + 1078
4 com.apple.CoreFoundation 0x00007fff926886b2 CFRunLoopRunSpecific + 290
5 com.apple.Foundation 0x00007fff8d175586 +[NSURLConnection(Loader) _resourceLoadLoop:] + 356
6 com.apple.Foundation 0x00007fff8d1d3612 __NSThread__main__ + 1345
7 libsystem_c.dylib 0x00007fff8b0aa742 _pthread_start + 327
8 libsystem_c.dylib 0x00007fff8b097181 thread_start + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff96df3686 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff96df2c42 mach_msg + 70
2 com.apple.CoreFoundation 0x00007fff92683803 __CFRunLoopServiceMachPort + 195
3 com.apple.CoreFoundation 0x00007fff92688ee6 __CFRunLoopRun + 1078
4 com.apple.CoreFoundation 0x00007fff926886b2 CFRunLoopRunSpecific + 290
5 com.apple.DTDeviceKit 0x0000000117836593 -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 229
6 com.apple.Foundation 0x00007fff8d1d3612 __NSThread__main__ + 1345
7 libsystem_c.dylib 0x00007fff8b0aa742 _pthread_start + 327
8 libsystem_c.dylib 0x00007fff8b097181 thread_start + 13
Thread 5:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fff96df5322 __select + 10
1 com.apple.CoreFoundation 0x00007fff926c84e6 __CFSocketManager + 1302
2 libsystem_c.dylib 0x00007fff8b0aa742 _pthread_start + 327
3 libsystem_c.dylib 0x00007fff8b097181 thread_start + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff96df56d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8b0aceec _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8b0accb3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8b097171 start_wqthread + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff96df56d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8b0aceec _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8b0accb3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8b097171 start_wqthread + 13
Thread 8 Crashed:: Dispatch queue: Refactoring parser lock
0 libsystem_c.dylib 0x00007fff8b098650 strlen + 16
1 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224bf501 Devkit::Cpp::tmpcat(char const*) + 33
2 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224d8c05 Devkit::Cpp::convertTokensToString(Devkit::Token*, Devkit::Token*, Devkit::TokenBuffer*, Devkit::TokenBuffer*, bool) + 275
3 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224d515b Devkit::Cpp::expand(Devkit::Token*, Devkit::Macro*, Devkit::TokenBufferStream*) + 849
4 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224cb105 Devkit::Cpp::expandMacro2Buffer(Devkit::Token*, Devkit::Macro*, Devkit::TokenBufferStream*) + 291
5 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224caf5b Devkit::Cpp::macro_expand(Devkit::Token*, Devkit::Macro*) + 33
6 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c314d Devkit::Cpp::nextToken0() + 243
7 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c3044 Devkit::Cpp::nextToken() + 14
8 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c2fd9 Devkit::ObjcParse::nextToken() + 19
9 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224d2dce Devkit::ObjcParse::statement() + 662
10 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224d79c9 Devkit::ObjcParse::selectionStatement() + 301
11 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224d2aeb Devkit::ObjcParse::statementList(objc_object*) + 37
12 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224d28ab Devkit::ObjcParse::compoundStatement(objc_object*) + 131
13 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224f55fa Devkit::ObjcParse::blockLiteralExpression() + 312
14 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c7cdb Devkit::ObjcParse::postfix() + 397
15 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c7634 Devkit::ObjcParse::multiplicative() + 22
16 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c75c6 Devkit::ObjcParse::additive() + 22
17 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c7558 Devkit::ObjcParse::shift() + 22
18 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c74ea Devkit::ObjcParse::relational() + 22
19 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c747c Devkit::ObjcParse::equality() + 22
20 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c740e Devkit::ObjcParse::bitwiseAnd() + 22
21 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c73a2 Devkit::ObjcParse::bitwiseExclusiveOr() + 22
22 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c7336 Devkit::ObjcParse::bitwiseInclusiveOr() + 22
23 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c72ca Devkit::ObjcParse::logicalAnd() + 22
24 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c725e Devkit::ObjcParse::logicalOr() + 22
25 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c71d2 Devkit::ObjcParse::conditional() + 18
26 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224cadde Devkit::ObjcParse::assignment() + 18
27 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224e21ab Devkit::ObjcParse::objcKeywordList(objc_object*) + 93
28 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224e1f30 Devkit::ObjcParse::objcMessageExpression() + 244
29 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c7cdb Devkit::ObjcParse::postfix() + 397
30 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c7634 Devkit::ObjcParse::multiplicative() + 22
31 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c75c6 Devkit::ObjcParse::additive() + 22
32 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c7558 Devkit::ObjcParse::shift() + 22
33 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c74ea Devkit::ObjcParse::relational() + 22
34 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c747c Devkit::ObjcParse::equality() + 22
35 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c740e Devkit::ObjcParse::bitwiseAnd() + 22
36 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c73a2 Devkit::ObjcParse::bitwiseExclusiveOr() + 22
37 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c7336 Devkit::ObjcParse::bitwiseInclusiveOr() + 22
38 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c72ca Devkit::ObjcParse::logicalAnd() + 22
39 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c725e Devkit::ObjcParse::logicalOr() + 22
40 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224c71d2 Devkit::ObjcParse::conditional() + 18
41 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224cadde Devkit::ObjcParse::assignment() + 18
42 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224cad83 Devkit::ObjcParse::expression() + 65
43 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224d7ced Devkit::ObjcParse::expressionStatement() + 41
44 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224d2b0f Devkit::ObjcParse::statementList(objc_object*) + 73
45 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224d28ab Devkit::ObjcParse::compoundStatement(objc_object*) + 131
46 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224e18d0 Devkit::ObjcParse::objcMethodDefinition() + 352
47 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224cbec0 Devkit::ObjcParse::externalDeclaration() + 208
48 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224cbdc8 Devkit::ObjcParse::translationUnit() + 92
49 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224ba940 -[DevkitEntireProject parseOneCompilationUnit:] + 2633
50 com.apple.dt.IDE.IDEDevkitRefactoring 0x00000001224b9ea3 -[DevkitParser parseOneCompilationUnit:buildSettings:] + 170
51 com.apple.dt.IDE.IDEDevkitRefactoring 0x0000000122524ab6 __76-[DevkitRefactoringTransformation parseCompilationUnit:buildSettings:error:]_block_invoke + 84
ReadOnly portion of Libraries: Total=289.4M resident=167.0M(58%) swapped_out_or_unallocated=122.4M(42%)
Writable regions: Total=17.4G written=90.9M(1%) resident=270.5M(2%) swapped_out=584K(0%) unallocated=17.1G(98%)
REGION TYPE VIRTUAL
=========== =======
ATS (font support) 31.9M
ATS (font support) (reserved) 4K reserved VM address space (unallocated)
CG backing stores 16.2M
CG image 184K
CG raster data 420K
CG shared images 1248K
CoreAnimation 320K
CoreImage 24K
CoreServices 3776K
IOKit 11.6M
IOKit (reserved) 512K reserved VM address space (unallocated)
JS JIT generated code 128.0M
JS JIT generated code (reserved) 896.0M reserved VM address space (unallocated)
JS VM register file 4096K
JS garbage collector 644K
MALLOC 503.5M
MALLOC (reserved) 15.8G reserved VM address space (unallocated)
MALLOC guard page 112K
Memory tag=240 4K
Memory tag=242 12K
Memory tag=243 4K
Memory tag=249 156K
Memory tag=251 64K
OpenCL 60K
OpenGL GLSL 1024K
SQLite page cache 18.0M
STACK GUARD 56.1M
Stack 16.7M
VM_ALLOCATE 17.9M
__DATA 30.3M
__IMAGE 528K
__LINKEDIT 70.3M
__TEXT 219.2M
__UNICODE 544K
mapped file 113.8M
shared memory 18.7M
=========== =======
TOTAL 17.9G
TOTAL, minus reserved VM space 1.2G
Model: iMac11,2, BootROM IM112.0057.B01, 2 processors, Intel Core i3, 3.06 GHz, 12 GB, SMC 1.64f5
Graphics: ATI Radeon HD 4670, ATI Radeon HD 4670, PCIe, 256 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x029E, 0x434D5341344758334D314131333333433920
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x029E, 0x434D5341344758334D314131333333433920
Memory Module: BANK 0/DIMM1, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353637334648302D4348392020
Memory Module: BANK 1/DIMM1, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353637334648302D4348392020
AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x8F), Atheros 9280: 4.0.70.23-P2P
Bluetooth: Version 4.0.9f33 10885, 2 service, 18 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Network Service: AirPort, AirPort, en1
Serial ATA Device: WDC WD5000AAKS-40V6A0, 500.11 GB
Serial ATA Device: HL-DT-STDVDRW GA32N
USB Device: hub_device, 0x0424 (SMSC), 0x2514, 0xfd100000 / 2
USB Device: Expansion, 0x0bc2 (Seagate LLC), 0x2312, 0xfd130000 / 5
USB Device: Built-in iSight, apple_vendor_id, 0x8502, 0xfd110000 / 4
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd120000 / 3
USB Device: hub_device, 0x0424 (SMSC), 0x2514, 0xfa100000 / 2
USB Device: USB-compliant keyboard, 0x0518 (EzKEY Corp.), 0x0001, 0xfa130000 / 5
USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403, 0xfa120000 / 4
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000 / 3
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8215, 0xfa111000 / 6
Other people with similar problem:
http://osdir.com/ml/general/2013-02/msg06015.html
Holy Cow! This was hard to track down. I was having the same problem, but I managed to track it down (at least for me).
The crash occurs when you Refactor > Rename… and your source has a macro which includes a # literal construct.
Crash Example 1:
STAssertEqualObjects([currencyFormatter numberFromString:#" $100. "], #100.00, nil);
STAssertEqualObjects([currencyFormatter numberFromString:#"100"], #100.00, nil);
Fixed with:
NSNumber *x100_00 = #100.00;
STAssertEqualObjects([currencyFormatter numberFromString:#" $100. "],x100_00, nil);
STAssertEqualObjects([currencyFormatter numberFromString:#"100"], x100_00, nil);
Crash Example 2:
STAssertEqualObjects(isActive, #YES, nil);
Fixed with: success
NSNumber *xYES = #YES;
STAssertEqualObjects(isActive, xYES, nil);
Crash Example 3:
NSParameterAssert(([#[#"Option 1", #"Option 2"] containsObject:shareType]));
Fixed with:
- (NSArray *)GMS_shareTypes
{
return #[#"Option 1", #"Option 2"];
}
…
NSParameterAssert([self.GMS_shareTypes containsObject:shareType]);
As others have said, I think realistically you should try to track down exactly which part of code causes the refactor to fail. Be methodical, and try to establish where the issue lies. At that point, you can begin working out what caused it.
When I've had refactoring issues in the past, a full scrub has sorted it out (clearing DerivedData may also help if you've not done that yet).
Difficult to solve but here is some clues from the crash report:
Seems that you have a macro that expands to something that is not correctly parsed. I mean it generates a wrong token (infinite length for example)
Looks it is somewhere after complex bitwise logics and shift statements
maybe inside a block.
Could you check your macro:
remove it
or replace by inline
or sometime just copy paste it or rewrite it (wrong invisible character).
That may fix your pb.
Tell me.
I only replace the video files in my existing code, but if i replace all the video files my application will crash in iphone. it is an universal application but Ipad support all the new video files and crash on iphone. the following warning occur:
[NSCFType setLength:]: unrecognized selector sent to instance
0x19d790 2012-02-29 15:13:49.932[584:307] * Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType
setLength:]: unrecognized selector sent to instance 0x19d790'
* Call stack at first throw: ( 0 CoreFoundation 0x3759dc7b __exceptionPreprocess + 114 1 libobjc.A.dylib
0x32d9bee8 objc_exception_throw + 40 2 CoreFoundation
0x3759f3e3 -[NSObject(NSObject) doesNotRecognizeSelector:] + 98 3
CoreFoundation 0x37544467 __forwarding + 506
4 CoreFoundation 0x37544220
_CF_forwarding_prep_0 + 48 5 Visionaries 0x00005179 -[Visionaries_ViewController
connection:didReceiveResponse:] + 56 6 Foundation
0x35183cd5 -[NSURLConnection(NSURLConnectionReallyInternal)
sendDidReceiveResponse:] + 92 7 Foundation
0x35183c3b _NSURLConnectionDidReceiveResponse + 86 8 CFNetwork
0x302941b4
_ZN19URLConnectionClient29_clientSendDidReceiveResponseEP14_CFURLResponsePNS_26ClientConnectionEventQueueE
+ 64 9 CFNetwork 0x30284bc8 _ZN19URLConnectionClient26ClientConnectionEventQueue33processAllEventsAndConsumePayloadEP20XConnectionEventInfoI12XClientEvent18XClientEventParamsEl
+ 332 10 CFNetwork 0x30284d84 _ZN19URLConnectionClient26ClientConnectionEventQueue33processAllEventsAndConsumePayloadEP20XConnectionEventInfoI12XClientEvent18XClientEventParamsEl
+ 776 11 CFNetwork 0x30284984 _ZN19URLConnectionClient13processEventsEv + 100 12 CFNetwork 0x3028484c _ZN17MultiplexerSource7performEv + 192 13 CFNetwork
0x30284788 _ZN17MultiplexerSource8_performEPv + 12 14 CoreFoundation
0x375518d1 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
+ 14 15 CoreFoundation 0x37521ecd __CFRunLoopDoSources0 + 384 16 CoreFoundation 0x375216f9 __CFRunLoopRun + 264 17 CoreFoundation
0x3752150b CFRunLoopRunSpecific + 226 18 CoreFoundation
0x37521419 CFRunLoopRunInMode + 60 19 GraphicsServices
0x33e76d24 GSEventRunModal + 196 20 UIKit
0x3591d57c -[UIApplication _run] + 588 21 UIKit
0x3591a558 UIApplicationMain + 972 22 Visionaries
0x00002391 main + 80 23 Visionaries
0x0000233c start + 40 ) terminate called after throwing an instance of
'NSException'
Somebody has an idea, please help.
By the crash log we see that, inside -[Visionaries_ViewController connection:didReceiveResponse:], you are calling the method setLength: on an object that does not have that method.
Can be a memory or logic problem. Please provide more info.