After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 699920 - GDI handles leaking in win32 through remote desktop, app ends up crashing
GDI handles leaking in win32 through remote desktop, app ends up crashing
Status: RESOLVED DUPLICATE of bug 671538
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.24.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-05-08 10:01 UTC by Aleksander Morgado
Modified: 2013-05-08 10:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Aleksander Morgado 2013-05-08 10:01:06 UTC
Steps to reproduce:
 * Access a windows machine through RDP and run gtk-demo.
 * Install Microsoft's "Process Explorer" program, and run it.
 * Select the gtk-demo process and click "Properties", it will list a lot of info, include the "GDI handles"
 * Now, just move the mouse pointer over the gtk-demo window all the time, passing over clickable things and such.
 * The number of GDI handles goes up all the time.

Whenever the number of GDI handles reaches 10000, the GTK+ application will crash badly, as the handles retrieved by GetDC() and such will be invalid, making e.g. CreateDIBSection() fail, which in turn makes gdk_pixmap_new() fail, and which inner GTK+ doesn't really expect (see e.g bug 543209, bug 562574, or the more recent bug 699236).
Comment 1 Aleksander Morgado 2013-05-08 10:24:56 UTC
This is a duplicate of bug 671538, and the patch in that bug solves the issue.

*** This bug has been marked as a duplicate of bug 671538 ***