[4.11P2 Prebuilt][Bug] HTML5 map downloading on the fly is broken. (Plus problems with non-map downloading on the fly on latest firefox)

Hello,

I’ve run into a couple of issues with 4.11 P2 (using the prebuilt binaries from the launcher). The first problem is with map downloading on the fly for HTML5 for both 32-bit chrome and 32-bit firefox. When I build (the UE4 10.2 version) with development or shipping settings on 4.11P2, at some point during the compile it pops up a message box saying “The map specified on the following commandline ‘/Game/Maps/TappyChickenMap’ could not be found. Exiting.’ This is followed by a message box (at least on chrome) that says “Expression (Ptr) failed in Runtime/Core/Public/HAL\MallocAnsi.h:49!” Check console for details.”. After the error messages pass, these are the logs in the various parts of the browser.

The in-html log view:
*
Starting downloads
Starting download Utility.js
Starting download TappyChicken.data.js
Starting download UE4Game.js
TappyChicken.data.js downloaded
Utility.js downloaded
starting download TappyChicken.data [Packaged data]
TappyChicken.data downloaded
UE4Game.js downloaded
all downloads complete
Running…
LogHTML5Launch:Display: Starting UE4 …
LogHTML5Launch:Display: Command line: …/…/…/TappyChicken/TappyChicken.uproject
LogTemp:Display: PreInit Start
LogInit:Display: Running engine for game: TappyChicken
LogInit:Display: Project file not found: …/…/…/TappyChicken/TappyChicken.uproject
LogInit:Display: Attempting to find via project info helper.
LogUProjectInfo: Found projects:
LogInit:Display: RandInit(1189140) SRandInit(1189200).
LogTaskGraph: Started task graph with 3 named threads and 4 total threads.
LogStats: Stats thread started at 1.252710
LogInit: Version: 4.11.0-2822657+++UE4+Release-4.11
LogInit: API Version: 2822657
LogInit: Compiled (32-bit): Jan 11 2016 03:00:31
*

The chrome browser console:
*
wierd, couldn’t get size
TappyChicken.html:374 pre-main prep time: 1292 ms
TappyChicken.html:374 Calling stub instead of sigaction()
TappyChicken.html:374 Calling stub instead of sigaction()
blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1 GET http://localhost:8000/TappyChicken/Content/Paks/TappyChickenMap_TappyChickenMap.pak?rand=002B3FB32A010E0F001F010C00C5604A 404 (Not Found)_emscripten_async_wget2 @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1stb @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:56Qsb @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:56Rsb @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:56UG @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41YVg @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:24MVg @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:24LKe @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:35rIe @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:35Eq @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41Cq @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41Fq @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41callMain @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:77doRun @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:77(anonymous function) @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:77
TappyChicken.html:374 Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with “–pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js” linker flag to add source map loading to code.
blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1 Expression ‘Ptr’ failed in Runtime/Core/Public/HAL\MallocAnsi.h:49!
at Array.Fua (1b2a3650-fb8a-452c-be89-801e5fd4edaf:31:833660)
at Array.Gua (1b2a3650-fb8a-452c-be89-801e5fd4edaf:31:834181)
at Array.SEa (1b2a3650-fb8a-452c-be89-801e5fd4edaf:31:997243)
at gG (1b2a3650-fb8a-452c-be89-801e5fd4edaf:41:414754) with values: gG(0, -33554408, 0)
at bv (1b2a3650-fb8a-452c-be89-801e5fd4edaf:41:155933) with values: bv(10668672, 0, 1065353222, 4)
at dv (1b2a3650-fb8a-452c-be89-801e5fd4edaf:41:156259) with values: dv(10668672, 12, 0, 6)_emscripten_log_js @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1_emscripten_log @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1Fua @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:31Gua @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:31SEa @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:31gG @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41bv @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41dv @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41Sr @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41stb @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:56Ytb @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:56Ztb @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:56efa @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:31Vvb @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:56jC0 @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:70Runtime.dynCall @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1http_onload @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1
VM194:1 Uncaught Error
at eval (eval at (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1:5543), :1:233)
at _emscripten_asm_const_int (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1:245543)
at Array.Fua (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:31:833672)
at Array.Gua (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:31:834181)
at Array.SEa (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:31:997243)
at gG (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41:414754)
at bv (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41:155933)
at dv (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41:156259)
at Sr (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41:118544)
at stb (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:56:770857)(anonymous function) @ VM194:1_emscripten_asm_const_int @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1Fua @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:31Gua @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:31SEa @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:31gG @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41bv @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41dv @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41Sr @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41stb @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:56Ytb @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:56Ztb @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:56efa @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:31Vvb @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:56jC0 @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:70Runtime.dynCall @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1http_onload @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1
blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1 DebugBreak() called!
at Qtg (1b2a3650-fb8a-452c-be89-801e5fd4edaf:51:1112540) with values: Qtg(10671440, 10671392)
at ERe (1b2a3650-fb8a-452c-be89-801e5fd4edaf:39:86293) with values: ERe(89633872, 89712100, 10670208)
at Array.FRe (1b2a3650-fb8a-452c-be89-801e5fd4edaf:39:100963)
at pRg (1b2a3650-fb8a-452c-be89-801e5fd4edaf:61:1043956) with values: pRg(89712100, 1)
at Array.qIe (1b2a3650-fb8a-452c-be89-801e5fd4edaf:35:975864)
at Array.DIe (1b2a3650-fb8a-452c-be89-801e5fd4edaf:35:999349)_emscripten_log_js @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1_emscripten_log @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1Qtg @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:51ERe @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:39FRe @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:39pRg @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:61qIe @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:35DIe @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:35Bq @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41Aq @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41eB0 @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:70Runtime.dynCall @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1(anonymous function) @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1Browser.mainLoop.runIter @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1Browser_mainLoop_runner @ blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1
blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1 Uncaught Error
at eval (eval at (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1:5543), :1:60)
at _emscripten_asm_const (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:1:300461)
at Qtg (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:51:1112552)
at ERe (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:39:86293)
at Array.FRe (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:39:100963)
at pRg (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:61:1043956)
at Array.qIe (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:35:975864)
at Array.DIe (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:35:999349)
at Bq (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41:18227)
at Array.Aq (blob:http%3A//localhost%3A8000/1b2a3650-fb8a-452c-be89-801e5fd4edaf:41:563)
*

The HTML5LaunchHelper console:

Name: -Browser=
Name: -ServerRoot= ./
Name: -ServerPort= 8000
Name: -BrowserCommandLine=
Name: -UseAllPrefixes= FALSE
Starting Server at http://localhost:8000/
Press Any key Quit Server
Serving .//TappyChicken.html
Serving .//Utility.jsgz
Serving .//TappyChicken.data.jsgz
Serving .//UE4Game.jsgz
Serving .//TappyChicken.datagz
Serving .//UE4Game.js.memgz
Not Serving .//TappyChicken/Content/Paks/TappyChickenMap_TappyChickenMap.pak
Serving .//UE4Game.js.symbolsgz
Serving .//UE4Game.js.symbolsgz
*

editor output console for build (on pastebin): LogPlatformFile: Not using cached read wrapperLogInit:Display: RandInit(-20344 - Pastebin.com

The second problem is exclusive to the latest version of 32-bit firefox. Without downloading maps on the fly, runs fine in 32-bit chrome, but on 32-bit firefox after it prints pre-main prep time to console, it pops up a dialog that says “Expression (Key.IsValid()) failed in D:\BuildFarm\buildmachine_++UE4+Release-4.11\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5154!
Check console for details.”.

The red error box in the canvas shows the callstack:
*
FSlateApplication::OnControllerAnalog?5()
undefined?T()
FHTML5InputInterface::SendControllerEvents()
FHTML5Application::PollGameDeviceState(float)
FSlateApplication::PollGameDeviceState()
FEngineLoop::Tick()
HTML5_Tick()
dynCall_v
*

Both these problems were found on 64-bit Windows 10 using the prebuilt UE4 binaries from the UE4 launcher. Also, I have uBlock origin and no script on firefox and uBlock origin and NoScript suite on chrome. Both show no items being blocked, so I don’t think these are the problem.

Resolved the SlateApplication.cpp error. Turns out it was a problem with having a PS4 controller plugged into my computer’s USB and using the DS4Windows application. Unplugging it has made that error go away.

An update on the not being able to resolve TappyChickenMap problem. I tried building and running a new HTML5 blank project with starter content using 4.11P2 and it works just fine. So this may be an issue with updating pre-4.11 game projects to 4.11.

Hi ,

Have you tried this with any other browser such as Chromium? What steps are you taking to package and open the project on your browser?

The process I went through is:

  1. Install the engines for 4.10.2 and 4.11P3 in the Epic Game Launcher.
  2. Install the latest (4.10.2) version of .
  3. Create a on a local drive.
  4. Right click on the uproject and switch the unreal engine version to 4.11P3 and then launch the editor.
  5. Check the “download maps on the fly (experimental)” option in the HTML5 category of the project settings.
  6. Package for HTML5 via the file menu (the development build setting is set by default).
    7)Launch HTML5LaunchHelper.exe and navigate to localhost:8000/TappyChicken.html
    8)The error messages mentioned in my main post should appear sometime during the “compiling” message.

I just tried running it on the 64-bit versions of firefox and chrome and it runs into the same errors.

Does work in previous versions? It is important to note that has not been tested in 4.11 yet and as such we cannot guarantee there will be no errors with the project. Are there any other 4.10 projects you have updated that are experiencing the same errors?

Yeah, works on 32 and 64 bit chrome and firefox when it’s packaged with 4.10.2. I just tried creating a blank blueprint 4.10.2 project with starter content and the download maps on the fly option set and it worked with both 4.10.2 and 4.11P3 packaging. So it seems the problem has something to do with on 4.11P3 in particular.

I tested this on my end, however it seems to package as expected for HTML5 and if I open the launcher helper and go to the local host all seems to work as I would expect. Do you have any other steps I can take to reproduce this on my end?

As far as setting up those steps should be correct. It may be a problem with something external to UE4. I’m using Emscripten version 1.35.22 and my .emscripten file has all the paths set correctly:

import os
JAVA='F:/Emscripten/java/7.45_64bit/bin/java.exe'
SPIDERMONKEY_ENGINE='F:/Emscripten/spidermonkey/37.0.1_64bit/js.exe'
CRUNCH='F:/Emscripten/crunch/1.03/crunch.exe'
LLVM_ROOT='F:/Emscripten/clang/e1.35.0_64bit'
EMSCRIPTEN_NATIVE_OPTIMIZER='F:/Emscripten/clang/e1.35.0_64bit/optimizer.exe'
NODE_JS='F:/Emscripten/node/4.1.1_64bit/bin/node'
PYTHON='F:/Emscripten/python/2.7.5.3_64bit/python.exe'
EMSCRIPTEN_ROOT='F:/Emscripten/emscripten/1.35.0'
V8_ENGINE = ''
TEMP_DIR = 'c:/users//appdata/local/temp'
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]

I always delete temporary files when switching engine versions, so that’s not a problem. My browser versions are:

Firefox32: 43.0.4
Firefox64: 43.0.4
Chrome64: 48.0.2564.82 beta-m (64-bit)

Another thing that may be different between our two systems is I only have the Windows 10 SDK installed and not the Windows 8.1 SDK.

Hi ,

I did some digging and have found that this is a known issue and is in our system as UE-22166.

hello ,

what version of visual did you use during this build?

hello ,

same question, what version of visual did you use during this build?

i’m trying to hunt down UE-22166 and i’m finding some disturbing findings – and i’d like to eliminate some unknowns. thx!

I used Visual 2015 Community Update 1 and the Windows 10 SDK. The issue persists through 4.11 Preview 5, but I haven’t tried the more recent previews as I have moved on to work on other things. I’ve confirmed that it happens with the tower defense example game as well. It also happens to both and the tower defense game on my laptop.

Just tried it recently with the most recent 4.11 and the latest dev release of Windows 10. I was able to get the stylistic rendering demo running in HTML5 with map downloading on the fly enabled. There were some texture issues, but I imagine that’s just an issue with the WebGL renderer. I also ran the helper server using “run as administrator”.