WebIDE Firefox OS模拟器操作失败:连接到运行时

时间:2015-01-06 17:24:36

标签: firefox firefox-os b2g

在此完成菜鸟。试图让Firefox OS模拟器努力学习为Firefox OS编写应用程序。运行openSUSE 13.2。我无法启动模拟器。

我安装了Firefox 34.0.5,我为Firefox OS 1.3和1.4启用详细日志记录,如下所述: https://developer.mozilla.org/en-US/docs/Tools/Firefox_OS_Simulator

我打开WebIDE,转到选择运行时和安装模拟器,我选择1.3或1.4然后安装。 (我也尝试过直接安装:https://ftp.mozilla.org/pub/mozilla.org/labs/fxos-simulator/) 无论哪种方式,Firefox 1.3 / 1.4都在Select Runtime下的WebIDE中列出。

我尝试通过单击WebIDE上的Select Runtime下的Firefox 1.3或1.4来运行模拟器。

我在WebIDE上获得一个微调器图标,一段时间后我收到一条错误消息:

Operation failed: connecting to runtime.

有一个故障排除按钮,我在那里找不到任何有用的帮助。我可能会遗漏一些明显的东西,但我无法看到它。

浏览器控制台日志记录显示:

"subprocess: getlimit: maxFD=1024" simulator-process.js:35
"subprocess: subprocess started; got PID 3533" simulator-process.js:35
"Connection status changed: connecting" app-manager.js:127
"subprocess: Got msg from stdout: initialising library with libc.so.6" simulator-process.js:35
"subprocess: Got msg from stdout: waitpid signaled subprocess stop, exitcode=256" simulator-process.js:35
"subprocess: Got msg from stdout: poll returned HUP" simulator-process.js:35
"subprocess: Pipe stdout closed" simulator-process.js:35
"subprocess: Got msg from stderr: initialising library with libc.so.6" simulator-process.js:35
"subprocess: Got msg from stderr: reading next chunk" simulator-process.js:35
"subprocess: got 146 bytes from stderr" simulator-process.js:35
"subprocess: Got msg from stderr: poll returned HUP" simulator-process.js:35
"subprocess: Pipe stderr closed" simulator-process.js:35
"subprocess: Cleanup called" simulator-process.js:35
"subprocess: trying to close stdin" simulator-process.js:35
"subprocess: Closing Stdin" simulator-process.js:35
"(process:3533): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
No protocol specified
Error: cannot open display: :0" simulator-process.js:44
"b2g-bin terminated with 0" simulator-process.js:107
"Connection status changed: disconnecting" app-manager.js:127
TypeError: this._client is null
Stack trace:
Connection.prototype.disconnect@resource://gre/modules/commonjs/toolkit/loader.js ->     resource://gre/modules/devtools/client/connection-manager.js:186:7
Connection.prototype._onTimeout@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/client/connection-manager.js:285:5
notify@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/timers.js:40:9
timers.js:43
"Connection status changed: disconnected" app-manager.js:127
"Operation failed: connecting to runtime" webide.js:274
UI.reportError() webide.js:274
UI.busyUntil/<() webide.js:257
Handler.prototype.process() Promise-backend.js:868
this.PromiseWalker.walkerLoop() Promise-backend.js:744

undefined webide.js:258
UI.busyUntil/<() webide.js:258
Handler.prototype.process() Promise-backend.js:868
this.PromiseWalker.walkerLoop() Promise-backend.js:744

1 个答案:

答案 0 :(得分:2)

试图让这个工作好几天后,我休息了一下,今天又试了一次。

我发现了影响NixOS用户的类似问题: https://bugzilla.mozilla.org/show_bug.cgi?id=980437

导致: https://bugzilla.mozilla.org/show_bug.cgi?id=1031100

这是X服务器安全问题。用

修复
xhost +

然后运行firefox。此信息已发布,以防其他人遇到类似问题。