无法启动子进程 [英] Failed to launch child process

查看:248
本文介绍了无法启动子进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在Chrome(硒/ Ruby)上运行测试时,出现以下错误。有人可以帮忙解决这个问题吗?

When I try to run a test on Chrome (selenium / Ruby) then I get the following error. Could anybody help to resolve this?

错误:-


背景:登录到应用程序#tests\integration\channels.feature:3
[6100:7920:1028/134946:ERROR:child_process_launcher.cc(533)]无法
启动子进程
[ 6100:9520:1028/134946:ERROR:child_process_launcher.cc(533)]无法
启动子进程
[6100:9520:1028/134946:ERROR:child_process_launcher.cc(533)]无法
启动子进程
[6100:9520:1028/134949:ERROR:child_process_launcher.cc(533)]无法
启动子进程
[6100:9520:1028/134955 :ERROR:child_process_launcher.cc(533)]无法
启动子进程
[6100:9520:1028/135006:ERROR:child_process_launcher.cc(533)]无法用于
启动子进程耙中止了!

Background: Login to app # tests\integration\channels.feature:3 [6100:7920:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to launch child process [6100:9520:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to launch child process [6100:9520:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to launch child process [6100:9520:1028/134949:ERROR:child_process_launcher.cc(533)] Failed to launch child process [6100:9520:1028/134955:ERROR:child_process_launcher.cc(533)] Failed to launch child process [6100:9520:1028/135006:ERROR:child_process_launcher.cc(533)] Failed to launch child process rake aborted!

以下是安装的宝石:-
*本地宝石*

Following are the gems installed:- * LOCAL GEMS *

bigdecimal (default: 1.2.0)
builder (3.2.2)
bundle (0.0.1)
bundler (1.13.6, 1.11.2)
childprocess (0.5.0)
cucumber (2.4.0, 1.3.2)
cucumber-core (1.5.0)
cucumber-wire (0.0.1)
debase (0.2.1, 0.1.4)
debase-ruby_core_source (0.9.2)
diff-lcs (1.2.5)
ffi (1.9.14 x86-mingw32)
gherkin (4.0.0, 2.12.2 x86-mingw32)
io-console (default: 0.4.2)
json (2.0.2, default: 1.7.7)
minitest (default: 4.3.2)
multi_json (1.12.1, 1.11.2)
multi_test (0.1.2)
parallel (1.6.1)
parallel_tests (1.3.7)
psych (default: 2.0.0)
rake (10.1.0, default: 0.9.6)
rdoc (default: 4.0.0)
ruby-debug-ide (0.6.0, 0.4.32)
rubyzip (1.2.0, 1.1.7)
selenium-webdriver (2.52.0, 2.48.0, 2.46.2)
test-unit (default: 2.0.0.0)
websocket (1.2.3, 1.2.2)

我正在使用:-

ruby '2.0.0'

gem 'cucumber', '1.3.2'
gem 'selenium-webdriver', '2.53.0'
gem 'rake', '10.1.0'
gem 'appium_lib', '8.0.2'
gem 'json', '1.8.3'

gem 'parallel_tests', '1.3.7'

谢谢!

推荐答案

我有Chrome 54.0.2840.71中出现相同的问题。仅当以管理员身份运行chrome(在Windows上)时,该问题才为我重现。您可以使用几种解决方法:

I have the same issue in Chrome 54.0.2840.71. The issue only reproduces for me when running chrome as administrator (on windows). A couple of workarounds you can use:


  1. 如果您以管理员身份运行,请尝试不提升运行速度,这可能会解决您的问题。

  1. If you were running as admin, try running unelevated and it might fix your issue.

启动时禁用Chrome Zygote进程。请注意,这将禁用chrome沙箱,并且可能会带来安全风险。

Disable the Chrome Zygote process when launching. Beware, this will disable the chrome sandbox and you might have security risks.

chrome.exe --no-zygote --no-sandbox

这篇关于无法启动子进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆