Mac M2 mini Memory Leak in Lightroom classic

I'm running into a bit of a problem with Lightroom on the M2 mini. I had an out of application memory error during a 60,000 photo folder import. My only option was force quit Lightroom, or reboot. I have noticed three things occur every time Lightroom is running.


1-Memory usage slowly increases (Library or Develop module)

2-I lose hard drive free space, but my image catalog is on an external drive? The longer Lightroom runs The more free space disappears?

3-Towards the end of a large import - the computer is less responsive. Even text edits are delayed.


For Example: Last night I imported a 22,000 photo folder, and the ram usage (which had been slowly climbing throughout the day) shot from 3.5gb to 8.3gb in about 30 minutes. I left it overnight, and when I awoke it showed 14.27 gb for a moment - then 9.5gb. Meanwhile, 20gb of free space disappeared off my drive space? I could not find any temporary file(s)? The catalog is on an external usb3 2tb drive - so, I shouldn't be losing

any space on the computer at all. So, I closed Lightroom down, and it took almost 10 minutes to close. That got me some of the drive space back, and ram usage went to normal. After a reboot, I got the drive

space back. The adice I need is - should I file a bug report with Apple, or Adobe? There is a memory leak

somewhere that does not happen in windows. Any ideas on what is happening?


I've tried disabling the GPU, and while I don't get out of memory errors - it slows the import down quite a bit.

Mac mini

Posted on Sep 4, 2023 7:43 AM

Reply

Similar questions

7 replies

Sep 8, 2023 7:47 AM in response to jmarkus7

Changes I made to Lr’s classic preferences, and updates that may have fixed issue

1-I turned off face recognition

2-I upped the camera raw cache to 8gb and the video to 8gb

3-I changed the preference for previews from embedded to create replacement standard previews during idle time

4-I ran a synch on a 54k image folder that had just been added - It showed it was looking for metadata changes

5-I ran “optimize” off the file menu - instead of when closing and asking for a backup + optimize

6-I let Lr sit running idle for 24 hours

Lr had crashed 4 times just before all these changes. I had picked “reboot” of my only two options 3 of the times. On the last crash I chose “force quit” which generated an error log, and a buggy window (black window with black type face) to explain what I had been doing. So I typed up my problems with the mini and Lr classic in textedit - and pasted them into the window and sent the report.


This part is weird, and may have nothing to do with anything.

I came back to the running computer hours later, and a new tab had opened in my Firefox web browser. It claimed Lightroom (not Lr classic) had been “updated”. On top of this web page was an operating system notification dialog box claiming the same thing. Only option was to click ok/or close. When I checked my Adobe subscriptions - only camera raw shows that it has been updated?


I rebooted., and finder would not allow me to look at the hard drive or network. I went to system settings and it was showing an update to the OS to Ventura 13.5.2, and that I needed to reboot again. The computer rebooted about 7-8 times which a temperature bar slowly showed progressing each boot time. Now, Lr classic is (knock on wood) running pretty good. I don’t really know what did the trick, but I thought I should leave a record of how Lr classic can (for the time being) run on a M2 mini.

Dec 7, 2023 12:36 PM in response to jmarkus7

Whew, That was disturbing to review, and I had forgotten some of the steps. The last three months have been relatively trouble free. I think the problem is that the USB ports on the M2 mini are defective/or wrongly spec'd. Not only did the two USB 3 external drives refuse to be recognized by the mini ever again, but the Logitech mouse and keyboard (have a USB dongle) caused problems. Using a Thunderbolt 3 external drive, and Blue tooth mouse and keyboard did the trick. For me, not using any USB devices was the solution.


I did find some differences in mac/win Lightroom. Synchronizing and lens tagging is way faster in windows, but Topaz plugins or focus stacks/stitches are faster on the mini. I am still slower on the mini, but that is me and my former way of doing things in windows fault. Currently the image catalog is 470,000 and LR is running fine on the mini.

Sep 5, 2023 11:00 AM in response to jmarkus7

I don't have Lightroom or any other Adobe software.

I don't know what is wrong. 22000 images is a lot, but not so much to justify the issues you are experience, I believe.

It seems to me that you need to reach out for support from Apple and/or Adobe - but I fear that you may end up in a situation where each says it's the other's fault or responsibility...


So to try and work with what we can effectively control:


Did you by any chance import everything from a previous mac (especially if it was an intel mac)?

Did you perhaps keep upgrading over several years and across different macs?

Or did you do a clean install on your M2 mac?


I know that a lot of people just keep upgrading year over year since, say, El Capitan or even Snow Leopard.

It is so easy, isn't it?

The problem is that people end up with stuff from a decade ago, like kernel extensions, and they may be not working, crashing and impeding the normal working of your mac. It's common to see people still having Perian, Silverlight, Flip4mac and even Flash on 2023 macs...


You may want to run Etrecheck and have a look at what it has to say. If you want, post the report here using the "additional text" button below your message area, and we can have a look at it to see if we spot anything problematic.

Sep 13, 2023 9:14 AM in response to jmarkus7

Lrc continued to crash, but I noticed some odd behavior. The wifi keyboard and mouse began seeming to trigger the mini into a loud clicking. Plus the mouse cursor's were too low resolution for Photoahop. So I got a blue tooth mouse and keyboard, and it seems much better particularly the responsiveness of the mini. The last two Lrc crashes my 2TB usb3 external hard drive just disconnected for no apparent reason. The mini would not see the drive, so I tested it on a Win10, and Linux machines - both found no errors, and could read and write to the drive. I hooked it to the other usb port, and it lost connection again, and refused to see the drive. So, I replaced the usb drive with a 2tb thunderbolt 3 drive. The mini seems fine with it. I began the catalog over from scratch with the previous post changes, and added a few more.


-Devined the "Standard" preview as 1440 pixels

-Turned off develop module updating metadata of jpg, png, etc changes

-Set the previews to never expire Hope it is going to work

Sep 4, 2023 8:07 AM in response to jmarkus7

You seem to dealing a large number of big image files, so I am not sure if there is really anything wrong.

The reduction in disk space may be either due to some scratch space used by Lightroom directly, or by swap space if your OS is needing to use it.

Do you see much in swap space in Activity Monitor's memory pane? That would appear consistent with recovering some only after a restart, as macOS like to hang on to things: just closing an application does not usually release swap space.




Sep 5, 2023 10:50 AM in response to Luis Sequeira1

Luis, I am sure something is very wrong. I have been doing this in Lr on Windows for 15 years, and never run into this serious of a debilitating memory leak. When I search Apple I find 20 years of people complaining about memory leaks. When I search Adobe I'm finding memory leak complaints as well. I finished importing a 47k folder, and it took 22 hours over a cat5 network. I went to close Lr (which includes backup/verify the database and optimize the 337,000 photos cataloged so far), and it took 3 hours for Lightroom to "close" (while it does the other bits in the background). At one point Lightroom was showing as "unresponsive" in the activity monitor with a spinning beach ball for almost 30 minutes. On a ten year old Win10 machine this takes a fraction of the time.


I don't know what to blame, but Lr classic and osX, or the memory being shared by the system and the gpu (even though the gpu is suppose to have it's on ram) - whatever the reason - are not playing well together. Maybe it's Adobe's code. Maybe it is Apple's OS, or Hardware. Hope they fix it soon, because this is not working. Swap stays between 2-3.5gb


Sep 5, 2023 11:16 AM in response to Luis Sequeira1

No, None of these were "imported" from a previous mac. I just got this mini about two weeks ago, and finally broke down and subscribed to the Ps/Lr offer by Adobe. So, this is my first go round with the latest versions from Adobe and Apple (though I have a history with both). I pulled it out of the box, hooked it to a 32" 1080p led tv and edited some videos. Worked great! My eyesight is not so good, and I found that a large monitor/TV made the text easier to read, and the TV had a "PC" color setting, and voila - the photos looked right - so I was off.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mac M2 mini Memory Leak in Lightroom classic

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.