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.

Linux/DRA72XEVM: OpenGL library memory leak

Part Number: DRA72XEVM

Tool/software: Linux

my sdk version is ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03

It's will cause memory leak after run kmscube.

The memory leak size about 100KB after one test.

I trace the source code, the memory leak happen on function init_gl() ,although exit_gl() has called.

  • Hi Ya Lin,

    We need more details to understand the problem report that you have just mentioned.

    Could you please share the methodology that you have used to trace down this leak to the init_gl() function?
    If you have any detailed logs from your experiments that can help us, please share that as well.

    Regards
    Karthik
  • HI Karthik Ramanan

    The method of observe the memory leak is like bellow:
    run the 'free' command before and after the test case, then compare the free memory size.

    test case 1 : do nothing change for official kmscube

    test case 2: fake code like this :
    main(){
    init_drm();
    init_gbm();
    init_gl();
    // remove render code
    exit_gl();
    exit_gbm();
    exit_drm();
    }

    test case 3: fake code like this :
    main(){
    init_drm();
    init_gbm();
    exit_gbm();
    exit_drm();
    }


    test case 1: exist memory leak
    test case 2: exist memory leak
    test case 3: no memory leak , run ok
  • Test on wrong rootfs version, cause this issue.
    There is no memory leak on opengl for version ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03
    sorry for this confusion.
  • This issue happend on my custom rootfs.
    There are my change from offical rootfs:
    1. replace systemd with busybox init
    2. replace udev with busybox mdev
  • Hi Ya Lin,

    With the available information, I cannot think of a way to debug this further. There are no pointers to indicate where the leak is originating from.
    I request you to provide further information for TI to look further into this.

    Regards
    Karthik