PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

[Color Picker] memory leak

Open smfukaya opened this issue 2 years ago • 13 comments

Microsoft PowerToys version

0.67.1

Installation method

GitHub

Running as admin

No

Area(s) with issue?

ColorPicker

Steps to reproduce

Don't know how to reproduce the problem, but I issued the combination key WIN + SHIFT + C and the Color Pick UI didn't show up. PowerToysReport_2023-02-10-14-55-17.zip

✔️ Expected Behavior

Color Pick UI be displayed.

❌ Actual Behavior

Color Pick UI was not displayed and "PowerToys.ColorPickerUI.exe" was consuming around 14 GB of RAM.

Other Software

No response

smfukaya avatar Feb 10 '23 18:02 smfukaya

A dump file could be very helpful here

crutkas avatar Feb 10 '23 19:02 crutkas

@jaimecbernardo fyi

crutkas avatar Feb 10 '23 19:02 crutkas

a very similar thing happened to me though not related to color picker, after leaving powertoys open and the system on for about 8 hours PowerToys.PowerLauncher.exe was using about 2/3 of system memory alone (20GB/32GB) i have a dump file made in process explorer but i am not experienced enough to understand the problem and the dmp file itself is 15GB

budderball29 avatar Feb 12 '23 02:02 budderball29

@budderball29 , can we please get a bug report as well?

jaimecbernardo avatar Feb 13 '23 12:02 jaimecbernardo

On @smfukaya 's bug report, it seems there's some sort of loop going on. Looks like there's some event loop trying to send telemetry from Color Picker in the 2023-02-09 logs.

jaimecbernardo avatar Feb 13 '23 12:02 jaimecbernardo

@smfukaya @budderball29 Did it happen multiple times? Or only once?

sosssego avatar Mar 02 '23 16:03 sosssego

Hi @sosssego

It happened just that time.

smfukaya avatar Mar 02 '23 16:03 smfukaya

same happened to me, worked again after changing shortcut and disable/re-enablin' it.. also 60 - 130mb Memory usage.. :).. but 14GB? holy..

bloodyeyesblackblood avatar Apr 29 '23 22:04 bloodyeyesblackblood

I use color picker only rarely and currently it's taking 500MB RAM:

image

And it's not even opened.

EDIT: I have a full memory dump (1GB, 200MB zipped) that I can share with someone if needed.

Juraj-Masiar avatar May 17 '23 08:05 Juraj-Masiar

Hi Team,

I've also seen this - can provide DMPs.

Could someone please DM me a location for the upload (all files are around 3 GBs).

Thank you

visitorhub avatar May 18 '23 07:05 visitorhub

honestly, the best way would be hand this off via Windows Feedback hub.

In category do "Apps" and select PowerToys.

From there you should be able to attach a file. This would be the best way i believe as then stuff routed through correct systems as dmps can hold PII data.

crutkas avatar May 22 '23 21:05 crutkas

Done, here is my report with zipped dump attached: https://aka.ms/AAkwx14

Juraj-Masiar avatar May 23 '23 08:05 Juraj-Masiar

Hi Team,

Just uploaded 3 out of 4 DMPs via Feedback Hub, the 4th one is 2 GBs and was not accepted - although the Feedback Hub did not display any error.

Should you also need the 4th Dump, please let me know if I can provide you a public link for it and the password via DM / email.

Thank you

visitorhub avatar May 25 '23 10:05 visitorhub

Fixed in 0.71 release of PowerToys. aka.ms/installpowertoys

crutkas avatar Jul 14 '23 17:07 crutkas