LoginSignup
5
5

More than 5 years have passed since last update.

Windows で phantomjs が終了しないときの対処

Last updated at Posted at 2014-04-28

phantomjs のプログラムを終了させるときには phantom.exit() を使います。しかし、Windows では終了しないことがあります。この現象については GitHub でも Issue として上がっています。

どうやらグラフィックスボードが複数ある場合に発生してしまうようです。ここでは Windows 8 の現象として報告されていますが、Windows 7 でも発生することを確認しました。

NVIDIA コントロールパネルがインストールされている場合には、設定を変更することで対処できます。

まず、スタートメニューから NVIDIA コントロールパネルを探し出します。

nvidia01.png

これを起動して [3D設定] の [3D 設定の管理] にある、[グローバル設定] タブの [優先するグラフィックス プロセッサ] を自動選択以外にしてやれば大丈夫です。

nvidia02.png

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5