HTML Packaging (dev-mobile branch) Black screen if multi-threaded, plus mouse is not captured, but audio plays

I’ve been following the updates on dev-mobile branch of UE4. Since the last commit - 5365d19 - I have finally been able to compile HTML5 packages with multi-threading ON. However, I get a black rectangle in the deployed webpage in Chrome Canary, instead of the HTML5 game and in Firefox nightly, I also get a black rectangle, but not in the correct dimension (I get a small rectangle instead of the game’s usual dimensions. Do you know what can be causing this?

I thought that maybe the cause could be in the recent usage of, for instance, “UE4GameBasename” instead of “PackagePath”, etc. I wanted to double check this before asking. Unfortunately, I am inexperienced in UE programs’ debugging and I can’t find a way to debug (with breakpoints) the Automation Tool program. With UBT it is a matter of adding command line arguments. But I can’t find the correct arguments for AuTool. Anyways, story short, I’ve added some log outputs with the variables values and I double checked that the paths were all good. So that couldn’t be the issue.

The commit talks about some minutes loading delay to be fixed in the future with the Emscripten developers (UE-69632). However, I have tried waiting for 30 and 60 minutes and still got the black screen, despite the game’s audio was playing. The mouse wasn’t captured as well.

I guess I must be doing something wrong. The audio does play, though, so maybe there is some graphics option or options combination I need to set on the project settings? Maybe I am not setting all the correct rendering or other options on project settings? Or am I missing something else?

I also wanted to check UE-69632 to know if this is related but I can’t find it online. Could you please help me out with these issues?

Thank you,

Kind Regards,

Luis

this was fixed in our 4.22 branch.

https://github.com/EpicGames/UnrealEngine/commits/4.22?after=ad434405c909d2e7458052b6826902488e2beda7+139

in particular, on feb 13th – dd82cde, c395070, ae679ea and 0668a5b

these changes will get pulled back into dev-mobile eventually. 4.22 will be “more stable” while dev-mobile is “more bleeding edge”.

i would highly recommend NOT using anything outside of the tagged “4.x-release” for production.

Thanks Nick Shin.

I really have no option, I need HTML5 and I need it multi-threaded :slight_smile:

I will try looking into dd82cde, c395070, ae679ea and 0668a5b.

then i would recommend you use the 4.22 branch – and not dev-mobile

Thank you :slight_smile: