Facebook Instant game not starting on some devices

#1

HTML5 fails to run on some devices. This error code is from an LG-K120E with Android 5.1.1:

E/chromium(17721): [ERROR:context_group.cc(144)] ContextResult::kFatalFailure: WebGL1 blacklisted

The app fully loads, then at 100%, this error happens and the app doesn’t start.

Is there something I can do to fix this, or is it an inherent issue with the way that Defold bundles to HTML5? Reducing the HTML5 “heap size” in the config doesn’t appear to help.

0 Likes

#2

What device are you one? Is it an old one?
What does google say about the error message?

1 Like

#3

LG-K120E with Android 5.1.1. It’s four years old. The game analytics implies that this affects a significant number of Android users.

This is the best post I found, but nothing conclusive.

0 Likes

#4

Does any HTML5 exported thing from Defold work on that device?

Does this render? https://get.webgl.org/

And what does this say? https://webglreport.com/

1 Like

#5

These are tested using the ‘Facebook/Messenger’ app i.e. by clicking both links in a Messenger chat thread:

https://get.webgl.org/

https://webglreport.com/
84860089_502397204016501_4094884612428267520_n

When opened in the phone’s native browser, both links worked. This means the game works in the browser, but not in the context of Facebook Messenger/Instant.

Edit: The “WebGL 2” tab from webglreport.com works inside the Facebook context!

0 Likes

#6

I’m guessing that the device is blacklisted since the GPU driver has know problems. I believe the LG-K120E has an Adreno 304 GPU and it could maybe match with this blacklist entry (I’m not an expert on this):

https://chromium.googlesource.com/chromium/src/gpu/+/af3d2128279bd68f13112bec9048a2787a7208d2

1 Like

#7

Could the Defold HTML5 build somehow use WebGL 2 if 1 fails?

0 Likes

#8

It can be enabled via Emscripten using a linker flag:

https://emscripten.org/docs/porting/multimedia_and_graphics/OpenGL-support.html#webgl-friendly-subset-of-opengl-es-2-0-3-0

I’m not sure what the implications would be but I’m guessing things would break if we change this. @JCash or @sven might know.

1 Like