Windows 10: GDI Object leak in Windows 10 when printing with Gdiplus

Discus and support GDI Object leak in Windows 10 when printing with Gdiplus in Windows 10 BSOD Crashes and Debugging to solve the problem; Hello there, I've been suggested to post this here from the Visual Studio Developer community. There seem to be a GDI Object leak issue when printing... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by Andy De Filippo, Apr 12, 2021.

  1. GDI Object leak in Windows 10 when printing with Gdiplus


    Hello there, I've been suggested to post this here from the Visual Studio Developer community.


    There seem to be a GDI Object leak issue when printing to certain printers, including but not limited to, the Microsoft XPS Document Writer.


    When rendering to the printer's graphics a 32 bpp bitmap with alpha components, there's a constant increase of GDI objects that never get released, obviously causing the application to crash when the count reaches the 10k limit.


    Here's a detailed video reproducing the issue

    2021-04-09_12-23-39.mp4

    Here's a small vb.net project posted to the developer community that reproduces the problem.
    GdiPrintLeakTest.zip
    This is a vb.net project developed with VS2017, targeting Framework 4.7.1.


    Here's the original post in the Visual Studio developer community:
    When rendering an in-memory created bitmap with argb contents in Windows 10 19042.867 x64, GDI leak happens


    The memory leak happens on Windows 10 19042.867 x64 and does not happen on Windows 7 x64, x32.

    It does not happen when the contents of the image being rendered do not contain any semi-transparent pixels.

    Hoping to hear from you.

    Thank you.

    :)
     
    Andy De Filippo, Apr 12, 2021
    #1

  2. GDI+ Window Computer Freeze

    GDI+ was not completely migrated like GDI was when Windows Vista and above were being developed. Not many programs use GDI+ and those that do tend to be older.

    Windows 10 Creator's Edition also shows GDI+ errors which suggests MSFT still has not fixed the API completely.
     
    Hardcore Games™, Apr 12, 2021
    #2
  3. snooksP Win User
    No GDI list in Task manager?

    I’ve some problems with an application I’m running and as part of the problem solving process I need to monitor how many GDI objects or handles it’s using. Most forums say that I should go to my task manager and in the view menu activate the GDI list.

    If I go to Processes in Task manager there are no other option under view for other things to monitor, if I right click the bar below I do get a drop down list but it only has CPU, Memory, Disk and Network.

    The forums and help pages all skip over this as it’s apparently very easy but I can’t see an option to monitor anything other than the 4 I mentioned. I’ve looked for Windows 10 guides and they all say the same thing, just go to the Task manager and have
    a look at the different lists, why can’t I see any?

    [Post moved by the moderator to the appropriate forum category]

     
    snooksP, Apr 12, 2021
    #3
  4. Kari Win User

    GDI Object leak in Windows 10 when printing with Gdiplus

    Memory leak ? icons and preview disapear, Ghost RAM usage


    There's a known issue in Build 9879, when GDI objects count in Explorer process reaches 10,000 the Explorer starts acting like you described. More about this issue on Microsoft TechNet: https://social.technet.microsoft.com...iew2014General

    To see the number of GDI objects, open Task Manager and go to Details tab. Right click anywhere in the column titles row and click Select columns and select GDI objects from the list, click OK:

    GDI Object leak in Windows 10 when printing with Gdiplus [​IMG]


    The GDI objects are now shown:

    GDI Object leak in Windows 10 when printing with Gdiplus [​IMG]


    When this count reaches 10,000 the issue starts but it can luckily be easily and fast fixed. First kill (end) the Explorer process by right clicking it and selecting End task:

    GDI Object leak in Windows 10 when printing with Gdiplus [​IMG]


    Notice that killing the whole Explorer process your Taskbar and all open File Explorer windows will disappear.

    Now open the Task Manager's File menu and select Run new task, type Explorer.exe and click OK:

    GDI Object leak in Windows 10 when printing with Gdiplus [​IMG]


    Explorer restarts, the GDI object count is low and you can continue using Windows normally.
     
Thema:

GDI Object leak in Windows 10 when printing with Gdiplus

Loading...
  1. GDI Object leak in Windows 10 when printing with Gdiplus - Similar Threads - GDI Object leak

  2. How to improve image quality when painting images with Gdiplus::TextureBrush

    in Windows 10 Software and Apps
    How to improve image quality when painting images with Gdiplus::TextureBrush: I am currently having a problem with broken image drawing when I use Gdiplus::TextureBrush. I know that when drawing images with Graphics::DrawImage, the image still maintains the image quality. But I need to draw images with Gdiplus::TextureBrush because it can be customized...
  3. How to improve image quality when painting images with Gdiplus::TextureBrush

    in Windows 10 Gaming
    How to improve image quality when painting images with Gdiplus::TextureBrush: I am currently having a problem with broken image drawing when I use Gdiplus::TextureBrush. I know that when drawing images with Graphics::DrawImage, the image still maintains the image quality. But I need to draw images with Gdiplus::TextureBrush because it can be customized...
  4. How to apply ROPs Raster Operation when drawing with GDI+ and do we need to use ROPs with GDI+?

    in Windows 10 Gaming
    How to apply ROPs Raster Operation when drawing with GDI+ and do we need to use ROPs with GDI+?: I am doing drawing image to EMF file using GDI+ however I don't see any function of GDI+ related to ROPs. I understand that GDI+ is designed with object oriented thinking and supports high quality graphics. So do we need ROPs when using GDI+?...
  5. How to apply ROPs Raster Operation when drawing with GDI+ and do we need to use ROPs with GDI+?

    in Windows 10 Software and Apps
    How to apply ROPs Raster Operation when drawing with GDI+ and do we need to use ROPs with GDI+?: I am doing drawing image to EMF file using GDI+ however I don't see any function of GDI+ related to ROPs. I understand that GDI+ is designed with object oriented thinking and supports high quality graphics. So do we need ROPs when using GDI+?...
  6. Windows 10 - Memory Leaks

    in Windows 10 Support
    Windows 10 - Memory Leaks: I'm trying to determine what is causing a memory leak on my Work PC - its an old machine running Win 10 Pro - i7-5930, 64GB ram, Gigabyte X99 motherboard. The issue has only started a few months ago, but can't for the life of me work out what the issue is. I thought it could...
  7. GDI+ window ccc.exe

    in AntiVirus, Firewalls and System Security
    GDI+ window ccc.exe: For the last couple of weeks, when I go to shutdown my PC, I'm getting a message that GDI+ window ccc.exe needs to close. What is causing this file to be open? I try to exit my programs before I shutdown the PC. If I click on shutdown anyhow, nothing seems to happen. Is this...
  8. WIndows 10 Memory leak

    in Windows 10 BSOD Crashes and Debugging
    WIndows 10 Memory leak: Good day , In the last week, my pc start presenting memory issues and i have been investigating and trying to solve them. the first one appeared was High use of memory like 98% when having nothing running, just pc in stand by. the problem of that was NonPaged Memory was...
  9. gdiplus error Windows 10

    in Windows 10 BSOD Crashes and Debugging
    gdiplus error Windows 10: There seem to be a lot of threads about this, I just want to fix the problem - ideally, reputably. I have had to error messages. The first: [ATTACH] Following the advice on a MS forum, I tried to register this file (and I know my way around a command line). I then got...
  10. slow shutdown -- GDI+

    in Windows 10 Performance & Maintenance
    slow shutdown -- GDI+: during shutdown, I get message that GDI+ is open, and is delaying the shutdown process what I tried: I ran troubleshooter/power, it just reset the power options to default, but did not solve the problem I ran sfc/scannow, it did not find any integrity violations. 62631

Users found this page by searching for:

  1. gdiplus crash