Error: 'Attempted to perform another operation with a fetch already in progress', Only in iOS 6 - objective-c

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempted to perform another operation with a fetch already in progress'
First time my application working fine..but then after every time my app is crashed due to the above error and its only happened in iOS6 version devices. but my app is working fine in iOS7 or upper version devices.
The below is stack trace:
(
0 CoreFoundation 0x32e5b2bb <redacted> + 186
1 libobjc.A.dylib 0x3aadb97f objc_exception_throw + 30
2 CoreData 0x32bf5207 <redacted> + 94
3 CoreData 0x32bf591d <redacted> + 92
4 CoreData 0x32c06387 <redacted> + 58
5 CoreData 0x32c04d19 <redacted> + 624
6 CoreData 0x32bfe089 <redacted> + 312
7 CoreData 0x32bfd73f <redacted> + 682
8 CoreData 0x32bfd205 <redacted> + 468
9 CoreData 0x32bfc61d <redacted> + 1644
10 CoreData 0x32bfaf17 <redacted> + 646
11 WhatDidIWear 0x000b1875 -[WDIWDatabase(Years) years] + 848
12 WhatDidIWear 0x000a9b2d -[WDIWCalendar years] + 56
13 WhatDidIWear 0x00095c8f -[YearsViewController initWithNibName:bundle:] + 382
14 WhatDidIWear 0x000945bb -[TemplateViewController initWithDefaultNibName] + 62
15 WhatDidIWear 0x00093567 -[TabBarController yearsVC] + 134
16 WhatDidIWear 0x00093713 -[TabBarController homeViewControllers] + 46
17 WhatDidIWear 0x0008f49b -[TabBarController viewDidLoad] + 510
18 UIKit 0x34cf82d5 <redacted> + 228
19 WhatDidIWear 0x0008e927 -[AppDelegate tabBarController] + 134
20 WhatDidIWear 0x0008de65 -[AppDelegate application:didFinishLaunchingWithOptions:] + 980
21 UIKit 0x34cc3ad9 <redacted> + 252
22 UIKit 0x34cc3663 <redacted> + 1190
23 UIKit 0x34cbb84b <redacted> + 698
24 UIKit 0x34c63c39 <redacted> + 1004
25 UIKit 0x34c636cd <redacted> + 72
26 UIKit 0x34c6311b <redacted> + 6154
27 GraphicsServices 0x369555a3 <redacted> + 590
28 GraphicsServices 0x369551d3 <redacted> + 34
29 CoreFoundation 0x32e30173 <redacted> + 34
30 CoreFoundation 0x32e30117 <redacted> + 138
31 CoreFoundation 0x32e2ef99 <redacted> + 1384
32 CoreFoundation 0x32da1ebd CFRunLoopRunSpecific + 356
33 CoreFoundation 0x32da1d49 CFRunLoopRunInMode + 104
34 UIKit 0x34cba485 <redacted> + 668
35 UIKit 0x34cb7301 UIApplicationMain + 1120
36 WhatDidIWear 0x0008d97f main + 230
37 libdyld.dylib 0x3af12b20 <redacted> + 0
)
I am frustrated now for not solving the above error.
Please give me an idea to solve the above stuff.

Related

Application crash randomly and shows WebKit Legacy issue

My Objective-C application crashes randomly and shows a WebKit Legacy issue there in a stack trace. Can you please identify the problem?
#0. Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x18ecc8150 objc_msgSend + 16
1 WebKitLegacy 0x195fe0808 <redacted> + 132
2 CoreFoundation 0x190256d54 <redacted> + 404
3 CoreFoundation 0x190152d4c _CF_forwarding_prep_0 + 92
4 CoreFoundation 0x190258e80 <redacted> + 144
5 CoreFoundation 0x19014e2c4 <redacted> + 292
6 WebCore 0x194e28be8 <redacted> + 108
7 CoreFoundation 0x19020142c <redacted> + 24
8 CoreFoundation 0x190200d04 <redacted> + 388
9 CoreFoundation 0x1901fe9a8 <redacted> + 744
10 CoreFoundation 0x19012eda4 CFRunLoopRunSpecific + 424
11 UIFoundation 0x19632c134 <redacted> + 1764
12 Foundation 0x190d464cc <redacted> + 340
13 CoreFoundation 0x19020142c <redacted> + 24
14 CoreFoundation 0x190200d04 <redacted> + 388
15 CoreFoundation 0x1901fe9a8 <redacted> + 744
16 CoreFoundation 0x19012eda4 CFRunLoopRunSpecific + 424
17 GraphicsServices 0x191b98074 GSEventRunModal + 100
18 UIKit 0x1963e9058 UIApplicationMain + 208
19 NewsHog 0x1000d71a0 main (main.m:16)
20 libdyld.dylib 0x18f13d59c <redacted> + 4

Tomahawk music player 0.8.4 error message in macOS Sierra

Trying to get Tomahawk music player to work, but i get this error message every minute:
Exception Name: NSInvalidArgumentException
Description: -[SPMediaKeyTap grab]: unrecognized selector sent to instance 0x610000094f00
User Info: (null)
0 CoreFoundation 0x00007fffccc8e52b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffe1366cad objc_exception_throw + 48
2 CoreFoundation 0x00007fffccd0fd34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00007fffccc00bf5 ___forwarding___ + 1061
4 CoreFoundation 0x00007fffccc00748 _CF_forwarding_prep_0 + 120
5 Tomahawk 0x0000000105f2d746 -[SPMediaKeyTap setShouldInterceptMediaKeyEvents:] + 102
6 Tomahawk 0x0000000105f2d8d3 -[SPMediaKeyTap mediaKeyAppListChanged] + 147
7 Tomahawk 0x0000000105f2d9ca -[SPMediaKeyTap appIsNowFrontmost:] + 234
8 Tomahawk 0x0000000105f2d1b0 appSwitched + 48
9 HIToolbox 0x00007fffcc17e0d5 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1708
10 HIToolbox 0x00007fffcc17d346 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 428
11 HIToolbox 0x00007fffcc17d18f SendEventToEventTargetWithOptions + 43
12 HIToolbox 0x00007fffcc20f43e HIToolboxLSNotificationCallbackAllASNsFunc + 571
13 LaunchServices 0x00007fffcddb5715 ___LSScheduleNotificationFunction_block_invoke_2 + 51
14 CoreFoundation 0x00007fffccc243ac __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
15 CoreFoundation 0x00007fffccc05424 __CFRunLoopDoBlocks + 356
16 CoreFoundation 0x00007fffccc04f66 __CFRunLoopRun + 1878
17 CoreFoundation 0x00007fffccc045b4 CFRunLoopRunSpecific + 420
18 HIToolbox 0x00007fffcc1a5f6c RunCurrentEventLoopInMode + 240
19 HIToolbox 0x00007fffcc1a5da1 ReceiveNextEventCommon + 432
20 HIToolbox 0x00007fffcc1a5bd6 _BlockUntilNextEventMatchingListInModeWithFilter + 71
21 AppKit 0x00007fffca89c5f5 _DPSNextEvent + 1093
22 AppKit 0x00007fffcafac8eb -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1637
23 AppKit 0x00007fffca890fbd -[NSApplication run] + 926
24 QtGui 0x0000000109f277b7 _ZN19QEventDispatcherMac13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 515
25 QtCore 0x00000001097a4695 _ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE + 79
26 QtCore 0x00000001097a47f3 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 341
27 QtCore 0x00000001097a7487 _ZN16QCoreApplication4execEv + 199
28 Tomahawk 0x0000000105ebc01f main + 431
29 Tomahawk 0x0000000105ea3d64 start + 52
30 ??? 0x0000000000000002 0x0 + 2
How do i stop the error message from showing?
I don't want the error window to show up every minute. I am far from a computer expert and don't know what is causing it. I have tried to configure Tomahawk music player, but the message won't leave me alone. I have already googled and looked it up, but can't find an answer to my question. I am thankful for replies that can help solve this problem.

Crash Core Plot library

I am using core plot library Release 2.0 downloaded from https://github.com/core-plot/core-plot/releases in MAC application to generate the bar graphs. When i install application on OSX 10.8 and 10.7 application crashes. It works well above 10.8.3. The linker flags is -ObjC and -all_load is already set in build settings.
I am getting below issue in logs. Can any one please look the issue and help me to resolve.
-[NSColorSpaceColor CGColor]: unrecognized selector sent to instance 0x7ff4caa6e0c0
-[NSColorSpaceColor CGColor]: unrecognized selector sent to instance 0x7ff4caa6e0c0
2016-05-10 11:39:17.072 [375:807] (
0 CoreFoundation 0x00007fff8f781d16 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff96a329ea objc_exception_throw + 43
2 CoreFoundation 0x00007fff8f80ccfe -[NSObject doesNotRecognizeSelector:] + 190
3 CoreFoundation 0x00007fff8f76f073 ___forwarding___ + 371
4 CoreFoundation 0x00007fff8f76ee88 _CF_forwarding_prep_0 + 232
5 CorePlot 0x0000000101720cbf +[CPTTextStyle(CPTPlatformSpecificTextStyleExtensions) textStyleWithAttributes:] + 191
6 CorePlot 0x000000010170e3ee -[CPTTextLayer initWithAttributedText:] + 62
7 CorePlot 0x00000001017083b8 -[CPTAxis updateAxisLabelsAtLocations:inRange:useMajorAxisLabels:] + 1880
8 CorePlot 0x00000001017089cc -[CPTAxis relabel] + 700
9 CorePlot 0x000000010170985a -[CPTAxis layoutSublayers] + 42
10 QuartzCore 0x00007fff9378e9aa _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 312
11 QuartzCore 0x00007fff9378deec _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 308
12 QuartzCore 0x00007fff9378dc74 _ZN2CA11Transaction6commitEv + 274
13 QuartzCore 0x00007fff9378d275 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 63
14 CoreFoundation 0x00007fff8f741f37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
15 CoreFoundation 0x00007fff8f741e96 __CFRunLoopDoObservers + 374
16 CoreFoundation 0x00007fff8f7168e2 CFRunLoopRunSpecific + 258
17 HIToolbox 0x00007fff951b6c57 RunCurrentEventLoopInMode + 277
18 HIToolbox 0x00007fff951be33d ReceiveNextEventCommon + 355
19 HIToolbox 0x00007fff951be1ca BlockUntilNextEventMatchingListInMode + 62
20 AppKit 0x00007fff903b73e9 _DPSNextEvent + 659
21 AppKit 0x00007fff903b6cf0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
22 AppKit 0x00007fff903b368d -[NSApplication run] + 456
23 AppKit 0x00007fff90630cfb NSApplicationMain + 860
)

Random iOS 6 crash with iOS 7 SDK

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

Exception type: 02 exception code: 08badf00d failed to launch in time

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