Widget Text (tooltip) + Html5 packing in version 4.18 = Index out of Bounds

Hello,

I am having an issue binding my widget tooltips; they work in PIE and desktop packing, but they do not in Html5 simulation/packing. I believe the issue is related to wasm packing in 4.18, since it used to work in 4.17 (wasm packed from source): Motion Graphics Portfolio by freelance Giacomo Bompan from Trieste [tooltip on the right menu are working in this version, and the blueprints are the same].

I am a begginer with UE4 so please let me know if I am missing some info or giving wrong details.

Attached are a few screenshots showing widget setup and browser errors.

tooltip bind:

tooltip widget graph:

tooltip widget design:

Firefox message spawned as soon as I hover on the button:

218016-widget-text-error2.png

Further message spawned once I click “OK”

(also pasted below)*

Please note the initially I had the same issue with all widget text objects (text inside vertical box/scroll box), but I managed to fix it by tweaking text and canvas wrapping/allignment in my menus’ widgets . I just cannot find a solution for tooltip text, even though all set parameters are the same in all widgets. Again, in PIE and windows packing everything works fine.

Thank you very much for any help :slight_smile:

Giacomo

*Here is the message Firefox gives me after I click “ok”:

uncaught exception: ASM_CONSTS<@blob:http://localhost:53501/9644fd4d-ae8d-410e-b24b-c039b70ef94a:1:39057 _emscripten_asm_const_iiii@blob:http://localhost:53501/9644fd4d-ae8d-410e-b24b-c039b70ef94a:1:43504 __Z15html5_break_msgPKcS0_i@http://localhost:53501/Test_html1.html:796483:1 __ZN6FFrame20StepExplicitPropertyEPvP9UProperty@http://localhost:53501/Test_html1.html:4127598:1 __ZN20UKismetStringLibrary22execBuildString_VectorER6FFramePv@http://localhost:53501/Test_html1.html:13158607:1 _af_loader_load_g@http://localhost:53501/Test_html1.html:33776205:1 _af_loader_load_glyph@http://localhost:53501/Test_html1.html:33775360:1 _af_autofitter_load_glyph@http://localhost:53501/Test_html1.html:33774937:1 _FT_Load_Glyph@http://localhost:53501/Test_html1.html:33763239:1 __ZN13FreeTypeUtils9LoadGlyphEP11FT_FaceRec_jiif@http://localhost:53501/Test_html1.html:18889744:1 __ZNK18FSlateFontRenderer13GetRenderDataERK17FShapedGlyphEntryRK20FFontOutlineSettingsR20FCharacterRenderData@http://localhost:53501/Test_html1.html:18883904:1 __ZN15FSlateFontCache11AddNewEntryERK17FShapedGlyphEntryRK20FFontOutlineSettingsR25FShapedGlyphFontAtlasData@http://localhost:53501/Test_html1.html:18881444:1 __ZN15FSlateFontCache27GetShapedGlyphFontAtlasDataERK17FShapedGlyphEntryRK20FFontOutlineSettings@http://localhost:53501/Test_html1.html:18867912:1 __ZZN20FSlateElementBatcher20AddShapedTextElementIL20ESlateVertexRounding1EEEvRK17FSlateDrawElementENKUlRK20FFontOutlineSettingsRK6FColorPK7UObjectiiE_clES7_SA_SD_ii@http://localhost:53501/Test_html1.html:19419797:1 __ZN20FSlateElementBatcher20AddShapedTextElementIL20ESlateVertexRounding1EEEvRK17FSlateDrawElement@http://localhost:53501/Test_html1.html:19295941:1 __ZN20FSlateElementBatcher11AddElementsERK6TArrayI17FSlateDrawElement17FDefaultAllocatorERK9FVector2D@http://localhost:53501/Test_html1.html:19191266:1 __ZN20FSlateElementBatcher11AddElementsER23FSlateWindowElementList@http://localhost:53501/Test_html1.html:19189283:1 __ZN17FSlateRHIRenderer19DrawWindows_PrivateER16FSlateDrawBuffer@http://localhost:53501/Test_html1.html:32246646:1 __ZN17FSlateRHIRenderer11DrawWindowsER16FSlateDrawBuffer@http://localhost:53501/Test_html1.html:32204914:1 __ZN17FSlateApplication18PrivateDrawWindowsE10TSharedPtrI7SWindowL7ESPMode0EE@http://localhost:53501/Test_html1.html:17687164:1 __ZN17FSlateApplication11DrawWindowsEv@http://localhost:53501/Test_html1.html:18598464:1 __ZN17FSlateApplication15TickApplicationE14ESlateTickTypef@http://localhost:53501/Test_html1.html:18605301:1 __ZN17FSlateApplication4TickE14ESlateTickType@http://localhost:53501/Test_html1.html:18601598:1 __ZN11FEngineLoop4TickEv@http://localhost:53501/Test_html1.html:790786:1 __Z10HTML5_Tickv@http://localhost:53501/Test_html1.html:832274:1 dynCall_v@http://localhost:53501/Test_html1.html:38658528:1 Module.dynCall_v@blob:http://localhost:53501/9644fd4d-ae8d-410e-b24b-c039b70ef94a:1:966251 browserIterationFunc@blob:http://localhost:53501/9644fd4d-ae8d-410e-b24b-c039b70ef94a:1:116062 runIter@blob:http://localhost:53501/9644fd4d-ae8d-410e-b24b-c039b70ef94a:1:119173 Browser_mainLoop_runner@blob:http://localhost:53501/9644fd4d-ae8d-410e-b24b-c039b70ef94a:1:117599

Hello GiaBom,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

  1. Does this issue reproduce when using google chrome?
  2. Can you reproduce this issue in a clean project?
  3. Could you provide a detailed list of steps to reproduce this issue on our end?
  4. Could you provide screen shots of any settings/blueprints/widgets that may be involved with this issue?

Hello Rudy, thank you for replying; I will answer your questions below:

1 - Yes, it also happens in Chrome in the same way, it just gives me a slightly different message (Uncaught RuntimeError: memory access out of bounds).

2 - Yes it happens on a new clean HTML5/MOBILE project with no starter content, I wll post the steps below.

3/4 - Blank project - HTML5/MOBILE - High Quality - No starter content,

a. Create NewWidget BP - add 1 button with Tooltip text.

b. Create ToolTipWidget BP and add 1 Vertical Box - all default + “size to content” - Check “Is
variable”. (img1)

c. Add Text Block inside Vertical box - all default only Horizontal/vertical alignment tweaked - Check “Is
variable” (img1)

d. Create nodes inside ToolTip Widget Graph (img2)

e. Bind Button to ToolTipWidget BP (img3)

f. Level BP: Event begin play - Create NewWidget BP - Add to viewport

Test: PIE works, but launch on browser does not work (Chrome/Firefox)

Please note that with the blank project i get a slightly different message again but once I click OK it’s the same as before. (img4)

As usual, if I disable the ToolTip bind and use the default Tooltips it works fine. (img5)

Thank you for your time, hope we can find a solution :slight_smile: Plesae let me know if I forgot something, or if you need more info.

Have a nice day

Giacomo

I ran through the steps provided, however I did could not reproduce this issue on our end. Could you provide a small stripped down project that reproduces this issue so that I can take a closer look?

hello Rudy,

great news! I don’t know what happened, but while I was preparing the stripped down project to send you, I rebinded the ToolTips Widget to the button and it now works!

It was the same test project I created to provide all the info above, I did not change anything from, it just works fine now. Only thing I did was unbind and rebing the ToolTip Widget.

Thank you very much for your support, I am glad this is solved, even though I have no idea what happened! :slight_smile:

Giacomo