tbfleming / cib

clang running in browser (wasm)

Home Page:https://tbfleming.github.io/cib/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I think that not working

heretic13 opened this issue · comments

I open https://tbfleming.github.io/cib/
But I see that "Preparing clang...", "Preparing runtime..". Buttons disabled. And "Failed to fetch" messages.

Hm. It's not working on latest Chrome Browser, but work in Firefox.

Odd. I just pulled it up on Chrome 66.0.3359.139, 64 bit, Windows 10, and it worked. Failed to fetch could have been from a network glitch.

At the moment it does not work at all. Neither Firefox nor Chrome

See if anything appears on your console: ctrl+shift+i

for Chrome:

(index):357 clang-format init: Downloading clang-format.wasm
(index):357 clang init: Downloading clang.wasm
(index):357 runtime init: Downloading runtime.wasm
process-manager.js:88 GET https://tbfleming.github.io/cib/clang-format.wasm 0 ()
start @ process-manager.js:88
(anonymous) @ (index):422
(index):357 clang-format error: Failed to fetch
process-manager.js:88 GET https://tbfleming.github.io/cib/clang.wasm 0 ()
start @ process-manager.js:88
(anonymous) @ (index):423
(index):357 clang error: Failed to fetch
process-manager.js:88 GET https://tbfleming.github.io/cib/runtime.wasm 0 ()
start @ process-manager.js:88
(anonymous) @ (index):424
(index):357 runtime error: Failed to fetch

firefox:

clang-format init: Downloading clang-format.wasm
cib:357:17
clang init: Downloading clang.wasm
cib:357:17
runtime init: Downloading runtime.wasm
cib:357:17
clang-format error: NetworkError when attempting to fetch resource.
cib:357:17
clang error: NetworkError when attempting to fetch resource.
cib:357:17
runtime error: NetworkError when attempting to fetch resource.
cib:357:17

Chrome: there should be a network tab on the console. Click it then reload the page. You'll get a long list of entries that looks like this:

image

Since there's errors, some should show up red. Clicking on them should give more detail.

I suspect there's a firewall or ISP blocking .wasm files.

Correction: proxy or ISP

Ok. Thanks. It is a "uBlock origin" plugin for Chrome/Firefox.

Perhaps it's worth adding advice to the user on the web page if it was not possible to download the wasm files. For me, for example, the phrase "failed to fetch" says nothing. But if it was written - "could not download wasm files, please disable ad blockers and make sure that your ISP allows you to download wasm files!". It would be more informative.

Good suggestion.

commented

I encountered this problem too with uBlock origin installed.
But it doesn't works even if I disable uBlock origin.
Network tab:
Network