Detox: Signal 6 was raised - After upgrading from Detox 17.X to 19.1
What happened?
Detox tests were running fine locally on debug version of the ios.sim. But, after upgrade to 19.1 I get the following error -
Test suite failed to run now past the splash screen . It loads for a bit and crashes.
DetoxRuntimeError: The pending request #-1000 ("isReady") has been rejected due to the following error:
The app has crashed, see the details below:
Signal 6 was raised
(
0 Detox 0x0000000110498915 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
1 Detox 0x000000011049b370 __DTXHandleCrash + 464
2 Detox 0x000000011049bab1 __DTXHandleSignal + 59
3 libsystem_platform.dylib 0x00007fff522fcd7d _sigtramp + 29
4 Edge 0x0000000105afe000 appcenter_library_info + 709436
5 libsystem_c.dylib 0x00007fff521e9b7c abort + 120
6 Edge 0x0000000104cc2bf5 -[MSPLCrashReporter generateLiveReportWithThread:] + 0
7 CoreFoundation 0x00007fff23e3e2cd __handleUncaughtException + 877
8 libobjc.A.dylib 0x00007fff512a1c05 _objc_terminate() + 90
9 Edge 0x0000000102cbfd84 FIRCLSTerminateHandler() + 452
10 Edge 0x0000000104ca3994 MSCrashesUncaughtCXXTerminateHandler() + 780
11 Detox 0x000000011049bfa6 __dtx_terminate() + 157
12 libc++abi.dylib 0x00007fff500eec87 std::__terminate(void (*)()) + 8
13 libc++abi.dylib 0x00007fff500eec29 std::terminate() + 41
14 libdispatch.dylib 0x00007fff520dc8df _dispatch_client_callout + 28
15 libdispatch.dylib 0x00007fff520dec36 _dispatch_continuation_pop + 440
16 libdispatch.dylib 0x00007fff520efa96 _dispatch_source_invoke + 1997
17 libdispatch.dylib 0x00007fff520e8b7c _dispatch_main_queue_callback_4CF + 691
18 CoreFoundation 0x00007fff23da1869 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
19 CoreFoundation 0x00007fff23d9c3b9 __CFRunLoopRun + 2041
20 CoreFoundation 0x00007fff23d9b8a4 CFRunLoopRunSpecific + 404
21 Foundation 0x00007fff25967c71 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 211
22 Foundation 0x00007fff25967ee0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 72
23 Edge 0x0000000104c33f8c +[RNSplashScreen show] + 316
24 Edge 0x0000000102680532 -[AppDelegate application:didFinishLaunchingWithOptions:] + 1106
25 Detox 0x0000000110497d24 -[DetoxAppDelegateProxy application:didFinishLaunchingWithOptions:] + 170
26 UIKitCore 0x00007fff49369610 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 232
27 UIKitCore 0x00007fff4936afaf -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3985
28 UIKitCore 0x00007fff49370b71 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1226
29 UIKitCore 0x00007fff48a7912d -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122
30 UIKitCore 0x00007fff48f84b61 _UIScenePerformActionsWithLifecycleActionMask + 83
31 UIKitCore 0x00007fff48a79c3f __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198
32 UIKitCore 0x00007fff48a7964e -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 296
33 UIKitCore 0x00007fff48a79a6c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 818
34 UIKitCore 0x00007fff48a79301 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 345
35 UIKitCore 0x00007fff48a7d8f2 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 178
36 UIKitCore 0x00007fff48e9ac4d +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 852
37 UIKitCore 0x00007fff48fa32be _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 240
38 UIKitCore 0x00007fff48a7d60d __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 153
39 UIKitCore 0x00007fff48fa31c1 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 84
40 UIKitCore 0x00007fff48a7d47b -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 381
41 UIKitCore 0x00007fff488d1e78 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 657
42 UIKitCore 0x00007fff488d0a37 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 253
43 UIKitCore 0x00007fff488d1ba2 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 210
44 UIKitCore 0x00007fff4936f0b9 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 512
45 UIKitCore 0x00007fff48ec177c -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
46 FrontBoardServices 0x00007fff36d03d2e -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 419
47 FrontBoardServices 0x00007fff36d29dc1 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.154 + 102
48 FrontBoardServices 0x00007fff36d0e757 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 220
49 FrontBoardServices 0x00007fff36d29a52 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 355
50 libdispatch.dylib 0x00007fff520dc8cb _dispatch_client_callout + 8
51 libdispatch.dylib 0x00007fff520df292 _dispatch_block_invoke_direct + 285
52 FrontBoardServices 0x00007fff36d4f6e9 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
53 FrontBoardServices 0x00007fff36d4f3d7 -[FBSSerialQueue _queue_performNextIfPossible] + 441
54 FrontBoardServices 0x00007fff36d4f8e6 -[FBSSerialQueue _performNextFromRunLoopSource] + 22
55 CoreFoundation 0x00007fff23da1c91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
56 CoreFoundation 0x00007fff23da1bbc __CFRunLoopDoSource0 + 76
57 CoreFoundation 0x00007fff23da1394 __CFRunLoopDoSources0 + 180
58 CoreFoundation 0x00007fff23d9bf8e __CFRunLoopRun + 974
59 CoreFoundation 0x00007fff23d9b8a4 CFRunLoopRunSpecific + 404
60 GraphicsServices 0x00007fff38c05bbe GSEventRunModal + 139
61 DetoxSync 0x000000011351fa52 __detox_sync_UIApplication_run + 362
62 UIKitCore 0x00007fff49372964 UIApplicationMain + 1605
63 Edge 0x00000001026827c4 main + 132
64 libdyld.dylib 0x00007fff5211c1fd start + 1
65 ??? 0x0000000000000010 0x0 + 16
)
31 | async initDetox() {
32 | const instance = await this.detox.init(this.config, { launchApp: false });
> 33 | await instance.device.launchApp({
| ^
34 | delete: true,
35 | permissions: devicePermissions,
36 | launchArgs: defaultLaunchArgs,
at CustomDetoxEnvironment.initDetox (environment.js:33:27)
at ../node_modules/detox/runners/jest-circus/environment.js:122:18
at CustomDetoxEnvironment._onSetup (../node_modules/detox/runners/jest-circus/environment.js:119:15)
at CustomDetoxEnvironment.handleTestEvent (../node_modules/detox/runners/jest-circus/environment.js:83:9)
at CustomDetoxEnvironment.handleTestEvent (environment.js:63:5)
17:34:53.552 detox[48528] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' --maxWorkers 1 --bail e2e/e2eTests/Flows/Cards.spec.js
What was the expected behaviour?
The tests should pass
Was it tested on latest Detox?
- I have tested this issue on the latest Detox release and it still reproduces.
Did your test throw out a timeout?
- I have followed the instructions under Identifying which synchronization mechanism causes us to wait too much.
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 19.1 React Native version: 0.64 Node version: Device model: iOS version: 14.5, 13.7 macOS version: Xcode version: 12.5, 13.1 Test-runner (select one): jest-circus
Detox logs
Detox logs
paste logs here!
17:31:36.215 detox[48528] INFO: [test.js] DETOX_CONFIGURATION=“ios.sim.debug.e2e” DETOX_LOGLEVEL=“verbose” DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1647477096191 DETOX_TAKE_SCREENSHOTS=“failing” DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern ‘^((?!:android:).)*$’ --maxWorkers 1 --bail e2e/e2eTests/denseFlows/denseEducationCards.spec.js 17:31:41.606 detox[48529] DEBUG: [WSS_CREATE] Detox server listening on localhost:59613… 17:31:41.644 detox[48529] DEBUG: [WSS_CONNECTION, #59614] registered a new connection. 17:31:42.147 detox[48529] DEBUG: [EXEC_CMD, #0] applesimutils --list --byOS “iOS 13.7” --byType “iPhone 11” 17:31:43.693 detox[48529] DEBUG: [EXEC_CMD, #1] applesimutils --list --byId 6BB01B02-F14A-4A08-AC5F-6B4F195408F6 --maxResults 1 17:31:44.816 detox[48529] DEBUG: [EXEC_CMD, #2] /usr/bin/xcrun simctl terminate 6BB01B02-F14A-4A08-AC5F-6B4F195408F6 to.hover.ios.dev 17:31:44.817 detox[48529] DEBUG: [EXEC_TRY, #2] Terminating to.hover.ios.dev… 17:31:45.707 detox[48529] DEBUG: [EXEC_SUCCESS, #2] to.hover.ios.dev terminated 17:31:45.713 detox[48529] DEBUG: [EXEC_CMD, #3] /usr/bin/xcrun simctl uninstall 6BB01B02-F14A-4A08-AC5F-6B4F195408F6 to.hover.ios.dev 17:31:45.713 detox[48529] DEBUG: [EXEC_TRY, #3] Uninstalling to.hover.ios.dev… 17:31:47.627 detox[48529] DEBUG: [EXEC_SUCCESS, #3] to.hover.ios.dev uninstalled 17:31:47.630 detox[48529] DEBUG: [EXEC_CMD, #4] /usr/bin/xcrun simctl install 6BB01B02-F14A-4A08-AC5F-6B4F195408F6 “/Users/rajathrao/rnHover/mobile-react-native/ios/build/Build/Products/Debug-iphonesimulator/Edge.app” 17:31:47.631 detox[48529] DEBUG: [EXEC_TRY, #4] Installing /Users/rajathrao/rnHover/mobile-react-native/ios/build/Build/Products/Debug-iphonesimulator/Edge.app… 17:31:51.509 detox[48529] DEBUG: [EXEC_SUCCESS, #4] /Users/rajathrao/rnHover/mobile-react-native/ios/build/Build/Products/Debug-iphonesimulator/Edge.app installed 17:31:51.516 detox[48529] DEBUG: [EXEC_CMD, #5] /usr/bin/xcrun simctl terminate 6BB01B02-F14A-4A08-AC5F-6B4F195408F6 to.hover.ios.dev 17:31:51.517 detox[48529] DEBUG: [EXEC_TRY, #5] Terminating to.hover.ios.dev… 17:31:52.348 detox[48529] DEBUG: [EXEC_SUCCESS, #5] to.hover.ios.dev terminated 17:31:52.350 detox[48529] DEBUG: [EXEC_CMD, #6] /usr/bin/xcrun simctl uninstall 6BB01B02-F14A-4A08-AC5F-6B4F195408F6 to.hover.ios.dev 17:31:52.350 detox[48529] DEBUG: [EXEC_TRY, #6] Uninstalling to.hover.ios.dev… 17:31:54.260 detox[48529] DEBUG: [EXEC_SUCCESS, #6] to.hover.ios.dev uninstalled 17:31:54.262 detox[48529] DEBUG: [EXEC_CMD, #7] /usr/bin/xcrun simctl install 6BB01B02-F14A-4A08-AC5F-6B4F195408F6 “/Users/rajathrao/rnHover/mobile-react-native/ios/build/Build/Products/Debug-iphonesimulator/Edge.app” 17:31:54.262 detox[48529] DEBUG: [EXEC_TRY, #7] Installing /Users/rajathrao/rnHover/mobile-react-native/ios/build/Build/Products/Debug-iphonesimulator/Edge.app… 17:31:58.257 detox[48529] DEBUG: [EXEC_SUCCESS, #7] /Users/rajathrao/rnHover/mobile-react-native/ios/build/Build/Products/Debug-iphonesimulator/Edge.app installed 17:31:58.260 detox[48529] DEBUG: [EXEC_CMD, #8] applesimutils --byId 6BB01B02-F14A-4A08-AC5F-6B4F195408F6 --bundle to.hover.ios.dev --restartSB --setPermissions notifications=YES,location=always,camera=YES,photos=YES 17:31:58.260 detox[48529] DEBUG: [EXEC_TRY, #8] Trying to set permissions… 17:32:02.918 detox[48529] DEBUG: [EXEC_SUCCESS, #8] Permissions are set 17:32:02.922 detox[48529] DEBUG: [EXEC_CMD, #9] SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=YES SIMCTL_CHILD_DYLD_INSERT_LIBRARIES=“/Users/rajathrao/Library/Detox/ios/fee997ef6fc4658c8aa8eb742d05b92983da34a7/Detox.framework/Detox” /usr/bin/xcrun simctl launch 6BB01B02-F14A-4A08-AC5F-6B4F195408F6 to.hover.ios.dev --args -detoxServer ws://localhost:59613 -detoxSessionId ff95e6bc-de9b-054f-c370-e160d7b47d6e -mockedTreatments default -apiServerPort 7172 -uploadServerPort 8091 -detoxDebugVisibility YES -detoxDisableHierarchyDump YES 17:32:02.923 detox[48529] DEBUG: [EXEC_TRY, #9] Launching to.hover.ios.dev… 17:32:10.098 detox[48529] DEBUG: [EXEC_CMD, #10] /usr/bin/xcrun simctl get_app_container 6BB01B02-F14A-4A08-AC5F-6B4F195408F6 to.hover.ios.dev 17:32:13.913 detox[48529] INFO: [AppleSimUtils.js] to.hover.ios.dev launched. To watch simulator logs, run: /usr/bin/xcrun simctl spawn 6BB01B02-F14A-4A08-AC5F-6B4F195408F6 log stream --level debug --style compact --predicate ‘process == “Edge”’ 17:32:14.525 detox[48529] DEBUG: [WSS_CONNECTION, #59631] registered a new connection. 17:32:25.624 detox[48529] DEBUG: [APP_STATUS] Failed to execute the current status query. 17:34:41.891 detox[48529] DEBUG: [EXEC_CMD, #11] /usr/bin/xcrun simctl terminate 6BB01B02-F14A-4A08-AC5F-6B4F195408F6 to.hover.ios.dev 17:34:41.891 detox[48529] DEBUG: [EXEC_TRY, #11] Terminating to.hover.ios.dev… 17:34:43.061 detox[48529] DEBUG: [EXEC_SUCCESS, #11] to.hover.ios.dev terminated 17:34:48.044 detox[48529] ERROR: The pending request #-1000 (“isReady”) has been rejected due to the following error:
The app has crashed, see the details below:
Signal 6 was raised ( 0 Detox 0x0000000110498915 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37 1 Detox 0x000000011049b370 __DTXHandleCrash + 464 2 Detox 0x000000011049bab1 __DTXHandleSignal + 59 3 libsystem_platform.dylib 0x00007fff522fcd7d _sigtramp + 29 4 Edge 0x0000000105afe000 appcenter_library_info + 709436 5 libsystem_c.dylib 0x00007fff521e9b7c abort + 120 6 Edge 0x0000000104cc2bf5 -[MSPLCrashReporter generateLiveReportWithThread:] + 0 7 CoreFoundation 0x00007fff23e3e2cd __handleUncaughtException + 877 8 libobjc.A.dylib 0x00007fff512a1c05 _objc_terminate() + 90 9 Edge 0x0000000102cbfd84 FIRCLSTerminateHandler() + 452 10 Edge 0x0000000104ca3994 MSCrashesUncaughtCXXTerminateHandler() + 780 11 Detox 0x000000011049bfa6 __dtx_terminate() + 157 12 libc++abi.dylib 0x00007fff500eec87 std::__terminate(void (*)()) + 8 13 libc++abi.dylib 0x00007fff500eec29 std::terminate() + 41 14 libdispatch.dylib 0x00007fff520dc8df _dispatch_client_callout + 28 15 libdispatch.dylib 0x00007fff520dec36 _dispatch_continuation_pop + 440 16 libdispatch.dylib 0x00007fff520efa96 _dispatch_source_invoke + 1997 17 libdispatch.dylib 0x00007fff520e8b7c _dispatch_main_queue_callback_4CF + 691 18 CoreFoundation 0x00007fff23da1869 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 19 CoreFoundation 0x00007fff23d9c3b9 __CFRunLoopRun + 2041 20 CoreFoundation 0x00007fff23d9b8a4 CFRunLoopRunSpecific + 404 21 Foundation 0x00007fff25967c71 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 211 22 Foundation 0x00007fff25967ee0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 72 23 Edge 0x0000000104c33f8c +[RNSplashScreen show] + 316 24 Edge 0x0000000102680532 -[AppDelegate application:didFinishLaunchingWithOptions:] + 1106 25 Detox 0x0000000110497d24 -[DetoxAppDelegateProxy application:didFinishLaunchingWithOptions:] + 170 26 UIKitCore 0x00007fff49369610 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 232 27 UIKitCore 0x00007fff4936afaf -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3985 28 UIKitCore 0x00007fff49370b71 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1226 29 UIKitCore 0x00007fff48a7912d -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122 30 UIKitCore 0x00007fff48f84b61 _UIScenePerformActionsWithLifecycleActionMask + 83 31 UIKitCore 0x00007fff48a79c3f __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198 32 UIKitCore 0x00007fff48a7964e -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 296 33 UIKitCore 0x00007fff48a79a6c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 818 34 UIKitCore 0x00007fff48a79301 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 345 35 UIKitCore 0x00007fff48a7d8f2 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 178 36 UIKitCore 0x00007fff48e9ac4d +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 852 37 UIKitCore 0x00007fff48fa32be _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 240 38 UIKitCore 0x00007fff48a7d60d __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 153 39 UIKitCore 0x00007fff48fa31c1 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 84 40 UIKitCore 0x00007fff48a7d47b -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 381 41 UIKitCore 0x00007fff488d1e78 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 657 42 UIKitCore 0x00007fff488d0a37 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 253 43 UIKitCore 0x00007fff488d1ba2 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 210 44 UIKitCore 0x00007fff4936f0b9 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 512 45 UIKitCore 0x00007fff48ec177c -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361 46 FrontBoardServices 0x00007fff36d03d2e -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 419 47 FrontBoardServices 0x00007fff36d29dc1 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.154 + 102 48 FrontBoardServices 0x00007fff36d0e757 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 220 49 FrontBoardServices 0x00007fff36d29a52 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 355 50 libdispatch.dylib 0x00007fff520dc8cb _dispatch_client_callout + 8 51 libdispatch.dylib 0x00007fff520df292 _dispatch_block_invoke_direct + 285 52 FrontBoardServices 0x00007fff36d4f6e9 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 30 53 FrontBoardServices 0x00007fff36d4f3d7 -[FBSSerialQueue _queue_performNextIfPossible] + 441 54 FrontBoardServices 0x00007fff36d4f8e6 -[FBSSerialQueue _performNextFromRunLoopSource] + 22 55 CoreFoundation 0x00007fff23da1c91 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 56 CoreFoundation 0x00007fff23da1bbc __CFRunLoopDoSource0 + 76 57 CoreFoundation 0x00007fff23da1394 __CFRunLoopDoSources0 + 180 58 CoreFoundation 0x00007fff23d9bf8e __CFRunLoopRun + 974 59 CoreFoundation 0x00007fff23d9b8a4 CFRunLoopRunSpecific + 404 60 GraphicsServices 0x00007fff38c05bbe GSEventRunModal + 139 61 DetoxSync 0x000000011351fa52 __detox_sync_UIApplication_run + 362 62 UIKitCore 0x00007fff49372964 UIApplicationMain + 1605 63 Edge 0x00000001026827c4 main + 132 64 libdyld.dylib 0x00007fff5211c1fd start + 1 65 ??? 0x0000000000000010 0x0 + 16 ) 17:34:53.367 detox[48529] INFO: Scenario: Flow is assigned to undefined 17:34:53.371 detox[48529] INFO: Scenario: should allow users to log in 17:34:53.373 detox[48529] INFO: Scenario: should allow users to log in [FAIL] 17:34:53.377 detox[48529] INFO: Scenario::shall swipe through the cards 17:34:53.378 detox[48529] INFO: Scenario: : shall swipe through the cards [FAIL]
Device logs
Device logs
paste logs here!
NA
More data, please!
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 24 (4 by maintainers)
weird, our release version seems to work on 19.1 but the debug version crashes
For additional context:
Upgrade to 19.7 will fix it. https://issuehint.com/issue/wix/Detox/3407#82286146
Paired with @rajathrao and we found the answer. Based on this link https://githubhot.com/repo/wix/Detox/issues/2944 author advised to use
--loglevel trace
to get the most extended log. The log is really very extended and before the crash point is says:{"messageId":-10000,"type":"AppWillTerminateWithError","params":{"exceptionReason":"You must override the
supportedEventsmethod of VydiaRNFileUploader(__detox_sync_URLSessionDelegateProxy)","exceptionName":"NSInternalInconsistencyException","threadNumber":1,"queueName":"com.apple.main-thread","errorDetails":"Exception was thrown: \nNSInternalInconsistencyException\nYou must override the
supportedEventsmethod of VydiaRNFileUploader(__detox_sync_URLSessionDelegateProxy)\n(\n\t0 CoreFoundation 0x000000011b083ae2 __exceptionPreprocess + 226\n\t1 libobjc.A.dylib 0x000000011aa08e78 objc_exception_throw + 48\n\t2 CoreFoundation 0x000000011b08391b +[NSException raise:format:] + 0\n\t3 Foundation 0x00000001133ac633 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166\n\t4 Edge 0x000000010438732a +[RCTEventEmitter initialize] + 362\n\t5 libobjc.A.dylib 0x000000011aa09453 CALLING_SOME_+initialize_METHOD + 17\n\t6 libobjc.A.dylib
Based on it the error text ‘you must override the supportedEvents’ I found this thread https://github.com/react-native-sensors/react-native-sensors/issues/272#issuecomment-525845839 when guy changed the config from debug to release and it started working - our case.
We are interested in this line from error:
{"exceptionReason":"You must override the supportedEvents method of VydiaRNFileUploader
. And for sure the package that rises the issue contains this lineVydiaRNFileUploader
and it comes from…react-native-background-upload
! We had a forked library of this package and then we updated to the latest version and the issue has gone.The flow above contains the steps how to debug and find the package the blocks the normal synchronization, because there are no actually mistakes in the application or detox.
@rajathrao We use release build to run e2e test. Actually, we experienced the same issue as you, it happens randomly. I didn’t find a way to reproduce it.