[HTML5] Stack error

Hi,
I’ve compiled my game for HTML5 but after launch game in I see following error:

Error: uncaught exception: abort() at jsStackTrace@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:853:12
stackTrace@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:867:21
abort@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:5153637:24
b87@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:5146390:2
_SDL_OnWindowEnter@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4812632:2
_SDL_SendWindowEvent@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:1774522:5
_Emscripten_HandleMouseFocus@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4918990:2
dynCall_iiii@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:5012103:9
Runtime.dynCall@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:187:11
JSEvents.registerMouseEventCallback/handlerFunc@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:2042:23
jsEventHandler@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:1947:4

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

Please help me.

Hey ,

In order to assist you better, I’m going to need some additional information from you:

  • Are you launching or packaging your game from UE4?
  • Could you please provide me the steps you’re taking in order to achieve this error?
  • Are there any additional error triggering from the editor, possibly in the output ?
  • Which version of the editor are you on?
  • Which version of FireFox are you on? Is it 32 or 64 bit?
  • Does this happen on any other project, such as one of our templates?

Thanks in advance for providing me all of this information. Looking forward to assisting you further.

Cheers!

  • Packaging game from UE4
  • No other errors
  • UE 4.7.2
  • 64 bit 39a
  • I’ve tested this also in Tappy Chicken and it didn’t happen.

Steps:
File → Package Project → HTML5

and after packaging project I run Firefox and on start this error happened…

Hey ,

I appreciate you providing me answers to all of my questions. I just threw a project together out of the first person template and packaged it for HTML5. I was able to successfully run it with a simple http server without any trouble with FireFox.

Has your project ever ran in HTML5?

Thanks!

No, I hadn’t try it before…

Hey ,

I’ve spoken with our HTML5 developers and they haven’t seen this issue before however they do feel like it is a bug. I have not been able to reproduce this. I’ve launched the game through FireFox, allowing it to load successfully to see if I received any error. I’ve also tried clicking around in the browser window when the game is actually loading up.

Is there anything specific that you’re doing on your computer when you receive this error? Were you clicking in the game, or even using another program while it loaded up?

Would you allow us to try and package your project and launch it onto FireFox on our end? If so, feel free to upload it to something like and just PM me the link on the forums, or you can submit it here if you don’t mind anyone else looking at your project.

If you decide not to allow us to test on your project, that’s perfectly fine. I’ll continue to try and do some research in-house to get a proper reproduction of the error.

Thanks! :slight_smile:

I’ve tried build again this project for HTML5 and I receive other error:

Error: uncaught exception: abort() at jsStackTrace@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:853:12
stackTrace@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:867:21
abort@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:5153633:24
b135@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:5135282:2
__ZN7FMemory6MallocEmj [FMemory::Malloc(unsigned long, unsigned int)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4603808:7
__ZN12FMallocCrashC2EP7FMalloc [FMallocCrash::FMallocCrash(FMalloc?*)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3311458:20
__ZN12FMallocCrash3GetEP7FMalloc [FMallocCrash::Get(FMalloc?*)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4777109:3
__Z13GCreateMallocv [GCreateMalloc()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4338408:2
__ZN7FMemory4FreeEPv [FMemory::Free(void*)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4697532:3
__ZN6TArrayIt17FDefaultAllocatorED2Ev [__ZN6TArrayIt17FDefaultAllocatorED2Ev?]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4958555:21
__ZN29FDynamicEmitterReplayDataBaseD2Ev [FDynamicEmitterReplayDataBase?D()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4834626:2
__ZN29FDynamicMeshEmitterReplayDataD1Ev [FDynamicMeshEmitterReplayData?D()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:5003655:2
_ft_cmap_done_internal@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3841383:2
_FT_CMap_New@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:2415271:4
_cff_face_init@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:607517:26
_open_face@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:2122782:80
_FT_Open_Face@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:1217246:26
_FT_New_Memory_Face@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3674168:21
__ZN18FFreeTypeInterface11GetFontFaceERK9FFontData [FFreeTypeInterface::GetFontFace(FFontData?&)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:1751075:10
__ZN18FFreeTypeInterface13GetRenderDataERK9FFontDataiwR20FCharacterRenderDataf [FFreeTypeInterface::GetRenderData(int&, wchar_t, float&)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:1421898:8
__ZN18FFreeTypeInterface12GetMaxHeightERK14FSlateFontInfof [FFreeTypeInterface::GetMaxHeight(float&)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3934532:2
__ZNK14FCharacterList12GetMaxHeightEv [FCharacterList::GetMaxHeight()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4360895:7
__ZNK17FSlateFontMeasure21MeasureStringInternalERK7FStringiiRK14FSlateFontInfobfiNS_25ELastCharacterIndexFormatERi [FSlateFontMeasure::MeasureStringInternal?N(int&, int, bool&, float, int)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:1101363:8
__ZNK17FSlateFontMeasure7MeasureERK7FStringiiRK14FSlateFontInfobf [FSlateFontMeasure::Measure(int&, int, bool&, float)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4372298:2
__ZNK13FSlateTextRun7MeasureEiif [FSlateTextRun::Measure(int, int, float)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:2692621:2
__ZNK11FTextLayout9FRunModel11CreateBlockERKNS_16FBlockDefinitionEf [FTextLayout::FRunModel::CreateBlock?S(undefined?N?&)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:828954:3
__ZN11FTextLayout20CreateLineViewBlocksEiiRiS0_S0_R6TArrayI10TSharedRefI12ILayoutBlockL7ESPMode0EE17FDefaultAllocatorE [FTextLayout::CreateLineViewBlocks?S(int, int, int&)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:704838:4
__ZN11FTextLayout14FlowLineLayoutEifR6TArrayI10TSharedRefI12ILayoutBlockL7ESPMode0EE17FDefaultAllocatorE [FTextLayout::FlowLineLayout(int, float, undefined?0? TArray<double TSharedRef<, undefined?M?*, ILayoutBlock?o?>?e?>?&)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:1620443:2
__ZN11FTextLayout10FlowLayoutEv [FTextLayout::FlowLayout()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3647866:4
__ZN11FTextLayout12UpdateLayoutEv [FTextLayout::UpdateLayout()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4390167:2
__ZN11FTextLayout14UpdateIfNeededEv [FTextLayout::UpdateIfNeeded()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4380971:3
__ZN16FTextBlockLayout18ComputeDesiredSizeERKNS_11FWidgetArgsERK15FTextBlockStyle [FTextBlockLayout::ComputeDesiredSize?S(undefined?N?&)]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:1592486:2
__ZNK10STextBlock18ComputeDesiredSizeEv [STextBlock::ComputeDesiredSize()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3307458:2
__ZN7SWidget16CacheDesiredSizeEv [SWidget::CacheDesiredSize()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4528115:2
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3549525:3
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3549533:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3549533:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3549533:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3549533:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3549533:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3549533:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3549533:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3549533:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3549533:42
__ZN7SWidget12SlatePrepassEv [SWidget::SlatePrepass()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:3549533:42
__ZL24PrepassWindowAndChildren10TSharedRefI7SWindowL7ESPMode0EE [PrepassWindowAndChildren?1()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:1776445:2
__ZN17FSlateApplication11DrawPrepassE10TSharedPtrI7SWindowL7ESPMode0EE [FSlateApplication::DrawPrepass?1()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:1782347:5
__ZN17FSlateApplication18PrivateDrawWindowsE10TSharedPtrI7SWindowL7ESPMode0EE [FSlateApplication::PrivateDrawWindows?1()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:960754:3
__ZN17FSlateApplication11DrawWindowsEv [FSlateApplication::DrawWindows()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:4604854:2
__ZN17FSlateApplication4TickEv [FSlateApplication::Tick()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:718157:2
__ZN11FEngineLoop4TickEv [FEngineLoop::Tick()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:344549:3
__Z10HTML5_Tickv [HTML5_Tick()]@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:5103453:2
dynCall_v@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:5145418:2
Runtime.dynCall@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:189:11
Browser_mainLoop_runner/<@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:10218:5
Browser.mainLoop.runIter@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:8294:5
Browser_mainLoop_runner@file:///E:/Biblioteka/Pulpit/html5/HTML5/ChasingRobbers.js:10214:3

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

You can check this here: http://.com/chasingrobbers/error/ChasingRobbers.html

hi !
I also get this error
I tried the sun temple packed with everything normal. then I packed’s my project success, but when i open it up in same error
can I send my project and look forward to help?

Error: uncaught exception: abort() at jsStackTrace@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:853:12
stackTrace@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:867:21
abort@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:5090982:24
b79@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:5068663:2
__ZN13FOutputDevice4LogfEPKwz [FOutputDevice::Logf(wchar_t*, …)]@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:3234039:2
__ZN6FDebug12AssertFailedEPKcS1_iPKwz [FDebug::AssertFailed?S(char*)]@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:1796300:2
__ZN24FICUInternationalization10InitializeEv [FICUInternationalization::Initialize()]@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:970322:3
__ZN21FInternationalization10InitializeEv [FInternationalization::Initialize()]@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:4542805:20
&)]@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:2821000:6
__ZN11FEngineLoop7PreInitEPKw [FEngineLoop::PreInit(wchar_t*)]@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:150272:8
__ZN11FEngineLoop7PreInitEiPPwPKw [FEngineLoop::PreInit(int, wchar_t**, wchar_t*)]@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:819061:8
__Z10HTML5_Initv [HTML5_Init()]@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:3033608:2
_main@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:3123912:2
callMain@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:5090899:13
doRun@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:5090935:4
run/<@file:///E:/ue4arch/UE4/ue4/Binaries/HTML5/UE4Game.js:5090945:4

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

Hey ,

I have sent a request for one of our HTML5 developers to assist me further with reading through your call stacks. If you would like to submit your project in the meantime, feel free to do so. You’ll need to upload it to a 3rd party host, such as using and then provide me with the link.

I’ll contact you again once I’ve heard back from our developers, unless they contact you first. :slight_smile:

Hey ,

Our HTML5 developers ran the build of the game you provided us. It crashed and it looked like it was running out of memory. You may want to try increasing the HeapSize value in Engine/Config/HTML5/HTML5Engine.ini file. The maximum it can be is 2048 so maybe you could simply try in steps of 64 (1024, 1088, 1152, 1216, etc).

They also noticed that your game didn’t look very big in size therefore, you should look at how much meory you’re using on a PC build. Because that may help point out if there is a memory problem somewhere within your game.

Much appreciated! :slight_smile:

It helped me. Thank you! :smiley:

I’ve done it.
the Error disappeared, but this time I have another error:
Error: Script error.
and it stock on Preparing… part.
I was thinking maybe it will be better if I install apache. ha!?

Goerge,

If you’re having trouble with a specific error in HTML5, please post a new question to AnswerHub and provide as many from the game as possible so we can investigate the issue further for you.

Thank you!

I’ve increased the HeapSize to 2048, but I still have the error <<<
Error: uncaught exception: abort() at jsStackTrace@http://127.0.0.1:53501/UE4Game.js:1:18192>>>
this time my project is a big one, with 607 mb of .DATA file.
is it possible to increase this ammount even further!?

You can increase the Development Heap Size (in MB) up to 4096, and the Heap Size (in MB) up to 4096 as well. You can do this by going into Project Settings > Platforms > HTML5.

If you have any further questions about your project, please post a new question to AnswerHub and include all of the information that you possibly can, so we can assist you further.

Thanks