FLTK logo

Re: [fltk/fltk] Huge memory leak under Wayland (Issue #730)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Huge memory leak under Wayland (Issue #730) ManoloFLTK 08:22 Jun 01  
 

@polter-rnd Good catch! A call to munmap() was indeed missing, causing the accumulation of mmap'ed objects you've detected.
It turns out that I had wrongly interpreted the Wayland documentation of function wl_shm_pool_destroy() that reads

The mmapped memory will be released when all
buffers that have been created from this pool
are gone.

I thought it meant the Wayland library does the munmap() call. Apparently, that's incorrect. The Wayland client program is expected to call munmap(). This requires to add a means to detect when all buffers from a pool are gone. That's hopefuly in place in the commit mentioned above.

Please, close issue if you confirm the memory leak is fixed.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/730/1572259805@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.