Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UI testPagesViewController #3661

Closed
philipphofmann opened this issue Feb 19, 2024 · 0 comments
Closed

Fix UI testPagesViewController #3661

philipphofmann opened this issue Feb 19, 2024 · 0 comments

Comments

@philipphofmann
Copy link
Member

philipphofmann commented Feb 19, 2024

Description

This test and testTabBarViewController often fail in SauceLabs with

Failed to Error Domain=com.apple.dt.XCTest.XCTFuture Code=1000 "Timed out while evaluating UI query." UserInfo={NSLocalizedDescription=Timed out while evaluating UI query.}: Timed out while evaluating UI query.

The test testPagesViewController also crashes when running it locally with

2024-02-19 16:33:43.110192+0100 iOS-Swift[84049:4402089] *** Assertion failure in void writeProfileFile(NSDictionary<NSString *,id> *__strong)(), SentryProfiler.mm:480
2024-02-19 16:33:43.113503+0100 iOS-Swift[84049:4402089] *** Terminating app due to uncaught exception 'SwizzlingError', reason: 'Original method not called'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000018048d8a8 __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x000000018008409c objc_exception_throw + 56
	2   Sentry                              0x0000000106122dc8 __51-[SentryUIViewControllerSwizzling swizzleLoadView:]_block_invoke_2 + 360
	3   UIKitCore                           0x0000000184b9c1c8 -[UIViewController loadViewIfRequired] + 152
	4   UIKitCore                           0x0000000184afaafc -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 120
	5   UIKitCore                           0x0000000184afad64 -[UINavigationController _startTransition:fromViewController:toViewController:] + 188
	6   UIKitCore                           0x0000000184afb8fc -[UINavigationController _startDeferredTransitionIfNeeded:] + 604
	7   UIKitCore                           0x0000000184afc75
*** Terminating app due to uncaught exception 'SwizzlingError', reason: 'Original method not called'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000018048d8a8 __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x000000018008409c objc_exception_throw + 56
	2   Sentry                              0x0000000106122dc8 __51-[SentryUIViewControllerSwizzling swizzleLoadView:]_block_invoke_2 + 360
	3   UIKitCore                           0x0000000184b9c1c8 -[UIViewController loadViewIfRequired] + 152
	4   UIKitCore                           0x0000000184afaafc -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 120
	5   UIKitCore                           0x0000000184afad64 -[UINavigationController _startTransition:fromViewController:toViewController:] + 188
	6   UIKitCore                           0x0000000184afb8fc -[UINavigationController _startDeferredTransitionIfNeeded:] + 604
	7   UIKitCore                           0x0000000184afc75c -[UINavigationController __viewWillLayoutSubviews] + 92
	8   UIKitCore                           0x0000000184ae35c8 -[UILayoutContainerView layoutSubviews] + 168
	9   UIKit                               0x00000001bded02fc -[UILayoutContainerViewAccessibility layoutSubviews] + 48
	10  UIKitCore                           0x00000001857cdb1c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1492
	11  QuartzCore                          0x0000000189f6fdd4 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 440
	12  QuartzCore                          0x0000000189f7ab30 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 124
	13  QuartzCore                          0x0000000189e963bc _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 460
	14  QuartzCore                          0x0000000189ec5bf0 _ZN2CA11Transaction6commitEv + 652
	15  QuartzCore                          0x0000000189ec70a4 _ZN2CA11Transaction25flush_as_runloop_observerEb + 68
	16  CoreFoundation                      0x00000001803ed648 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
	17  CoreFoundation                      0x00000001803e804c __CFRunLoopDoObservers + 528
	18  CoreFoundation                      0x00000001803e8504 __CFRunLoopRun + 968
	19  CoreFoundation                      0x00000001803e7d28 CFRunLoopRunSpecific + 572
	20  GraphicsServices                    0x000000018e7cdbc0 GSEventRunModal + 160
	21  UIKitCore                           0x00000001852bafdc -[UIApplication _run] + 868
	22  UIKitCore                           0x00000001852bec54 UIApplicationMain + 124
	23  iOS-Swift                           0x0000000104c84b34 main + 64
	24  dyld                                0x0000000104e95558 start_sim + 20
	25  ???                                 0x0000000104f5a0e0 0x0 + 4378173664
	26  ???                                 0x245c800000000000 0x0 + 2620109820711141376
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

1 participant