This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5718: Possible memory leak with GPU active in SDK Linux version 08.02.01.00

Part Number: AM5718

Hello TI,

We have a problem with the application when we launch it with the GPU enabled, it seems that after a while it has a memory leak and begins to consume more RAM until it runs out of memory at which time the application dies, the guilty process seems to be QtWebEngineProcess. If we launch with --disable-gpu everything goes perfect. We have tried to reproduce the problem with the browser that gives Texas (matrix-gui-browser) changing the dependency to compile it with webengine (the recipe has dependency with webkit). After testing, the result ends up being the same.

Reviewing the commits there is one in which they replace in the recipe the webengine dependency by webkit in QT version 5.11.3, so it seems to be a known problem.

To reproduce this issue execute:

matrix_browser https://www.google.com --no-sandbox

After surfing the web for a while, execute:

pmap -p $(pgrep matrix_browser)|grep renderD129|nl

In our case, we see the following traces:

b6fe5000      4K rw-s- /dev/dri/renderD129

b6fe6000      4K rw-s- /dev/dri/renderD129

b6fe7000      4K rw-s- /dev/dri/renderD129

b6fe8000      4K rw-s- /dev/dri/renderD129

b6fe9000      4K rw-s- /dev/dri/renderD129

b6fea000      4K rw-s- /dev/dri/renderD129

b6feb000      4K rw-s- /dev/dri/renderD129

b6fec000      4K rw-s- /dev/dri/renderD129

If you continue browsing the web, more memory blocks will appear as you run pmap and are never released.

All your support is very wellcome!!! Thanks a lot in advance.

Best regards,

Gonzalo Vara

  • Hello Gonzalo,

    The first thing to note is that the driver support for SGX GPU devices, such as AM57), has deprecated. There are ways forward if you wish to debug this yourself further, but we can explore those options if you wish to.

    From your description, I am not sure if this is an issue with the graphics driver or the webkit/webengine dependency. For QT, are you saying there is a patch that is applied in newer commits that fixes this issue? Or is the issue strictly isolated at the graphics driver?

    Regards,

    Erick

  • Hello Erick,

    First of all, thanks a lot for your support!

    We are surprised by the sentence that the driver support for SGX GPU is deprecated. What exactly does this mean? What would be the way to receive support in the current version of Linux SDK?

    In the meantime, what debugging options would be available to try to correct this issue?

    Best regards,

    Gonzalo

  • Hello,

    We have upgraded from QT5.15.2 to 5.15.4 and QTWebEngine from 5.15.2 to 5.15.10 and it seems the memory leak is no longer present.
    Best regards,
    Gonzalo