I’ve tried from the bundle menu of the editor (1.2.189, linux version), and with bob (java -jar ~/defold/tools/bob_1.2.189.jar --archive --platform js-web --architectures wasm-web resolve distclean build bundle ).
Both are building without errors, but when i try and run them from the browser, i only see the defold splash screen, the progression bar which shows loading.
When the loading is finished, the splash screen doesn’t disappear, and soon firefox tell me that the page is using too much resources. Same issue with Chrome. I’ve tried to use the debugger , but nothing is shown.
Of course, the files are served from a web server.
I can generate linux x86_64 (my platform) without any problems, and it works very well.
Is there a way to get debug informations from web versions ? I cannot even see what files are loaded , with the browser debugger.
How do you run html5 build? It sounds like you just double tap index.html.
HTML5 bundle needs http server, please read FAQ here: Defold development for the HTML5 platform
UPD:
Ah, sorry, now I see.
Of course, the files are served from a web server.
What if you run html5 from the editor: Project->Build HTML5 ?
Ok i understand, there were so many repeating errors than the beginning of the logs had been thrashed.
By defining an empty function at line 512 (printErr function), i could seen the interesting part.
Running... [dmloader.js:514:41](http://mysite.com/project_debug/dmloader.js)
<empty string> [dmloader.js:514:41](http://mysite.com/project_debug/dmloader.js)
INFO:ENGINE: Defold Engine 1.2.189 (8894457) [dmloader.js:511:37](http://mysite.com/project_debug/dmloader.js)
Made with Defold -=[ https://www.defold.com ]=- [ line 144 > injectedScript:1:15023](http://mysite.com/project_debug/ line 144 > injectedScript)
INFO:ENGINE: Loading data from: dmanif:game.dmanifest [dmloader.js:511:37](http://mysite.com/project_debug/dmloader.js)
INFO:ENGINE: Initialised sound device 'default' [dmloader.js:511:37](http://mysite.com/project_debug/dmloader.js)
WARNING:RESOURCE: Unable to create resource: /scripts/scrolling.fpc: FORMAT_ERROR [dmloader.js:511:37](http://mysite.com/project_debug/dmloader.js)
WARNING:RESOURCE: Unable to create resource: /scripts/scrolling.materialc: FORMAT_ERROR [dmloader.js:511:37](http://mysite.com/project_debug/dmloader.js)
WARNING:RESOURCE: Unable to create resource: /main/background.spritec: FORMAT_ERROR [dmloader.js:511:37](http://mysite.com/project_debug/dmloader.js)
WARNING:RESOURCE: Unable to create resource: /_generated_7388588174a65a0e.goc: FORMAT_ERROR [dmloader.js:511:37](http://mysite.com/project_debug/dmloader.js)
WARNING:RESOURCE: Unable to create resource: /main/main.collectionc: FORMAT_ERROR [dmloader.js:511:37](http://mysite.com/project_debug/dmloader.js)
INFO:CRASH: Successfully wrote Crashdump to file: /data/.Defold/_crash [dmloader.js:511:37](http://mysite.com/project_debug/dmloader.js)
Ah ! there is a crashlog ! But where is it ?
A find ~ -iname "*_crash*" | grep -i defold returns nothing. I did the search on the client side, of course
Of course i can share, here here the scrolling.fpc .
I’ve just removed some binaries information. I guess the first block is the translation to GLES of the second part, which is the one i wrote.
Must be something incompatible with GLES, or maybe some variable which is not used and should be removed ? How can you debug something like this without bothering a good soul ? I will have for sure other bugs in the future.