react native ios crash on launch UIKitCore - react-native

we're getting a small number but regular crashes on launch in a production app.
We have Crashlytics and Sentry but i cant see any references to the react code.
Here is a couple of stacktraces
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x2d318 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x2fc24 abort_with_payload_wrapper_internal + 104
2 libsystem_kernel.dylib 0x2fbbc abort_with_payload_wrapper_internal + 30
3 libobjc.A.dylib 0x2d0b4 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 116
4 libobjc.A.dylib 0x2d040 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 30
5 libobjc.A.dylib 0x5acc weak_register_no_lock + 392
6 libobjc.A.dylib 0xa924 objc_storeWeak + 448
7 UIKitCore 0x2a2ee0 -[_UIBoundingPath initWithCoordinateSpace:] + 96
8 UIKitCore 0x613fc4 -[_UIComplexBoundingPath initWithCoordinateSpace:orientation:scale:boundingPathBitmap:] + 112
9 UIKitCore 0x3f11d0 -[_UIScreenComplexBoundingPathUtilities boundingPathForWindow:] + 2836
10 UIKitCore 0x675ddc -[UIWindow _boundingPath] + 204
11 UIKitCore 0x1b1650 -[UIView(UIViewBoundingPathSupportInternal) _effectiveBoundingPathAndBoundingPathView:] + 244
12 UIKitCore 0x4bab4c -[UIView(UIViewBoundingPathSupport) _rectTuckedAgainstBoundingPathEdge:withSize:cornerRadii:minimumPadding:] + 260
13 UIKitCore 0x6b74f8 -[_UISheetLayoutInfo _unsafeInsets] + 160
14 UIKitCore 0x71f18 -[_UISheetLayoutInfo _marginsWhenFloating] + 184
15 UIKitCore 0x3aca4c -[_UISheetLayoutInfo _isEdgeAttached] + 52
16 UIKitCore 0x467ffc -[_UISheetLayoutInfo _reversedIndexOfLastUndimmedDetent] + 84
17 UIKitCore 0x2d713c -[_UISheetLayoutInfo _activeDetentValues] + 348
18 UIKitCore 0x24b990 -[_UISheetLayoutInfo _offsetForCurrentActiveDetent] + 48
19 UIKitCore 0x583b5c -[_UISheetLayoutInfo _frameOfPresentedViewInContainerView] + 100
20 UIKitCore 0x3cad98 -[UISheetPresentationController _containerViewLayoutSubviews] + 652
21 UIKitCore 0x2231dc -[UITransitionView layoutSubviews] + 92
22 UIKitCore 0x18c17c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2592
23 QuartzCore 0x407fc CA::Layer::layout_if_needed(CA::Transaction*) + 532
24 QuartzCore 0x32c60 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136
25 QuartzCore 0x475b4 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 452
26 QuartzCore 0x504a8 CA::Transaction::commit() + 704
27 QuartzCore 0x323a0 CA::Transaction::flush_as_runloop_observer(bool) + 88
28 UIKitCore 0x53e6e0 _UIApplicationFlushCATransaction + 72
29 UIKitCore 0x7d8d5c _UIUpdateSequenceRun + 84
30 UIKitCore 0xe5fedc schedulerStepScheduledMainSection + 144
31 UIKitCore 0xe5f6a4 runloopSourceCallback + 92
32 CoreFoundation 0xbb414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
33 CoreFoundation 0xcc1a0 __CFRunLoopDoSource0 + 208
34 CoreFoundation 0x5694 __CFRunLoopDoSources0 + 268
35 CoreFoundation 0xb05c __CFRunLoopRun + 828
36 CoreFoundation 0x1ebc8 CFRunLoopRunSpecific + 600
37 GraphicsServices 0x1374 GSEventRunModal + 164
38 UIKitCore 0x514b58 -[UIApplication _run] + 1100
39 UIKitCore 0x296090 UIApplicationMain + 364
40 App. 0x72a4 main + 8 (main.m:8)
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x2d318 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x2fc24 abort_with_payload_wrapper_internal + 104
2 libsystem_kernel.dylib 0x2fbbc abort_with_payload_wrapper_internal + 30
3 libobjc.A.dylib 0x2d0b4 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 116
4 libobjc.A.dylib 0x2d040 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 30
5 libobjc.A.dylib 0x5acc weak_register_no_lock + 392
6 libobjc.A.dylib 0xa924 objc_storeWeak + 448
7 UIKitCore 0x2a2ee0 -[_UIBoundingPath initWithCoordinateSpace:] + 96
8 UIKitCore 0x613fc4 -[_UIComplexBoundingPath initWithCoordinateSpace:orientation:scale:boundingPathBitmap:] + 112
9 UIKitCore 0x3f11d0 -[_UIScreenComplexBoundingPathUtilities boundingPathForWindow:] + 2836
10 UIKitCore 0x675ddc -[UIWindow _boundingPath] + 204
11 UIKitCore 0x1b1650 -[UIView(UIViewBoundingPathSupportInternal) _effectiveBoundingPathAndBoundingPathView:] + 244
12 UIKitCore 0x4bab4c -[UIView(UIViewBoundingPathSupport) _rectTuckedAgainstBoundingPathEdge:withSize:cornerRadii:minimumPadding:] + 260
13 UIKitCore 0x6b74f8 -[_UISheetLayoutInfo _unsafeInsets] + 160
14 UIKitCore 0x71f18 -[_UISheetLayoutInfo _marginsWhenFloating] + 184
15 UIKitCore 0x3aca4c -[_UISheetLayoutInfo _isEdgeAttached] + 52
16 UIKitCore 0x467ffc -[_UISheetLayoutInfo _reversedIndexOfLastUndimmedDetent] + 84
17 UIKitCore 0x2d713c -[_UISheetLayoutInfo _activeDetentValues] + 348
18 UIKitCore 0x24b990 -[_UISheetLayoutInfo _offsetForCurrentActiveDetent] + 48
19 UIKitCore 0x583b5c -[_UISheetLayoutInfo _frameOfPresentedViewInContainerView] + 100
20 UIKitCore 0x3cad98 -[UISheetPresentationController _containerViewLayoutSubviews] + 652
21 UIKitCore 0x2231dc -[UITransitionView layoutSubviews] + 92
22 UIKitCore 0x18c17c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2592
23 QuartzCore 0x407fc CA::Layer::layout_if_needed(CA::Transaction*) + 532
24 QuartzCore 0x32c60 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136
25 QuartzCore 0x475b4 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 452
26 QuartzCore 0x504a8 CA::Transaction::commit() + 704
27 QuartzCore 0x323a0 CA::Transaction::flush_as_runloop_observer(bool) + 88
28 UIKitCore 0x53e6e0 _UIApplicationFlushCATransaction + 72
29 UIKitCore 0x7d8d5c _UIUpdateSequenceRun + 84
30 UIKitCore 0xe5fedc schedulerStepScheduledMainSection + 144
31 UIKitCore 0xe5f6a4 runloopSourceCallback + 92
32 CoreFoundation 0xbb414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
33 CoreFoundation 0xcc1a0 __CFRunLoopDoSource0 + 208
34 CoreFoundation 0x5694 __CFRunLoopDoSources0 + 268
35 CoreFoundation 0xb05c __CFRunLoopRun + 828
36 CoreFoundation 0x1ebc8 CFRunLoopRunSpecific + 600
37 GraphicsServices 0x1374 GSEventRunModal + 164
38 UIKitCore 0x514b58 -[UIApplication _run] + 1100
39 UIKitCore 0x296090 UIApplicationMain + 364
40 App. 0x77f8 main + 8 (main.m:8)
41 ??? 0x105a99da4 (Missing)
my only clue is from "initWithCoordinateSpace:orientation:scale:boundingPathBitmap" If there was a corrupt http image reference could this be causing a crash somewhere?
We are also using Firebase in-app-messaging. Could this be crashing the app on startup?

Related

iOS14-beta2 WKWebView crash on -[_UIFocusContainerGuideMapEntry setFocusContainmentFrame:] (in UIKitCore)

Recently we received lots of WKWebView crash logs on the iOS14 beta2 system.
Here is the crash log:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: 0x00000000 at 0xf7fff8018
Attempted to dereference garbage pointer 0xf7fff8018.
libobjc.A.dylib
__NO_DSYM_FILE__
2
UIKitCore
-[_UIFocusContainerGuideMapEntry setFocusContainmentFrame:] (in UIKitCore) + 16
3
UIKitCore
-[_UIFocusRegionMapEntry _mapEntriesByOccludingWithFrame:] (in UIKitCore) + 344
4
UIKitCore
-[_UIFocusRegionMapSnapshot .cxx_destruct] (in UIKitCore) + 96
5
UIKitCore
-[_UIFocusableRegionMapEntry description] (in UIKitCore) + 116
6
UIKitCore
-[_UIFocusableRegionMapEntry description] (in UIKitCore) + 228
7
UIKitCore
-[_UIFocusRegionMapSnapshot visualRepresentationWithMinimumArea:] (in UIKitCore) + 1844
8
UIKitCore
-[_UIFocusRegionMapSnapshot visualRepresentationWithMinimumArea:] (in UIKitCore) + 672
9
UIKitCore
-[_UIFocusRegionMapSnapshot _snapshotByFulfillingPromiseFocusRegionEntry:] (in UIKitCore) + 848
10
UIKitCore
-[_UIStateMachine(Legacy) setStaticTransitionFromState:withEvent:toState:] (in UIKitCore) + 128
11
UIKitCore
-[_UIEstimatedTouchRecord initWithLiveTouch:freezeTouch:contextID:] (in UIKitCore) + 4
12
UIKitCore
-[UIWebDocumentView(Interaction) deepestNodeAtViewportLocation:] (in UIKitCore) + 96
13
WebKit
-[WKProcessAssertionBackgroundTaskManager _updateBackgroundTask] (in WebKit) + 272
14
WebKit
bool IPC::MessageSender::send<Messages::WebPaymentCoordinator::DidAuthorizePayment>(Messages::WebPaymentCoordinator::DidAuthorizePayment const&, unsigned long long, WTF::OptionSet<IPC::SendOption>) (in WebKit) + 28
15
WebKit
-[WKContentView(WKInteractionPreview) _presentedViewControllerForPreviewItemController:] (in WebKit) + 1564
16
UIKitCore
-[UIBezierPath encodeWithCoder:] (in UIKitCore) + 140
17
UIKitCore
__21+[UIColor blackColor]_block_invoke (in UIKitCore) + 140
18
UIKitCore
-[UIDisplayP3Color initWithDisplayP3Red:green:blue:alpha:] (in UIKitCore) + 196
19
UIKitCore
-[UIDeviceRGBColor set] (in UIKitCore) + 48
20
UIKitCore
__83+[_UIAppearance _applyInvocationsTo:window:matchingSelector:onlySystemInvocations:]_block_invoke (in UIKitCore) + 312
21
UIKitCore
+[_UIAppearance appearancesAtNode:withObject:] (in UIKitCore) + 992
22
UIKitCore
__processEventQueue (in UIKitCore) + 8700
23
UIKitCore
_UIDrawViewRectAfterCommit (in UIKitCore) + 708
24
UIKitCore
-[_UIStatusBarLockView animateUnlockWithCompletionBlock:] (in UIKitCore) + 704
25
UIKitCore
-[_UIStatusBarDualCellularSignalView setTopConstraint:] (in UIKitCore) + 0
26
CoreFoundation
-[__NSDictionary0 copy] (in CoreFoundation) + 0
27
CoreFoundation
__copy_helper_block_e8_32o40o48b56o64r (in CoreFoundation) + 16
28
CoreFoundation
__destroy_helper_block_e8_32o40o48b56r64r (in CoreFoundation) + 16
29
CoreFoundation
CFRunLoopTimerSetNextFireDate (in CoreFoundation) + 1072
30
CoreFoundation
CFRunLoopTimerCreate (in CoreFoundation) + 384
31
GraphicsServices
_GSSendEvent (in GraphicsServices) + 252
32
UIKitCore
-[_UISearchControllerATVSearchBarAnimator _updateLayoutForGridKeyboard:animated:] (in UIKitCore) + 4092
33
UIKitCore
-[_UISearchFormSheetPresentationController presentationTransitionWillBegin] (in UIKitCore) + 20
Is anyone familiar with this? Thx in advance

App crashes on OS X Yosemite due to NSOperation (QOS, Quality Of Service)

My application keeps crashing on OS X Yosemite for the following reason:
Crashed Thread: 7 Dispatch queue: NSOperationQueue 0x608000239d80 :: NSOperation 0x60000013b3a0 (QOS: UTILITY)
Changed my NSOperation to this:
if ([self respondsToSelector:#selector(qualityOfService)]) {
self.qualityOfService = NSQualityOfServiceUtility;
}
But application keeps crashing.
Stack trace of crashing thread:
Thread 7 Crashed:: Dispatch queue: NSOperationQueue 0x608000239d80 ::
NSOperation 0x60000013b3a0 (QOS: UTILITY)
0 libobjc.A.dylib 0x00007fff8af4f0dd objc_msgSend +
29
1 com.apple.CoreText 0x00007fff882d0ce7
TAttributes::ParseAttributes(__CFDictionary const*, void const*&,
TInlineVector, 30ul>&) + 521
2 com.apple.CoreText 0x00007fff882d06f9
TAttributes::TAttributes(__CFDictionary const*) + 257
3 com.apple.CoreText 0x00007fff882e8295
TRunEncoder::Encode(_CTGlyphStorage*, CFRange, unsigned int,
__CFDictionary const*) + 85
4 com.apple.CoreText 0x00007fff882e8231
CTRunCreateMutableRunsWithStorageAndOptions + 191
5 com.apple.UIFoundation 0x00007fff8f0f329e
-[NSATSGlyphStorage createCTTypesetter] + 705
6 com.apple.UIFoundation 0x00007fff8f0ecf0c
-[NSATSTypesetter _ctTypesetter] + 324
7 com.apple.UIFoundation 0x00007fff8f0f78b5
-[NSATSLineFragment layoutForStartingGlyphAtIndex:characterIndex:minPosition:maxPosition:lineFragmentRect:]
+ 89
8 com.apple.UIFoundation 0x00007fff8f0edd43
-[NSATSTypesetter _layoutLineFragmentStartingWithGlyphAtIndex:characterIndex:atPoint:renderingContext:]
+ 2901 9 com.apple.UIFoundation 0x00007fff8f0efa08 -[NSATSTypesetter layoutParagraphAtPoint:] + 156
10 com.apple.UIFoundation 0x00007fff8f040356 -[NSTypesetter
_layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:]
+ 4713
11 com.apple.UIFoundation 0x00007fff8f041ae5 -[NSTypesetter
layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:]
+ 246
12 com.apple.UIFoundation 0x00007fff8f0f0743
-[NSATSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:]
+ 967
13 com.apple.UIFoundation 0x00007fff8f0b9e76
-[NSLayoutManager(NSPrivate) _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] + 1334
14 com.apple.UIFoundation 0x00007fff8f0c370c
_NSFastFillAllLayoutHolesForGlyphRange + 1493
15 com.apple.UIFoundation 0x00007fff8f0c8e54
-[NSLayoutManager(NSPrivate) _drawBackgroundForGlyphRange:atPoint:] + 542
16 com.apple.AppKit 0x00007fff8f37fc15 -[NSTextView
drawRect:] + 1878
17 com.apple.AppKit 0x00007fff8f37f409
-[NSTextView(NSTextView_LayerBacking) drawLayer:inGraphicsContext:] + 493
18 com.apple.AppKit 0x00007fff8f332980
+[NSGraphicsContext configureGraphicsContextForCALayer:withCGContext:andRenderWithHandler:]
+ 97
19 com.apple.QuartzCore 0x00007fff92e70153
CABackingStoreUpdate_ + 3306
20 com.apple.QuartzCore 0x00007fff92e6f463
___ZN2CA5Layer8display_Ev_block_invoke + 59
21 com.apple.QuartzCore 0x00007fff92e6f41f
x_blame_allocations + 81
22 com.apple.QuartzCore 0x00007fff92e6ef1c
CA::Layer::display_() + 1546
23 com.apple.AppKit 0x00007fff8f31c89f
_NSBackingLayerDisplay + 617
24 com.apple.QuartzCore 0x00007fff92e6e641
CA::Layer::display_if_needed(CA::Transaction*) + 603
25 com.apple.QuartzCore 0x00007fff92e6dd7d
CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 35
26 com.apple.QuartzCore 0x00007fff92e6d50e
CA::Context::commit_transaction(CA::Transaction*) + 242
27 com.apple.QuartzCore 0x00007fff92e6d164
CA::Transaction::commit() + 390
28 com.apple.QuartzCore 0x00007fff92e7df55
CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned
long, void*) + 71
29 com.apple.CoreFoundation 0x00007fff902bdd87
CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23
30 com.apple.CoreFoundation 0x00007fff902bdce0
__CFRunLoopDoObservers + 368
31 com.apple.CoreFoundation 0x00007fff902af858
CFRunLoopRunSpecific + 328
32 com.apple.Foundation 0x00007fff8d04bab9
-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278
33 com.pack.MyApp 0x000000010ab54d5b -[SyncOperation
start] + 886
34 com.apple.Foundation 0x00007fff8cfe91a3 __NSOQSchedule_f
+ 184
35 libdispatch.dylib 0x00007fff925e9c13
_dispatch_client_callout + 8
36 libdispatch.dylib 0x00007fff925ed365
_dispatch_queue_drain + 1100
37 libdispatch.dylib 0x00007fff925eeecc
_dispatch_queue_invoke + 202
38 libdispatch.dylib 0x00007fff925ec6b7
_dispatch_root_queue_drain + 463
39 libdispatch.dylib 0x00007fff925fafe4
_dispatch_worker_thread3 + 91
40 libsystem_pthread.dylib 0x00007fff8596d6cb
_pthread_wqthread + 729
41 libsystem_pthread.dylib 0x00007fff8596b4a1 start_wqthread +
13
Thank you!

iOS 7 Exception Type: EXC_CRASH (SIGABRT)

Does anyone have a clue on this crash ?
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x30e57e83 __exceptionPreprocess + 131
1 libobjc.A.dylib 0x3b1b86c7 objc_exception_throw + 38
2 CoreFoundation 0x30e57dc5 +[NSException raise:format:] + 112
3 CoreData 0x30bc6be3 -[_PFBatchFaultingArray objectAtIndex:] +
146
4 ChevronRetail 0x000345bd 0x1f000 + 87485
5 ChevronRetail 0x000314e5 0x1f000 + 74981
6 ChevronRetail 0x0003143d 0x1f000 + 74813
7 ChevronRetail 0x000313c3 0x1f000 + 74691
8 ChevronRetail 0x00031cc7 0x1f000 + 76999
9 UIKit 0x336d7349 -[UIScrollView(UIScrollViewInternal)
_delegateScrollViewAnimationEnded] + 68
10 UIKit 0x336d72c5 -[UIScrollView(UIScrollViewInternal)
_scrollViewAnimationEnded:finished:] + 176
11 UIKit 0x023c001b 0x2393000 + 184347
12 UIKit 0x3377fd6b -[UIAnimator stopAnimation:] + 466
13 UIKit 0x3377f74d -[UIAnimator(Static) _advanceAnimationsOfType:withTimestamp:] + 284
14 UIKit 0x3377f62d -[UIAnimator(Static) _LCDHeartbeatCallback:] + 52
15 QuartzCore 0x332b2ad3 CA::Display::DisplayLinkItem::dispatch() + 98
16 QuartzCore 0x332b287d CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 344
17 IOMobileFramebuffer 0x35edc76d IOMobileFramebufferVsyncNotifyFunc + 104
18 IOKit 0x31b39be5 IODispatchCalloutFromCFMessage + 248
19 CoreFoundation 0x30e17b81 __CFMachPortPerform + 136
20 CoreFoundation 0x30e22777 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
21 CoreFoundation 0x30e22713 __CFRunLoopDoSource1 + 346
22 CoreFoundation 0x30e20edf __CFRunLoopRun + 1406
23 CoreFoundation 0x30d8b471 CFRunLoopRunSpecific + 524
24 CoreFoundation 0x30d8b253 CFRunLoopRunInMode + 106
25 GraphicsServices 0x35abf2eb GSEventRunModal + 138
26 UIKit 0x33640845 UIApplicationMain + 1136
27 ChevronRetail 0x00057fd5 0x1f000 + 233429
28 libdyld.dylib 0x3b6b1ab7 start + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3b7681fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3b7cfa4f pthread_kill + 55
2 libsystem_c.dylib 0x3b719029 abort + 73
3 libc++abi.dylib 0x3ab6798b abort_message + 71
4 libc++abi.dylib 0x3ab806e3 default_terminate_handler() + 251
5 libobjc.A.dylib 0x3b1b8937 _objc_terminate() + 191
6 libc++abi.dylib 0x3ab7e1b1 std::__terminate(void (*)()) + 77
7 libc++abi.dylib 0x3ab7dd13 __cxa_rethrow + 99
8 libobjc.A.dylib 0x3b1b880b objc_exception_rethrow + 39
9 CoreFoundation 0x30d8b4e3 CFRunLoopRunSpecific + 639
10 CoreFoundation 0x30d8b24f CFRunLoopRunInMode + 103
11 GraphicsServices 0x35abf2e7 GSEventRunModal + 135
12 UIKit 0x33640841 UIApplicationMain + 1133
13 ChevronRetail 0x00057fd1 0x1f000 + 233425
14 libdyld.dylib 0x3b6b1ab5 start + 1

Objective-C - UIBarButtonItem Crashes, weird crash log

I have an UIBarButtonItem that is crashing, but I can't figure out what is happening. It's not generating any error on the debugger and its crash log is not symbolicating some parts. This is the crash log:
Last Exception Backtrace:
0 CoreFoundation 0x354ba88f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x37861259 objc_exception_throw + 33
2 CoreFoundation 0x354ba789 +[NSException raise:format:] + 1
3 Foundation 0x34fa23ff -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 87
4 Exame_iPhone 0x000b9029 0x4b000 + 450601
5 Exame_iPhone 0x000b9071 0x4b000 + 450673
6 Exame_iPhone 0x0010a60d 0x4b000 + 783885
7 Exame_iPhone 0x0010aa7b 0x4b000 + 785019
8 Exame_iPhone 0x00069ff3 0x4b000 + 126963
9 CoreFoundation 0x354143fd -[NSObject performSelector:withObject:withObject:] + 53
10 UIKit 0x32f09e07 -[UIApplication sendAction:to:from:forEvent:] + 63
11 UIKit 0x32fcf5e7 -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 119
12 CoreFoundation 0x354143fd -[NSObject performSelector:withObject:withObject:] + 53
13 UIKit 0x32f09e07 -[UIApplication sendAction:to:from:forEvent:] + 63
14 UIKit 0x32f09dc3 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 31
15 UIKit 0x32f09da1 -[UIControl sendAction:to:forEvent:] + 45
16 UIKit 0x32f09b11 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 493
17 UIKit 0x32f0a449 -[UIControl touchesEnded:withEvent:] + 477
18 UIKit 0x32f0892b -[UIWindow _sendTouchesForEvent:] + 319
19 UIKit 0x32f08319 -[UIWindow sendEvent:] + 381
20 UIKit 0x32eee695 -[UIApplication sendEvent:] + 357
21 UIKit 0x32eedf3b _UIApplicationHandleEvent + 5827
22 GraphicsServices 0x370ad22b PurpleEventCallback + 883
23 CoreFoundation 0x3548e523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
24 CoreFoundation 0x3548e4c5 __CFRunLoopDoSource1 + 141
25 CoreFoundation 0x3548d313 __CFRunLoopRun + 1371
26 CoreFoundation 0x354104a5 CFRunLoopRunSpecific + 301
27 CoreFoundation 0x3541036d CFRunLoopRunInMode + 105
28 GraphicsServices 0x370ac439 GSEventRunModal + 137
29 UIKit 0x32f1ccd5 UIApplicationMain + 1081
30 Exame_iPhone 0x0004c23b 0x4b000 + 4667
31 Exame_iPhone 0x0004c1e0 0x4b000 + 4576
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x35d7032c __pthread_kill + 8
1 libsystem_c.dylib 0x328bc208 pthread_kill + 48
2 libsystem_c.dylib 0x328b5298 abort + 88
3 libc++abi.dylib 0x35872f64 abort_message + 40
4 libc++abi.dylib 0x35870346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x37861350 _objc_terminate + 140
6 libc++abi.dylib 0x358703be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x3587044a std::terminate() + 14
8 libc++abi.dylib 0x3587181e __cxa_rethrow + 82
9 libobjc.A.dylib 0x378612a2 objc_exception_rethrow + 6
10 CoreFoundation 0x35410506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x35410366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x370ac432 GSEventRunModal + 130
13 UIKit 0x32f1ccce UIApplicationMain + 1074
14 Exame_iPhone 0x0004c234 0x4b000 + 4660
15 Exame_iPhone 0x0004c1d8 0x4b000 + 4568
Does anybody know what is going on?
Regards!
An assertion fails in the non-symbolicated lines, probably in your own method. Set a breakpoint at the beginning of your button method and step through until you get the crash.

What is wrong with this objective-C string manipulation? trying to parse a string and return different characters

I'm trying to take an input string and return a new string that is encoded/decoded based on a dictionary that I created. I have tried the below code using instance variables and local variables. I am having a problem using the for loop. I get out of scope errors. When I use an instance variable for newText, I get a exec bad address when I try to assign the dictionaries value to it. When I declare newText in the method, I get out of scope errors.
- (NSString *) decodeText:(NSString *)text {
NSString *parseString = text;
NSLog(#"Letterdictionary = %#",lettersDictionary);
NSInteger y = [parseString length];
NSMutableString *newText = [NSMutableString stringWithCapacity:[parseString length]];
for (int x=0; x < y; x++) {
NSRange Range = NSMakeRange(x, 1);
NSString *myChar = [parseString substringWithRange:Range];
NSLog(#"Mychar =:%#",myChar);
[newText appendString:[lettersDictionary objectForKey:myChar]];
NSLog(#"newtext=%#",newText);
}
NSLog(#"NewText=%#",newText);
return newText;
}
here is the output from the debugger:
2010-08-21 07:59:27.151 GeoWordCalc[77460:207] Letterdictionary = {
N = A;
O = B;
P = C;
}
2010-08-21 07:59:47.891 GeoWordCalc[77460:207] Mychar =:A
2010-08-21 07:59:49.707 GeoWordCalc[77460:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString appendString:]: nil argument'
*** Call stack at first throw:
(
0 CoreFoundation 0x023df919 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0252d5de objc_exception_throw + 47
2 CoreFoundation 0x02398078 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x02397fea +[NSException raise:format:] + 58
4 Foundation 0x000a585a mutateError + 156
5 GeoWordCalc 0x000050aa -[WordDecoder decodeText:] + 330
6 GeoWordCalc 0x00004cec -[DecoderViewController textFieldCharacterEntered] + 157
7 UIKit 0x003424b0 -[UIControl(D eprecated) sendAction:toTarget:forEvent:] + 67
8 UIKit 0x00344d81 -[UIControl(Internal) _sendActionsForEventMask:withEvent:] + 525
9 UIKit 0x0034a051 -[UITextField fieldEditorDidChange:] + 258
10 UIKit 0x003597f3 -[UIFieldEditor webViewDidChange:] + 76
11 Foundation 0x00022c1d _nsnote_callback + 145
12 CoreFoundation 0x023b7cf9 __CFXNotificationPost_old + 745
13 CoreFoundation 0x0233711a _CFXNotificationPostNotification + 186
14 Foundation 0x000187c2 -[NSNotificationCenter postNotificationName:object:userInfo:] + 134
15 CoreFoundation 0x0235042d __invoking___ + 29
16 CoreFoundation 0x02350301 -[NSInvocation invoke] + 145
17 WebCore 0x02e6277a _ZL19SendDelegateMessageP12NSInvocation + 602
18 WebKit 0x03c0b72f _ZN15WebEditorClient24respondToChangedContentsEv + 63
19 WebCore 0x02ee889c _ZN7WebCore6Editor14appliedEditingEN3WTF10PassRefPtrINS_11EditCommandEEE + 460
20 WebCore 0x036bdb9b _ZN7WebCore13TypingCommand24typingAddedToOpenCommandENS0_14ETypingCommandE + 75
21 WebCore 0x02ee312f _ZN7WebCore13TypingCommand28insertTextRunWithoutNewlinesERKNS_6StringEb + 159
22 WebCore 0x02ee306b _ZN7WebCore13TypingCommand10insertTextERKNS_6StringEb + 331
23 WebCore 0x02ee2eb6 _ZN7WebCore13TypingCommand7doApplyEv + 182
24 WebCore 0x02ee2c58 _ZN7WebCore11EditCommand5applyEv + 248
25 WebCore 0x02ee1c95 _ZN7WebCore13TypingCommand10insertTextEPNS_8DocumentERKNS_6StringERKNS_16VisibleSelectionEbb + 1525
26 WebCore 0x02ee1058 _ZN7WebCore6Editor33insertTextWithoutSendingTextEventERKNS_6StringEbPNS_5EventE + 1048
27 WebCore 0x02ee0c15 _ZN7WebCore12EventHandler28defaultTextInputEventHandlerEPNS_9TextEventE + 197
28 WebCore 0x02eb4548 _ZN7WebCore4Node19defaultEventHandlerEPNS_5EventE + 152
29 WebCore 0x02eb42a8 _ZN7WebCore4Node20dispatchGenericEventEN3WTF10PassRefPtrINS_5EventEEE + 1016
30 WebCore 0x02eb3e39 _ZN7WebCore4Node13dispatchEventEN3WTF10PassRefPtrINS_5EventEEE + 217
31 WebCore 0x02ee0ae0 _ZN7WebCore11EventTarget13dispatchEventEN3WTF10PassRefPtrINS_5EventEEERi + 112
32 WebCore 0x02ee07e1 _ZN7WebCore12EventHandler20handleTextInputEventERKNS_6StringEPNS_5EventEbb + 225
33 WebCore 0x02ee06f9 _ZN7WebCore6Editor10insertTextERKNS_6StringEPNS_5EventE + 57
34 WebKit 0x03c0af07 -[WebHTMLView(WebNSTextInputSupport) insertText:] + 951
35 WebCore 0x02ee0594 -[WAKResponder tryToPerform:with:] + 84
36 WebKit 0x03c0a9b3 -[WebView(WebViewEditingActions) _performResponderOperation:with:] + 147
37 WebKit 0x03c0a910 -[WebView(WebViewEditingActions) insertText:] + 48
38 UIKit 0x003f32db -[UIKeyboardImpl addInputString:fromVariantKey:] + 3251
39 UIKit 0x003f4a1a -[UIKeyboardImpl handleKeyEvent:] + 1918
40 UIKit 0x005151c0 -[UIKeyboardLayoutStar sendStringAction:forKey:] + 684
41 UIKit 0x005199ba -[UIKeyboardLayoutStar touchUp:] + 2556
42 UIKit 0x0040b9a3 -[UIKeyboardLayout touchesEnded:withEvent:] + 550
43 UIKit 0x002dc2ff -[UIWindow _sendTouchesForEvent:] + 567
44 UIKit 0x002be1ec -[UIApplication sendEvent:] + 447
45 UIKit 0x002c2ac4 _UIApplicationHandleEvent + 7495
46 GraphicsServices 0x02c45afa PurpleEventCallback + 1578
47 CoreFoundation 0x023c0dc4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
48 CoreFoundation 0x02321737 __CFRunLoopDoSource1 + 215
49 CoreFoundation 0x0231e9c3 __CFRunLoopRun + 979
50 CoreFoundation 0x0231e280 CFRunLoopRunSpecific + 208
51 CoreFoundation 0x0231e1a1 CFRunLoopRunInMode + 97
52 GraphicsServices 0x02c442c8 GSEventRunModal + 217
53 GraphicsServices 0x02c4438d GSEventRun + 115
54 UIKit 0x002c6b58 UIApplicationMain + 1160
55 GeoWordCalc 0x000027c4 main + 102
56 GeoWordCalc 0x00002755 start + 53
)
terminate called after throwing an instance of 'NSException'
Okay..so after a night's sleep and more debugging I figured out that I lettersDictionary was returning a null value. It seems I build the dictionary backwards...sorry and thanks.