ocaml-top
ocaml-top copied to clipboard
Memory leak on Windows on some setups
the windows version memory usage grows by a few MB every time you do any action...) it may crash the application once there is no more free memory (takes a while).
This turns out to be a known GTK bug (https://bugzilla.gnome.org/show_bug.cgi?id=685959 ; and maybe https://bugzilla.gnome.org/show_bug.cgi?id=671538). These have been fixed recently (2.24.14 I think), but the binary GTK package I use (2.24.10) is older than that.
So this may need rebuilding a more recent gtk2 on windows before packaging.
This seems to only be the case on some setups; this needs more investigation, but doesn't seem to happen on most Windows installations. Any details appreciated if you can reproduce (Windows version, environment, display settings).
To check: hit ctrl-alt-suppr, select task manager, switch to the "processes" tab, find your ocaml-top.exe
process. Start hitting repeatedly the "run" button in ocaml-top and keep an eye on the memory usage. If you can easily pass 100MB memory usage in a couple of minutes, then the bug is present.
After some more investigation, it seems that this only happens on 16bpp desktops. So this is probably the seconnd bug mentionned above: https://bugzilla.gnome.org/show_bug.cgi?id=671538