Lightroom CC memory leak while processing photos in Develop module

  • 1
  • Problem
  • Updated 3 years ago
I have been using Lightroom CC since it was released and it appears to have a sizable memory leak when processing photos in the Develop module. I am using a laptop with nothing else running and 16GB of memory (8 core processor). I have found that once Lightroom reaches about 7gb of ram used it becomes highly unstable and soon will either crash or windows will pop up the message that it needs to be closed immediately to prevent crash. I have tried running without Use Graphics Processor as well running with graphics processor enable using either the AMD Radeon R9 M265X or the built-in Intel graphics processor and it still behaves the same. I would guess that about every 50 images I have to shutdown and restart Lightroom to prevent it from happening, I keep task manager open and watch the memory use and close it when it gets over 6gb. The images are a mix of Canon 30d, Canon 5d, and Canon 5d Mark III images and all raw. It behaves the same whether it is processing only 30d/5d or only 5d/5dMkIII images. I keep hoping the regular updates will fix it but thus far they have made no difference.
Processing that I have been doing is primarily exposure, contrast, crop, whites, blacks and an occasional application of a preset. Not using any plugins.
The one thing that makes this laptop relatively unique though is the Ultra 4K display which has been an issue with previous version of Lightroom and I had to reduce the display size to prevent Lightroom from getting hung up when trying to apply a crop.

System Info:
Lightroom version: CC 2015.1.1 [ 1032027 ]
License: Creative Cloud
Operating system: Windows 8.1 Home Premium Edition
Version: 6.3 [9600]
Application architecture: x64
System architecture: x64
Logical processor count: 8
Processor speed: 2.4 GHz
Built-in memory: 16294.8 MB
Real memory available to Lightroom: 16294.8 MB
Real memory used by Lightroom: 3883.7 MB (23.8%)
Virtual memory used by Lightroom: 3943.7 MB
Memory cache size: 975.1 MB
Maximum thread count used by Camera Raw: 4
Camera Raw SIMD optimization: SSE2
System DPI setting: 240 DPI (high DPI mode)
Desktop composition enabled: Yes
Displays: 1) 3840x2160, 2) 1680x1050
Input types: Multitouch: Yes, Integrated touch: Yes, Integrated pen: No, External touch: No, External pen: No, Keyboard: Yes

Graphics Processor Info:
AMD Radeon R9 M265X

Check OpenGL support: Passed
Vendor: ATI Technologies Inc.
Version: 3.3.12798 Core Profile Context 13.351.1006.1001
Renderer: AMD Radeon R9 M265X
LanguageVersion: 4.30

Application folder: C:\Program Files\Adobe\Adobe Lightroom
Library Path: C:\_Photo\Lightroom\LR6_Catalogs\2015_LR_Catalog_LR6\2015_LR_Catalog_LR6.lrcat
Settings Folder: C:\Users\Ken\AppData\Roaming\Adobe\Lightroom

Installed Plugins:
1) Behance
2) Canon Tether Plugin
3) Facebook
4) Flickr
5) HDR Efex Pro 2
6) jf SmugMug
7) Leica Tether Plugin
8) LR/GMail
9) Nikon Tether Plugin
10) Perfect B&&W 8
11) Perfect Effects 8
12) Perfect Enhance 8
13) Perfect Photo Suite 8
14) Perfect Portrait 8
15) Perfect Resize 8
16) SmugMug

Config.lua flags: None

Adapter #1: Vendor : 1002
Device : 6823
Subsystem : f9451179
Revision : 0
Video Memory : 2022
Adapter #2: Vendor : 8086
Device : 416
Subsystem : f9451179
Revision : 6
Video Memory : 0
Adapter #3: Vendor : 1414
Device : 8c
Subsystem : 0
Revision : 0
Video Memory : 0
AudioDeviceIOBlockSize: 1024
AudioDeviceName: Headphones (PLT_Edge Stereo)
AudioDeviceNumberOfChannels: 2
AudioDeviceSampleRate: 44100
Build: Uninitialized
Direct2DEnabled: false
GPUDevice: not available
OGLEnabled: true
Photo of Ken Erickson

Ken Erickson

  • 15 Posts
  • 0 Reply Likes
  • frustrated

Posted 3 years ago

  • 1
Photo of Steve Sprengel

Steve Sprengel, Champion

  • 2647 Posts
  • 337 Reply Likes
Try moving all the plug-ins out of wherever they are so they aren't loaded and then see if you have the same problem.
Photo of Simon Chen

Simon Chen, Principal Computer Scientist

  • 1452 Posts
  • 454 Reply Likes
It is normal for Lightroom's virtual memory system to use up to 50% of the total available RAM. So if Lr is using 8GB of a total of 16GB is not an issue on itself. Something else is causing your system to be unstable. Have you done any memcheck to see if the RAM on your system is in working order? What are the typical operations that you do in Lr when this happens? In the Windows Task Manager, can you show the GDI handle count column and check if the count keeps going up while you're doing your routines inside Lr? Do you use a lot of Lightroom develop presets? How many do you have?
Photo of Ken Erickson

Ken Erickson

  • 15 Posts
  • 0 Reply Likes
Memory tests out fine, it is only Lightroom that has an issue and memory and GDI object count keep increasing until Lightroom crashes either on its own or with Windows prompting to close it because it needs to. The system doesn't become unstable only Lightroom and only Lightroom is reported by Windows to have problems and needing to be closed. Yes I do have a an excessive number of presets, what is considered a reasonable amount? I can try reducing those and see if I know how many to reduce to. (103 folders ranging from 2 - 626 presets per folder for total of 2887. I know previous versions of LR also had problems with presets and I had to restart because of the number of presets I had. As for what I am doing at present to get to this point I am batch processing thousands of photos in nearly the same way: exposure adjustment, auto Whites, auto Blacks (shift double click on each), some times I do a graduated filter of -1/3 stop and sometimes adjustment brush to lighten eyes. About every 12 photos or so I will apply one of about 10 develop presets and that is it.
Photo of Ken Erickson

Ken Erickson

  • 15 Posts
  • 0 Reply Likes
The windows message I get is Close programs to prevent information loss
Your computer is low on memory. Save your files and close these programs: Adobe Photoshop Lightroom

I forgot to mention I also crop each photo.

At the point I get the above message the GDI Count is around 1100 and memory usage over 8gb.
Photo of Ken Erickson

Ken Erickson

  • 15 Posts
  • 0 Reply Likes
Eventually I will get the blue box with the white X through it in Lightroom if I am lucky so I can still quit gracefully, other times it just crashes.
Photo of Simon Chen

Simon Chen, Principal Computer Scientist

  • 1452 Posts
  • 454 Reply Likes
On your last point that you see a blue box with the white x, it is indicative that Lightroom encountered a GPU error. I also see that you have an AMD GPU card which is known to have display driver problems working with Lightroom. There is a new Windows display driver available (15.8 Beta) that should fix the issue. Please check out http://support.amd.com/en-us/kb-articles/Pages/latest-catalyst-windows-beta.aspx for details and try to uninstall your current catalyst driver and install the new version.
Photo of Simon Chen

Simon Chen, Principal Computer Scientist

  • 1452 Posts
  • 454 Reply Likes
Please also check https://www.youtube.com/watch?v=3hhSukra2J4 for some tips on how to resolve the "Close programs to prevent information loss" windows message.
Photo of Ken Erickson

Ken Erickson

  • 15 Posts
  • 0 Reply Likes
I installed the beta driver from AMD and the memory is behaving much better, averaging between 2.5 and 3gb while processing 100 photos. Interesting though that I had the same problem using the Intel driver, for the first month or so I used only the Intel driver because AMD Catalyst Control Center was forcing Lightroom to use Intel card instead of the AMD card (low performance versus high performance). I guess the driver for Intel also had problems. I also was seeing the problem when GPU was disable which is even more interesting.
The GDI Count does continue to climb however, even when the memory drops down to 1.5gb when going to Library the GDI count remains around 1500.
Thank you all for your help, I will keep everyone posted if I see any more memory issues.
Photo of Simon Chen

Simon Chen, Principal Computer Scientist

  • 1452 Posts
  • 454 Reply Likes
The GDI count of 1500 is ok and not going to hurt. If it keeps increasing 10x more (see https://msdn.microsoft.com/en-us/library/windows/desktop/ms724291(v=vs.85).aspx) and never stabilize, I'd be concerned.