[Interest] Android: EGL Memory consumption growing until crashing

Cornelius Hald hald at icandy.de
Thu Jul 9 13:49:33 CEST 2015


my QML/Android app plays a bunch of videos in a loop. After some time
the videos are static black and/or the app crashes.

>From looking at the logcat output I figured that it somehow ran out of
memory. So I've digged deeper and used "dumsys meminfo" via adb to get
some numbers.

All in all the memory consumption looks reasonable, only "EGL mtrack" is
way too high. It starts with about 70 MB and quickly raises to a couple
of hundred MBs. I see an increase whenever the next video is started.
Each increase is about 3 to 12 MB.

The video is played using the normal QML Video element running with Qt

First I thought this would probably be a platform bug, but a very simple
QML app looping through the same videos does not show this issue, so I
guess it has to be somewhere in my code...

Now the big question is: How/where to start debugging this? Does anyone
know some tools to find out what is using up that EGL memory?


More information about the Interest mailing list