phantomjs exit()不会终止进程 [英] phantomjs exit() doesn't terminate the process

查看:538
本文介绍了phantomjs exit()不会终止进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows 7上使用phantom.js已有一段时间了(我认为v1.4.0是我使用的第一个版本),并且一切都很好.但是由于某些原因,在调用phantom.exit()时,该过程不再正确终止了,我绝对不知道为什么.

I've been using phantom.js on Windows 7 for quite some time now (I think v1.4.0 was the first version I used) and everything was always fine. But for some reason the process isn't properly terminated any longer when calling phantom.exit() and I absolutely don't know why.

从v1.7.0开始的一天到另一天,问题开始出现.一切曾经在1.7.0中都可以正常工作,但后来又没有了.即使升级到1.8.0和现在的1.9.0之后,它仍然不起作用.控制台只是挂起.我什么都不能输入,phantomjs.exe仍然列在taskmanager的进程列表中,即使CTRL + C也不执行任何操作.整个事情都被冻结了.

The problem started to occur in v1.7.0, from one day to another. Everything once worked fine in 1.7.0 but then it did no more. Even after upgrading to 1.8.0 and now 1.9.0 it still doesnt work. The console just hangs. I can't type anything, phantomjs.exe is still listed in the list of processes in the taskmanager, even CTRL+C doesn't do anything. The whole thing is just frozen.

控制台中的下划线闪烁,好像它需要更多输入,但是我无法输入任何内容.我唯一的机会是使用[X]按钮关闭cmd窗口,这对于自动测试来说完全是愚蠢的.

The underscore in the console blinks as if it expected more input but I can't type anything. The only chance I have is to close the cmd window using the [X] button which is totally dumb for automated testing.

我使用从 http://phantomjs.org/下载的预编译二进制文件,正如我所说:从一天到另一天都停止了工作.我什至将它重新安装了几次,甚至安装到了不同的文件夹,但该过程不再终止了.有谁知道可能是什么问题的人?

I use the precompiled binaries I downloaded from http://phantomjs.org/ and as I said: it stopped working from one day to another. I even reinstalled it a few times, even to different folders but the process just doesn't get terminated any longer. Anyone who has an idea what the problem could be?

推荐答案

当您有两张卡时,这是Nvidia驱动程序的一个已知问题. 要解决此问题,您需要在NVidia控制面板(NVidia控制面板>管理3D设置>全局设置)中选择高性能NVidia处理器".

This is a known issue with the Nvidia drivers when you have two cards. To resolve this issue you need to select "High-performance NVidia processor" in the NVidia control panel (NVidia Control Panel > Manage 3D Settings > Global Settings).

在此处了解更多信息: https://github.com/ariya/phantomjs/issues/10845

Read more here: https://github.com/ariya/phantomjs/issues/10845

这篇关于phantomjs exit()不会终止进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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