Description
System information
- I have written some custom code, but issue is somewhat reproducible on the mobilenet demo as well.
- Samsung Galaxy S23 & Samsung Galaxy S23 Ultra on Android 15 (One UI 7.0) - on both phones the issue started appearing after the One UI 7.0 upgrade.
- TensorFlow.js installed from npm ("@tensorflow/tfjs")
- TensorFlow.js version: 4.22.0
- Browser version: Chrome 136.0.7103.87
- Tensorflow.js Converter Version: 3.14.0 for our custom model, but also reproducible with the official mobilenet model which is converted with 1.2.10.1
Describe the current behavior
After upgrading both phones to One UI 7.0, our PWA started to crash consistently during the warm-up pass with the Failed to link vertex and fragment shaders.
error message. Other devices, like iPhones or Google Pixel phones on Android 15 are not affected by this issue.
Describe the expected behavior
Model loading and prediction should succeed consistently without crashing the browser or producing shader linking errors.
Standalone code to reproduce the issue
Open https://codepen.io/Riste-Ristevski/pen/vEEqXBM on a Samsung Galaxy S23 with One UI 7.0
Other info / logs
While experimenting with the flags, I figured out that setting the WEBGL_PACK
flag to false
helps with the initial Failed to link vertex and fragment shaders.
error. The warm-up pass is successful, and even most of the predictions seem to work (albeit a bit slower). However, sometimes, like in 1 out of 20 predictions, the browser crashes and shows a Unable to complete previous operation due to low memory.
message upon restart. This happens also when testing with this demo.
Let me know if you need more information - I would be happy to help out however I can.