Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ALind15
Beginner
452 Views

Potential Memory Leak in User Mode Driver for Intel Graphics Technology when using OpenGL

We are facing a memory leak when using .net Application (.net 4.6.1 C# Windows Forms with OpenTK GLControl) with Intel HD graphics (inside igdgmm32.dll). Our capabilities are limited, can you help further analyzing?

 

Preconditions

Intel HD Graphics

verified with:

  • Intel UHD 630 (Driver: 26.20.100.6911), Windows 10 => igdgmm32.dll
  • Intel HD 530 (Driver: 21.20.16.4542), Windows 7 => ig9icd32.dll
  • Intel HD 620 (Driver: 26.20.100.6888), Windows 10 => igdgmm32.dll

Steps to reproduce:

  1. Create Windows Form
  2. Add GLControl (make sure property "Dock" is set to "DockStyle.Fill"
  3. Shrink or grow GLControl on every frame

Note: when removing the dock-style setting, the leak does not occur.
Note: this is not representing the actual usage, this is just to make this issue occur more likely.

Attached you will find a screenshot of growing memory consumption in igdgmm32.dll ("ANTS_ProfilerScreen_1450-800.png")
Also attached you will find a sample project (C# .net 4.6.1 VS) to reproduce the memory leak ("MemLeakTest.zip")
When starting the application, the Back and Front Buffer starting to get switched. Actually no specific content is drawn. By pressing the key 's', a thread is started to shrink and grow the embedded GLControl (UserControl that is used as GLContext) and you can see the memory usage growing.

For further insight, I also attached the Redgate ANTS Profiler Result ("MemleakTest_ProfilerResults_101819.zip").
To open that file, you need Redgate ANTS Memory Profile. It is available as free trial at https://www.red-gate.com/products/dotnet-development/ants-memory-profiler/

In that application, I use OpenTK as a wrapper for OpenGL (https://github.com/opentk/opentk).
I sent the same request to their board as well in order to isolate the faulty behavior.

Related information

Operating system: Windows 10 (OS build 17134.1006)

Packages: OpenTK 3.1.0, OpenTK GLControl 3.1.0 through NuGet

Runtime: .net Framework 4.6.1

0 Kudos
1 Reply
ALind15
Beginner
452 Views

Hi all,

 

is there any news to this issue?

 

Best regards,

André

Reply