-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Did you test using the latest Detox?
- I have tested this issue on the latest Detox release and it still reproduces.
Did your test fail and you're not sure why?
- I have read the troubleshooting guide and it didn't help me.
What happened?
I'm updating react-native-screens example applications to use [email protected] & my e2e started to fail on calls to device.reloadReactNative(). See the logs below 👇🏻
Crash logs
● Simple Native Stack › should go back to main screen
The pending request #-1000 ("reactNativeReload") has been rejected due to the following error:
The app has crashed, see the details below:
NSUnknownKeyException
[<FabricExample.AppDelegate 0x600000c24ae0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key rootViewFactory.
(
0 CoreFoundation 0x00000001804b9100 __exceptionPreprocess + 160
1 libobjc.A.dylib 0x0000000180092da8 objc_exception_throw + 72
2 CoreFoundation 0x00000001804b8ca0 -[NSException init] + 0
3 Foundation 0x0000000180e9e8e0 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 188
4 Foundation 0x0000000180e9d7c4 -[NSObject(NSKeyValueCoding) valueForKey:] + 260
5 Detox 0x000000010102a478 +[ReactNativeSupport reloadApp] + 232
6 Detox 0x0000000101078df4 merged reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 28
7 DetoxSync 0x0000000101d01e10 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.66 + 172
8 libdispatch.dylib 0x000000018017b314 _dispatch_call_block_and_release + 24
9 libdispatch.dylib 0x000000018017cc08 _dispatch_client_callout + 16
10 libdispatch.dylib 0x000000018018bc2c _dispatch_main_queue_drain + 1276
11 libdispatch.dylib 0x000000018018b720 _dispatch_main_queue_callback_4CF + 40
12 CoreFoundation 0x000000018041cdac __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
13 CoreFoundation 0x0000000180417308 __CFRunLoopRun + 1944
14 CoreFoundation 0x00000001804166f4 CFRunLoopRunSpecific + 552
15 GraphicsServices 0x00000001905e5b10 GSEventRunModal + 160
16 UIKitCore 0x0000000185b319dc -[UIApplication _run] + 796
17 DetoxSync 0x0000000101cfd634 __detox_sync_UIApplication_run + 80
18 UIKitCore 0x0000000185b35bd4 UIApplicationMain + 124
19 UIKitCore 0x0000000184f0a334 block_destroy_helper.22 + 9660
20 FabricExample 0x0000000100270ec4 main + 120
21 dyld 0x00000001016cd410 start_sim + 20
22 ??? 0x00000001011e2154 0x0 + 4313719124
23 ??? 0xa235800000000000 0x0 + -6758354928311205888
)
3 | describe('Simple Native Stack', () => {
4 | beforeAll(async () => {
> 5 | await device.reloadReactNative();
| ^
6 | });
7 |
8 | it('should go to main screen', async () => {
at Object.<anonymous> (e2e/examplesTests/simpleNativeStack.e2e.ts:5:18)
Test Suites: 11 failed, 11 total
Tests: 62 failed, 62 total
Snapshots: 0 total
Time: 413.107 s
Ran all test suites.
12:06:49.643 detox[41381] E Command failed with exit code = 1:
jest --config e2e/jest.config.js
Error: Process completed with exit code 1.
I realise that 0.79 is not yet officially supported, but keeping my fingers crossed that we'll be able to figure something out.
I believe the crash might be due to some recent changes (link) & changes to react native setup (link - look at changes to AppDelegate.swift)
What was the expected behaviour?
There should be no crash.
Help us reproduce this issue!
I do not have minimal reproduction, however the problem can be reproduced by:
- cloning
react-native-screensrepo - preparing the repo by following setup instructions
- checkout to
@kkafar/support-0.79.0-rc.4branch yarn(at root level dir)cd FabricExample && yarn && cd ios && rbenv exec pod install && cd ../yarn build-e2e-ios && yarn test-e2e-ios
In what environment did this happen?
Detox version: 20.36.3
React Native version: 0.79.1
Has Fabric (React Native's new rendering system) enabled: yes
Node version: 23.7.0
Device model: running on iPhone 16 Pro simulator
iOS version: 18.4
macOS version: Sequoia 15.4
Xcode version: 16.3
Test-runner (select one): jest
Detox logs
Detox logs
[...]
14:32:01.220 detox[14773] B artifacts-manager onBeforeLaunchApp
args: ({"bundleId":"org.reactjs.native.example.FabricExample","deviceId":"06C5AAB3-E775-4FF7-8BDA-943ECCBA36CF","launchArgs":{"detoxServer":"ws://localhost:55637","detoxSessionId":"515cbbb0-9d7e-c081-d807-3e9a761ad4ff"}})
14:32:01.220 detox[14773] E artifacts-manager onBeforeLaunchApp
14:32:01.220 detox[14773] i child-process:EXEC_CMD SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=YES SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/kkafara/Library/Detox/ios/framework/730e0bf26584b3207e04b56ca633d7be471ec36d/Detox.framework/Detox" /usr/bin/xcrun simctl launch 06C5AAB3-E775-4FF7-8BDA-943ECCBA36CF org.reactjs.native.example.FabricExample --args -detoxServer ws://localhost:55637 -detoxSessionId 515cbbb0-9d7e-c081-d807-3e9a761ad4ff -detoxDebugVisibility YES -detoxDisableHierarchyDump YES
14:32:01.221 detox[14773] i child-process:EXEC_TRY Launching org.reactjs.native.example.FabricExample...
14:32:01.392 detox[14773] i child-process:EXEC_SUCCESS org.reactjs.native.example.FabricExample: 14826
14:32:01.392 detox[14773] i child-process:EXEC_CMD /usr/bin/xcrun simctl get_app_container 06C5AAB3-E775-4FF7-8BDA-943ECCBA36CF org.reactjs.native.example.FabricExample
14:32:01.490 detox[14773] i child-process:EXEC_SUCCESS /Users/kkafara/Library/Developer/CoreSimulator/Devices/06C5AAB3-E775-4FF7-8BDA-943ECCBA36CF/data/Containers/Bundle/Application/3DCD6418-F929-4F52-8C17-9FBBC60D7166/FabricExample.app
14:32:01.496 detox[14773] i device org.reactjs.native.example.FabricExample launched. To watch simulator logs, run:
/usr/bin/xcrun simctl spawn 06C5AAB3-E775-4FF7-8BDA-943ECCBA36CF log stream --level debug --style compact --predicate 'process == "FabricExample"'
14:32:01.496 detox[14773] B artifacts-manager onLaunchApp
args: ({"bundleId":"org.reactjs.native.example.FabricExample","deviceId":"06C5AAB3-E775-4FF7-8BDA-943ECCBA36CF","launchArgs":{"detoxServer":"ws://localhost:55637","detoxSessionId":"515cbbb0-9d7e-c081-d807-3e9a761ad4ff","detoxDebugVisibility":"YES","detoxDisableHierarchyDump":"YES"},"pid":14826})
14:32:01.497 detox[14773] E artifacts-manager onLaunchApp
RUNS e2e/issuesTests/Test2809.e2e.ts
14:32:01.617 detox[14769] B ws-server@55643 connection :55637<->:55643
14:32:01.927 detox[14769] i ws-server@55643 get
data: {"params":{"sessionId":"515cbbb0-9d7e-c081-d807-3e9a761ad4ff","role":"app"},"type":"login","messageId":0}
14:32:01.927 detox[14769] i ws-server@55643 send
data: {
"params": {
"testerConnected": true,
"appConnected": true
},
"type": "loginSuccess",
"messageId": 0
}
14:32:01.928 detox[14769] i ws-server app joined session 515cbbb0-9d7e-c081-d807-3e9a761ad4ff
14:32:01.929 detox[14769] i ws-server@55639 send
data: {
14:32:01.929 detox[14773] i ws-client get message
data: {"type":"appConnected"}
14:32:01.930 detox[14773] i ws-client send message
data: {"type":"isReady","params":{},"messageId":-1000}
RUNS e2e/issuesTests/Test2809.e2e.ts
14:32:01.930 detox[14769] i ws-server@55639 get
data: {"type":"isReady","params":{},"messageId":-1000}
14:32:01.931 detox[14769] i ws-server@55643 send
data: {
"type": "isReady",
"params": {},
"messageId": -1000
RUNS e2e/issuesTests/Test2809.e2e.ts
14:32:03.562 detox[14769] i ws-server@55643 get
data: {"messageId":-1000,"type":"ready","params":{}}
14:32:03.562 detox[14769] i ws-server@55639 send
data: {
"messageId": -1000,
"type": "ready",
"params": {}
}
14:32:03.563 detox[14773] i ws-client get message
data: {"messageId":-1000,"type":"ready","params":{}}
RUNS e2e/issuesTests/Test2809.e2e.ts
14:32:03.563 detox[14769] i ws-server@55639 send
data: {
"messageId": -1000,
"type": "ready",
"params": {}
}
14:32:03.564 detox[14769] i ws-server@55643 get
data: {"messageId":-1000,"type":"ready","params":{}}
14:32:03.564 detox[14769] i ws-server@55639 send
data: {
"messageId": -1000,
"type": "ready",
14:32:03.564 detox[14773] i ws-client send message
data: {"type":"waitForActive","params":{},"messageId":1}
14:32:03.564 detox[14773] i ws-client get message
data: {"messageId":-1000,"type":"ready","params":{}}
RUNS e2e/issuesTests/Test2809.e2e.ts
14:32:03.564 detox[14773] i ws-client get message
data: {"messageId":-1000,"type":"ready","params":{}}
RUNS e2e/issuesTests/Test2809.e2e.ts
14:32:03.565 detox[14769] i ws-server@55643 send
data: {
"type": "waitForActive",
"params": {},
"messageId": 1
}
14:32:03.568 detox[14769] i ws-server@55643 get
data: {"messageId":1,"params":{},"type":"waitForActiveDone"}
14:32:03.569 detox[14769] i ws-server@55639 send
data: {
"messageId": 1,
"params": {},
14:32:03.569 detox[14773] i ws-client get message
data: {"messageId":1,"params":{},"type":"waitForActiveDone"}
14:32:03.569 detox[14773] B artifacts-manager onAppReady
args: ({"deviceId":"06C5AAB3-E775-4FF7-8BDA-943ECCBA36CF","bundleId":"org.reactjs.native.example.FabricExample","pid":14826})
14:32:03.569 detox[14773] E artifacts-manager onAppReady
14:32:03.570 detox[14773] E device launchApp
14:32:03.570 detox[14773] E lifecycle beforeAll
14:32:03.570 detox[14773] B lifecycle Test2809
14:32:03.570 detox[14773] B artifacts-manager onRunDescribeStart
args: ({"name":"Test2809"})
14:32:03.571 detox[14773] E artifacts-manager onRunDescribeStart
14:32:03.571 detox[14773] B lifecycle beforeAll
14:32:03.574 detox[14773] B device reloadReactNative
args: ()
14:32:03.575 detox[14773] i ws-client send message
data: {"type":"reactNativeReload","params":{},"messageId":-1000}
RUNS e2e/issuesTests/Test2809.e2e.ts
14:32:03.575 detox[14769] i ws-server@55639 get
data: {"type":"reactNativeReload","params":{},"messageId":-1000}
14:32:03.576 detox[14769] i ws-server@55643 send
data: {
"type": "reactNativeReload",
"params": {},
"messageId": -1000
}
14:32:03.586 detox[14769] i ws-server@55643 get
data: {"params":{"threadNumber":1,"queueName":"com.apple.main-thread","errorDetails":"NSUnknownKeyException\n[<FabricExample.AppDelegate 0x600000c36d90> valueForUndefinedKey:]: this class is not key value coding-compliant for the key rootViewFactory.\n(\n\t0 CoreFoundation 0x00000001804c88b4 __exceptionPreprocess + 160\n\t1 libobjc.A.dylib 0x00000001800937cc objc_exception_throw + 72\n\t2 CoreFoundation 0x00000001804c8454 -[NSException init] + 0\n\t3 Foundation 0x0000000180ea05e0 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 188\n\t4 Foundation 0x0000000180e9f4dc -[NSObject(NSKeyValueCoding) valueForKey:] + 260\n\t5 Detox 0x0000000101e4e478 +[ReactNativeSupport reloadApp] + 232\n\t6 Detox 0x0000000101e9cdf4 merged reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 28\n\t7 DetoxSync 0x0000000101c61e10 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.66 + 172\n\t8 libdispatch.dylib 0x000000018017c788 _dispatch_call_block_and_release + 24\n\t9 libdispatch.dylib 0x0000000180197278 _dispatch_client_callout + 12\n\t10 libdispatch.dylib 0x00000001801b2fcc _dispatch_main_queue_drain.cold.7 + 24\n\t11 libdispatch.dylib 0x000000018018c1c4 _dispatch_main_queue_drain + 1184\n\t12 libdispatch.dylib 0x000000018018bd14 _dispatch_main_queue_callback_4CF + 40\n\t13 CoreFoundation 0x0000000180427fec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12\n\t14 CoreFoundation 0x00000001804229f8 __CFRunLoopRun + 1920\n\t15 CoreFoundation 0x0000000180421e3c CFRunLoopRunSpecific + 536\n\t16 GraphicsServices 0x0000000190f62d00 GSEventRunModal + 164\n\t17 UIKitCore 0x0000000185bcec98 -[UIApplication _run] + 796\n\t18 DetoxSync 0x0000000101c5d634 __detox_sync_UIApplication_run + 80\n\t19 UIKitCore 0x0000000185bd3064 UIApplicationMain + 124\n\t20 UIKitCore 0x0000000184f9ad6c block_destroy_helper.14 + 9560\n\t21 FabricExample 0x0000000100a42df0 main + 120\n\t22 dyld 0x0000000101a493d8 start_sim + 20\n\t23 ??? 0x000000010191eb4c 0x0 + 4321307468\n)"},"messageId":-10000,"type":"AppWillTerminateWithError"}
14:32:03.586 detox[14769] i ws-server@55639 send
data: {
"params": {
"threadNumber": 1,
"queueName": "com.apple.main-thread",
"errorDetails": "NSUnknownKeyException\n[<FabricExample.AppDelegate 0x600000c36d90> valueForUndefinedKey:]: this class is not key value coding-compliant for the key rootViewFactory.\n(\n\t0 CoreFoundation 0x00000001804c88b4 __exceptionPreprocess + 160\n\t1 libobjc.A.dylib 0x00000001800937cc objc_exception_throw + 72\n\t2 CoreFoundation 0x00000001804c8454 -[NSException init] + 0\n\t3 Foundation 0x0000000180ea05e0 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 188\n\t4 Foundation 0x0000000180e9f4dc -[NSObject(NSKeyValueCoding) valueForKey:] + 260\n\t5 Detox 0x0000000101e4e478 +[ReactNativeSupport reloadApp] + 232\n\t6 Detox 0x0000000101e9cdf4 merged reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 28\n\t7 DetoxSync 0x0000000101c61e10 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.66 + 172\n\t8 libdispatch.dylib 0x000000018017c788 _dispatch_call_block_and_release + 24\n\t9 libdispatch.dylib 0x0000000180197278 _dispatch_client_callout + 12\n\t10 libdispatch.dylib 0x00000001801b2fcc _dispatch_main_queue_drain.cold.7 + 24\n\t11 libdispatch.dylib 0x000000018018c1c4 _dispatch_main_queue_drain + 1184\n\t12 libdispatch.dylib 0x000000018018bd14 _dispatch_main_queue_callback_4CF + 40\n\t13 CoreFoundation 0x0000000180427fec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12\n\t14 CoreFoundation 0x00000001804229f8 __CFRunLoopRun + 1920\n\t15 CoreFoundation 0x0000000180421e3c CFRunLoopRunSpecific + 536\n\t16 GraphicsServices 0x0000000190f62d00 GSEventRunModal + 164\n\t17 UIKitCore 0x0000000185bcec98 -[UIApplication _run] + 796\n\t18 DetoxSync 0x0000000101c5d634 __detox_sync_UIApplication_run + 80\n\t19 UIKitCore 0x0000000185bd3064 UIApplicationMain + 124\n\t20 UIKitCore 0x0000000184f9ad6c block_destroy_helper.14 + 9560\n\t21 FabricExample 0x0000000100a42df0 main + 120\n\t22 dyld 0x0000000101a493d8 start_sim + 20\n\t23 ??? 0x000000010191eb4c 0x0 + 4321307468\n)"
},
"messageId": -10000,
14:32:03.588 detox[14773] i ws-client get message
data: {"params":{"threadNumber":1,"queueName":"com.apple.main-thread","errorDetails":"NSUnknownKeyException\n[<FabricExample.AppDelegate 0x600000c36d90> valueForUndefinedKey:]: this class is not key value coding-compliant for the key rootViewFactory.\n(\n\t0 CoreFoundation 0x00000001804c88b4 __exceptionPreprocess + 160\n\t1 libobjc.A.dylib 0x00000001800937cc objc_exception_throw + 72\n\t2 CoreFoundation 0x00000001804c8454 -[NSException init] + 0\n\t3 Foundation 0x0000000180ea05e0 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 188\n\t4 Foundation 0x0000000180e9f4dc -[NSObject(NSKeyValueCoding) valueForKey:] + 260\n\t5 Detox 0x0000000101e4e478 +[ReactNativeSupport reloadApp] + 232\n\t6 Detox 0x0000000101e9cdf4 merged reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 28\n\t7 DetoxSync 0x0000000101c61e10 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.66 + 172\n\t8 libdispatch.dylib 0x000000018017c788 _dispatch_call_block_and_release + 24\n\t9 libdispatch.dylib 0x0000000180197278 _dispatch_client_callout + 12\n\t10 libdispatch.dylib 0x00000001801b2fcc _dispatch_main_queue_drain.cold.7 + 24\n\t11 libdispatch.dylib 0x000000018018c1c4 _dispatch_main_queue_drain + 1184\n\t12 libdispatch.dylib 0x000000018018bd14 _dispatch_main_queue_callback_4CF + 40\n\t13 CoreFoundation 0x0000000180427fec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12\n\t14 CoreFoundation 0x00000001804229f8 __CFRunLoopRun + 1920\n\t15 CoreFoundation 0x0000000180421e3c CFRunLoopRunSpecific + 536\n\t16 GraphicsServices 0x0000000190f62d00 GSEventRunModal + 164\n\t17 UIKitCore 0x0000000185bcec98 -[UIApplication _run] + 796\n\t18 DetoxSync 0x0000000101c5d634 __detox_sync_UIApplication_run + 80\n\t19 UIKitCore 0x0000000185bd3064 UIApplicationMain + 124\n\t20 UIKitCore 0x0000000184f9ad6c block_destroy_helper.14 + 9560\n\t21 FabricExample 0x0000000100a42df0 main + 120\n\t22 dyld 0x0000000101a493d8 start_sim + 20\n\t23 ??? 0x000000010191eb4c 0x0 + 4321307468\n)"},"messageId":-10000,"type":"AppWillTerminateWithError"}
RUNS e2e/issuesTests/Test2809.e2e.ts
14:32:05.595 detox[14769] i ws-server@55643 get
data: {"messageId":-10000,"type":"AppWillTerminateWithError","params":{"threadNumber":1,"queueName":"com.apple.main-thread","errorDetails":"Signal 6 raised\n(\n\t0 Detox 0x0000000101e5e514 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 36\n\t1 Detox 0x0000000101e614bc __DTXHandleCrash + 568\n\t2 Detox 0x0000000101e61ac8 __DTXHandleSignal + 72\n\t3 libsystem_platform.dylib 0x00000001017eb640 _sigtramp + 52\n\t4 libsystem_pthread.dylib 0x000000010178e2ec pthread_kill + 264\n\t5 libsystem_c.dylib 0x0000000180171ea8 abort + 100\n\t6 libc++abi.dylib 0x00000001802b0144 __cxxabiv1::__aligned_malloc_with_fallback(unsigned long) + 0\n\t7 libc++abi.dylib 0x000000018029fe4c demangling_terminate_handler() + 296\n\t8 libobjc.A.dylib 0x000000018006f220 _objc_terminate() + 124\n\t9 Detox 0x0000000101e61f8c __dtx_terminate() + 188\n\t10 libc++abi.dylib 0x00000001802af570 std::__terminate(void (*)()) + 12\n\t11 libc++abi.dylib 0x00000001802b2498 __cxa_get_exception_ptr + 0\n\t12 libc++abi.dylib 0x00000001802b2478 __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 0\n\t13 libobjc.A.dylib 0x0000000180093904 objc_exception_throw + 384\n\t14 CoreFoundation 0x00000001804c8454 -[NSException init] + 0\n\t15 Foundation 0x0000000180ea05e0 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 188\n\t16 Foundation 0x0000000180e9f4dc -[NSObject(NSKeyValueCoding) valueForKey:] + 260\n\t17 Detox 0x0000000101e4e478 +[ReactNativeSupport reloadApp] + 232\n\t18 Detox 0x0000000101e9cdf4 merged reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 28\n\t19 DetoxSync 0x0000000101c61e10 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.66 + 172\n\t20 libdispatch.dylib 0x000000018017c788 _dispatch_call_block_and_release + 24\n\t21 libdispatch.dylib 0x0000000180197278 _dispatch_client_callout + 12\n\t22 libdispatch.dylib 0x00000001801b2fcc _dispatch_main_queue_drain.cold.7 + 24\n\t23 libdispatch.dylib 0x000000018018c1c4 _dispatch_main_queue_drain + 1184\n\t24 libdispatch.dylib 0x000000018018bd14 _dispatch_main_queue_callback_4CF + 40\n\t25 CoreFoundation 0x0000000180427fec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12\n\t26 CoreFoundation 0x00000001804229f8 __CFRunLoopRun + 1920\n\t27 CoreFoundation 0x0000000180421e3c CFRunLoopRunSpecific + 536\n\t28 GraphicsServices 0x0000000190f62d00 GSEventRunModal + 164\n\t29 UIKitCore 0x0000000185bcec98 -[UIApplication _run] + 796\n\t30 DetoxSync 0x0000000101c5d634 __detox_sync_UIApplication_run + 80\n\t31 UIKitCore 0x0000000185bd3064 UIApplicationMain + 124\n\t32 UIKitCore 0x0000000184f9ad6c block_destroy_helper.14 + 9560\n\t33 FabricExample 0x0000000100a42df0 main + 120\n\t34 dyld 0x0000000101a493d8 start_sim + 20\n\t35 ??? 0x000000010191eb4c 0x0 + 4321307468\n)"}}
14:32:05.595 detox[14769] i ws-server@55639 send
data: {
"messageId": -10000,
"type": "AppWillTerminateWithError",
"params": {
"threadNumber": 1,
"queueName": "com.apple.main-thread",
"errorDetails": "Signal 6 raised\n(\n\t0 Detox 0x0000000101e5e514 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 36\n\t1 Detox 0x0000000101e614bc __DTXHandleCrash + 568\n\t2 Detox 0x0000000101e61ac8 __DTXHandleSignal + 72\n\t3 libsystem_platform.dylib 0x00000001017eb640 _sigtramp + 52\n\t4 libsystem_pthread.dylib 0x000000010178e2ec pthread_kill + 264\n\t5 libsystem_c.dylib 0x0000000180171ea8 abort + 100\n\t6 libc++abi.dylib 0x00000001802b0144 __cxxabiv1::__aligned_malloc_with_fallback(unsigned long) + 0\n\t7 libc++abi.dylib 0x000000018029fe4c demangling_terminate_handler() + 296\n\t8 libobjc.A.dylib 0x000000018006f220 _objc_terminate() + 124\n\t9 Detox 0x0000000101e61f8c __dtx_terminate() + 188\n\t10 libc++abi.dylib 0x00000001802af570 std::__terminate(void (*)()) + 12\n\t11 libc++abi.dylib 0x00000001802b2498 __cxa_get_exception_ptr + 0\n\t12 libc++abi.dylib 0x00000001802b2478 __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 0\n\t13 libobjc.A.dylib 0x0000000180093904 objc_exception_throw + 384\n\t14 CoreFoundation 0x00000001804c8454 -[NSException init] + 0\n\t15 Foundation 0x0000000180ea05e0 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 188\n\t16 Foundation 0x0000000180e9f4dc -[NSObject(NSKeyValueCoding) valueForKey:] + 260\n\t17 Detox 0x0000000101e4e478 +[ReactNativeSupport reloadApp] + 232\n\t18 Detox 0x0000000101e9cdf4 merged reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 28\n\t19 DetoxSync 0x0000000101c61e10 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.66 + 172\n\t20 libdispatch.dylib 0x000000018017c788 _dispatch_call_block_and_release + 24\n\t21 libdispatch.dylib 0x0000000180197278 _dispatch_client_callout + 12\n\t22 libdispatch.dylib 0x00000001801b2fcc _dispatch_main_queue_drain.cold.7 + 24\n\t23 libdispatch.dylib 0x000000018018c1c4 _dispatch_main_queue_drain + 1184\n\t24 libdispatch.dylib 0x000000018018bd14 _dispatch_main_queue_callback_4CF + 40\n\t25 CoreFoundation 0x0000000180427fec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12\n\t26 CoreFoundation 0x00000001804229f8 __CFRunLoopRun + 1920\n\t27 CoreFoundation 0x0000000180421e3c CFRunLoopRunSpecific + 536\n\t28 GraphicsServices 0x0000000190f62d00 GSEventRunModal + 164\n\t29 UIKitCore 0x0000000185bcec98 -[UIApplication _run] + 796\n\t30 DetoxSync 0x0000000101c5d634 __detox_sync_UIApplication_run + 80\n\t31 UIKitCore 0x0000000185bd3064 UIApplicationMain + 124\n\t32 UIKitCore 0x0000000184f9ad6c block_destroy_helper.14 + 9560\n\t33 FabricExample 0x0000000100a42df0 main + 120\n\t34 dyld 0x0000000101a493d8 start_sim + 20\n\t35 ??? 0x000000010191eb4c 0x0 + 4321307468\n)"
14:32:05.597 detox[14773] i ws-client get message
data: {"messageId":-10000,"type":"AppWillTerminateWithError","params":{"threadNumber":1,"queueName":"com.apple.main-thread","errorDetails":"Signal 6 raised\n(\n\t0 Detox 0x0000000101e5e514 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 36\n\t1 Detox 0x0000000101e614bc __DTXHandleCrash + 568\n\t2 Detox 0x0000000101e61ac8 __DTXHandleSignal + 72\n\t3 libsystem_platform.dylib 0x00000001017eb640 _sigtramp + 52\n\t4 libsystem_pthread.dylib 0x000000010178e2ec pthread_kill + 264\n\t5 libsystem_c.dylib 0x0000000180171ea8 abort + 100\n\t6 libc++abi.dylib 0x00000001802b0144 __cxxabiv1::__aligned_malloc_with_fallback(unsigned long) + 0\n\t7 libc++abi.dylib 0x000000018029fe4c demangling_terminate_handler() + 296\n\t8 libobjc.A.dylib 0x000000018006f220 _objc_terminate() + 124\n\t9 Detox 0x0000000101e61f8c __dtx_terminate() + 188\n\t10 libc++abi.dylib 0x00000001802af570 std::__terminate(void (*)()) + 12\n\t11 libc++abi.dylib 0x00000001802b2498 __cxa_get_exception_ptr + 0\n\t12 libc++abi.dylib 0x00000001802b2478 __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 0\n\t13 libobjc.A.dylib 0x0000000180093904 objc_exception_throw + 384\n\t14 CoreFoundation 0x00000001804c8454 -[NSException init] + 0\n\t15 Foundation 0x0000000180ea05e0 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 188\n\t16 Foundation 0x0000000180e9f4dc -[NSObject(NSKeyValueCoding) valueForKey:] + 260\n\t17 Detox 0x0000000101e4e478 +[ReactNativeSupport reloadApp] + 232\n\t18 Detox 0x0000000101e9cdf4 merged reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 28\n\t19 DetoxSync 0x0000000101c61e10 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.66 + 172\n\t20 libdispatch.dylib 0x000000018017c788 _dispatch_call_block_and_release + 24\n\t21 libdispatch.dylib 0x0000000180197278 _dispatch_client_callout + 12\n\t22 libdispatch.dylib 0x00000001801b2fcc _dispatch_main_queue_drain.cold.7 + 24\n\t23 libdispatch.dylib 0x000000018018c1c4 _dispatch_main_queue_drain + 1184\n\t24 libdispatch.dylib 0x000000018018bd14 _dispatch_main_queue_callback_4CF + 40\n\t25 CoreFoundation 0x0000000180427fec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12\n\t26 CoreFoundation 0x00000001804229f8 __CFRunLoopRun + 1920\n\t27 CoreFoundation 0x0000000180421e3c CFRunLoopRunSpecific + 536\n\t28 GraphicsServices 0x0000000190f62d00 GSEventRunModal + 164\n\t29 UIKitCore 0x0000000185bcec98 -[UIApplication _run] + 796\n\t30 DetoxSync 0x0000000101c5d634 __detox_sync_UIApplication_run + 80\n\t31 UIKitCore 0x0000000185bd3064 UIApplicationMain + 124\n\t32 UIKitCore 0x0000000184f9ad6c block_destroy_helper.14 + 9560\n\t33 FabricExample 0x0000000100a42df0 main + 120\n\t34 dyld 0x0000000101a493d8 start_sim + 20\n\t35 ??? 0x000000010191eb4c 0x0 + 4321307468\n)"}}
RUNS e2e/issuesTests/Test2809.e2e.ts
14:32:07.614 detox[14769] i ws-server app exited session 515cbbb0-9d7e-c081-d807-3e9a761ad4ff
14:32:07.614 detox[14769] i ws-server@55639 send
data: {
"type": "appDisconnected"
14:32:07.615 detox[14773] i ws-client get message
data: {"type":"appDisconnected"}
14:32:07.616 detox[14773] E device reloadReactNative
error: The pending request #-1000 ("reactNativeReload") has been rejected due to the following error:
The app has crashed, see the details below:
NSUnknownKeyException
[<FabricExample.AppDelegate 0x600000c36d90> valueForUndefinedKey:]: this class is not key value coding-compliant for the key rootViewFactory.
(
0 CoreFoundation 0x00000001804c88b4 __exceptionPreprocess + 160
1 libobjc.A.dylib 0x00000001800937cc objc_exception_throw + 72
2 CoreFoundation 0x00000001804c8454 -[NSException init] + 0
3 Foundation 0x0000000180ea05e0 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 188
4 Foundation 0x0000000180e9f4dc -[NSObject(NSKeyValueCoding) valueForKey:] + 260
5 Detox 0x0000000101e4e478 +[ReactNativeSupport reloadApp] + 232
6 Detox 0x0000000101e9cdf4 merged reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 28
7 DetoxSync 0x0000000101c61e10 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.66 + 172
8 libdispatch.dylib 0x000000018017c788 _dispatch_call_block_and_release + 24
9 libdispatch.dylib 0x0000000180197278 _dispatch_client_callout + 12
10 libdispatch.dylib 0x00000001801b2fcc _dispatch_main_queue_drain.cold.7 + 24
11 libdispatch.dylib 0x000000018018c1c4 _dispatch_main_queue_drain + 1184
12 libdispatch.dylib 0x000000018018bd14 _dispatch_main_queue_callback_4CF + 40
13 CoreFoundation 0x0000000180427fec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
14 CoreFoundation 0x00000001804229f8 __CFRunLoopRun + 1920
15 CoreFoundation 0x0000000180421e3c CFRunLoopRunSpecific + 536
16 GraphicsServices 0x0000000190f62d00 GSEventRunModal + 164
17 UIKitCore 0x0000000185bcec98 -[UIApplication _run] + 796
18 DetoxSync 0x0000000101c5d634 __detox_sync_UIApplication_run + 80
19 UIKitCore 0x0000000185bd3064 UIApplicationMain + 124
20 UIKitCore 0x0000000184f9ad6c block_destroy_helper.14 + 9560
21 FabricExample 0x0000000100a42df0 main + 120
22 dyld 0x0000000101a493d8 start_sim + 20
23 ??? 0x000000010191eb4c 0x0 + 4321307468
)
14:32:07.617 detox[14773] B artifacts-manager onHookFailure
args: ({"error":{"name":"DetoxRuntimeError"},"hook":"beforeAll"})
14:32:07.618 detox[14773] i artifact:ARTIFACT_START starting SimulatorScreenshot
14:32:07.619 detox[14773] i child-process:EXEC_CMD /usr/bin/xcrun simctl io 06C5AAB3-E775-4FF7-8BDA-943ECCBA36CF screenshot "/private/var/folders/r4/dg2fjxdd1qqb0r1hfhv1krnr0000gn/T/ff6ee6ca-4f37-42d6-a2a6-7ab08878f162.detox.png"
14:32:07.856 detox[14773] i child-process:EXEC_SUCCESS Detected file type 'PNG' from extension
Wrote screenshot to: /private/var/folders/r4/dg2fjxdd1qqb0r1hfhv1krnr0000gn/T/ff6ee6ca-4f37-42d6-a2a6-7ab08878f162.detox.png
14:32:07.856 detox[14773] i artifact:ARTIFACT_STOP stopping SimulatorScreenshot
14:32:07.856 detox[14773] E artifacts-manager onHookFailure
14:32:07.856 detox[14773] E lifecycle beforeAll
error: The pending request #-1000 ("reactNativeReload") has been rejected due to the following error:
The app has crashed, see the details below:
NSUnknownKeyException
[<FabricExample.AppDelegate 0x600000c36d90> valueForUndefinedKey:]: this class is not key value coding-compliant for the key rootViewFactory.
(
0 CoreFoundation 0x00000001804c88b4 __exceptionPreprocess + 160
1 libobjc.A.dylib 0x00000001800937cc objc_exception_throw + 72
2 CoreFoundation 0x00000001804c8454 -[NSException init] + 0
3 Foundation 0x0000000180ea05e0 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 188
4 Foundation 0x0000000180e9f4dc -[NSObject(NSKeyValueCoding) valueForKey:] + 260
5 Detox 0x0000000101e4e478 +[ReactNativeSupport reloadApp] + 232
6 Detox 0x0000000101e9cdf4 merged reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 28
7 DetoxSync 0x0000000101c61e10 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.66 + 172
8 libdispatch.dylib 0x000000018017c788 _dispatch_call_block_and_release + 24
9 libdispatch.dylib 0x0000000180197278 _dispatch_client_callout + 12
10 libdispatch.dylib 0x00000001801b2fcc _dispatch_main_queue_drain.cold.7 + 24
11 libdispatch.dylib 0x000000018018c1c4 _dispatch_main_queue_drain + 1184
12 libdispatch.dylib 0x000000018018bd14 _dispatch_main_queue_callback_4CF + 40
13 CoreFoundation 0x0000000180427fec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
14 CoreFoundation 0x00000001804229f8 __CFRunLoopRun + 1920
15 CoreFoundation 0x0000000180421e3c CFRunLoopRunSpecific + 536
16 GraphicsServices 0x0000000190f62d00 GSEventRunModal + 164
17 UIKitCore 0x0000000185bcec98 -[UIApplication _run] + 796
18 DetoxSync 0x0000000101c5d634 __detox_sync_UIApplication_run + 80
19 UIKitCore 0x0000000185bd3064 UIApplicationMain + 124
20 UIKitCore 0x0000000184f9ad6c block_destroy_helper.14 + 9560
21 FabricExample 0x0000000100a42df0 main + 120
22 dyld 0x0000000101a493d8 start_sim + 20
23 ??? 0x000000010191eb4c 0x0 + 4321307468
)
14:32:07.857 detox[14773] B lifecycle Test2809 should exist
14:32:07.857 detox[14773] i lifecycle Test2809: Test2809 should exist
14:32:07.858 detox[14773] E lifecycle Test2809 should exist
14:32:07.858 detox[14773] i lifecycle Test2809: Test2809 should exist [FAIL]
[...]
Device logs
Failed to produce requested file.
Device logs
paste your device.log here!
More data, please!
I believe the most important part of the stack trace is here
● Test2809 › Custom back label should be truncated to minimal by backButtonDisplayMode when title is long
The pending request #-1000 ("reactNativeReload") has been rejected due to the following error:
The app has crashed, see the details below:
NSUnknownKeyException
[<FabricExample.AppDelegate 0x600000c34330> valueForUndefinedKey:]: this class is not key value coding-compliant for the key rootViewFactory.
(
0 CoreFoundation 0x00000001804c88b4 __exceptionPreprocess + 160
1 libobjc.A.dylib 0x00000001800937cc objc_exception_throw + 72
2 CoreFoundation 0x00000001804c8454 -[NSException init] + 0
3 Foundation 0x0000000180ea05e0 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 188
4 Foundation 0x0000000180e9f4dc -[NSObject(NSKeyValueCoding) valueForKey:] + 260
5 Detox 0x0000000103f8a478 +[ReactNativeSupport reloadApp] + 232
6 Detox 0x0000000103fd8df4 merged reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 28
7 DetoxSync 0x0000000103a11e10 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.66 + 172
8 libdispatch.dylib 0x000000018017c788 _dispatch_call_block_and_release + 24
9 libdispatch.dylib 0x0000000180197278 _dispatch_client_callout + 12
10 libdispatch.dylib 0x00000001801b2fcc _dispatch_main_queue_drain.cold.7 + 24
11 libdispatch.dylib 0x000000018018c1c4 _dispatch_main_queue_drain + 1184
12 libdispatch.dylib 0x000000018018bd14 _dispatch_main_queue_callback_4CF + 40
13 CoreFoundation 0x0000000180427fec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
14 CoreFoundation 0x00000001804229f8 __CFRunLoopRun + 1920
15 CoreFoundation 0x0000000180421e3c CFRunLoopRunSpecific + 536
16 GraphicsServices 0x0000000190f62d00 GSEventRunModal + 164
17 UIKitCore 0x0000000185bcec98 -[UIApplication _run] + 796
18 DetoxSync 0x0000000103a0d634 __detox_sync_UIApplication_run + 80
19 UIKitCore 0x0000000185bd3064 UIApplicationMain + 124
20 UIKitCore 0x0000000184f9ad6c block_destroy_helper.14 + 9560
21 FabricExample 0x0000000102acadf0 main + 120
22 dyld 0x00000001039493d8 start_sim + 20
23 ??? 0x0000000103b12b4c 0x0 + 4356909900
)