Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Cody
New Contributor I
39,180 Views

BUG: dwm.exe uses memory leakage with Intel HD Graphics 630

Hi,

dwm.exe (Desktop-Window Manager) uses high memory with Intel Intel HD Graphics 630. This problem has been reported before:

https://answers.microsoft.com/en-us/windows/forum/all/desktop-windows-manager-dwm-memory-leakage-in/...

 

https://www.reddit.com/r/windows/comments/iqttw5/windows_10_dwmexe_high_ram_usage/g4umzyn/?utm_sourc...

 

Here's a screenshot of my dwm ram usage after 2 hours (1.6 GB):
Image1.jpg

 

Please, this bug is already known for 3-4 months, and I do not want to reinstall a 2019 driver...

183 Replies
Ross2
Novice
3,837 Views

A friend had this problem, and my previous workaround didn't work for him.

After studying the problem for some time, I noticed that it only occurred when the Username shown in Task Manager > details > dwm.exe was DWM-2 or higher (I saw up to DWM-7). If the Username was DWM-1 the problem did not occur. DWM-1 is the account "Console Logon", and I eventually found a way of ensuring that dwm.exe always runs with this account. The solution was to disable Windows "Fast Startup", and multiple cold boots always resulted in DWM-1 being used. With "Fast Startup" enabled it would switch to DWM-2 etc after a couple of reboots.

When using Windows Manager accounts DWM-2 or DWM-3 etc, the memory leak started to show within minutes, but I couldn't reproduce the leak using DWM-1.

I tried searching Online for a screenshot of a Task Manager screen showing the "Details" tab with high memory usage of dwm.exe, to check the account being used, but I couldn't find one. As a result, I can't say if this will work for others?

 

Cody
New Contributor I
3,824 Views

I currently use driver  27.20.100.8476 since the problem occurs on my computer  when updating to next public release 27.20.100.8587. I'm not sure whether Intel can provide intermediate versions so I can help to find out the buggy update version.

If I make a fast-startup I see that I use DWM-15 (with 8476 and no memory leak), on cold reboot it is DWM-1. I cannot tell whether having constantly DWM-1 would fix the problem since the 8476 driver doesn't seem to have this problem with other accounts than DWM-1.

3,772 Views

I found this: https://social.technet.microsoft.com/forums/windows/en-US/29a96616-c942-4d33-9a0b-c4fa5a20c6b4/why-...

Look like the "x" in DWM-x means sessions id, so look like is intel drive doesn't handle it smoothly or something, and cause memory leak.

But I still have no idea for reproducing constantly, and is the only way for fixing it.

Ross2
Novice
3,760 Views

Disabling "Fast Startup" worked for me, but my workaround is only one of many possible alternative "solutions" out there. Many people may choose not to disable this setting as they find it improves boot & shutdown time? They may also find it doesn't fix the memory leak for them?

I see that 27.20.100.9168 has just been released, so perhaps that will be an improvement, and no dwm.exe memory leak workarounds will be required? 

gain
Novice
3,716 Views

windows10 20H2.19042
Intel 10400 UHD 630 driver 27.20.100.8783 & 9079 & 9126 & 9168 memory leak.
There will be no memory leak in DWM-1, but it will start leaking after DWM-2.
Now using 27.20.100.9168.
Hope it helps you test!

My driver is lower than 27.20.100.8681, windows10 will force automatic update.
Hope Intel/Microsoft will solve it soon.

geminis3
Novice
3,574 Views

Just signed up to tell 29.20.100.XXXX drivers don't have the memory leak, after using my laptop for 8 hours my dwm.exe usage is between 80-100mb which is nothing compared to 4-6GB it used to be on previous versions.

I got this driver from some forum and the version number is 29.20.100.9116 btw I always have fast startup turned off cause I dual/triple boot other OSes on this machine.

geminis3
Novice
3,529 Views

After using Zoom screensharing recently the leak started to appear again

geminis3_0-1611609601514.png

 

MonkeyDMax92
Beginner
3,395 Views

Same problem with my computer: ASUS ROG STRIX G17 G712LV-H7002T

- All my drivers are up to date

- The computer behaves normally after restarting

 

Cody
New Contributor I
3,308 Views

@RonaldM_Intel 

estimating the reports and views in this thread, it seems like a LOT of people have this bug, and it is unfortunate that you cannot reproduce it. From my experience as programmer, I know that bugs that cannot be reproduced are not fixable.

 

I have 2 suggestions how to solve this problem

#1: another user (MrX1980) posted in this thread that this problem might be fixed with windows dev build 21292, so we can delegate it to MS and hopefully they provide a fix in 21H1.

#2: what I personally would prefer is that we find out which change in your code caused the issue. I tested all public available drivers and found that the last version without this bug is 27.20.100.8476-  as soon I update to the next release 27.20.100.8587 the bug occured. With a simple logarithmic search we can find the culprit version update if you are able to provide intermediate releases. But I of course do not know your company policies, like whether these are e.g., confident.

My idea is that if you provide me 27.20.100.8525, and this one bugs, I continue with 8550, if works, I test 8500 afterwards. If 8500 bugs I will test 8488. It will take maybe log2(100) = 7 tests this way to find the buggy update.

If you know the exact version, you could check the documented logs and maybe find something obvious or simply reverse the changes.

I'd be happy to help here if I can 😉

 

Stefan3D
Honored Contributor II
3,304 Views

@geminis3 

Try 29.20.100.9263

@Cody 

Unfortunately 21H1 = 19043.x - i am afraid the major Windows update will come as 21H2

3,295 Views

Just made my account to say that this is happening to me too. It often occurs after about 8 hours of use. I found that putting it to sleep fixes the leak, though I think temporarily.

3,209 Views

I might have found the solution, but this is just five or so minutes after making this discovery so it may need a trial before I can confirm.

Turn off Fast Start Up, since it seems that when I reset it, it just goes to normal but if I shut it down and turn it on with Fast Start Up on, for some reason DWM is a little more bloated. Turning off Fast Start Up will make it more akin to "resetting".

MrX1980
Novice
3,093 Views

Update 2:
I still see sometimes abnormal spikes >500MB, but it seems that since Win10 build 21292 the dwm.exe process will be better flushed after I close the apps. My desktop computer with nVidia GTX 1060 never reaches over 100MB.

Currently I use Win10 build 21301 and driver 29.20.100.9263 and had 3 IRQL_NOT_LESS_OR_EQUAL GSOD (AV_nt!MiGetPfnPidSafe). I don't know if this has something to do with this bug. With my desktop computer I don't have these GSOD.

parameter
Beginner
3,008 Views

Energy management. screen off: never. no memory leak. ( Dwm.exe)

2,935 Views

New potential workaround: Sign out of your account and sign back in. It resets DWN.exe.

gain
Novice
2,532 Views

Now using 27.20.100.8681 will not memory leak, may be the last version without memory leak?

27.20.100.8681 is also the automatic update version of windows10

ogsdu
Beginner
2,016 Views

Hi! I had this issue with the latest driver as for 2/14/2021. That one was 27.20.100.9168 . Memory usage just kept increasing little by little. I downgrade it to 27.20.100.9079 and it seems fix for now. I will report anything here. 

ogsdu
Beginner
1,949 Views

The problem persisted, I downgraded even further to Driver Version: 26.20.100.8141 . After a clean installation using DDU the memory usage has been stable for a couple of hours. I'm leaving these comments in the hope to help other people.

PhYrE
Beginner
1,854 Views

Most concerning is that this has been ongoing for so long, yet there seems to be no welcome fix for it?

I have a 10th gen i7 laptop which leaks from 53MB to >2GB gradually after a matter of hours until the system slows to a halt... just by doing regular things like e-mail and web surfing.  Tried disabling hardware acceleration in Chrome/etc.  Tried downgrading drivers (but the 630 isn't supported on the last-known non-leaking drivers of 100.6286) as well as upgrading to the latest- had 5-6 driver versions explicitly installed such as 100.9168, 100.8476, and always has the same results.

Intel- if you want a use case I'm happy to make you dump files.  Just need this fixed.  All of the 'solutions' here aren't solutions at all- just people restarting DWM to have it reset, or turning on full reboots which resets it to allow it to leak again.

Intel?

Tags (1)
danarreichi
Beginner
1,803 Views

So.. last week, I was digging into windows setting that handle scaling. then I'm turning off "Let Windows try to fix apps so they're not blurry". Now I got average 40-55MB of usage.

danarreichi_0-1613576094632.png

P.S. I have 27.21.14.6140 driver installed, Let me know if this is work on you. (sorry for bad english)

Reply