blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

Exception with all emscripten codes. #117

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: D-a-n-i-l-o

I always get the following exception in Chrome on macOS:

exception thrown: TypeError: Cannot read property 'length' of undefined,TypeError: Cannot read property 'length' of undefined
    at _emscripten_get_num_gamepads (http://localhost:60356/Progressbar_test.js:1:229273)
    at wasm-function[2754]:32
    at wasm-function[2765]:55
    at wasm-function[1354]:273
    at wasm-function[4017]:503
    at wasm-function[2933]:186
    at wasm-function[3192]:25
    at Object._main (http://localhost:60356/Progressbar_test.js:1:385209)
    at Object.callMain (http://localhost:60356/Progressbar_test.js:1:393058)
    at doRun (http://localhost:60356/Progressbar_test.js:1:393734)
Uncaught TypeError: Cannot read property 'length' of undefined
    at _emscripten_get_num_gamepads (Progressbar_test.js:1)
    at wasm-function[2754]:32
    at wasm-function[2765]:55
    at wasm-function[1354]:273
    at wasm-function[4017]:503
    at wasm-function[2933]:186
    at wasm-function[3192]:25
    at Object._main (Progressbar_test.js:1)
    at Object.callMain (Progressbar_test.js:1)
    at doRun (Progressbar_test.js:1)

Same exception with all sources I try to run. For example Monkey2/modules/mojox/tests/Progressbar_test.monkey2

Emscripten is newest version, installed today.

/SDKs/emsdk/clang/e1.38.22_64bit
/SDKs/emsdk/node/8.9.1_64bit/bin
/SDKs/emsdk/emscripten/1.38.22

I get the same exception with 'wasm' and 'asmjs' target.