(Solved) Memory leak window server (when running kodi)
#1
Hi,

when running Kodi (OS X 10.13.3 Mac Mini 2013 intel i7 Quad core) I have a memory leak - basically the WIndowserver process gradually grows, eventually leading to paging and mac getting hot and fan running fulll speed.  

The problem is evident in 17.6 and the April 6 nightly.  I have confirmed that the problem only occurs if kodi is running.  I need to do more testing however the problem seems more easily triggered after pausing video playback 

Below is a debug of a few hours of the leak - Windowserver grew to almost .5 GB memory in that time.  (Over a full day it hits a few GB an then the mac gets very sad ..)

Steps:
  • Enable debug
  • Restart kodi
  • Play video
  • Pause video
  • Put monitor in standby (this is a dedicated HTPC setup so happens every night)
  • Wait a few hours
Any help much appreciated.

Debug here (sorry it is huge as I had video component logging on):

https://gist.github.com/gigantaur/563c7d...75085a2a19

EDIT: Here is a clean/small debug - WindowServer got to 1.1GB after about 12 hours.  Just played a video and then paused.  Waited. (I think my wife put the monitor in standby after about 10 hours)

https://gist.github.com/gigantaur/eb3d97...471cbb319e

EDIT 2:  Finally - here is a clean debug with the monitor on the whole time - Play then pause .. wait 10 hours - windows server at 1GB

https://gist.github.com/gigantaur/6d3508...b6f59ee9da

Devs, Please just let me know the debug you need and I am happy to do it

cheers,
Gigantaur
Reply
#2
The is an HTPC setup (used full-time as primary "tv").  I have used XBMC/Kodi in this way for many years (on a few macs).  This memory leak means my mac needs to be restarted every day.

I will test VLC or similar (play, pause and wait 12 hours - check memory usage of WindowServer) to rule out a High Sierra bug.

An internet search shows lots of people with high sierra memory leaks some months ago.  Most posts say solution is selecting Default and Not scaled display and some suggest changes to LaunchControl - these made no difference for me. A few posts point to application issues causing WIndowServer memory to grow.

Any help appreciated.
Reply
#3
Finally went through all settings for video ..

Solution- I switched back to double buffering and all is good now (I think a few months ago I changed it to triple buffing as the in-built intel hd4000 appears to support it). Apparently not.

I hope this helps someone else.
Reply

Logout Mark Read Team Forum Stats Members Help
(Solved) Memory leak window server (when running kodi)0