Skip to main content
Adobe Photoshop Family

46 Messages

 • 

888 Points

Sat, Aug 10, 2019 9:38 AM

Lightroom Classic: GDI Handle Leak

Windows 10 Pro, Lightroom 8.3.1

I have been tagging faces and noticed after a while that LR has slower and slower redraws and general GUI response. Looking in the task manager, I see 1800 or so GDI handles in use. At start-up it is more like 670 handles.

After some playing around while watching the task manager, I blame the Navigator window. If I just mouse-over a dozen or so folder names, the Navigator window shows the first photo in each folder, and the GDI handle count jumps up by dozens. It is the same set of photos each time, so it isn't about caching of bitmaps, I don't think.

There may well be other handle leaks, but this is the most obvious one.

My system has 128GB of memory. In the Old Days of Windows, leaking a few hundred handles basically killed Windows. More recent versions claim to let you waste handles recklessly, but the truth is that programs get unacceptably slow pretty quickly if they leak. 

For now the work-around is to close and re-open Lightroom. But you want to make it better, right? It is not a speedy program.

Responses

Official Solution

Employee

 • 

1.7K Messages

 • 

32.4K Points

a year ago

Thanks for the report. The team will investigate.

Principal Scientist, Adobe Lightroom

439 Messages

 • 

6.6K Points

a year ago

I've never seen this since I closed the Navigator window years ago for slowing stuff down. Simple solution!

Bob Frost

46 Messages

 • 

888 Points

a year ago

Simple work-around yes, good point!

Adobe should still fix the leak.

Also, as I switch a photo from "Fit" to "1:1" and back, I often inadvertently open or close the Navigator window through clumsy mouse-clicks (or the slow UI -- I don't seem to suffer this clumsiness in e.g. Photoshop). 

And also, if I am tagging faces and want to see the context of the whole photo, I can do that with the Navigator window at no cost in time, or I can look at the photo full-screen by double-clicking on the face. This is slow, and returning to the face-list view (by hitting Escape) is even slower because LR searches again for similar faces (I also posted about this problem). 

Thanks!

46 Messages

 • 

888 Points

a year ago

Ooh, and guess what! I closed the Navigator window, and the leak still happens. I think closing it (with the little triangle -- is there another way?) just hides the window. So all the GUI stuff still happens, but just isn't visible. 

Good GUI programming will wait for a paint message before doing work, which does not seem to be happening here.

Champion

 • 

747 Messages

 • 

13.3K Points

a year ago

Unclick "Show photos in navigator on mouse-over" off in preferences.  See if that helps.  


46 Messages

 • 

888 Points

a year ago

Unclicking "Show photos in navigator on mouse-over" in preferences is a good suggestion. There is no longer any leaking when the mouse goes over folder names, as no new image is shown in the Navigator window.

And when I change the selected image, I can still see the thumbnail in the Navigator window, which is useful. I tried selecting many different images in a couple of folders, and the GDI object count stayed pretty stable.

So the bug is in the mouse-over code. Adobe should still fix it.

Thanks!