Skip to main content
Inspiring
December 15, 2018

P: Reset your Preferences: Moving from the magic spell to a more serious approach

  • December 15, 2018
  • 26 replies
  • 1395 views

Hi,

Under many circumstances, whenever your copy of LR crashes, freezes, doesn't start,... the most frequent answer you'll get from the support is "Reset your preferences". And in many cases, that works. But 1) you have to re-configure LR again and 2) this will not fix the bug generating the problem so, it will happen again . Should we be happy with this ? No.

If resetting the Preferences file(s) solves a problem, that's only because

- The piece of LR code reading or writing from or to this file is buggy
OR
-  A particular combination of parameters generates a problem.

Do not accept the idea that the Preferences file was corrupted. If it's corrupted, it's by LR itself. Spontaneous file corruption does not occur that often.

Since the developers at Adobe don't seem ready to investigate this case more deeply, I guess it's time to help ourselves and to collect information that could help them debug this issue. There's a few things that are easy to do :

1. Make a backup copy of your Preferences file(s) while LR is behaving correctly. This could also help you restoring a standard behavior instead of resetting the Preferences.

2. When a problem occurs, make a copy of the current Preferences file(s).

3. If resetting the Preferences solves the problem, then make a comparison of the files created in #1 and #2. You can also compare with the new Preferences file(s).

4. Make a ZIP archive of these files possibly including the comparison result and send them to the support or better, post a link to the archive in this thread.

Comparison can be made manually or by using a text comparison tool. I'm personally using Beyond Compare since years (this is not an ad) but there are others (a Google search will show you a lot).

Actually, there are 2 Preferences files :

C:\Users\\AppData\Roaming\Adobe\Lightroom\Preferences\Lightroom Classic CC 7 Preferences.agprefs

C:\Users\\AppData\Roaming\Adobe\Lightroom\Preferences\Lightroom Classic CC 7 Startup Preferences.agprefs

(note that the name didn't change with version 😎

So apply the above to both files. This procedure also applies to the Mac version although I don't know the file path.

Hoping that this will help solve this very old and annoying issue.

26 replies

johnrellis
Genius
June 3, 2022

After spending more time recently investigating how LR writes the preferences file, I've posted an easily implemented proposal that could significantly reduce the frequency of preference-file corruption:

https://community.adobe.com/t5/lightroom-classic-ideas/avoid-preferences-quot-corruption-quot-by-changing-when-the-preferences-file-gets-written/idi-p/12981414

johnrellis
Genius
May 29, 2022

A few of us have observed that in the last month or two it seemed like there were a lot more recommendations to "reset preferences". Out of nerdly curiosity, I used a script to count all posts with that phrase by day, and indeed, there have have been many more such posts per day on average in the past months.

 

The chart below shows the average number of posts per day for the time period when each version was the newest:

 

 

For example, LR 11.0 was the newest version from 10/26/21 through 12/13/21, and in that period, there was an average of 2.7 posts per day containing "reset preferences".  Note that not all of those posts were referencing version 11.0, though most of them were.

 

LR 11.0, 11.3, and LR 11.3.1 were responsible for nearly twice as many reset-preference posts per day than the versions of LR 10.   Did something change in LR 11, e.g. with task scheduling, so that the race condition in the preferences implementation (described above) occurs more frequently?  Is it that LR just has more bugs, which initially don't have known causes or workarounds, so forum members suggest "reset preferences" more frequently? Or maybe there was a surge in total users of LR 11, so proportionately more users come to the forums.

 

 

 

photopoeth
Inspiring
March 20, 2021

Alright... thanks for the feedback. So we just sit and wait for another 2 years... 😉

johnrellis
Genius
March 20, 2021

I don't think there's anything a user can do to fix the corrupted-preferences problem. Adobe posted here that they were looking at this issue two years ago, but I haven't seen any updates since then.

photopoeth
Inspiring
March 20, 2021

@John_R_Ellis I just stumbled upon this post and checked out your plugin. Surprise, surprise... the two values differ. I've also read your comments in testprefswriting.lua. But now I'm not sure if i can do something to fix this problem. Is there any chance to fix it?

SamoreenAuthor
Inspiring
December 10, 2020

Hi John,

The more I think about this, the more I'm convinced that the root of all evil in LR is LUA. I have always considered the use of LUA as a very strange idea and an unsuitable choice (understatement). The lack of serious synchronization tools and of exception handling capabilities are certainly the origin of many bugs and that's what makes spotting them almost impossible. Otherwise, how could Adobe explain why so many issues (including the one discussed here) are still not fixed after all these years ? Not to even mention the performance issues. It's hard to imagine a project manager in charge of the development of a very resource demanding application and saying "OK, let's write a good part of this application using a scripting language having limited capabilities". This is beyond me.

So, I'm no longer expecting any progress in this area until LR has been re-written using a more solid language or replaced with another product. But this decision should have been taken much earlier. As time goes by, this is less likely to happen.

--Patrick
johnrellis
Genius
December 10, 2020

See my post above, which suggests that fixing preferences is a non-trivial undertaking. (Adobe should do it, and should have done it years ago.)

Participating Frequently
December 9, 2020

I was thinking of writing a post along similar to his one - but you had it right in 2018.  Nothing has changed in 2020 - almost as if Adobe wants to punish users for changing Preferences, or at least blame the victims when things go wrong.  It must be possible to give users a button that does whatever resetting Preferences does without losing choices.

Jerry Syder
Inspiring
April 2, 2019
John, this plugin has saved me twice already. Both instances, LR crashed and created a new preference file when I re-launched. Cheers for that - I'd only downloaded the plugin as a trial to see how it worked and forgot to remove it(thinking I won't be needing it) but happy that I'd forgotten.
johnrellis
Genius
April 2, 2019
Here are the preferences snapshots my plugin has created since I started using it three months ago:


In nine years of using LR, I've only had to reset preferences once, so it's unlikely I'll have to do it again. But if I do, I've got enough of a history here to make it very likely that the culprit could be identified.