質問編集履歴
4
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,4 +19,5 @@
|
|
19
19
|
assert(buffer instanceof SharedArrayBuffer, 'requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag');
|
20
20
|
}
|
21
21
|
```
|
22
|
-
です
|
22
|
+
です。
|
23
|
+
そもそもENVIRONMENT_IS_PTHREADがOFFになっているのが何故かも分かってません。-s USE_PTHREADS=1 でビルドしているのに
|
3
追記
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,4 +9,14 @@
|
|
9
9
|
と上部にでて、コンソールに
|
10
10
|
ReferenceError: SharedArrayBuffer is not defined[詳細] SimpleFFPlayer.js:1163:3
|
11
11
|
と出てます。
|
12
|
-
このメッセージの意味もネットで見てもよく分かりませんでした
|
12
|
+
このメッセージの意味もネットで見てもよく分かりませんでした
|
13
|
+
で上の詳細は
|
14
|
+
```lang-javascript
|
15
|
+
|
16
|
+
if (!ENVIRONMENT_IS_PTHREAD) {
|
17
|
+
Module['wasmMemory'] = new WebAssembly.Memory({ 'initial': TOTAL_MEMORY / WASM_PAGE_SIZE , 'maximum': TOTAL_MEMORY / WASM_PAGE_SIZE, 'shared': true });
|
18
|
+
buffer = Module['wasmMemory'].buffer;
|
19
|
+
assert(buffer instanceof SharedArrayBuffer, 'requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag');
|
20
|
+
}
|
21
|
+
```
|
22
|
+
です
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,4 +3,10 @@
|
|
3
3
|
幸いコンパイルは成功してHTML、JS、WASMはできましたが動作しませんでした。
|
4
4
|
明らかに自分のソースコードがまずいと思いますが、どんなデバッグ方法があるのでしょうか?
|
5
5
|
私がしるのはPrintfでコンソール画面に出すことだけです。
|
6
|
-
ブレークポイントとかつけられますか?
|
6
|
+
ブレークポイントとかつけられますか?
|
7
|
+
Firefoxで動作させると
|
8
|
+
Exception thrown, see JavaScript console
|
9
|
+
と上部にでて、コンソールに
|
10
|
+
ReferenceError: SharedArrayBuffer is not defined[詳細] SimpleFFPlayer.js:1163:3
|
11
|
+
と出てます。
|
12
|
+
このメッセージの意味もネットで見てもよく分かりませんでした
|