【问题标题】:Firefox crash when called by Selenium Remote Driver on Mac OS X在 Mac OS X 上被 Selenium 远程驱动程序调用时 Firefox 崩溃
【发布时间】:2016-01-18 15:49:21
【问题描述】:

我刚刚在我的 Mac OS X 10.8.5 机器上安装了Selenium Remote Driver,并在运行此代码时使用了 Firefox 43.0.4(迄今为止最新的稳定版本):

#!/usr/bin/perl

use strict;
use warnings;
use Selenium::Remote::Driver;
use Selenium::Firefox;

my $firefox = Selenium::Firefox->new;
$firefox->get('http://www.google.com');

导致浏览器打开,然后崩溃,向控制台输出以下错误:

kernel[0]: firefox-bin (map: ...) triggered DYLD shared region unnest for map: ..., region ...->.... While not abnormal for debuggers, this increases system memory footprint until the target exits.

关于可能导致此问题的任何线索? 这是我的编程错误吗? 我应该使用一些特定的标志来防止这种情况吗? 还是我应该将其报告为错误? 任何帮助深表感谢。您会注意到这是我在该网站上的第一篇文章。我希望它没有以任何方式出现问题,如果是,请原谅。 先感谢您。 最好的问候,

标记。

【问题讨论】:

  • 尝试降低 Firefox 的等级。FF39 对我来说效果很好

标签: macos perl firefox selenium


【解决方案1】:

这可能与 Selenium 和 FX 43 64bit 的问题有关。截至目前,没有修复,只有解决方法。其中包括:

  • 更新到最新的 Selenium 版本,使 FX 不检查插件签名。
  • 使用 32 位版本的 Firefox
  • 使用旧版本的 Firefox,例如42

更多详情请见https://github.com/SeleniumHQ/selenium/issues/1431

【讨论】:

  • 啊,感谢您提供的信息...没有考虑架构问题。也许会尝试其他方法,如果我别无选择,将按照建议降级。感谢 Hubert Grzeskowiak 和murali seleniumtrainer
猜你喜欢
  • 2015-08-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-06-30
相关资源
最近更新 更多