[Bug Report] HTML5 app fails to launch properly

Hi

This is what I get trying to run my app in HTML5.

Error: uncaught exception: abort() at jsStackTrace@http://127.0.0.1:8000/UE4Game.js:853:12
stackTrace@http://127.0.0.1:8000/UE4Game.js:867:21
abort@http://127.0.0.1:8000/UE4Game.js:5090709:24
b130@http://127.0.0.1:8000/UE4Game.js:5083739:2
__ZN15SElementTesting14TestBoxElementERK21FOnPaintHandlerParams [SElementTesting::TestBoxElement(FOnPaintHandlerParams?&)]@http://127.0.0.1:8000/UE4Game.js:3929422:7
_FT_CMap_New@http://127.0.0.1:8000/UE4Game.js:2384132:24
_cff_face_init@http://127.0.0.1:8000/UE4Game.js:605382:26
_open_face@http://127.0.0.1:8000/UE4Game.js:2100038:80
_FT_Open_Face@http://127.0.0.1:8000/UE4Game.js:1210075:26
_FT_New_Memory_Face@http://127.0.0.1:8000/UE4Game.js:3621742:21
__ZN18FFreeTypeInterface11GetFontFaceERK9FFontData [FFreeTypeInterface::GetFontFace(FFontData?&)]@http://127.0.0.1:8000/UE4Game.js:1733747:10
__ZN18FFreeTypeInterface13GetRenderDataERK9FFontDataiwR20FCharacterRenderDataf [FFreeTypeInterface::GetRenderData(int&, wchar_t, float&)]@http://127.0.0.1:8000/UE4Game.js:1409108:8
__ZN18FFreeTypeInterface12GetMaxHeightERK14FSlateFontInfof [FFreeTypeInterface::GetMaxHeight(float&)]@http://127.0.0.1:8000/UE4Game.js:3879446:2
__ZNK14FCharacterList12GetMaxHeightEv [FCharacterList::GetMaxHeight()]@http://127.0.0.1:8000/UE4Game.js:4303155:7
__ZNK17FSlateFontMeasure21MeasureStringInternalERK7FStringiiRK14FSlateFontInfobfiNS_25ELastCharacterIndexFormatERi [FSlateFontMeasure::MeasureStringInternal?N(int&, int, bool&, float, int)]@http://127.0.0.1:8000/UE4Game.js:1095584:8
__ZNK17FSlateFontMeasure7MeasureERK7FStringiiRK14FSlateFontInfobf [FSlateFontMeasure::Measure(int&, int, bool&, float)]@http://127.0.0.1:8000/UE4Game.js:4314335:2
__ZNK13FSlateTextRun7MeasureEiif [FSlateTextRun::Measure(int, int, float)]@http://127.0.0.1:8000/UE4Game.js:2655519:2
__ZNK11FTextLayout9FRunModel11CreateBlockERKNS_16FBlockDefinitionEf [FTextLayout::FRunModel::CreateBlock?S(undefined?N?&)]@http://127.0.0.1:8000/UE4Game.js:825731:3
__ZN11FTextLayout20CreateLineViewBlocksEiiRiS0_S0_R6TArrayI10TSharedRefI12ILayoutBlockL7ESPMode0EE17FDefaultAllocatorE [FTextLayout::CreateLineViewBlocks?S(int, int, int&)]@http://127.0.0.1:8000/UE4Game.js:701214:4
__ZN11FTextLayout14FlowLineLayoutEifR6TArrayI10TSharedRefI12ILayoutBlockL7ESPMode0EE17FDefaultAllocatorE [FTextLayout::FlowLineLayout(int, float, undefined?0? TArray?e?>?&)]@http://127.0.0.1:8000/UE4Game.js:1606004:2
__ZN11FTextLayout10FlowLayoutEv [FTextLayout::FlowLayout()]@http://127.0.0.1:8000/UE4Game.js:3595895:4
__ZN11FTextLayout12UpdateLayoutEv [FTextLayout::UpdateLayout()]@http://127.0.0.1:8000/UE4Game.js:4332144:2
__ZN11FTextLayout14UpdateIfNeededEv [FTextLayout::UpdateIfNeeded()]@http://127.0.0.1:8000/UE4Game.js:4322948:3
__ZN16FTextBlockLayout18ComputeDesiredSizeERKNS_11FWidgetArgsERK15FTextBlockStyle [FTextBlockLayout::ComputeDesiredSize?S(undefined?N?&)]@http://127.0.0.1:8000/UE4Game.js:1578063:2
__ZNK10STextBlock18ComputeDesiredSizeEv [STextBlock::ComputeDesiredSize()]@http://127.0.0.1:8000/UE4Game.js:3260203:2
__ZN7SWidget16CacheDesiredSizeEv [SWidget::CacheDesiredSize()]@http://127.0.0.1:8000/UE4Game.js:4469274:2
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@http://127.0.0.1:8000/UE4Game.js:3499877:3
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@http://127.0.0.1:8000/UE4Game.js:3499885:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@http://127.0.0.1:8000/UE4Game.js:3499885:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@http://127.0.0.1:8000/UE4Game.js:3499885:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@http://127.0.0.1:8000/UE4Game.js:3499885:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@http://127.0.0.1:8000/UE4Game.js:3499885:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@http://127.0.0.1:8000/UE4Game.js:3499885:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@http://127.0.0.1:8000/UE4Game.js:3499885:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@http://127.0.0.1:8000/UE4Game.js:3499885:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@http://127.0.0.1:8000/UE4Game.js:3499885:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@http://127.0.0.1:8000/UE4Game.js:3499885:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@http://127.0.0.1:8000/UE4Game.js:3499885:42
__ZL24PrepassWindowAndChildren10TSharedRefI7SWindowL7ESPMode0EE [PrepassWindowAndChildren?1()]@http://127.0.0.1:8000/UE4Game.js:1758362:2
__ZN17FSlateApplication11DrawPrepassE10TSharedPtrI7SWindowL7ESPMode0EE [FSlateApplication::DrawPrepass?1()]@http://127.0.0.1:8000/UE4Game.js:1764286:5
__ZN17FSlateApplication18PrivateDrawWindowsE10TSharedPtrI7SWindowL7ESPMode0EE [FSlateApplication::PrivateDrawWindows?1()]@http://127.0.0.1:8000/UE4Game.js:956890:3
__ZN17FSlateApplication11DrawWindowsEv [FSlateApplication::DrawWindows()]@http://127.0.0.1:8000/UE4Game.js:4545346:2
__ZN17FSlateApplication4TickEv [FSlateApplication::Tick()]@http://127.0.0.1:8000/UE4Game.js:714940:2
__ZN11FEngineLoop4TickEv [FEngineLoop::Tick()]@http://127.0.0.1:8000/UE4Game.js:340600:3
__Z10HTML5_Tickv [HTML5_Tick()]@http://127.0.0.1:8000/UE4Game.js:5045278:2
dynCall_v@http://127.0.0.1:8000/UE4Game.js:5082539:2
Runtime.dynCall@http://127.0.0.1:8000/UE4Game.js:189:11
Browser_mainLoop_runner/<@http://127.0.0.1:8000/UE4Game.js:9649:5
Browser.mainLoop.runIter@http://127.0.0.1:8000/UE4Game.js:8348:5
Browser_mainLoop_runner@http://127.0.0.1:8000/UE4Game.js:9645:3

If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

And this is how the rendering looks like:
http://i.imgur.com/n8ruZkt.jpg

Basically there is nothing fancy in there, just an ArchViz appartment with pretty much standard scene settings with just w few Blueprints to change objects’ color or show an information panel, nothing more. And some UMG UI of course, which seems to be causing the problem, as “Slate” does come quite often int the error log. I am using a custom font for the UMG widgets.

You can check how it’s supposed to look and work like here: http://pro.cameleon-labs.com, the Big Black Button down the page will start the download of the Win app.

I am using UE 4.7.2 and .

Hey ,

Did you obtain the Engine through our Launcher or through GitHub? Could you please provide me the exact steps you took to launch your project in the format of HTML5? For instance, did you simply launch on, package or use Unreal FrontEnd?

Looking forward to hearing from you, thanks!

Hi

I am using the launcher version of the engine.
The project was made entirely in 4.6.1
Than it was converted to 4.7, than the two hotfixes came.
And I did use the “Launch the game on this HTML5 device” option from the editor.
I did also try to package the game for HTML5, and the result was the same.
I can upload the project itself, and provide you with a download link if that helps, just let me know can I send you the link.

Hey ,

Have you tried pushing a project to HTML5 from one of our templates? Did you encounter the same issue?

Could you please go ahead and upload your project for me? I can then investigate further for you. Just provide me with the link when you’re ready.

Thanks!

Hi

I did push one simple, almost an empty project, and it seemed fine. I will zip the files and post the link.

Hi

You can download the project: http://pro.cameleon-labs.com/dl/AppSmall47.zip

Hi

I have pushed the Sun Temple scene to HTML5 just to test it out. It launched and rendered just fine, the only problem being some inprecise mouse behaviour. So we can surely narrow this down to the project features, as the machine and the engine instalation are 100% capable of pushing a functional HTML5 scene.

Hey ,

Thanks for looking into Sun Temple on HTML5. I’m glad that HTML5 is set up correctly on your machine.

After packaging your game in HTML5 and running it on a SimpleHTTPServer, I was unable to get the game to function. I received an error: “Warning: Unresponsive Script”. I tried this twice, selecting continue and selecting debut script within the warning message. I wasn’t able to get it to function as a game in HTML5 at all.

However, I was able to launch your project onto Windows and it worked perfectly fine.

I have submitted a question to our HTML5 developers for more information regarding the errors and I received while working on your project. I should receive some information soon.

Thanks!

Hey ,

I haven’t heard from you in a few days regarding the issue however, I did check on the bug report status. This is a major issue that they’re working on at this time, but it hasn’t been resolved as of yet. If you have any further questions regarding this specific issue, feel free to contact us back at any time on this thread, or reference: UE-11410.

Thank you!

Hi
I am (patiently) waiting for the solution simply hoping that the fix will make it into the next release. If the HTML5 guys come up with some kind of a temporary workaround I would be really greatfull if you could post it here as well.

Thank you, and have a nice day.

Hey ,

I can’t guarantee when it’ll be fixed however, I’ll keep a watch on my reports submitted for any updates.

Have a great one! :slight_smile: