About Store Forum Documentation Contact



Post Reply 
Web JS compiles but won't run
Author Message
yvanvds Offline
Member

Post: #1
Web JS compiles but won't run
Hey.

Just tried the new Web mode. Installing it takes a bit more than what is mentioned in the docs. I'm not sure what was necessary and what not, but since Esenthel Editor could not find emscripten after I installed it, i tried this:

1. emsdk update - emsdk install latest - emsdk activate latest
> that didn't solve anything

2. emsdk install sdk-1.12.0-32bit - emsdk activate sdk-1.12.0-32bit
> tried that because only the 32 bit version is supported with visual studio and I didn't know for sure if you're using that or not. Didn't work.

3. installed visual studio 2010 and
4. emsdk install vs-tool-0.9.2
> result! My code compiles now, but it does not run. It doesn't run at all when i hit F5 (don't know if that's supported yet?). It also doesn't run when i publish it. Not locally, not on my webserver.

Just in case it might help I've put my project over here, so you can check it out:

http://attr-x.net/Bobbit/

I'm done for tonight. Will look at it again tomorrow.

Cheers,

yvan
03-16-2014 11:47 PM
Find all posts by this user Quote this message in a reply
yvanvds Offline
Member

Post: #2
RE: Web JS compiles but won't run
A few hours of sleep does wonders :-)

I realized I should have looked at the tutorial instead of just compiling my project.

Now I'm stuck at a browser message 'can't load pak from memory'. I tried leaving out EE_SECURE but that didn't help. I'll have another go this evening.

Edit: I just tried compiling the web tutorial and put that on my site too. It gives me the same error. Could this be because of the emscripten version? The documentation doesn't mention any specific version. I am using 1.12.0 32 bit now.
(This post was last modified: 03-17-2014 03:45 PM by yvanvds.)
03-17-2014 10:10 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Web JS compiles but won't run
Hi,
Did you use the publish option?
After you use the publish, with the provided "web tutorial", then you need to upload everything that gets generated, in the same structure as provided, and it should work.
You may also try clearing the cache browser in case previously it downloaded older/incomplete version.
03-18-2014 02:00 AM
Find all posts by this user Quote this message in a reply
yvanvds Offline
Member

Post: #4
RE: Web JS compiles but won't run
Yes, I used the publish function.

I did the same with the tutorial and it doesn't work either. Can be found at:

http://www.attr-x.net/Web%20App/
03-18-2014 02:03 AM
Find all posts by this user Quote this message in a reply
kevindekever Offline
Member

Post: #5
RE: Web JS compiles but won't run
compile with lot of warnings:

PHP Code:
1>------ Erstellen gestartetProjektWeb AppKonfigurationRelease Emscripten ------
1>Der Buildvorgang wurde am 21.03.2014 10:12:00 gestartet.
1>InitializeBuildStatus:
1>  "Emscripten\Release\Web App.unsuccessfulbuild" wird erstelltda "AlwaysCreate" angegeben wurde.
1>ClCompile:
1>  Auto.cpp
1
>  Main.cpp
1
>GCCLINK warning rootDisabling asm.js validation for memory growth (memory can growbut you lose some amount of speed)
1>GCCLINK warning unresolved symbolupdateSource
1
>GCCLINK warning unresolved symbolsetSourceState
1
>GCCLINK warning unresolved symbolupdateSources
1
>GCCLINK warning Casting a function pointer type to a potentially incompatible one (use -s VERBOSE=1 to see more)
1>GCCLINK warning See https://github.com/kripken/emscripten/wiki/CodeGuidelinesAndLimitations#function-pointer-issues for more information on dangerous function pointer casts
1>GCCLINK warning Incompatible function pointer casts are very dangerous with ASM_JS=1you should investigate and correct these
1
>GCCLINK warning Casting a function pointer type to a potentially incompatible one (use -s VERBOSE=1 to see more)
1>GCCLINK warning See https://github.com/kripken/emscripten/wiki/CodeGuidelinesAndLimitations#function-pointer-issues for more information on dangerous function pointer casts
1>GCCLINK warning Incompatible function pointer casts are very dangerous with ASM_JS=1you should investigate and correct these
1
>GCCLINK warning Output contains some very large functionsconsider using OUTLINING_LIMIT to break them up (see settings.js)
1>  Project 2010.vcxproj -> E:\Esenthel\Esenthel\Projects\_Build_\Web App\Emscripten\Release\Web App.js
1
>FinalizeBuildStatus:
1>  Die Datei "Emscripten\Release\Web App.unsuccessfulbuild" wird gel”scht.
1>  Aktualisieren des Timestamps von "Emscripten\Release\Web App.lastbuildstate".
1>
1>Das Erstellen war erfolgreich.
1>
1>Verstrichene Zeit 00:01:03.33
========== Erstellen1 erfolgreichFehler bei 00 aktuell0 bersprungen ========== 

and after copy and test, shader error? (local xampp)

PHP Code:
Can't load Shader "Position"
Current Call Stack:
    at fQ (Web%20App.js:15361:0) with values: fQ(755368)
    at zh (Web%20App.js:15313:0) with values: zh(755352)
    at Sy (Web%20App.js:15345:0) with values: Sy(708392, 7910920, 0, 0)
    at jU (Web%20App.js:15357:0) with values: jU(10, 0, 1, 0, 0)
    at xE (Web%20App.js:15333:0) with values: xE(701032)
    at WB (Web%20App.js:15333:0) with values: WB(742928)
    at yh (Web%20App.js:15313:0) with values: yh(735568)
    at Tg (Web%20App.js:15313:0)
    at MCa (Web%20App.js:15385:0) with values: MCa(12)
    at Runtime.dynCall (Web%20App.js:392:0)
    at Browser_mainLoop_runner (Web%20App.js:6548:0) 

2 webhostsuploads do not work:


http://ape.herobo.com/Web%20App.html

after download same error

the livedemo on esenthel website works
(This post was last modified: 03-23-2014 01:29 AM by kevindekever.)
03-21-2014 10:22 AM
Find all posts by this user Quote this message in a reply
kevindekever Offline
Member

Post: #6
RE: Web JS compiles but won't run
chmod 755 fixed download to me
(This post was last modified: 03-23-2014 01:28 AM by kevindekever.)
03-23-2014 01:12 AM
Find all posts by this user Quote this message in a reply
yvanvds Offline
Member

Post: #7
RE: Web JS compiles but won't run
Thanks Kevin.

Tried chmod 755, but no difference here. I would have been amazed if it did, because exe rights on the server shouldn't mean anything because this is executed on the client. Still, it was worth a try. Perhaps you also tried something else and the solution lies there?
03-23-2014 02:06 AM
Find all posts by this user Quote this message in a reply
kevindekever Offline
Member

Post: #8
RE: Web JS compiles but won't run
(03-23-2014 02:06 AM)yvanvds Wrote:  Thanks Kevin.

Tried chmod 755, but no difference here. I would have been amazed if it did, because exe rights on the server shouldn't mean anything because this is executed on the client. Still, it was worth a try. Perhaps you also tried something else and the solution lies there?

i did a lot, but this fixed the dl to me (strange numbers to dl)
i opened your website and saw the same numbers

http://attr-x.net/Bobbit/Bobbit.html

mhh changed back to 644 still working .... but yours work too after clearing the cache
jumps DL 0% to init --> pak error

perhaps some settings in your webserver

my site is just for tests http://www.000webhost.com/ (freehoster) there and xampp(local)
and same strange shader errors
(This post was last modified: 03-23-2014 10:08 AM by kevindekever.)
03-23-2014 09:45 AM
Find all posts by this user Quote this message in a reply
kevindekever Offline
Member

Post: #9
RE: Web JS compiles but won't run
http://www.esenthel.com/site/live_demo/E...20RTS.html
works to me too

Update: i found your web app esenthel grin
http://www.esenthel.com/site/live_demo/temp/Simple/

just copied the "Web App.js" and "Web App.js.mem" and upload it
...works to my webserver no error
http://ape.herobo.com/Web%20App.html
.... works with xampp (localhost) too


missing some compile params to get my project working?
http://ape.herobo.com/Web%20App2.html

After the last line in Preinit execute, the script stops

(added SetStatus(S+"Init"); SetStatus(S+"PreInit"); SetStatus(S+"PreInitLastLine"); SetStatus(S+"Draw"); SetStatus(S+"Update")wink
(This post was last modified: 03-24-2014 08:58 AM by kevindekever.)
03-24-2014 07:42 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #10
RE: Web JS compiles but won't run
Hi, I'll check this soon once I have good internet connection.
03-31-2014 06:15 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #11
RE: Web JS compiles but won't run
(03-17-2014 10:10 AM)yvanvds Wrote:  Edit: I just tried compiling the web tutorial and put that on my site too. It gives me the same error. Could this be because of the emscripten version? The documentation doesn't mention any specific version. I am using 1.12.0 32 bit now.
Hi,

I first installed the 1.12 version, but then I went to this site:
https://github.com/kripken/emscripten
and clicked "Download ZIP" ( https://github.com/kripken/emscripten/ar...master.zip )
and extracted the ZIP files onto the existing 1.12 installation.

Maybe this will help?


@yvan:
Did you use secure for this? (encryption)
http://www.attr-x.net/Web%20App/
I've downloaded the http://www.attr-x.net/Web%20App/Bin/Project.pak and can't open it
04-04-2014 04:48 AM
Find all posts by this user Quote this message in a reply
kevindekever Offline
Member

Post: #12
RE: Web JS compiles but won't run
(04-04-2014 04:48 AM)Esenthel Wrote:  I first installed the 1.12 version, but then I went to this site:
https://github.com/kripken/emscripten
and clicked "Download ZIP" ( https://github.com/kripken/emscripten/ar...master.zip )
and extracted the ZIP files onto the existing 1.12 installation.
Maybe this will help?

Did the same, recompile, still same errors (upper right corner you see last codeline is "PreInitLastLine")

http://ape.herobo.com/Web%20App2.html
(This post was last modified: 04-05-2014 12:01 AM by kevindekever.)
04-04-2014 11:56 PM
Find all posts by this user Quote this message in a reply
ronghester Offline
Member

Post: #13
RE: Web JS compiles but won't run
I am facing the same problem, the project compiles fine but when I try to run getting this error in chrome..<see attachment>
[Image: h5xb.jpg]

In IE 11 the error is different but it related to some shader.

Please provide some suggestion to get pass this error.

In the web console I get these errors...

run() called, but dependencies remain, so not running Web%20App.html:43
preload time: 118 ms Web%20App.html:43
2
WebGL: INVALID_ENUM: renderbufferStorage: invalid internalformat Web%20App.html:1
Uncaught SimulateInfiniteLoop Web%20App.js:6555
(This post was last modified: 04-17-2014 06:05 PM by ronghester.)
04-17-2014 06:01 PM
Find all posts by this user Quote this message in a reply
ronghester Offline
Member

Post: #14
RE: Web JS compiles but won't run
Tried Following...
installing/uninstalling
copying the master.zip content etc...

But nothing seems to be solving this shader problem. I remember I got this kind of error with samsung S3 last year.

Let me know if I can help with some more debug information.
04-22-2014 08:26 AM
Find all posts by this user Quote this message in a reply
Marbasoft Offline
Member

Post: #15
RE: Web JS compiles but won't run
(03-18-2014 02:00 AM)Esenthel Wrote:  Hi,
Did you use the publish option?
After you use the publish, with the provided "web tutorial", then you need to upload everything that gets generated, in the same structure as provided, and it should work.
You may also try clearing the cache browser in case previously it downloaded older/incomplete version.

When i publish the "Web App" tutorial the editor say : Can't copy "Web App.js"

I've just made a fresh install of Esenthel editor, then try to publish the tutorial.

In my _Publish folder, i can find the Web App folder.
In Web App folder there's only the bin folder with the Engine.pak

In my _Build_ folder, i can find the Web App folder.
In Web App folder there's a Emscripten folder, then a Release folder.
In the Release folder, i have some files :
  • web App.exe
  • Web App.html
  • etc

but no Web App.js

Where can i find this JS file ?
04-24-2014 05:22 PM
Find all posts by this user Quote this message in a reply
Post Reply