2

これでnoobを完了します。Firefox OS シミュレーターを動作させて、Firefox OS 用のアプリの書き方を学ぼうとしています。openSUSE 13.2 を実行しています。シミュレーターを起動できません。

Firefox 34.0.5 をインストールし、 https ://developer.mozilla.org/en-US/docs/Tools/Firefox_OS_Simulator で説明されているように、Firefox OS 1.3 および 1.4 の詳細ログを有効にし ます。

WebIDE を開き、Select Runtime と Install Simulator に移動し、1.3 または 1.4 を選択してインストールします。( https://ftp.mozilla.org/pub/mozilla.org/labs/fxos-simulator/から直接インストールすることも試みました) どちらにしても、Firefox 1.3/1.4 は WebIDE の Select Runtime の下にリストされています。

WebIDE の [ランタイムの選択] で 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 +

次に、Firefox を実行します。この情報は、他の人が同様の問題を抱えている場合に備えて投稿されています。

于 2015-01-09T16:55:49.123 に答える