Results 1 to 2 of 2

Thread: Memory leak; valgrind points to libGL...

  1. #1
    Senior Member Regular Contributor
    Join Date
    Oct 2002
    Location
    San Diego, CA, USA
    Posts
    209

    Memory leak; valgrind points to libGL...

    I have a memory leak. When I run valgrind, it tells me that the memory was allocated somewhere deep within my OpenGL libraries, libGL.so.1.0.9746. I am using the nVidia proprietary driver.

    Operating under the base assumption that the leak is something that I am doing (or not undoing, as it were) in my code, I am curious, what are commonly used functions that do allocs? My code is rather simple, it reads in YUV frames and converts it to RGB for display... it's quite similar to the source found in
    http://www.fourcc.org/source/YUV420P-OpenGL-GLSLang.c

    If anybody has any ideas, plz post.

    Thank you much

    RS

  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2007
    Location
    Fairfax, VA
    Posts
    252

    Re: Memory leak; valgrind points to libGL...

    My code has encountered a similar issue. Actually, I managed to cause a crash on exit by trying to use the WGL_gpu_affinity extension to request contexts for multiple GPUs at once. But even without that, valgrind has been pointing at memory leaks in libGL for a while now.

    So long as you glDelete everything you glGen, you should be fine. It's probably a driver bug.

Similar Threads

  1. valgrind shows a lot of errors with leak check
    By poonaatsoc in forum OpenCL
    Replies: 2
    Last Post: 01-13-2010, 01:17 AM
  2. Memory Leak
    By GamerYZ in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-18-2007, 09:57 PM
  3. memory leak
    By davidib in forum OpenGL: Windows
    Replies: 2
    Last Post: 02-19-2005, 08:52 AM
  4. Memory leak
    By link19 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 08-21-2001, 12:50 PM
  5. Memory leak
    By Hance in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-02-2001, 09:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean