I am developing a Flutter application that performs on-device document analysis using Gemma 3n Vision through flutter_gemma and flutter_gemma_litertlm.
The application consistently crashes on a Samsung Galaxy S24 immediately after LiteRT successfully initializes the GPU/WebGPU delegate.
The crash occurs after LiteRT successfully initializes the GPU and creates the WebGPU environment.
The GPU is correctly detected as Samsung Xclipse 940 and LiteRT reports:
- Created WebGPU environment
- Created LiteRT GpuEnvironment
- Replacing 3326 out of 3326 node(s) with delegate (LITERT_WEBGPU)
Immediately afterwards the application terminates with:
Lost connection to device
The complete log is attached.
I believe this may be a LiteRT/WebGPU issue, but I'm reporting it here first because it is reproducible through flutter_gemma.
Regards,
Ed Lanen,
Independent SW developer
info@itQ4Y.nl
See added files for more info:
litert_gpu_crash_samsung_xclipse940.txt
Gemma 3n Vision crashes on Samsung Galaxy S24 (Xclipse 940) after successful WebGPU delegate initialization.pdf
I am developing a Flutter application that performs on-device document analysis using Gemma 3n Vision through
flutter_gemmaandflutter_gemma_litertlm.The application consistently crashes on a Samsung Galaxy S24 immediately after LiteRT successfully initializes the GPU/WebGPU delegate.
The crash occurs after LiteRT successfully initializes the GPU and creates the WebGPU environment.
The GPU is correctly detected as Samsung Xclipse 940 and LiteRT reports:
Immediately afterwards the application terminates with:
Lost connection to device
The complete log is attached.
I believe this may be a LiteRT/WebGPU issue, but I'm reporting it here first because it is reproducible through flutter_gemma.
Regards,
Ed Lanen,
Independent SW developer
info@itQ4Y.nl
See added files for more info:
litert_gpu_crash_samsung_xclipse940.txt
Gemma 3n Vision crashes on Samsung Galaxy S24 (Xclipse 940) after successful WebGPU delegate initialization.pdf