"attempting to perform arithmetic on a nil value is *always* a bug" (software should check if a numeric value which could be nil is nil before attempting arithmetic operations on it).
That said, it's a bug which the vast majority of us aren't hitting, begging the question of what is it about your Lr that is causing it to hit this bug, when others are not hitting it (in other words, what is the *root* problem).
Have you tried rebooting your computer, and renaming all critical Lr data files, so you can "start from scratch" so to speak? If I were you, I'd also try removing hardware and all non-critical software services, to reduce the number of variables which can come into play.
Now that I've said all that, I think this error may happen due to hard-drive export post-processing (after export..), so check that first (and set to a legal value if not already, like "do nothing").
Unfortunately, it will not help you... I have exactly the same issue, on two different Windows 7 PCs, but that are sharing plugins via Dropbox... So I suspect one of the plugins was the culprit.... I disabled all plugins, still the same problem. I tried with a clean, new catalog, still the same. Very frustrating....
Thanks for your response Rob,
I found that it is actuallu one photo. Must be the NEF to DNG conversion that went wrong.
Now I'm two days further and now Lightroom shows me that it can't read the photo.
Will have to look if the original is still available :-(
The crazy thing was that I was able to open it from Photoshop CS6 the other day where I saved it as a TIFF. Lightroom could not export the TIFF either..... probably the software was suffering from major hickups because of the faulty DNG file.
Hmm, I do have one damaged photo.
But that maybe not the cause. If I export one or a few photos to jpg it might work. The next moment I export another bunch and Lightroom faults again with the " an internal erro has occurred.?:0: attempt to perform arithmetic on a nil value".
Shutting down Lr and restarting it usually solves the issue for a short period of time.
It's driving me crazy, guys.
Same problem here
I have the same problem
Problem has nothing to do with hard drive post-processing drop-down (that's a different error).
Have you tried any of the suggestions presented here and elsewhere? For example:
* try with a new catalog, and/or different image files..
* try temporarily deleting prefs file.
Ya gotta find a rhyme or reason, otherwise Adobe just shrugs and says, yeah: stuff happens..
Or, maybe somebody will come along with a silver bullet for ya.
I tried already to deleting prefs file, tried it already with a new catalog and other imagefiles and i reinstalled lightroom, but this problem occurs only with raw files (cr2 and dng)
really annoying ...
I'm not 100% certain just yet but it seems that the single faulty DNG file corrupted something in memory. Ever since I deleted the file Lightroom is exporting just fine again.
I was not happy as this was a nice shot..... but stuff happens.
Must be something that went wrong in the conversion process. I always convert to DNG, after import.
In Lr 5.4 or 5.5 I had a strange error that got me duplicate files when converting but that problem is gone.
Hope that others find a solution to their problem too.
faulty DNG file corrupted something in memory.
I had this happen with a faulty jpeg once - I fixed it using exiftool. I wouldn't recommend fixing the DNG using exiftool unless you are savvy-enough, but couldn't you re-convert from original raw?
Some Problem here,
I have it suddenly when my Image has an GPS Coordinate. Seems like when I remove it, I can export the image.
I already tried to
* reinstall LR
* reimport calatog
* create new pre-set folger (like mentione here: https://forums.adobe.com/thread/346527)
* import old pre-set folder from the time whre it worked
no change. Very frustrating
I use LR 5.6 on Win. 7 (64 bit)
Any ideas, help?
thanks in advance
I have the same problem. Whenever an image has GPS data assigned, the above mentioned error occurs.
Make sure you report to Adobe
What software/firmware wrote the GPS data? (I know some people are not having the same problem with GPS data, so something is different in your case(s)).
Same problem with proprietary raws?, or DNGs only??
Problem is reported: LIGHTROOM 5.6: Exporting geotagged photos often results on error
The problem occurs if I use the Lightroom GPS tagging function (manually as well as automatically with GPX files).
like Frank and the problem as well occures with jpg from my iPhone with embedded GPS data
I use Win7 (64 bit)
I am using Win 7 64 bit as well. Interesting that it does seem to be related to the Lightroom GPS tagging functionaliy as it happens with iPhone pictures as well.
BTW: I also tried to export images I was able to export before and the same error occurs.
If you provide a sample photo (along with a track file if that's required) with precise step-by-step instructions for replicating the problem, then:
- Others here can see if they can reproduce the problem, narrow it down, and provide better work-arounds.
- It will be much more likely that Adobe will fix the problem. Past experience suggests that Adobe is more likely to fix a problem quickly if they can easily reproduce it and if it is narrowed down for them.
You can provide sample files by uploading them to Dropbox (or similar) and posting the links here.
I can't reproduce the problem on my LR 5.6 / Windows 8.1. I did Export: Choose Folder Later, Existing Files: Ask What To Do, Image Format: Original and Image Format: JPEG (Quality 60), Include: All Metadata, After Export: Do Nothing. (No other export options selected.)
What are the exact export settings you've used?
I looked at the GPS metadata with Exiftool, and nothing stood out as suspicious.
I used the same export settings you did. But unfortunately I get the above mentioned error
Do you use the 64 bit version?
I habe the same issue on my Win 7 PC but i also can't reproduce the error on my win 8.1 notebook.
There are a view more forum posts with the same topic Lightroom 5.6 export images error message "?:0: attempt to perform arithmetic on a nil value" and LIGHTROOM 5.6: Exporting geotagged photos often results on error in these topics are also sample files but sadly no solution.
so I found something! I was wondering why the "publish on harddrive" process did work, but the export to harddrive not.
So I looked in the difference of the presettings and found only the different options "choose export folder" and "predefined export folder" (don't know the exact translations, as I use the german version, but I hope you find what I mean.)
So I changed in the export settings the export folder to a fix predefined folder and there you are, export is working again!
Don't know the relation to the GPS-data, but anyhow.
Hope this helps to solve the problem?
Don't know if MS windows did an update which causes the error, but I didn't changed anything in lightroom as it worked before without these settings.
And of course in the long rund I would like to go back to the "choose folder" option, as I know have to copy the images to the right folder after export which is not a smooth process..
Woohoo! At least a workaround
Now I am able to export again. Anyhow, it is strange why you cannot select a folder anymore....
Yes woohoo! It works!
I'm gonna try that as well... I also use the option to choose the folder later.
Thank you SO MUCH for the workaround for this problem.t
Iam using Windows8 64bit