This is a Javascript error in the browser, where it tries to set a property 
on an 'undefined' object, it has nothing to do with the web server, or the 
emscripten SDK.

This seems to be the place in the emscripten JS wrapper code where the 
exception happens: 

https://github.com/kripken/emscripten/blob/6dc4ac5f9e4d8484e273e4dcc554f809738cedd6/src/library_browser.js#L685

What is the browser and OS where this fails? And what are browsers/OSes 
where it works?

Since it seems to work in some browsers/OSes, my guess would be that WebGL 
couldn't be properly initialized, and this is a followup problem. Is there 
any more output on the Javascript console in the browser devtools?

Cheers,
-Floh.

Am Freitag, 1. September 2017 23:30:08 UTC+8 schrieb Ivan Gyulev:
>
>  Hi guys,
> I am trying to run an application that relies on Emscripten (we have that 
> installed) but we always seem to get this error:
>
> Uncaught TypeError: Cannot set property 'widthNative' of undefined
>     at Object.updateCanvasDimensions (snes.prg:1)
>     at Object.setCanvasSize (snes.prg:1)
>     at _emscripten_set_canvas_size (snes.prg:1)
>     at Object.rD [as _main] (snes.prg:17)
>     at Object.callMain (snes.prg:36)
>     at doRun (snes.prg:36)
>     at run (snes.prg:36)
>     at runCaller (snes.prg:36)
>     at removeRunDependency (snes.prg:1)
>     at applyMemoryInitializer (snes.prg:36)
>
>
> Can this be script specific or perhaps it's an Emscripten problem? It 
> seems the script runs just fine on other servers.
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to