wix / Detox

Gray box end-to-end testing and automation framework for mobile apps
https://wix.github.io/Detox/
MIT License
11.15k stars 1.92k forks source link

After updating to Detox 20, tests freeze right after launching app #4353

Closed puelocesar closed 7 months ago

puelocesar commented 7 months ago

What happened?

After updating to Detox 20.17.0, I noticed all my tests were failing with timeout, when investigating, I reduced the first one to the most basic setup possible for my case.

And I can see that launchApp indeed launches the app on the iOS simulator, but it seems stuck somehow, because it never runs anything after await Detox.device.launchApp

After some time, I start getting several messages like these:

16:22:44.987 detox[21669] i ws-client:APP_STATUS The app is busy with the following tasks:
• 1 enqueued native timers:
  - Timer #1:
    + Fire date: none.
    + Time until fire: 0.000.
    + Repeat interval: 0.
    + Is recurring: YES.
• Run loop "Main Run Loop" is awake.
• There are 1 work items pending on the dispatch queue: "Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)".

Until it finally times out

What was the expected behaviour?

Here's the basic test I'm trying to run:

console.log('App will launch');
  await Detox.device.launchApp({
    permissions: {
      notifications:'YES',
      camera: 'YES',
      location: 'inuse',
    },
    url: `com.blub.driver://${path}`,
  });
  console.log('App launched');
  // Do stuff

Expected is that 'App launched' is printed, but that never happens and it times out

Was it tested on latest Detox?

Did your test throw out a timeout?

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version: 20.17.0 React Native version: 0.73.2 Has Fabric (React Native's new rendering system) enabled: (yes/no) yes Node version: v20.7.0 Device model: iOS Simulator iOS version: 17.2 macOS version: 14.0 Xcode version: 15.2 Test-runner (select one): jest

Detox logs

Detox logs ``` 16:22:23.406 detox[21667] B lifecycle node_modules/.bin/detox test -c ios.sim.debug --loglevel trace data: { "id": "676c04b2-95e8-8b84-593c-233f6051aed6", "detoxConfig": { "configurationName": "ios.sim.debug", "apps": { "BlubApp": { "name": "BlubApp", "type": "ios.app", "binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/BlubApp.app", "build": "ENVIRONMENT=development.e2e xcodebuild -workspace ios/BlubApp.xcworkspace -scheme 'BlubApp (e2e)' -sdk iphonesimulator -derivedDataPath ios/build" } }, "artifacts": { "rootDir": "artifacts/ios.sim.debug.2024-01-29 16-22-23Z", "plugins": { "log": { "enabled": false, "keepOnlyFailedTestsArtifacts": false }, "screenshot": { "enabled": true, "shouldTakeAutomaticSnapshots": false, "keepOnlyFailedTestsArtifacts": false }, "video": { "enabled": false, "keepOnlyFailedTestsArtifacts": false }, "instruments": { "enabled": false, "keepOnlyFailedTestsArtifacts": false }, "uiHierarchy": { "enabled": false, "keepOnlyFailedTestsArtifacts": false } } }, "behavior": { "init": { "keepLockFile": false, "reinstallApp": true, "exposeGlobals": true }, "cleanup": { "shutdownDevice": false }, "launchApp": "auto" }, "cli": { "configuration": "ios.sim.debug", "loglevel": "trace", "start": true }, "device": { "type": "ios.simulator", "device": { "type": "iPhone SE (3rd generation)" } }, "logger": { "level": "trace", "overrideConsole": true, "options": { "showLoggerName": true, "showPid": true, "showLevel": false, "showMetadata": false, "basepath": "/Users/pcferreira/Projects/Blub/pud/BlubApp/node_modules/detox/src", "prefixers": {}, "stringifiers": {} } }, "testRunner": { "retries": 0, "forwardEnv": false, "detached": false, "bail": false, "jest": { "setupTimeout": 120000, "teardownTimeout": 30000, "retryAfterCircusRetries": false, "reportSpecs": false, "reportWorkerAssign": false }, "args": { "$0": "jest", "_": [ "e2e" ], "config": "e2e/jest.config.js", "--": [] }, "$0": "jest" }, "session": { "autoStart": true, "debugSynchronization": 10000 } }, "detoxIPCServer": "primary-21667", "testResults": [], "testSessionIndex": 0, "workersCount": 0 } 16:22:23.415 detox[21667] i ipc Server path not specified, so defaulting to ipc.config.socketRoot + ipc.config.appspace + ipc.config.id /tmp/detox.primary-21667 16:22:23.417 detox[21667] i ipc starting server on /tmp/detox.primary-21667 16:22:23.417 detox[21667] i ipc starting TLS server false 16:22:23.417 detox[21667] i ipc starting server as Unix || Windows Socket 16:22:23.419 detox[21667] i ws-server Detox server listening on localhost:56875... 16:22:23.422 detox[21667] i lifecycle Serialized the session state at: /private/var/folders/9f/twdn6lzd0zd_16868r5nvn_w0000gp/T/676c04b2-95e8-8b84-593c-233f6051aed6.detox.json 16:22:23.423 detox[21667] B lifecycle jest --config e2e/jest.config.js e2e Determining test suites to run...16:22:23.886 detox[21669] i ipc Service path not specified, so defaulting to ipc.config.socketRoot + ipc.config.appspace + id 16:22:23.889 detox[21669] i ipc requested connection to primary-21667 /tmp/detox.primary-21667 16:22:23.889 detox[21669] i ipc Connecting client on Unix Socket : /tmp/detox.primary-21667 16:22:23.890 detox[21669] i ipc retrying reset 16:22:23.890 detox[21667] i ipc ## socket connection to server detected ## 16:22:23.891 detox[21669] i ipc dispatching event to primary-21667 /tmp/detox.primary-21667 : registerContext , { id: 'secondary-21669' } 16:22:23.892 detox[21667] i ipc received event of : registerContext { id: 'secondary-21669' } 16:22:23.892 detox[21667] i ipc dispatching event to socket : registerContextDone { testResults: [], testSessionIndex: 0, unsafe_earlyTeardown: undefined } 16:22:23.893 detox[21669] i ipc ## received events ## 16:22:23.893 detox[21669] i ipc detected event registerContextDone { testResults: [], testSessionIndex: 0 } 16:22:23.951 detox[21669] B lifecycle e2e/handover.e2e.ts 16:22:23.959 detox[21669] B lifecycle set up environment 16:22:23.960 detox[21669] i ipc dispatching event to primary-21667 /tmp/detox.primary-21667 : registerWorker , { workerId: 'w1' } RUNS e2e/handover.e2e.ts 16:22:23.961 detox[21667] i ipc received event of : registerWorker { workerId: 'w1' } 16:22:23.961 detox[21667] i ipc dispatching event to socket : registerWorkerDone { workersCount: 1 } 16:22:23.962 detox[21669] i ipc ## received events ## all known sockets listening to /tmp/detox.primary-21667 : sessionStateUpdate { workersC16:22:23.962 detox[21669] i ipc detected event registerWorkerDone { workersCount: 1 } 16:22:23.962 detox[21669] i ipc detected event sessionStateUpdate { workersCount: 1 } 16:22:24.057 detox[21669] i ws-client opened web socket to: ws://localhost:56875 16:22:24.058 detox[21669] i ws-client send message data: {"type":"login","params":{"sessionId":"305e6d61-9da3-8353-779c-8acc2332da14","role":"tester"},"messageId":0} RUNS e2e/handover.e2e.ts 16:22:24.059 detox[21667] i ws-server@56878 get data: {"type":"login","params":{"sessionId":"305e6d61-9da3-8353-779c-8acc2332da14","role":"tester"},"messageId":0} 16:22:24.059 detox[21667] i ws-server created session 305e6d61-9da3-8353-779c-8acc2332da14 16:22:24.059 detox[21667] i ws-server@56878 send data: { "type": "loginSuccess", "params": { "testerConnected": true, "appConnected": false }, "messageId": 0 16:22:24.060 detox[21669] i ws-client get message data: {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0} 16:22:24.234 detox[21669] i ipc dispatching event to primary-21667 /tmp/detox.primary-21667 : allocateDevice , { deviceConfig: { type: 'ios.simulator', device: { type: 'iPhone SE (3rd generation)' } } } RUNS e2e/handover.e2e.ts 16:22:24.235 detox[21667] i ipc received event of : allocateDevice { deviceConfig: { type: 'ios.simulator', device: { type: 'iPhone SE (3rd generation)' } } } 16:22:24.238 detox[21667] B device init args: () 16:22:24.240 detox[21667] E device init 16:22:24.240 detox[21667] B device@0 allocate data: { "type": "ios.simulator", "device": { "type": "iPhone SE (3rd generation)" } } 16:22:24.240 detox[21667] i child-process:EXEC_CMD applesimutils --list --byType "iPhone SE (3rd generation)" 16:22:24.377 detox[21667] i child-process:EXEC_SUCCESS [ { "isAvailable" : true, "logPath" : "\/Users\/pcferreira\/Library\/Logs\/CoreSimulator\/E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA", "logPathSize" : 368640, "state" : "Booted", "name" : "iPhone SE (3rd generation)", "dataPathSize" : 1202782208, "deviceType" : { "maxRuntimeVersion" : 4294967295, "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone SE (3rd generation).simdevicetype", "maxRuntimeVersionString" : "65535.255.255", "name" : "iPhone SE (3rd generation)", "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE-3rd-generation", "productFamily" : "iPhone", "modelIdentifier" : "iPhone14,6", "minRuntimeVersionString" : "15.4.0", "minRuntimeVersion" : 984064 }, "os" : { "bundlePath" : "\/Library\/Developer\/CoreSimulator\/Volumes\/iOS_21C62\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 17.2.simruntime", "buildversion" : "21C62", "platform" : "iOS", "runtimeRoot" : "\/Library\/Developer\/CoreSimulator\/Volumes\/iOS_21C62\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 17.2.simruntime\/Contents\/Resources\/RuntimeRoot", "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-17-2", "version" : "17.2", "isInternal" : false, "isAvailable" : true, "name" : "iOS 17.2", "supportedDeviceTypes" : [ { "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone Xs.simdevicetype", "name" : "iPhone Xs", "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS", "productFamily" : "iPhone" }, // removed because of redundancy ] }, "dataPath" : "\/Users\/pcferreira\/Library\/Developer\/CoreSimulator\/Devices\/E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA\/data", "lastBootedAt" : "2024-01-29T15:43:30Z", "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE-3rd-generation", "udid" : "E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA" }, { "isAvailable" : true, "logPath" : "\/Users\/pcferreira\/Library\/Logs\/CoreSimulator\/B4ED6D4C-18AB-4BA8-8C3B-6A036F5BE1E2", "logPathSize" : 61440, "state" : "Shutdown", "name" : "iPhone SE (3rd generation)-Detox", "dataPathSize" : 946237440, "deviceType" : { "maxRuntimeVersion" : 4294967295, "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone SE (3rd generation).simdevicetype", "maxRuntimeVersionString" : "65535.255.255", "name" : "iPhone SE (3rd generation)", "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE-3rd-generation", "productFamily" : "iPhone", "modelIdentifier" : "iPhone14,6", "minRuntimeVersionString" : "15.4.0", "minRuntimeVersion" : 984064 }, "os" : { "bundlePath" : "\/Library\/Developer\/CoreSimulator\/Volumes\/iOS_21C62\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 17.2.simruntime", "buildversion" : "21C62", "platform" : "iOS", "runtimeRoot" : "\/Library\/Developer\/CoreSimulator\/Volumes\/iOS_21C62\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 17.2.simruntime\/Contents\/Resources\/RuntimeRoot", "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-17-2", "version" : "17.2", "isInternal" : false, "isAvailable" : true, "name" : "iOS 17.2", "supportedDeviceTypes" : [ { "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone Xs.simdevicetype", "name" : "iPhone Xs", "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS", "productFamily" : "iPhone" }, // removed because of redundancy ] }, "dataPath" : "\/Users\/pcferreira\/Library\/Developer\/CoreSimulator\/Devices\/B4ED6D4C-18AB-4BA8-8C3B-6A036F5BE1E2\/data", "lastBootedAt" : "2024-01-29T14:23:52Z", "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE-3rd-generation", "udid" : "B4ED6D4C-18AB-4BA8-8C3B-6A036F5BE1E2" } ] 16:22:24.380 detox[21667] i device settled on E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA data: { "id": "E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA", "udid": "E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA" } 16:22:24.380 detox[21667] E device@0 allocate 16:22:24.380 detox[21667] B device@0 post-allocate: E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA data: { "id": "E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA", "udid": "E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA" } 16:22:24.381 detox[21667] i child-process:EXEC_CMD applesimutils --list --byId E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA --maxResults 1 16:22:24.482 detox[21667] i child-process:EXEC_SUCCESS [ { "isAvailable" : true, "logPath" : "\/Users\/pcferreira\/Library\/Logs\/CoreSimulator\/E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA", "logPathSize" : 368640, "state" : "Booted", "name" : "iPhone SE (3rd generation)", "dataPathSize" : 1202778112, "deviceType" : { "maxRuntimeVersion" : 4294967295, "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone SE (3rd generation).simdevicetype", "maxRuntimeVersionString" : "65535.255.255", "name" : "iPhone SE (3rd generation)", "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE-3rd-generation", "productFamily" : "iPhone", "modelIdentifier" : "iPhone14,6", "minRuntimeVersionString" : "15.4.0", "minRuntimeVersion" : 984064 }, "os" : { "bundlePath" : "\/Library\/Developer\/CoreSimulator\/Volumes\/iOS_21C62\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 17.2.simruntime", "buildversion" : "21C62", "platform" : "iOS", "runtimeRoot" : "\/Library\/Developer\/CoreSimulator\/Volumes\/iOS_21C62\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 17.2.simruntime\/Contents\/Resources\/RuntimeRoot", "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-17-2", "version" : "17.2", "isInternal" : false, "isAvailable" : true, "name" : "iOS 17.2", "supportedDeviceTypes" : [ { "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone Xs.simdevicetype", "name" : "iPhone Xs", "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS", "productFamily" : "iPhone" }, // removed because of redundancy ] }, "dataPath" : "\/Users\/pcferreira\/Library\/Developer\/CoreSimulator\/Devices\/E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA\/data", "lastBootedAt" : "2024-01-29T15:43:30Z", "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE-3rd-generation", "udid" : "E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA" } ] 16:22:24.485 detox[21667] E device@0 post-allocate: E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA 16:22:24.485 detox[21667] i ipc dispatching event to socket : allocateDeviceDone { deviceCookie: { id: 'E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA', udid: 'E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA', type: 'ios.simulator', bootArgs: undefined, headless: undefined 16:22:24.485 detox[21669] i ipc ## received events ## 16:22:24.486 detox[21669] i ipc detected event allocateDeviceDone { deviceCookie: { id: 'E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA', udid: 'E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA', type: 'ios.simulator' } } 16:22:24.496 detox[21669] B artifacts-manager onBootDevice args: ({"deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA"}) 16:22:24.496 detox[21669] E artifacts-manager onBootDevice 16:22:24.497 detox[21669] B device installUtilBinaries args: () 16:22:24.497 detox[21669] E device installUtilBinaries 16:22:24.497 detox[21669] B device selectApp args: ("BlubApp") 16:22:24.508 detox[21669] E device selectApp 16:22:24.508 detox[21669] B device uninstallApp args: () 16:22:24.508 detox[21669] B artifacts-manager onBeforeUninstallApp args: ({"deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","bundleId":"com.Blub.driver"}) 16:22:24.508 detox[21669] E artifacts-manager onBeforeUninstallApp 16:22:24.508 detox[21669] i child-process:EXEC_CMD /usr/bin/xcrun simctl uninstall E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver 16:22:24.508 detox[21669] i child-process:EXEC_TRY Uninstalling com.Blub.driver... 16:22:24.683 detox[21669] i child-process:EXEC_SUCCESS com.Blub.driver uninstalled 16:22:24.683 detox[21669] E device uninstallApp 16:22:24.683 detox[21669] B device selectApp args: ("BlubApp") 16:22:24.684 detox[21669] B device terminateApp args: () 16:22:24.684 detox[21669] B artifacts-manager onBeforeTerminateApp args: ({"deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","bundleId":"com.Blub.driver"}) 16:22:24.684 detox[21669] E artifacts-manager onBeforeTerminateApp 16:22:24.684 detox[21669] i child-process:EXEC_CMD /usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver 16:22:24.684 detox[21669] i child-process:EXEC_TRY Terminating com.Blub.driver... 16:22:25.809 detox[21669] i child-process:EXEC_TRY_FAIL An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3): Simulator device returned an error for the requested operation. found nothing to terminate Underlying error (domain=NSPOSIXErrorDomain, code=3): The request to terminate "com.Blub.driver" failed. found nothing to terminate found nothing to terminate 16:22:25.809 detox[21669] i child-process:EXEC_TRY Terminating com.Blub.driver... 16:22:25.915 detox[21669] i child-process:EXEC_FAIL "/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver" failed with error = ChildProcessError: Command failed: /usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3): Simulator device returned an error for the requested operation. found nothing to terminate Underlying error (domain=NSPOSIXErrorDomain, code=3): The request to terminate "com.Blub.driver" failed. found nothing to terminate found nothing to terminate `/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver` (exited with error code 3) (code=3), stdout and stderr: 16:22:25.915 detox[21669] i child-process:EXEC_FAIL 16:22:25.915 detox[21669] i child-process:EXEC_FAIL An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3): Simulator device returned an error for the requested operation. found nothing to terminate Underlying error (domain=NSPOSIXErrorDomain, code=3): The request to terminate "com.Blub.driver" failed. found nothing to terminate found nothing to terminate 16:22:25.916 detox[21669] B artifacts-manager onTerminateApp args: ({"deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","bundleId":"com.Blub.driver"}) 16:22:25.916 detox[21669] E artifacts-manager onTerminateApp 16:22:25.916 detox[21669] E device terminateApp 16:22:25.916 detox[21669] E device selectApp 16:22:25.916 detox[21669] B device installApp args: () 16:22:25.916 detox[21669] i child-process:EXEC_CMD /usr/bin/xcrun simctl install E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA "/Users/pcferreira/Projects/Blub/pud/BlubApp/ios/build/Build/Products/Debug-iphonesimulator/BlubApp.app" 16:22:25.917 detox[21669] i child-process:EXEC_TRY Installing /Users/pcferreira/Projects/Blub/pud/BlubApp/ios/build/Build/Products/Debug-iphonesimulator/BlubApp.app... 16:22:27.919 detox[21669] i child-process:EXEC_SUCCESS /Users/pcferreira/Projects/Blub/pud/BlubApp/ios/build/Build/Products/Debug-iphonesimulator/BlubApp.app installed 16:22:27.919 detox[21669] E device installApp 16:22:27.920 detox[21669] B device selectApp args: ("BlubApp") 16:22:27.920 detox[21669] B device terminateApp args: () 16:22:27.920 detox[21669] B artifacts-manager onBeforeTerminateApp args: ({"deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","bundleId":"com.Blub.driver"}) 16:22:27.920 detox[21669] E artifacts-manager onBeforeTerminateApp 16:22:27.920 detox[21669] i child-process:EXEC_CMD /usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver 16:22:27.920 detox[21669] i child-process:EXEC_TRY Terminating com.Blub.driver... 16:22:29.013 detox[21669] i child-process:EXEC_TRY_FAIL An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3): Simulator device returned an error for the requested operation. found nothing to terminate Underlying error (domain=NSPOSIXErrorDomain, code=3): The request to terminate "com.Blub.driver" failed. found nothing to terminate found nothing to terminate 16:22:29.014 detox[21669] i child-process:EXEC_TRY Terminating com.Blub.driver... 16:22:29.129 detox[21669] i child-process:EXEC_FAIL "/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver" failed with error = ChildProcessError: Command failed: /usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3): Simulator device returned an error for the requested operation. found nothing to terminate Underlying error (domain=NSPOSIXErrorDomain, code=3): The request to terminate "com.Blub.driver" failed. found nothing to terminate found nothing to terminate `/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver` (exited with error code 3) (code=3), stdout and stderr: 16:22:29.130 detox[21669] i child-process:EXEC_FAIL 16:22:29.130 detox[21669] i child-process:EXEC_FAIL An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3): Simulator device returned an error for the requested operation. found nothing to terminate Underlying error (domain=NSPOSIXErrorDomain, code=3): The request to terminate "com.Blub.driver" failed. found nothing to terminate found nothing to terminate 16:22:29.130 detox[21669] B artifacts-manager onTerminateApp args: ({"deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","bundleId":"com.Blub.driver"}) 16:22:29.130 detox[21669] E artifacts-manager onTerminateApp 16:22:29.130 detox[21669] E device terminateApp 16:22:29.130 detox[21669] E device selectApp 16:22:29.130 detox[21669] E lifecycle set up environment 16:22:29.572 detox[21669] B lifecycle run the tests 16:22:29.572 detox[21669] B artifacts-manager onRunDescribeStart args: ({"name":"ROOT_DESCRIBE_BLOCK"}) 16:22:29.572 detox[21669] E artifacts-manager onRunDescribeStart 16:22:29.572 detox[21669] B lifecycle Test handover flows 16:22:29.573 detox[21669] B artifacts-manager onRunDescribeStart args: ({"name":"Test handover flows"}) 16:22:29.573 detox[21669] E artifacts-manager onRunDescribeStart 16:22:29.573 detox[21669] B lifecycle Handover Form 16:22:29.573 detox[21669] B artifacts-manager onRunDescribeStart args: ({"name":"Handover Form"}) 16:22:29.574 detox[21669] E artifacts-manager onRunDescribeStart 16:22:29.575 detox[21669] B lifecycle Should show recipient selection and be able to correctly select the recipient 16:22:29.575 detox[21669] B artifacts-manager onTestStart args: ({"title":"Should show recipient selection and be able to correctly select the recipient","fullName":"Test handover flows Handover Form Should show recipient selection and be able to correctly select the recipient","status":"running","invocations":1}) 16:22:29.576 detox[21669] E artifacts-manager onTestStart 16:22:29.576 detox[21669] B lifecycle beforeEach 16:22:29.576 detox[21669] E lifecycle beforeEach 16:22:29.576 detox[21669] B lifecycle beforeEach 16:22:29.576 detox[21669] i user App will launch origin: at e2e/helpers.ts:28:13 16:22:29.577 detox[21669] B device launchApp args: ({"permissions":{"notifications":"YES","camera":"YES","location":"inuse"},"url":"com.Blub.driver://SetActionScreenForTest"}) 16:22:29.578 detox[21669] B device terminateApp args: ("com.Blub.driver") 16:22:29.578 detox[21669] B artifacts-manager onBeforeTerminateApp args: ({"deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","bundleId":"com.Blub.driver"}) 16:22:29.578 detox[21669] E artifacts-manager onBeforeTerminateApp 16:22:29.578 detox[21669] i child-process:EXEC_CMD /usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver 16:22:29.578 detox[21669] i child-process:EXEC_TRY Terminating com.Blub.driver... 16:22:30.665 detox[21669] i child-process:EXEC_TRY_FAIL An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3): Simulator device returned an error for the requested operation. found nothing to terminate Underlying error (domain=NSPOSIXErrorDomain, code=3): The request to terminate "com.Blub.driver" failed. found nothing to terminate found nothing to terminate 16:22:30.667 detox[21669] i child-process:EXEC_TRY Terminating com.Blub.driver... 16:22:30.774 detox[21669] i child-process:EXEC_FAIL "/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver" failed with error = ChildProcessError: Command failed: /usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3): Simulator device returned an error for the requested operation. found nothing to terminate Underlying error (domain=NSPOSIXErrorDomain, code=3): The request to terminate "com.Blub.driver" failed. found nothing to terminate found nothing to terminate `/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver` (exited with error code 3) (code=3), stdout and stderr: 16:22:30.774 detox[21669] i child-process:EXEC_FAIL 16:22:30.774 detox[21669] i child-process:EXEC_FAIL An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3): Simulator device returned an error for the requested operation. found nothing to terminate Underlying error (domain=NSPOSIXErrorDomain, code=3): The request to terminate "com.Blub.driver" failed. found nothing to terminate found nothing to terminate 16:22:30.775 detox[21669] B artifacts-manager onTerminateApp args: ({"deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","bundleId":"com.Blub.driver"}) 16:22:30.775 detox[21669] E artifacts-manager onTerminateApp 16:22:30.775 detox[21669] E device terminateApp 16:22:30.775 detox[21669] i child-process:EXEC_CMD applesimutils --byId E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA --bundle com.Blub.driver --restartSB --setPermissions notifications=YES 16:22:30.775 detox[21669] i child-process:EXEC_TRY Trying to set permissions with AppleSimUtils: notifications=YES... 16:22:31.006 detox[21669] i child-process:EXEC_SUCCESS notifications permissions are set 16:22:31.006 detox[21669] i child-process:EXEC_CMD /usr/bin/xcrun simctl privacy E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA grant camera com.Blub.driver 16:22:31.007 detox[21669] i child-process:EXEC_TRY Trying to set permissions with Simctl: grant camera... 16:22:31.099 detox[21669] i child-process:EXEC_SUCCESS camera permissions are set 16:22:31.100 detox[21669] i child-process:EXEC_CMD /usr/bin/xcrun simctl privacy E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA grant location com.Blub.driver 16:22:31.100 detox[21669] i child-process:EXEC_TRY Trying to set permissions with Simctl: grant location... 16:22:31.184 detox[21669] i child-process:EXEC_SUCCESS location permissions are set 16:22:31.185 detox[21669] B artifacts-manager onBeforeLaunchApp args: ({"bundleId":"com.Blub.driver","deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","launchArgs":{"detoxServer":"ws://localhost:56875","detoxSessionId":"305e6d61-9da3-8353-779c-8acc2332da14","detoxURLOverride":"com.Blub.driver://SetActionScreenForTest"}}) 16:22:31.185 detox[21669] E artifacts-manager onBeforeLaunchApp 16:22:31.185 detox[21669] i child-process:EXEC_CMD SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=YES SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/pcferreira/Library/Detox/ios/d57e1b96b97ba870831f25475e6d7f6705406377/Detox.framework/Detox" /usr/bin/xcrun simctl launch E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver --args -detoxServer ws://localhost:56875 -detoxSessionId 305e6d61-9da3-8353-779c-8acc2332da14 -detoxURLOverride com.Blub.driver://SetActionScreenForTest -detoxDisableHierarchyDump YES 16:22:31.185 detox[21669] i child-process:EXEC_TRY Launching com.Blub.driver... 16:22:33.406 detox[21669] i child-process:EXEC_SUCCESS com.Blub.driver: 21791 16:22:33.407 detox[21669] i child-process:EXEC_CMD /usr/bin/xcrun simctl get_app_container E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.Blub.driver 16:22:33.579 detox[21669] i child-process:EXEC_SUCCESS /Users/pcferreira/Library/Developer/CoreSimulator/Devices/E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA/data/Containers/Bundle/Application/A72C828D-4844-4F5A-A105-BE14D27C01E1/BlubApp.app 16:22:33.587 detox[21669] i device com.Blub.driver launched. To watch simulator logs, run: /usr/bin/xcrun simctl spawn E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA log stream --level debug --style compact --predicate 'process == "BlubApp"' 16:22:33.588 detox[21669] B artifacts-manager onLaunchApp args: ({"bundleId":"com.Blub.driver","deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","launchArgs":{"detoxServer":"ws://localhost:56875","detoxSessionId":"305e6d61-9da3-8353-779c-8acc2332da14","detoxURLOverride":"com.Blub.driver://SetActionScreenForTest","detoxDisableHierarchyDump":"YES"},"pid":21791}) 16:22:33.588 detox[21669] E artifacts-manager onLaunchApp RUNS e2e/handover.e2e.ts 16:22:34.650 detox[21667] B ws-server@56887 connection :56875<->:56887 16:22:34.964 detox[21667] i ws-server@56887 get data: {"type":"login","params":{"role":"app","sessionId":"305e6d61-9da3-8353-779c-8acc2332da14"},"messageId":0} 16:22:34.965 detox[21667] i ws-server@56887 send data: { "type": "loginSuccess", "params": { "testerConnected": true, "appConnected": true }, "messageId": 0 } 16:22:34.965 detox[21667] i ws-server app joined session 305e6d61-9da3-8353-779c-8acc2332da14 16:22:34.965 detox[21667] i ws-server@56878 send data: { 16:22:34.966 detox[21669] i ws-client get message data: {"type":"appConnected"} 16:22:34.967 detox[21669] i ws-client send message data: {"type":"isReady","params":{},"messageId":-1000} RUNS e2e/handover.e2e.ts 16:22:34.967 detox[21667] i ws-server@56878 get data: {"type":"isReady","params":{},"messageId":-1000} 16:22:34.967 detox[21667] i ws-server@56887 send data: { "type": "isReady", "params": {}, 16:22:44.971 detox[21669] i ws-client send message data: {"type":"currentStatus","params":{},"messageId":1} RUNS e2e/handover.e2e.ts 16:22:44.973 detox[21667] i ws-server@56878 get data: {"type":"currentStatus","params":{},"messageId":1} 16:22:44.974 detox[21667] i ws-server@56887 send data: { "type": "currentStatus", "params": {}, "messageId": 1 } 16:22:44.980 detox[21667] i ws-server@56887 get data: {"messageId":1,"params":{"status":{"app_status":"busy","busy_resources":[{"name":"timers","description":{"timers":[{"time_until_fire":0,"is_recurring":true,"repeat_interval":0,"fire_date":"none"}]}},{"name":"run_loop","description":{"name":"Main Run Loop"}},{"name":"dispatch_queue","description":{"queue":"Main Queue ()","works_count":1}}]},"messageId":1},"type":"currentStatusResult"} 16:22:44.980 detox[21667] i ws-server@56878 send data: { "messageId": 1, "params": { "status": { "app_status": "busy", "busy_resources": [ { "name": "timers", "description": { "timers": [ { "time_until_fire": 0, "is_recurring": true, "repeat_interval": 0, "fire_date": "none" } ] } }, { "name": "run_loop", "description": { "name": "Main Run Loop" } }, { "name": "dispatch_queue", "description": { "queue": "Main Queue ()", "works_count": 1 } } ] }, "messageId": 1 }, 16:22:44.982 detox[21669] i ws-client get message data: {"messageId":1,"params":{"status":{"app_status":"busy","busy_resources":[{"name":"timers","description":{"timers":[{"time_until_fire":0,"is_recurring":true,"repeat_interval":0,"fire_date":"none"}]}},{"name":"run_loop","description":{"name":"Main Run Loop"}},{"name":"dispatch_queue","description":{"queue":"Main Queue ()","works_count":1}}]},"messageId":1},"type":"currentStatusResult"} 16:22:44.987 detox[21669] i ws-client:APP_STATUS The app is busy with the following tasks: • 1 enqueued native timers: - Timer #1: + Fire date: none. + Time until fire: 0.000. + Repeat interval: 0. + Is recurring: YES. • Run loop "Main Run Loop" is awake. • There are 1 work items pending on the dispatch queue: "Main Queue ()". ```

Device logs

Device logs ``` {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"B","tid":0,"args":[{"deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","bundleId":"com.knapp.driver"}],"msg":"onTerminateApp","time":"2024-01-29T16:35:06.013Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"E","tid":0,"success":true,"msg":"onTerminateApp","time":"2024-01-29T16:35:06.013Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"device","ph":"E","tid":0,"success":true,"msg":"terminateApp","time":"2024-01-29T16:35:06.013Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"device","ph":"E","tid":0,"success":true,"msg":"selectApp","time":"2024-01-29T16:35:06.013Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"lifecycle,jest-environment","ph":"E","tid":0,"success":true,"msg":"set up environment","time":"2024-01-29T16:35:06.013Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"lifecycle,jest-environment","ph":"B","tid":0,"msg":"run the tests","time":"2024-01-29T16:35:06.408Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"B","tid":0,"args":[{"name":"ROOT_DESCRIBE_BLOCK"}],"msg":"onRunDescribeStart","time":"2024-01-29T16:35:06.408Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"E","tid":0,"success":true,"msg":"onRunDescribeStart","time":"2024-01-29T16:35:06.408Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"lifecycle,jest-environment","ph":"B","tid":0,"msg":"Test handover flows","time":"2024-01-29T16:35:06.408Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"B","tid":0,"args":[{"name":"Test handover flows"}],"msg":"onRunDescribeStart","time":"2024-01-29T16:35:06.408Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"E","tid":0,"success":true,"msg":"onRunDescribeStart","time":"2024-01-29T16:35:06.408Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"lifecycle,jest-environment","ph":"B","tid":0,"msg":"Handover Form","time":"2024-01-29T16:35:06.408Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"B","tid":0,"args":[{"name":"Handover Form"}],"msg":"onRunDescribeStart","time":"2024-01-29T16:35:06.408Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"E","tid":0,"success":true,"msg":"onRunDescribeStart","time":"2024-01-29T16:35:06.409Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"lifecycle,jest-environment","ph":"B","tid":0,"context":"test","status":"running","fullName":"Test handover flows Handover Form Should show recipient selection and be able to correctly select the recipient","invocations":1,"msg":"Should show recipient selection and be able to correctly select the recipient","time":"2024-01-29T16:35:06.409Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"B","tid":0,"args":[{"title":"Should show recipient selection and be able to correctly select the recipient","fullName":"Test handover flows Handover Form Should show recipient selection and be able to correctly select the recipient","status":"running","invocations":1}],"msg":"onTestStart","time":"2024-01-29T16:35:06.409Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifact","ph":"i","tid":0,"class":"SimulatorLogRecording","event":"ARTIFACT_START","msg":"starting SimulatorLogRecording","time":"2024-01-29T16:35:06.410Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-spawn","ph":"i","tid":0,"fn":"spawnAndLog","command":"/usr/bin/xcrun simctl spawn E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA log stream --level debug --style compact","trackingId":4,"cpid":23326,"event":"SPAWN_CMD","msg":"/usr/bin/xcrun simctl spawn E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA log stream --level debug --style compact","time":"2024-01-29T16:35:06.414Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"E","tid":0,"success":true,"msg":"onTestStart","time":"2024-01-29T16:35:06.465Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"lifecycle,jest-environment","ph":"B","tid":0,"functionCode":"() => {\n if (config.resetModules) {\n runtime.resetModules();\n }\n if (config.clearMocks) {\n runtime.clearAllMocks();\n }\n if (config.resetMocks) {\n runtime.resetAllMocks();\n if (\n config.fakeTimers.enableGlobally &&\n config.fakeTimers.legacyFakeTimers\n ) {\n // during setup, this cannot be null (and it's fine to explode if it is)\n environment.fakeTimers.useFakeTimers();\n }\n }\n if (config.restoreMocks) {\n runtime.restoreAllMocks();\n }\n }","msg":"beforeEach","time":"2024-01-29T16:35:06.465Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"lifecycle,jest-environment","ph":"E","tid":0,"success":true,"msg":"beforeEach","time":"2024-01-29T16:35:06.466Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"lifecycle,jest-environment","ph":"B","tid":0,"functionCode":"function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n }","msg":"beforeEach","time":"2024-01-29T16:35:06.466Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":30,"cat":"user","ph":"i","tid":0,"origin":"at e2e/helpers.ts:27:13","msg":"App will launch","time":"2024-01-29T16:35:06.466Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"device","ph":"B","tid":0,"args":[{"permissions":{"notifications":"YES","camera":"YES","location":"inuse"},"url":"com.knapp.driver://SetActionScreenForTest"}],"msg":"launchApp","time":"2024-01-29T16:35:06.468Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"device","ph":"B","tid":0,"args":["com.knapp.driver"],"msg":"terminateApp","time":"2024-01-29T16:35:06.468Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"B","tid":0,"args":[{"deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","bundleId":"com.knapp.driver"}],"msg":"onBeforeTerminateApp","time":"2024-01-29T16:35:06.468Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"E","tid":0,"success":true,"msg":"onBeforeTerminateApp","time":"2024-01-29T16:35:06.468Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","trackingId":5,"event":"EXEC_CMD","msg":"/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","time":"2024-01-29T16:35:06.468Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","trackingId":5,"event":"EXEC_TRY","retryNumber":1,"msg":"Terminating com.knapp.driver...","time":"2024-01-29T16:35:06.468Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","trackingId":5,"event":"EXEC_TRY_FAIL","msg":"An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):\nSimulator device returned an error for the requested operation.\nfound nothing to terminate\nUnderlying error (domain=NSPOSIXErrorDomain, code=3):\n\tThe request to terminate \"com.knapp.driver\" failed. found nothing to terminate\n\tfound nothing to terminate\n","time":"2024-01-29T16:35:07.558Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","trackingId":5,"event":"EXEC_TRY","retryNumber":2,"msg":"Terminating com.knapp.driver...","time":"2024-01-29T16:35:07.559Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","trackingId":5,"event":"EXEC_FAIL","msg":"\"/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver\" failed with error = ChildProcessError: Command failed: /usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver\nAn error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):\nSimulator device returned an error for the requested operation.\nfound nothing to terminate\nUnderlying error (domain=NSPOSIXErrorDomain, code=3):\n\tThe request to terminate \"com.knapp.driver\" failed. found nothing to terminate\n\tfound nothing to terminate\n `/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver` (exited with error code 3) (code=3), stdout and stderr:\n","time":"2024-01-29T16:35:07.711Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","trackingId":5,"event":"EXEC_FAIL","stdout":true,"msg":"","time":"2024-01-29T16:35:07.711Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl terminate E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","trackingId":5,"event":"EXEC_FAIL","stderr":true,"msg":"An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):\nSimulator device returned an error for the requested operation.\nfound nothing to terminate\nUnderlying error (domain=NSPOSIXErrorDomain, code=3):\n\tThe request to terminate \"com.knapp.driver\" failed. found nothing to terminate\n\tfound nothing to terminate\n","time":"2024-01-29T16:35:07.711Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"B","tid":0,"args":[{"deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","bundleId":"com.knapp.driver"}],"msg":"onTerminateApp","time":"2024-01-29T16:35:07.711Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"E","tid":0,"success":true,"msg":"onTerminateApp","time":"2024-01-29T16:35:07.711Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"device","ph":"E","tid":0,"success":true,"msg":"terminateApp","time":"2024-01-29T16:35:07.711Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"applesimutils --byId E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA --bundle com.knapp.driver --restartSB --setPermissions notifications=YES","trackingId":6,"event":"EXEC_CMD","msg":"applesimutils --byId E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA --bundle com.knapp.driver --restartSB --setPermissions notifications=YES","time":"2024-01-29T16:35:07.711Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"applesimutils --byId E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA --bundle com.knapp.driver --restartSB --setPermissions notifications=YES","trackingId":6,"event":"EXEC_TRY","retryNumber":1,"msg":"Trying to set permissions with AppleSimUtils: notifications=YES...","time":"2024-01-29T16:35:07.711Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"applesimutils --byId E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA --bundle com.knapp.driver --restartSB --setPermissions notifications=YES","trackingId":6,"event":"EXEC_SUCCESS","msg":"notifications permissions are set","time":"2024-01-29T16:35:07.945Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl privacy E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA grant camera com.knapp.driver","trackingId":7,"event":"EXEC_CMD","msg":"/usr/bin/xcrun simctl privacy E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA grant camera com.knapp.driver","time":"2024-01-29T16:35:07.945Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl privacy E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA grant camera com.knapp.driver","trackingId":7,"event":"EXEC_TRY","retryNumber":1,"msg":"Trying to set permissions with Simctl: grant camera...","time":"2024-01-29T16:35:07.945Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl privacy E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA grant camera com.knapp.driver","trackingId":7,"event":"EXEC_SUCCESS","msg":"camera permissions are set","time":"2024-01-29T16:35:08.061Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl privacy E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA grant location com.knapp.driver","trackingId":8,"event":"EXEC_CMD","msg":"/usr/bin/xcrun simctl privacy E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA grant location com.knapp.driver","time":"2024-01-29T16:35:08.061Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl privacy E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA grant location com.knapp.driver","trackingId":8,"event":"EXEC_TRY","retryNumber":1,"msg":"Trying to set permissions with Simctl: grant location...","time":"2024-01-29T16:35:08.061Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl privacy E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA grant location com.knapp.driver","trackingId":8,"event":"EXEC_SUCCESS","msg":"location permissions are set","time":"2024-01-29T16:35:08.149Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"B","tid":0,"args":[{"bundleId":"com.knapp.driver","deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","launchArgs":{"detoxServer":"ws://localhost:59613","detoxSessionId":"7462172c-8230-d118-2e12-9630d1f1b060","detoxURLOverride":"com.knapp.driver://SetActionScreenForTest"}}],"msg":"onBeforeLaunchApp","time":"2024-01-29T16:35:08.150Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifact","ph":"i","tid":0,"class":"SimulatorLogRecording","event":"ARTIFACT_START","msg":"starting SimulatorLogRecording {\n udid: 'E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA',\n bundleId: 'com.knapp.driver'\n}","time":"2024-01-29T16:35:08.150Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifact","ph":"i","tid":0,"class":"SimulatorLogRecording","event":"ARTIFACT_STOP","msg":"stopping SimulatorLogRecording","time":"2024-01-29T16:35:08.150Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"child-process,child-process-spawn","ph":"i","tid":0,"event":"SPAWN_KILL","cpid":23326,"signal":"SIGINT","msg":"sending SIGINT to: /usr/bin/xcrun simctl spawn E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA log stream --level debug --style compact","time":"2024-01-29T16:35:08.203Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-spawn","ph":"i","tid":0,"fn":"spawnAndLog","command":"/usr/bin/xcrun simctl spawn E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA log stream --level debug --style compact","trackingId":4,"cpid":23326,"event":"SPAWN_END","signal":"","code":0,"msg":"/usr/bin/xcrun simctl spawn E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA log stream --level debug --style compact exited with code #0","time":"2024-01-29T16:35:08.206Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl get_app_container E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","trackingId":9,"event":"EXEC_CMD","msg":"/usr/bin/xcrun simctl get_app_container E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","time":"2024-01-29T16:35:08.207Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl get_app_container E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","trackingId":9,"event":"EXEC_SUCCESS","stdout":true,"msg":"/Users/pcferreira/Library/Developer/CoreSimulator/Devices/E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA/data/Containers/Bundle/Application/0E0AABFC-3004-4B60-B2AC-DFEB35DD5C29/KnappApp.app\n","time":"2024-01-29T16:35:08.315Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-spawn","ph":"i","tid":0,"fn":"spawnAndLog","command":"/usr/bin/xcrun simctl spawn E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA log stream --level debug --style compact --predicate \"processImagePath beginsWith \\\"/Users/pcferreira/Library/Developer/CoreSimulator/Devices/E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA/data/Containers/Bundle/Application/0E0AABFC-3004-4B60-B2AC-DFEB35DD5C29/KnappApp.app\\\"\"","trackingId":10,"cpid":23357,"event":"SPAWN_CMD","msg":"/usr/bin/xcrun simctl spawn E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA log stream --level debug --style compact --predicate \"processImagePath beginsWith \\\"/Users/pcferreira/Library/Developer/CoreSimulator/Devices/E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA/data/Containers/Bundle/Application/0E0AABFC-3004-4B60-B2AC-DFEB35DD5C29/KnappApp.app\\\"\"","time":"2024-01-29T16:35:08.315Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"E","tid":0,"success":true,"msg":"onBeforeLaunchApp","time":"2024-01-29T16:35:08.365Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=YES SIMCTL_CHILD_DYLD_INSERT_LIBRARIES=\"/Users/pcferreira/Library/Detox/ios/d57e1b96b97ba870831f25475e6d7f6705406377/Detox.framework/Detox\" /usr/bin/xcrun simctl launch E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver --args -detoxServer ws://localhost:59613 -detoxSessionId 7462172c-8230-d118-2e12-9630d1f1b060 -detoxURLOverride com.knapp.driver://SetActionScreenForTest -detoxDisableHierarchyDump YES","trackingId":11,"event":"EXEC_CMD","msg":"SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=YES SIMCTL_CHILD_DYLD_INSERT_LIBRARIES=\"/Users/pcferreira/Library/Detox/ios/d57e1b96b97ba870831f25475e6d7f6705406377/Detox.framework/Detox\" /usr/bin/xcrun simctl launch E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver --args -detoxServer ws://localhost:59613 -detoxSessionId 7462172c-8230-d118-2e12-9630d1f1b060 -detoxURLOverride com.knapp.driver://SetActionScreenForTest -detoxDisableHierarchyDump YES","time":"2024-01-29T16:35:08.366Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=YES SIMCTL_CHILD_DYLD_INSERT_LIBRARIES=\"/Users/pcferreira/Library/Detox/ios/d57e1b96b97ba870831f25475e6d7f6705406377/Detox.framework/Detox\" /usr/bin/xcrun simctl launch E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver --args -detoxServer ws://localhost:59613 -detoxSessionId 7462172c-8230-d118-2e12-9630d1f1b060 -detoxURLOverride com.knapp.driver://SetActionScreenForTest -detoxDisableHierarchyDump YES","trackingId":11,"event":"EXEC_TRY","retryNumber":1,"msg":"Launching com.knapp.driver...","time":"2024-01-29T16:35:08.366Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=YES SIMCTL_CHILD_DYLD_INSERT_LIBRARIES=\"/Users/pcferreira/Library/Detox/ios/d57e1b96b97ba870831f25475e6d7f6705406377/Detox.framework/Detox\" /usr/bin/xcrun simctl launch E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver --args -detoxServer ws://localhost:59613 -detoxSessionId 7462172c-8230-d118-2e12-9630d1f1b060 -detoxURLOverride com.knapp.driver://SetActionScreenForTest -detoxDisableHierarchyDump YES","trackingId":11,"event":"EXEC_SUCCESS","stdout":true,"msg":"com.knapp.driver: 23369\n","time":"2024-01-29T16:35:10.256Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":20,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl get_app_container E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","trackingId":12,"event":"EXEC_CMD","msg":"/usr/bin/xcrun simctl get_app_container E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","time":"2024-01-29T16:35:10.256Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"child-process,child-process-exec","ph":"i","tid":0,"fn":"execWithRetriesAndLogs","cmd":"/usr/bin/xcrun simctl get_app_container E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA com.knapp.driver","trackingId":12,"event":"EXEC_SUCCESS","stdout":true,"msg":"/Users/pcferreira/Library/Developer/CoreSimulator/Devices/E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA/data/Containers/Bundle/Application/0E0AABFC-3004-4B60-B2AC-DFEB35DD5C29/KnappApp.app\n","time":"2024-01-29T16:35:10.447Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":30,"cat":"device","ph":"i","tid":0,"msg":"com.knapp.driver launched. To watch simulator logs, run:\n /usr/bin/xcrun simctl spawn E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA log stream --level debug --style compact --predicate 'process == \"KnappApp\"'","time":"2024-01-29T16:35:10.459Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"B","tid":0,"args":[{"bundleId":"com.knapp.driver","deviceId":"E40B207A-F2C8-445C-A2F5-CA9FEEA02BFA","launchArgs":{"detoxServer":"ws://localhost:59613","detoxSessionId":"7462172c-8230-d118-2e12-9630d1f1b060","detoxURLOverride":"com.knapp.driver://SetActionScreenForTest","detoxDisableHierarchyDump":"YES"},"pid":23369}],"msg":"onLaunchApp","time":"2024-01-29T16:35:10.459Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"artifacts-manager,artifact","ph":"E","tid":0,"success":true,"msg":"onLaunchApp","time":"2024-01-29T16:35:10.459Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"ws-client,ws","ph":"i","tid":0,"data":"{\"type\":\"appConnected\"}\n ","msg":"get message","time":"2024-01-29T16:35:11.884Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"ws-client,ws","ph":"i","tid":0,"data":"{\"type\":\"isReady\",\"params\":{},\"messageId\":-1000}","msg":"send message","time":"2024-01-29T16:35:11.885Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"ws-client,ws","ph":"i","tid":0,"data":"{\"type\":\"currentStatus\",\"params\":{},\"messageId\":1}","msg":"send message","time":"2024-01-29T16:35:21.887Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"ws-client,ws","ph":"i","tid":0,"data":"{\"type\":\"currentStatusResult\",\"params\":{\"status\":{\"busy_resources\":[{\"name\":\"dispatch_queue\",\"description\":{\"queue\":\"Main Queue ()\",\"works_count\":1}},{\"name\":\"timers\",\"description\":{\"timers\":[{\"time_until_fire\":0,\"is_recurring\":true,\"repeat_interval\":0,\"fire_date\":\"none\"}]}},{\"name\":\"run_loop\",\"description\":{\"name\":\"Main Run Loop\"}}],\"app_status\":\"busy\"},\"messageId\":1},\"messageId\":1}\n ","msg":"get message","time":"2024-01-29T16:35:21.898Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":30,"cat":"ws-client,ws","ph":"i","tid":0,"event":"APP_STATUS","msg":"The app is busy with the following tasks:\n• There are 1 work items pending on the dispatch queue: \"Main Queue ()\".\n• 1 enqueued native timers:\n - Timer #1:\n + Fire date: none.\n + Time until fire: 0.000.\n + Repeat interval: 0.\n + Is recurring: YES.\n• Run loop \"Main Run Loop\" is awake.","time":"2024-01-29T16:35:21.905Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"ws-client,ws","ph":"i","tid":0,"data":"{\"type\":\"currentStatus\",\"params\":{},\"messageId\":2}","msg":"send message","time":"2024-01-29T16:35:31.911Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"ws-client,ws","ph":"i","tid":0,"data":"{\"type\":\"currentStatusResult\",\"params\":{\"status\":{\"busy_resources\":[{\"name\":\"dispatch_queue\",\"description\":{\"queue\":\"Main Queue ()\",\"works_count\":1}},{\"name\":\"timers\",\"description\":{\"timers\":[{\"time_until_fire\":0,\"is_recurring\":true,\"repeat_interval\":0,\"fire_date\":\"none\"}]}},{\"name\":\"run_loop\",\"description\":{\"name\":\"Main Run Loop\"}}],\"app_status\":\"busy\"},\"messageId\":2},\"messageId\":2}\n ","msg":"get message","time":"2024-01-29T16:35:31.917Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":30,"cat":"ws-client,ws","ph":"i","tid":0,"event":"APP_STATUS","msg":"The app is busy with the following tasks:\n• There are 1 work items pending on the dispatch queue: \"Main Queue ()\".\n• 1 enqueued native timers:\n - Timer #1:\n + Fire date: none.\n + Time until fire: 0.000.\n + Repeat interval: 0.\n + Is recurring: YES.\n• Run loop \"Main Run Loop\" is awake.","time":"2024-01-29T16:35:31.918Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"ws-client,ws","ph":"i","tid":0,"data":"{\"type\":\"currentStatus\",\"params\":{},\"messageId\":3}","msg":"send message","time":"2024-01-29T16:35:41.922Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":10,"cat":"ws-client,ws","ph":"i","tid":0,"data":"{\"messageId\":3,\"type\":\"currentStatusResult\",\"params\":{\"messageId\":3,\"status\":{\"app_status\":\"busy\",\"busy_resources\":[{\"name\":\"dispatch_queue\",\"description\":{\"queue\":\"Main Queue ()\",\"works_count\":1}},{\"name\":\"timers\",\"description\":{\"timers\":[{\"time_until_fire\":0,\"is_recurring\":true,\"repeat_interval\":0,\"fire_date\":\"none\"}]}},{\"name\":\"run_loop\",\"description\":{\"name\":\"Main Run Loop\"}}]}}}\n ","msg":"get message","time":"2024-01-29T16:35:41.930Z","v":0} {"name":"detox","hostname":"D030N0Q3C6","pid":23240,"level":30,"cat":"ws-client,ws","ph":"i","tid":0,"event":"APP_STATUS","msg":"The app is busy with the following tasks:\n• There are 1 work items pending on the dispatch queue: \"Main Queue ()\".\n• 1 enqueued native timers:\n - Timer #1:\n + Fire date: none.\n + Time until fire: 0.000.\n + Repeat interval: 0.\n + Is recurring: YES.\n• Run loop \"Main Run Loop\" is awake.","time":"2024-01-29T16:35:41.931Z","v":0} ```

More data, please!

No response

puelocesar commented 7 months ago

Ok, after a lot of commenting/uncommenting out my code, I found out exactly which piece of it was causing this issue, and it was this withTiming from Reanimated:

useEffect(() => {
    opacity.value = withTiming(visible ? 1 : 0, {
      duration: 200,
      easing: Easing.linear,
    });
  }, [visible]);

Any ideas on why this is causing it?

puelocesar commented 7 months ago

Ok sorry, I found the real issue, it was related to a loader animation, I got around it by doing:

if (AppConfig.environment !== 'development.e2e') {
    useEffect(() => {
      rotation.value = withRepeat(
        withTiming(360, {
          duration: 1000,
          easing: Easing.elastic(1),
        }),
        -1,
      );
      return () => cancelAnimation(rotation);
    }, []);
  }
oltioff commented 6 months ago

Detox doesn't like endless animation. In my case I had:

const REPEAT_FOREVER = Config.DETOX === '1' ? 1 : -1;
...
animationValue.value = withRepeat(withTiming(1, { duration: duration, easing }), REPEAT_FOREVER);

So you have two options: