EarlGrey TimeoutException viewDidDisappear - earlgrey

Could someone please help me on what needs to be done in case tests fails
with kGREYPendingViewsToDisappear as in below case
Code
EarlGrey.selectElement(with: grey_keyWindow()).assert(grey_sufficientlyVisible())
Exception
UI Test Activity:
Assertion Failure: EarlGreyTests.swift:27: Exception: TimeoutException
Exception Name: TimeoutException
Exception Reason: Timed out while waiting to perform assertion.
Exception with Assertion: {
"Assertion Criteria": "assertWithMatcher:matcherForSufficientlyVisible(>=0.750000)",
"Element Matcher": "(kindOfClass('UIWindow') && keyWindow)"
}
Exception Details: Error Trace: [
{
"Description": "Failed to execute block because idling resources below are busy.",
"Description Glossary": {
"GREYAppStateTracker": "Waiting for viewDidDisappear: call on the view controller. Please ensure that this view controller and it's subclasses call through to their super's implementation.
Full state transition call stack for all objects:
=> Waiting for viewDidDisappear: call on the view controller. Please ensure that this view controller and it's subclasses call through to their super's implementation.
(
0 EarlGrey 0x0000000133ea1d3d -[GREYAppStateTrackerObject setState:] + 61
1 EarlGrey 0x0000000133e49685 _133-[GREYAppStateTracker grey_changeState:usingOperation:forObject:orInternalObjectDeallocationTracker:orExternalAppStateTrackerObject:]_block_invoke + 1157
2 EarlGrey 0x0000000133e48858 -[GREYAppStateTracker grey_performBlockInCriticalSection:] + 328
3 EarlGrey 0x0000000133e490ab -[GREYAppStateTracker grey_changeState:usingOperation:forObject:orInternalObjectDeallocationTracker:orExternalAppStateTrackerObject:] + 1371
4 EarlGrey 0x0000000133e4710c -[GREYAppStateTracker untrackState:forObject:] + 92
5 EarlGrey 0x0000000133e4dea7 -[UIViewController(GREYAdditions) greyswizzled_viewDidAppear:] + 135
6 EarlGreyTests 0x0000000133bf86c6 -[UIViewController(FIRAScreenClassName) fira_viewDidAppear:] + 33
7 UIKit 0x0000000136d4a9ae -[UIViewControllerAccessibility viewDidAppear:] + 67
8 UIKit 0x0000000110ee1e5f -[UIViewController _setViewAppearState:isAnimating:] + 697
9 UIKit 0x0000000110ee23ad _52-[UIViewController _setViewAppearState:isAnimating:]_block_invoke + 265
10 CoreFoundation 0x0000000115310553 -[_NSArrayI enumerateObjectsWithOptions:usingBlock:] + 163
11 UIKit 0x0000000110ee2067 -[UIViewController _setViewAppearState:isAnimating:] + 1217
12 UIKit 0x0000000110ee23ad _52-[UIViewController _setViewAppearState:isAnimating:]_block_invoke + 265
13 CoreFoundation 0x00000001153c256a -[_NSSingleObjectArrayI enumerateObjectsWithOptions:usingBlock:] + 58
14 UIKit 0x0000000110ee2067 -[UIViewController _setViewAppearState:isAnimating:] + 1217
15 UIKit 0x0000000110ee28f0 -[UIViewController _endAppearanceTransition:] + 197
16 UIKit 0x0000000110f1aebd -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 1287
17 UIKit 0x0000000136d611aa -[UINavigationControllerAccessibility navigationTransitionView:didEndTransition:fromView:toView:] + 102
18 UIKit 0x0000000111296db1 -[UINavigationTransitionView _notifyDelegateTransitionDidStopWithContext:] + 421
19 UIKit 0x0000000111297072 -[UINavigationTransitionView _cleanupTransition] + 605
20 UIKit 0x0000000110dccea9 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 343
21 UIKit 0x0000000110dc8546 +[UIViewAnimationState popAnimationState] + 319
22 UIKit 0x0000000111296b20 -[UINavigationTransitionView transition:fromView:toView:] + 2571
23 UIKit 0x0000000110f2411f -[UINavigationController _startTransition:fromViewController:toViewController:] + 3261
24 UIKit 0x0000000110f2461e -[UINavigationController _startDeferredTransitionIfNeeded:] + 870
25 UIKit 0x0000000110f2586c -[UINavigationController _viewWillLayoutSubviews] + 150
26 UIKit 0x000000011117dd0b -[UILayoutContainerView layoutSubviews] + 231
27 UIKit 0x0000000136d7e61c -[UILayoutContainerViewAccessibility layoutSubviews] + 42
28 UIKit 0x0000000110e077a8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1515
29 QuartzCore 0x00000001161bd456 -[CALayer layoutSublayers] + 177
30 QuartzCore 0x00000001161c1667 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 395
31 QuartzCore 0x00000001161480fb _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 343
32 QuartzCore 0x000000011617579c _ZN2CA11Transaction6commitEv + 568
33 UIKit 0x0000000110d52269 _34-[UIApplication _firstCommitBlock]_block_invoke_2 + 141
34 CoreFoundation 0x0000000115324b0c _CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK_ + 12
35 CoreFoundation 0x00000001153092db _CFRunLoopDoBlocks + 331
36 CoreFoundation 0x0000000115308a84 _CFRunLoopRun + 1284
37 CoreFoundation 0x000000011530830b CFRunLoopRunSpecific + 635
38 GraphicsServices 0x000000011a536a73 GSEventRunModal + 62
39 UIKit 0x0000000110d38057 UIApplicationMain + 159
40 MyApp 0x000000010e56c9b7 main + 55
41 libdyld.dylib 0x0000000117a65955 start + 1
)
"
},
"Error Domain": "com.google.earlgrey.GREYUIThreadExecutorErrorDomain",
"Error Code": "0",
"File Name": "GREYUIThreadExecutor.m",
"Function Name": "-[GREYUIThreadExecutor executeSyncWithTimeout:block:error:]",
"Line": "239",
"TestCase Class": "EarlGreyTests.EarlGreyTests",
"TestCase Method": "testExample"
},
{
"Description": "Failed to execute assertion within 30 seconds.",
"Error Domain": "com.google.earlgrey.ElementInteractionErrorDomain",
"Error Code": "4",
"File Name": "GREYElementInteraction.m",
"Function Name": "-[GREYElementInteraction assert:error:]",
"Line": "450",
"TestCase Class": "EarlGreyTests.EarlGreyTests",
"TestCase Method": "testExample"
}
]
What work around didn't work
Adding viewDidDisappear in FeedItemCollectionViewController

Related

Swift - hierarchy constraint issues and debugging

I'm new to swift and am finding debugging to be particularly difficult. I"m using RubyMotion if that is relevant. After I log out a user and try to log back in I receive the following log:
2017-04-20 13:56:54.810 nav[8614:3232848] *** Assertion failure in -[UIView _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3600.6.21/NSLayoutConstraint_UIKitAdditions.m:649
2017-04-20 13:56:54.927 nav[8614:3232848] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Impossible to set up layout with view hierarchy unprepared for constraint.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000102ab5d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010141421e objc_exception_throw + 48
2 CoreFoundation 0x0000000102ab9e42 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00000001038d466d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 UIKit 0x0000000105a4d57b __120-[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:]_block_invoke_2 + 206
5 UIKit 0x0000000105a4d417 -[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 418
6 UIKit 0x0000000105a4d7e8 -[UIView(UIConstraintBasedLayout) _tryToAddConstraintWithoutUpdatingConstraintsArray:roundingAdjustment:mutuallyExclusiveConstraints:] + 30
7 UIKit 0x0000000105a4d8fa -[UIView(UIConstraintBasedLayout) _tryToAddConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 221
8 UIKit 0x0000000105a4dc0e __50-[UIView(UIConstraintBasedLayout) addConstraints:]_block_invoke + 208
9 Foundation 0x000000010385a3b0 -[NSISEngine withBehaviors:performModifications:] + 155
10 UIKit 0x0000000105a4db2f -[UIView(UIConstraintBasedLayout) addConstraints:] + 277
11 nav 0x00000001000d2ae2 __unnamed_64 + 98
12 nav 0x00000001004b495c vm_dispatch + 1372
13 nav 0x00000001004b8511 rb_scope__strain__ + 1313
14 nav 0x00000001009d9135 rb_vm_dispatch + 7221
15 nav 0x00000001004b495c vm_dispatch + 1372
16 nav 0x00000001004b7a3e rb_scope__initialize__ + 238
17 nav 0x00000001009d9135 rb_vm_dispatch + 7221
18 nav 0x000000010092ec57 rb_class_new_instance0 + 855
19 nav 0x00000001009d86e6 rb_vm_dispatch + 4582
20 nav 0x000000010076c1ec vm_dispatch + 1372
21 nav 0x0000000100780bc3 rb_scope__main_layout__ + 275
22 nav 0x00000001009d9135 rb_vm_dispatch + 7221
23 nav 0x000000010076c1ec vm_dispatch + 1372
24 nav 0x0000000100777955 rb_scope__layout__ + 133
25 nav 0x00000001009d9135 rb_vm_dispatch + 7221
26 nav 0x000000010076c1ec vm_dispatch + 1372
27 nav 0x0000000100778496 rb_scope__viewDidLoad__ + 534
28 nav 0x00000001007784ed __unnamed_67 + 13
29 UIKit 0x000000010522aa3d -[UIViewController loadViewIfRequired] + 1258
30 UIKit 0x0000000105231062 -[UIViewController __viewWillAppear:] + 118
31 UIKit 0x000000010525c1d3 -[UINavigationController _startCustomTransition:] + 1290
32 UIKit 0x000000010526ce48 -[UINavigationController _startDeferredTransitionIfNeeded:] + 697
33 UIKit 0x000000010526dfdb -[UINavigationController __viewWillLayoutSubviews] + 58
34 UIKit 0x0000000105464dd7 -[UILayoutContainerView layoutSubviews] + 223
35 UIKit 0x000000010514dab8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
36 QuartzCore 0x0000000104b4ebf8 -[CALayer layoutSublayers] + 146
37 QuartzCore 0x0000000104b42440 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
38 QuartzCore 0x0000000104b422be _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
39 QuartzCore 0x0000000104ad0318 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
40 QuartzCore 0x0000000104afd3ff _ZN2CA11Transaction6commitEv + 475
41 QuartzCore 0x0000000104afdd6f _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 113
42 CoreFoundation 0x0000000102a5a267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
43 CoreFoundation 0x0000000102a5a1d7 __CFRunLoopDoObservers + 391
44 CoreFoundation 0x0000000102a3ef8e __CFRunLoopRun + 1198
45 CoreFoundation 0x0000000102a3e884 CFRunLoopRunSpecific + 420
46 GraphicsServices 0x0000000107e57a6f GSEventRunModal + 161
47 UIKit 0x0000000105088c68 UIApplicationMain + 159
48 nav 0x00000001000a9fd2 main + 146
49 libdyld.dylib 0x0000000106f1b68d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
What I'm struggling with is trying to find out where the error is in my code from the error logs.
Perhaps I'm spoiled but in ruby I'm used to a filename and line number being given where the error has been caused - is this something I can find out from this log?
Thanks in advance.

Terminating app due to uncaught NSException of 'NSInvalidArgumentException'

I have two Xcode projects (SampleMain, SampleTest) programmed in Swift which is taken into a single workspace called Sample. Then I try to merge SampleMain's UIStoryboard (Main) to SampleTest's UIStoryboard (Main) using a button via UIStoryboard reference. When I run the app no exception is caught until the button used for segue is pressed. As the button pressed the app is terminated with an NSException in the console log.
Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: 'Storyboard () doesn't contain a
view controller with identifier 'test'' * First throw call stack: ( 0
CoreFoundation 0x000000010e17334b exceptionPreprocess + 171 1
libobjc.A.dylib 0x000000010b5c021e objc_exception_throw + 48 2 UIKit
0x000000010c2622bf -[UIStoryboard instantiateInitialViewController] +
0 3 UIKit 0x000000010c048392 -[UIStoryboardViewControllerPlaceholder
initWithCoder:] + 143 4 UIKit 0x000000010c098dbd
UINibDecoderDecodeObjectForValue + 684 5 UIKit 0x000000010c098b0a
-[UINibDecoder decodeObjectForKey:] + 98 6 UIKit 0x000000010be9d15c -[UIRuntimeConnection initWithCoder:] + 178 7 UIKit 0x000000010c098dbd UINibDecoderDecodeObjectForValue + 684 8 UIKit 0x000000010c098f73
UINibDecoderDecodeObjectForValue + 1122 9 UIKit 0x000000010c098b0a
-[UINibDecoder decodeObjectForKey:] + 98 10 UIKit 0x000000010be9c300 -[UINib instantiateWithOwner:options:] + 1249 11 UIKit 0x000000010c2621ab -[UIStoryboard
instantiateViewControllerWithIdentifier:] + 181 12 UIKit
0x000000010c269fab -[UIStoryboardSegueTemplate
instantiateOrFindDestinationViewControllerWithSender:] + 90 13 UIKit
0x000000010c26a1ff -[UIStoryboardSegueTemplate _perform:] + 52 14
UIKit 0x000000010c26a4df -[UIStoryboardSegueTemplate perform:] + 156
15 UIKit 0x000000010ba91b88 -[UIApplication
sendAction:to:from:forEvent:] + 83 16 UIKit 0x000000010bc172b2
-[UIControl sendAction:to:forEvent:] + 67 17 UIKit 0x000000010bc175cb -[UIControl _sendActionsForEvents:withEvent:] + 444 18 UIKit 0x000000010bc164c7 -[UIControl touchesEnded:withEvent:] + 668 19 UIKit
0x000000010baff0d5 -[UIWindow _sendTouchesForEvent:] + 2747 20 UIKit
0x000000010bb007c3 -[UIWindow sendEvent:] + 4011 21 UIKit
0x000000010baada33 -[UIApplication sendEvent:] + 371 22 UIKit
0x000000010c29fb6d __dispatchPreprocessedEventFromEventQueue + 3248 23
UIKit 0x000000010c298817 __handleEventQueue + 4879 24 CoreFoundation
0x000000010e118311
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 25 CoreFoundation 0x000000010e0fd59c __CFRunLoopDoSources0 + 556 26
CoreFoundation 0x000000010e0fca86 __CFRunLoopRun + 918 27
CoreFoundation 0x000000010e0fc494 CFRunLoopRunSpecific + 420 28
GraphicsServices 0x000000011001ca6f GSEventRunModal + 161 29 UIKit
0x000000010ba8ff34 UIApplicationMain + 159 30 SampleMain
0x000000010afe4e2f main + 111 31 libdyld.dylib 0x000000010f09d68d
start + 1 ) libc++abi.dylib: terminating with uncaught exception of
type NSException (lldb)
I have configured the storyboard reference in the following manner:
SampleMain - Main.storyboard
What am I doing wrong? If my approach to merging two storyboards of two different projects is incorrect; please explain a method to do so.

X code7 error trying to do PageViewController

In my main storyboard i have my firstViewController then secondViewController and my pageViewController is third.
I am connecting all of them using seque Modal.
First and Second is working but my third is showing me an error.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x7fb15bca4dd0>) doesn't contain a view controller with identifier 'FirstViewController''
*** First throw call stack:
(
0 CoreFoundation 0x0000000108ba7f65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010aa62deb objc_exception_throw + 48
2 UIKit 0x0000000109ccc5d4 -[UIStoryboard instantiateInitialViewController] + 0
3 0x00000001089b422d _TFC8test23SkillPageViewControllerP33_B1A346F97B9DE8BA73F8676576C06E1324newColoredViewControllerfS0_FSSCSo16UIViewController + 365
4 0x00000001089b65cc _TFFC8test23SkillPageViewControllerg22orderedViewControllersGSaCSo16UIViewController_U_FT_GSaS1__ + 92
5 0x00000001089b2f75 _TFC8test23SkillPageViewControllerg22orderedViewControllersGSaCSo16UIViewController_ + 325
6 0x00000001089b3229 _TFC8test23SkillPageViewController11viewDidLoadfS0_FT_T_ + 313
7 0x00000001089b35e2 _TToFC8test23SkillPageViewController11viewDidLoadfS0_FT_T_ + 34
8 UIKit 0x0000000109775931 -[UIViewController loadViewIfRequired] + 1344
9 UIKit 0x0000000109775c7d -[UIViewController view] + 27
10 UIKit 0x0000000109edbb2c -[_UIFullscreenPresentationController _setPresentedViewController:] + 87
11 UIKit 0x000000010974603a -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 133
12 UIKit 0x00000001097885c4 -[UIViewController _presentViewController:withAnimationController:completion:] + 3930
13 UIKit 0x000000010978b878 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 489
14 UIKit 0x000000010978b387 -[UIViewController presentViewController:animated:completion:] + 179
15 UIKit 0x0000000109ce2af3 __67-[UIStoryboardModalSegueTemplate newDefaultPerformHandlerForSegue:]_block_invoke + 243
16 UIKit 0x0000000109cd1189 -[UIStoryboardSegueTemplate _performWithDestinationViewController:sender:] + 460
17 UIKit 0x0000000109cd0f8c -[UIStoryboardSegueTemplate _perform:] + 82
18 UIKit 0x0000000109cd1250 -[UIStoryboardSegueTemplate perform:] + 156
19 UIKit 0x00000001095ec1fa -[UIApplication sendAction:to:from:forEvent:] + 92
20 UIKit 0x0000000109750504 -[UIControl sendAction:to:forEvent:] + 67
21 UIKit 0x00000001097507d0 -[UIControl _sendActionsForEvents:withEvent:] + 311
22 UIKit 0x000000010974f906 -[UIControl touchesEnded:withEvent:] + 601
23 UIKit 0x0000000109656aa3 -[UIWindow _sendTouchesForEvent:] + 835
24 UIKit 0x0000000109657691 -[UIWindow sendEvent:] + 865
25 UIKit 0x0000000109609752 -[UIApplication sendEvent:] + 263
26 UIKit 0x00000001095e4fcc _UIApplicationHandleEventQueue + 6693
27 CoreFoundation 0x0000000108ad40a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
28 CoreFoundation 0x0000000108ac9fcc __CFRunLoopDoSources0 + 556
29 CoreFoundation 0x0000000108ac9483 __CFRunLoopRun + 867
30 CoreFoundation 0x0000000108ac8e98 CFRunLoopRunSpecific + 488
31 GraphicsServices 0x000000010e099ad2 GSEventRunModal + 161
32 UIKit 0x00000001095ea676 UIApplicationMain + 171
33 0x00000001089ba10d main + 109
34 libdyld.dylib 0x000000010b58192d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
It is a hard guess because you didn't provide any of you code, but as the error state,
You need to set identifier for the view controller you used,in Storyboard > ViewController(one you added to storyboard,I think it is FirstViewController)>attribute inspector
there something called storyboard identifier or something like this, you need to set it. as I see you need to name it "FirstViewController"
I think you are skipping some main steps of configuring a pageviewcontroller, there is a very good tutorial here
it would be very helpful, if you check this tutorial

reading crash logs itunes after app update

I'v released an update to my app in AppStore, it got accepted pretty quick. Yet, it crashes right after an update. If installed on clean device it works, yet crashes if older version was present... I guess I messed up something and I'm trying to figure out what. I get crash reports from itunes connect, yet they do not tell me quite much. In other crash logs which I'v seen on stackoverflow questions there is Class name, method name and line of crash. While all my crash reports contain only bytes which give me zero information where and what is wrong.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3231b3e2 __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3a01695e objc_exception_throw + 26
2 CoreFoundation 0x32266ef4 -[__NSArrayM objectAtIndex:] + 160
3 kodinisRaktas 0x000b939a 0x0009f000 + 107418
4 kodinisRaktas 0x000b9282 0x0009f000 + 107138
5 kodinisRaktas 0x000a2434 0x0009f000 + 13364
6 UIKit 0x34149574 -[UIViewController loadViewIfRequired] + 360
7 UIKit 0x3419e1f2 -[UIViewController contentScrollView] + 22
8 UIKit 0x3419e138 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24
9 UIKit 0x3419e01c -[UINavigationController _layoutViewController:] + 28
10 UIKit 0x3419df48 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 268
11 UIKit 0x3419d694 -[UINavigationController _startTransition:fromViewController:toViewController:] + 60
12 UIKit 0x3419d57c -[UINavigationController _startDeferredTransitionIfNeeded:] + 320
13 UIKit 0x3416e55c -[UILayoutContainerView layoutSubviews] + 176
14 UIKit 0x3412d8c2 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 254
15 QuartzCore 0x33ed950e -[CALayer layoutSublayers] + 210
16 QuartzCore 0x33ed90b0 CA::Layer::layout_if_needed(CA::Transaction*) + 456
17 QuartzCore 0x33f07eca -[CALayer layoutIfNeeded] + 138
18 UIKit 0x341d70dc -[UIViewController window:setupWithInterfaceOrientation:] + 204
19 UIKit 0x341d62c6 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3598
20 UIKit 0x341d54aa -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 42
21 UIKit 0x341d5434 -[UIWindow _setRotatableViewOrientation:duration:force:] + 64
22 UIKit 0x3430acb4 __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke_0 + 100
23 UIKit 0x3419367e -[UIWindow _updateToInterfaceOrientation:duration:force:] + 214
24 UIKit 0x341933c2 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 690
25 UIKit 0x34192d2a -[UIViewController _tryBecomeRootViewControllerInWindow:] + 150
26 UIKit 0x34189e86 -[UIWindow addRootViewControllerViewIfPossible] + 366
27 UIKit 0x341d4ef2 -[UIWindow setRootViewController:] + 658
28 kodinisRaktas 0x000a1bd4 0x0009f000 + 11220
29 kodinisRaktas 0x000a18f6 0x0009f000 + 10486
30 UIKit 0x3418aa9c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
31 UIKit 0x3418a620 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
32 UIKit 0x3418282e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
33 UIKit 0x3412ad1a -[UIApplication handleEvent:withNewEvent:] + 1006
34 UIKit 0x3412a7a8 -[UIApplication sendEvent:] + 68
35 UIKit 0x3412a1ea _UIApplicationHandleEvent + 6194
36 GraphicsServices 0x35e425f2 _PurpleEventCallback + 586
37 GraphicsServices 0x35e42222 PurpleEventCallback + 30
38 CoreFoundation 0x322f03e2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
39 CoreFoundation 0x322f0386 __CFRunLoopDoSource1 + 134
40 CoreFoundation 0x322ef20a __CFRunLoopRun + 1378
41 CoreFoundation 0x32262238 CFRunLoopRunSpecific + 352
42 CoreFoundation 0x322620c4 CFRunLoopRunInMode + 100
43 UIKit 0x34181468 -[UIApplication _run] + 664
44 UIKit 0x3417e2b4 UIApplicationMain + 1116
45 kodinisRaktas 0x000a0d96 0x0009f000 + 7574
46 kodinisRaktas 0x000a0d4c 0x0009f000 + 7500
I can't reproduce the crash on my own device, so this is all I got to determine the crash source. Any ideas ?
You should symbolicate the crash log by opening it in Xcode and clicking Re-symbolicate. If this doesn't work you can do something like this How to Manually Symbolicate iOS Crash to View Crash Logs

crash the second time I load a cell

This is how I load the cell:
zimmerCell = (ZimmerCell*)[tableView dequeueReusableCellWithIdentifier:#"ZimmerCell"];
if (zimmerCell == nil) {
ZimmerCell* loadedCell;
loadedCell = [[[NSBundle mainBundle] loadNibNamed:#"ZimmerCell" owner:self options:nil] objectAtIndex:0];
zimmerCell = [loadedCell retain];
[zimmerCell prepare];
}
return zimmerCell;
It works the first time I open the table.
When I exit the view controller and enter it again, it crashes with the following:
* Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [0 0;
nan 7.27683e-38]'
* Call stack at first throw: ( 0 CoreFoundation 0x01a44be9 exceptionPreprocess + 185 1 libobjc.A.dylib
0x01b995c2 objc_exception_throw + 47 2 CoreFoundation
0x019fd628 +[NSException raise:format:arguments:] + 136 3
CoreFoundation 0x019fd59a +[NSException
raise:format:] + 58 4 QuartzCore
0x008b63ee _ZL16CALayerSetBoundsP7CALayerRKN2CA4RectEb + 227 5
QuartzCore 0x008b62b6 -[CALayer setBounds:] +
122 6 UIKit 0x0121eac0 -[UIView
_createLayerWithFrame:] + 401 7 UIKit 0x0121a13b UIViewCommonInitWithFrame + 421 8 UIKit
0x0121b063 -[UIView initWithFrame:] + 113 9 UIKit
0x013ae909 -[UITableViewCell initWithCoder:] + 1218 10 PrivatQuadrat
0x00021e87 -[ZimmerCell initWithCoder:] + 62 11 UIKit
0x013e0265 -[UIClassSwapper initWithCoder:] + 237 12 UIKit
0x014c69e4 UINibDecoderDecodeObjectForValue + 2592 13 UIKit
0x014c7693 -[UINibDecoder decodeObjectForKey:] + 398 14 UIKit
0x013dff43 -[UIRuntimeConnection initWithCoder:] + 212 15 UIKit
0x014c69e4 UINibDecoderDecodeObjectForValue + 2592 16 UIKit
0x014c62dc UINibDecoderDecodeObjectForValue + 792 17 UIKit
0x014c7693 -[UINibDecoder decodeObjectForKey:] + 398 18 UIKit
0x013df200 -[UINib instantiateWithOwner:options:] + 804 19 UIKit
0x013e1081 -[NSBundle(UINSBundleAdditions)
loadNibNamed:owner:options:] + 168 20 PrivatQuadrat
0x00021401 -[ErweitertViewController tableView:cellForRowAtIndexPath:]
+ 202 21 UIKit 0x0125d7fa -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 634 22 UIKit 0x0125377f -[UITableView(UITableViewInternal)
_createPreparedCellForGlobalRow:] + 75 23 UIKit 0x01268450 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:]
+ 1561 24 UIKit 0x01260538 -[UITableView layoutSubviews] + 242 25 QuartzCore 0x008bc451 -[CALayer layoutSublayers] + 181 26 QuartzCore
0x008bc17c CALayerLayoutIfNeeded + 220 27 QuartzCore
0x008b537c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
28 QuartzCore 0x008b50d0
_ZN2CA11Transaction6commitEv + 292 29 QuartzCore 0x008e57d5
_ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99 30 CoreFoundation 0x01a25fbb
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 27 31 CoreFoundation 0x019bb0e7 __CFRunLoopDoObservers
+ 295 32 CoreFoundation 0x01983bd7 __CFRunLoopRun + 1575 33 CoreFoundation 0x01983240 CFRunLoopRunSpecific + 208 34 CoreFoundation
0x01983161 CFRunLoopRunInMode + 97 35 GraphicsServices
0x02487268 GSEventRunModal + 217 36 GraphicsServices
0x0248732d GSEventRun + 115 37 UIKit
0x011f842e UIApplicationMain + 1160 38 PrivatQuadrat
0x00002184 main + 102 39 PrivatQuadrat
0x00002115 start + 53
Any ideas?