I run ASP 3.2 on my openSuSE 42.2 linux system. Recently got a new camera (D750) and a new lens (Nikkor 24-85 3.5-4.5 VR). The problem was that this lens is not in the correction database and it really needs correction :-; . There is a similar variant of this lens without VR but its not the same, the name is different and the lens provider ids are different as well.
So I started to get correction data for my new lens from the lensFun project and converted it into a xml file for ASP3:
<?xml version="1.0" encoding="UTF-8"?>
<LenseDb>
<Lens raw="true" skip="false">
<Model>Nikkor 24-85mm f/3.5-4.5G IF-ED VR</Model>
<Mount>nikonslr</Mount>
<Exif provider="Nikon" id="B4 40 37 62 2C 34 B6 0E"/>
<FocalLength max="85" min="24"/>
<Aperture>3.5</Aperture>
<CropMultiplier>1</CropMultiplier>
<Converter factor="1" detected="false" />
<CorrectionCoefficients>
<RadialDistortion a="0.00771" b="-0.03274" c="0.01406" focal="24"/>
<RadialDistortion a="0.01346" b="-0.04515" c="0.04487" focal="28"/>
<RadialDistortion a="0.0165" b="-0.0444" c="0.05448" focal="32"/>
<RadialDistortion a="0.00831" b="-0.00929" c="0.02554" focal="42"/>
<RadialDistortion a="0.00581" b="-0.00104" c="0.0207" focal="58"/>
<RadialDistortion a="0.00072" b="0.01909" c="-0.00624" focal="68"/>
<RadialDistortion a="0.00148" b="0.01645" c="-0.00584" focal="85"/>
</CorrectionCoefficients>
</Lens>
</LenseDb>
I copied this file into my linux home directory into .AfterShotPro3/LensProfiles/ directory and restarted ASP. When selecting a photo that has been taken with this 24-85 lens my new profile is automatically selected and correction works fine.
Weeks later I discovered that I suddenly had a problem I never saw before. At first I did not not think of my added lens profile. The problem is that when lens correction is enabled (no matter which lens the photo was taken with) and you create a new clone layer and then a clone circle eg to map out a dust spot on the sensor the clone destination is displaced from the destination circle. Its hard to describe so here is a 1min screencast that demonstrates this problem:
https://userpages.uni-koblenz.de/~krien ... encast.mkv
When you deactivate lens correction everything is ok again. I tried around a lot and finally I found out that this effect always happens when my own lens profile resides in .AfterShotPro3/LensProfiles/ directory. It is not important which variant of the 24-85 lens I actually select in lens correction. The bug is always there if my new lens profile is in my personal LensProfile directory. If I remove it, delete any old .xmp settings and then try again, the bug has gone (the correction as well
So after all to me it seems that the mere presence of this correction file in /home/<user>/.AfterShotPro3/LensProfiles/ triggers this problem. I am clueless why this happens and what I could do to avoid it.
Is there anyone who has an idea? It would also be great if someone could try to reproduce this problem. All the files (a D750raw file, the lens correction profile as well as the screencast) are available for download here:
https://userpages.uni-koblenz.de/~krienke/tmp/asp/
Thanks a lot in advance for any hints
Rainer
