Chrome 72.0.3626.105 Mobile App - objects disappear after few seconds, changes to 2d rectangle


#1

I found out that on demo app: https://www.babylonjs-playground.com/#0XYMA9#6 sphere object disappears after few seconds without any reason. After another few seconds, some rectangular shape appears. This happen on my website with my custom scene with my custom objects and I thought that I have some error in my JS code, but after testing this on simplest demo on babylon playground I wonder if this error is caused by Chrome?

Chrome: 72.0.3626.105
Android: 8.0.0
Phone: SM-G950F (Samsung S8), build: R16NW

Same demo on this phone, but on Firefox Browser is OK, sphere doesn’t disappear. Tested on Apple tablet iPad Air 2 and demo is OK.


#2

I had the same issue, but was solved after fixing some values. (I was calling a function that was broken, so everything would break too.)


#3

Pixel3 here and no problem with that link


#4

So it must code from some errors in your code. Do you have any console errors?


#5

Working fine on huawei, andriod 8.0 and chrome 71
So i bet it’s chrome 72 :slight_smile:


#6

Huawei P8 Lite, Android 7.0, Chrome 72.0.3626.105
After 8 seconds sphere changes to 2d rectangle shape, so it must be Chrome 72.

Code on my website was not changed and this error was brought up to us by one of our users. We checked with our DEV team and some mobile devices were affected, some don’t. PC Chrome 72.0.3626.119 version is not affected, it seems like Chrome 72.0.3626.105 on mobile is causing this behavior.

Info about Chrome mobile app update: Chrome Releases: Chrome for Android Update


#7

I can confirm on my Samsung tablet. The problem seems to be with WebGL2’s Vertex Array Object.

A workaround is to disable the feature:

engine.getCaps().vertexArrayObject = false;

For debugging,

mesh.geometry.vertexArrayObjects = {};

Will fix the mesh for a short while.


#8

can you file a bug on Chrome bug db?


#9

Thank you for your help! Workaround is working. I’ve filed bug to Chrome Bug DB, I will keep you informed: 937754 - Chrome 72.0.3626.105 Mobile App - objects disappear after few seconds, changes to 2d rectangle - chromium - Monorail


#10

Thanks dzakrzewski,
I also have this issue.
On android 8 with chrome 72.0.3626.121, shapes and objects disappear almost right away.
When I go back to version 71.0.3578.99 everything works perfectly!


#11

@Deltakosh
As per comments in the bug-report
“…not planning to merge this fix back to any branches. The fix will be part of M75 released in June”
Perhaps it would be an idea to add a workaround or disable webgl2 for chrome > 71 && < 75 on mobile devices?
https://bugs.chromium.org/p/chromium/issues/detail?id=937754#c8


#12

Yep I think that we should turn vao off for chrome mobile

@sebavan thought?


#13

Yup all the following 4 related bugs will not be fixed before 73 to 75:
https://bugs.chromium.org/p/chromium/issues/detail?id=930479
https://bugs.chromium.org/p/chromium/issues/detail?id=937754
https://bugs.chromium.org/p/chromium/issues/detail?id=934823
https://bugs.chromium.org/p/chromium/issues/detail?id=934578

Maybe we could try the proposed workaround : not using default VAO and unbind all before end of frame or we just disable them :slight_smile:


#14

I do not want to change the engine for something that will be fixed in future versions.
So well remove it should do it

can someone tells me the user agent strings of the faulty versions?


#15

I just came across with this issue :frowning:

here:
Mozilla/5.0 (Linux; Android 9; SM-G965F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Mobile Safari/537.36


#16

Thanks I will flag this version to not use VAO


#17

@MarianG can you test with latest nightly?


#18

Yes. Seems to be ok now in playground.


#19

I’ve added my tablet’s user agent string (bottom):

Mozilla/5.0 (Linux; Android 9; SM-G965F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 8.1.0; SM-T580) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36