2

在此完成菜鸟。试图让 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 都在 WebIDE 中的 Select Runtime 下列出。

我尝试通过单击 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
4

1 回答 1

2

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

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

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

这是一个 X 服务器安全问题。固定与

xhost +

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

于 2015-01-09T16:55:49.123 回答