New issue
Advanced search Search tips

Issue 885289 link

Starred by 2 users

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Crash on Android 7 - out of memory message

Reported by car...@instantbits.com, Sep 18

Issue description

THIS TEMPLATE IS FOR FILING BUGS ON THE ANDROID SYSTEM WEBVIEW. GENERAL WEB BUGS SHOULD BE FILED USING A DIFFERENT TEMPLATE!

Device name: Moto G 
Android version: 7.0
WebView version (from system settings -> Apps -> Android System WebView): Chrome 69.0.3497.100
Application: Web Video Caster
Application version: 4.4

I wanted to reproduce the issue reported here https://bugs.chromium.org/p/chromium/issues/detail?id=881339 so I bought one of the phones the Play Store said the issue happened under. 

I've been using it to browse the web regularly and haven't had that issue happen but today I did have it give me a "wait or close" dialog. Don't know if it is the same issue. The console had this message repeated over and over hundreds or times, this is just the end of it:


09-18 14:37:03.690 11634-11872/com.instantbits.cast.webvideo E/Adreno-GSL: <gsl_memory_alloc_pure:2125>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
09-18 14:37:03.693 11634-11872/com.instantbits.cast.webvideo W/Adreno-GSL: <sharedmem_gpuobj_alloc:2021>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
09-18 14:37:03.693 11634-11872/com.instantbits.cast.webvideo E/Adreno-GSL: <gsl_memory_alloc_pure:2125>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
09-18 14:37:03.696 11634-11872/com.instantbits.cast.webvideo W/Adreno-GSL: <sharedmem_gpuobj_alloc:2021>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
09-18 14:37:03.697 11634-11872/com.instantbits.cast.webvideo E/Adreno-GSL: <gsl_memory_alloc_pure:2125>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
09-18 14:37:03.697 11634-11872/com.instantbits.cast.webvideo E/OpenGLRenderer: GL error:  Out of memory!
09-18 14:37:03.697 11634-11872/com.instantbits.cast.webvideo A/OpenGLRenderer: GL errors! frameworks/base/libs/hwui/BakedOpRenderer.cpp:98

I'm attaching the trace file I got out of the device. 
 
traces.txt
586 KB View Download
Cc: ctzsm@chromium.org
Labels: Needs-Feedback
carlos@, thanks for gathering more info.

But unfortunately this log only tells us you have a GPU out of memory issue, given Moto G device has 2GB mem (shared by CPU and GPU IIUC), it is natural to have OOM. We still don't know if this is related to WebView actually.

You mentioned that you are using it to browse the web, is that in your Web Video Caster app? Is that possible for you to have the reproducible steps? Only happens once isn't very actionable to us either. Thanks for your understanding.
I will keep using that phone to see if I can find steps to reproduce. It is possible that it is just a memory issue, but I'm wondering, is it possible that it affects only this GPU? I seem to recall other webview issues with Adreno in the past. 
Project Member

Comment 3 by sheriffbot@chromium.org, Sep 19

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: boliu@chromium.org
Labels: Needs-Feedback
> is it possible that it affects only this GPU?

Bo could comment more on this. We could only guess the reasons until we have a solid repro steps and device info etc.

Adding needs-feedback label back.
This is a 32-bit process, so by "out of memory" it often means "out of virtual address space". It is possible that the GL driver is leaking vaddrs, or just not managing them efficiently enough (the available space is very limited in a 32-bit process), which may be a separate issue from usage of actual physical memory. But, it's also just possible that the content you're loading requires too much :)
When it happened it was trying to load a video so maybe that was too much. Just to be clear, since this is GPU memory, my own app memory usage wouldn't affect it right? considering my app doesn't have any fancy graphics or anything. 
The virtual address space of your application is where the GPU memory is mapped, so for virtual address space exhaustion the amount being used by your app is *also* significant, and on most Android devices, the physical memory is *also* shared between the GPU and the rest of the system.

So, no: your own app's memory usage absolutely *can* affect it.
Ok, thanks for the clarification. 

Project Member

Comment 9 by sheriffbot@chromium.org, Sep 20

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback

Sign in to add a comment