question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR NativeBinaryHasFailedError: The find-window process failed with the 1 exit code.

See original GitHub issue

What is your Scenario?

I upgraded to the latest release candidate (1.17.2-rc.2), and trying to run any test using any browser, on MacOS. The tests fail to start, and hang, unable to exit using the terminal.

I can stop the node session using activity monitor… but if I try to repeat then node isn’t started the 2nd time and I have to close the terminal window to exit.

What is the Current behavior?

An error is returned, and the tests don’t start

Using locally installed version of TestCafe.
The "browsers" option from the configuration file will be ignored.
ERROR NativeBinaryHasFailedError: The find-window process failed with the 1 exit code.
Process output:
The application /Users/rcooper/.testcafe-browser-tools/TestCafe Browser Tools.app/Contents/MacOS/testcafe-browser-tools cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10661 "(null)" UserInfo={_LSLine=3844, _LSFunction=_LSOpenStuffCallLocal}
    at ChildProcess.<anonymous> (/Users/rcooper/work/github.com/change/regression-qaa/node_modules/testcafe-browser-tools/src/utils/exec.js:74:24)
    at ChildProcess.emit (node:events:390:28)
    at ChildProcess.emit (node:domain:475:12)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
    at Process.callbackTrampoline (node:internal/async_hooks:130:17)

Type "testcafe -h" for help.

What is the Expected behavior?

Testcafe should trigger tests as per normal.

What is your public website URL? (or attach your complete example)

Tests don’t start, so N/A

What is your TestCafe test code?

N/A

Your complete configuration file

N/A

Your complete test report

Using locally installed version of TestCafe.
The "browsers" option from the configuration file will be ignored.
ERROR NativeBinaryHasFailedError: The find-window process failed with the 1 exit code.
Process output:
The application /Users/rcooper/.testcafe-browser-tools/TestCafe Browser Tools.app/Contents/MacOS/testcafe-browser-tools cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10661 "(null)" UserInfo={_LSLine=3844, _LSFunction=_LSOpenStuffCallLocal}
    at ChildProcess.<anonymous> (/Users/rcooper/work/github.com/change/regression-qaa/node_modules/testcafe-browser-tools/src/utils/exec.js:74:24)
    at ChildProcess.emit (node:events:390:28)
    at ChildProcess.emit (node:domain:475:12)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
    at Process.callbackTrampoline (node:internal/async_hooks:130:17)

Type "testcafe -h" for help.

Screenshots

No response

Steps to Reproduce

  1. Install the latest release candidate
  2. Run testcafe chrome

TestCafe version

1.17.2-rc.2

Node.js version

16.13.0 (but also failing with 10.15.3)

Command-line arguments

testcafe chrome

Browser name(s) and version(s)

No response

Platform(s) and version(s)

MacOS Big Sur - 11.6.2

Other

This only seems to be happening on my laptop, since our CircleCi runs are working (which uses Linux). I’ve uninstalled testcafe-browser-tools + testcafe and did a clean install, also attempted running with sudo in case it’s a permissions thing… no luck

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
AlexanderMoiseevcommented, Dec 15, 2021

Hi,

Thank you for your input. We have reproduced the problem, please stay tuned.

0reactions
AlexanderMoiseevcommented, Dec 30, 2021

Hi, @KingM1 You are very welcome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Test failing for browser tool related issue: ERROR ...
Test failing for browser tool related issue: ERROR NativeBinaryHasFailedError: The find-window process failed with the 1 exit code.
Read more >
Testcafe tests are not executed on MacBook Big Sur with ...
Press any key to retry. ERROR UnableToAccessScreenRecordingAPIError: The find-window process cannot access the Screen Recording API. testing ...
Read more >
Process Exited With Code 1 Command Prompt Error on ...
Process Exited With Code 1 Command Prompt Error on Windows 10/11 FIXPowerShell Command Used: C:\Windows\System32\reg.exe DELETE ...
Read more >
Azure File Copy task failed with exit code -1073741819
2018-08-30T12:45:32.3594071Z ##[error]Exit code -1073741819 returned from process: file name 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe', ...
Read more >
「LSOpenURLsWithRole() failed for testcafe-browser-tools ...
... ERROR NativeBinaryHasFailedError: The find-window process failed with the 1 exit code. Process output: LSOpenURLsWithRole() failed for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found