Process Hacker Discussion Forum

 
wfunction
Member
Posts: 147
Joined: 19 Mar 2011 20:17

Process Hacker gradually leaks GDI handles until its windows stop rendering?

14 Nov 2015 11:29

It seems like PH leaks GDI handles gradually leaks GDI handles, to the point where, after the program has been running for half an hour or an hour or so, it does not display windows properly anymore (they either disappear, or become black, etc.), and the only solution is to quit it and restart.

This didn't use to happen with previous versions that I had months ago, so I'm not sure what changed or how to track it down...
 
User avatar
dmex
Admin
Posts: 1695
Joined: 17 Jan 2011 05:43

Re: Process Hacker gradually leaks GDI handles until its windows stop rendering?

14 Nov 2015 17:31

Try using GDI view:
http://www.nirsoft.net/utils/gdi_handles.html

32bit: http://www.nirsoft.net/utils/gdiview.zip
64bit: http://www.nirsoft.net/utils/gdiview-x64.zip

When you see the issue, right-click PH and screenshot the properties:
prop.PNG
prop.PNG (6.65 KiB) Viewed 6407 times
 
wfunction
Member
Posts: 147
Joined: 19 Mar 2011 20:17

Re: Process Hacker gradually leaks GDI handles until its windows stop rendering?

14 Nov 2015 20:09

I see > 4k under All GDI, but the others are all low.
 
User avatar
dmex
Admin
Posts: 1695
Joined: 17 Jan 2011 05:43

Re: Process Hacker gradually leaks GDI handles until its windows stop rendering?

14 Nov 2015 20:42

wfunction wrote:
I see > 4k under All GDI, but the others are all low.
Do you have any Tray icons enabled?

"If you have a problem that the 'All GDI' value is increased, while there is no leak with the other GDI values, it means that you probably have a leak in the creation of icons or cursors"
 
wfunction
Member
Posts: 147
Joined: 19 Mar 2011 20:17

Re: Process Hacker gradually leaks GDI handles until its windows stop rendering?

15 Nov 2015 18:17

Yup! I/O, Commit, Disk, and Network histories.
But when I disable them the All GDI handles value still seems to increase...
 
wfunction
Member
Posts: 147
Joined: 19 Mar 2011 20:17

Re: Process Hacker gradually leaks GDI handles until its windows stop rendering?

20 Nov 2015 07:17

I believe I tracked it down to the call to PhGetFileShellIcon() in monitor.c in the FirewallMonitorPlugin. The icon seems to be leaked there... can you confirm?
 
User avatar
dmex
Admin
Posts: 1695
Joined: 17 Jan 2011 05:43

Re: Process Hacker gradually leaks GDI handles until its windows stop rendering?

21 Nov 2015 01:50

wfunction wrote:
I believe I tracked it down to the FirewallMonitorPlugin.
It probably would have helped to mention you were using those plugins ;)

Plugins-Extra plugins are 3rd party and the issues are tracked on Github:
https://github.com/dmex/plugins-extra/issues/6
 
wfunction
Member
Posts: 147
Joined: 19 Mar 2011 20:17

Re: Process Hacker gradually leaks GDI handles until its windows stop rendering?

27 Jan 2016 09:09

Was this ever looked into?