WebGL error when creating engine in Android WebView

I’m using BabylonJS (4.2.0 or 5.0.0-alpha) in an Android WebView. When I call new Engine(canvas, true, {}), I see the following error in the console:

E/chromium: [ERROR:gles2_cmd_decoder_autogen.h(1612)] [.WebGL-0xca07af00]GL ERROR :GL_INVALID_ENUM : GetIntegerv: <- error from previous GL command

(I see lots of other egl errors as well but this is the only one tagged as coming from chromium.)

I’m not sure whether this is a bug or something I’m doing wrong or perhaps it’s related to my device or emulator settings.

Your call is correct (as long as canvas is really a canvas), it could be an Angle bug:

If you can provide a repro in the Playground we could (maybe) help more.

I don’t see these errors on device, only in the Android emulators.