Re: [darktable-dev] Dynamic Memory Allocation Overhaul

2019-02-05 Thread Sarge Borsch
Crashing is indeed a good outcome in the event of allocation failure.
Null pointer dereference though is not guaranteed to produce a crash, at
least, according to C spec, it's undefined behavior. (I know it often
causes crash in practice but that's not guaranteed)
Perhaps there's need for something like "assert(X != null)" where X is the
result of calling the allocation routine and then that should be indeed
helpful for debugging.


On Tue, Feb 5, 2019 at 3:53 PM parafin  wrote:

> One can argue that crashing might be helpful for debugging - backtrace
> is produced and it's possible to deduce the reason DT exited. E.g. if
> some allocation size is computed too high (say due to integer
> underflow) malloc can fail and if we just exit cleanly we will lose all
> context of the failure. Also it might be surprising for user unless DT
> prints some error message (which BTW won't be seen in most cases
> because DT is usually started by users without opening a terminal
> window).
>
>
> On Tue, 5 Feb 2019 08:47:36 -0500
> Mark Feit  wrote:
>
> > On 2/5/19 3:10 AM, Stefan Klinger wrote:
> > > IMHO it would not make sense to try to be overly smart here.  A system
> > > with failing `malloc` is on the brink of desaster, and writing
> > > failsave code under these conditions is extremely difficult.  For one,
> > > the recovery routines must not try to allocate memory.
> >
> > Not looking for fail-safe so much as fail-nicely:  don't SIGESEGV by
> > trying to use the NULL from a failed malloc(), just close the database,
> > remove the lock file and head for the exit().  I've had dt crash hard
> > enough times that I'm not worried about state.  The most I can recall
> > losing is what I was doing on one image.
> >
> > What I added exits through a function called dt_fail(), which provides a
> > good single point of exit.  What happens there can be a subject for
> > later discussion.
> >
> > --Mark
> >
> >
> >
> ___
> > darktable developer mailing list
> > to unsubscribe send a mail to
> darktable-dev+unsubscr...@lists.darktable.org
> >
> ___
> darktable developer mailing list
> to unsubscribe send a mail to
> darktable-dev+unsubscr...@lists.darktable.org
>
>

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

[darktable-dev] darktable produces PNG files with CRC mismatch in iCCP header

2018-07-26 Thread Sarge Borsch
darktable produces PNG files with CRC mismatch in iCCP header. (bit depth = 8 
bit, compression = 1) As a result, certain tools refuse to accept these PNG 
images.
Is that a known problem or should I add it to redmine? I've done a search and 
it seems it's not there 
yet.___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] Apple will be deprecating and removing OpenCL

2018-06-05 Thread Sarge Borsch
https://developer.apple.com/macos/whats-new/
> Apps built using OpenGL and OpenCL will continue to run in macOS 10.14, but 
> these legacy technologies are deprecated in macOS 10.14. Games and 
> graphics-intensive apps that use OpenGL should now adopt Metal. Similarly, 
> apps that use OpenCL for computational tasks should now adopt Metal and Metal 
> Performance Shaders.

I don't know… maybe it's worth an announcement on the blog or something, to let 
people know that they'd have to switch from macOS to another OS in the close 
future.___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] Time for next release?

2018-05-26 Thread Sarge Borsch
Dear all,
among other recent changes, there was an important PR merged 
(https://github.com/darktable-org/darktable/pull/1682) which should fix visible 
artifacts in processed images.
Unfortunately it's hard to build darktable on macOS (last time I tried, there 
were a lot of unexpected differences in outcomes if following the recommended 
build instructions) so it's hard to test the fix right now.
It's also been a while since the last release.
2.4.2 — Mar 22
2.4.3 — Apr 24
2.4.4 — May ? ;)

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] Re: Improving built-in color profiles

2018-05-05 Thread Sarge Borsch
Regarding the copyrights question:
The ICC profile that I got as the result of the conversion is 536 bytes, at 
least 29 of which are the ASCII name string that is equal to "Sony ILCE-5100 
Adobe Standard".
It contains only the following tags:
desc,
cprt (= "Copyright, the creator of this profile (generated by DCamProf 
v1.0.5)"),
wtpt (1 XYZ tuple),
rXYZ, rXYZ, rXYZ, (the most important and probably the only part we actually 
need — the color matrix),
and tone response curves which are just straight lines.

As I see, the only thing in the final ICC profile that could possibly be 
non-trivial enough to raise copyright questions is the 3x3 color matrix.


> On 4 May 2018, at 22:10, Sarge Borsch <sausagefacto...@gmail.com> wrote:
> 
> So, I tried to edit an ICC file in a hex editor to put the values from that 
> website, and, just as expected, got nonsensical results.
> 
> After that I tried another idea to snatch better color profiles — I searched 
> the web for Adobe Camera Raw package, extracted the profiles from it (they 
> are in .dcp format), and figured that it's possible to convert them to ICC by 
> dcamprof.
> They seem to work very well — better than the currently built-in input 
> profiles for sony a5100 in darktable.
> Now what do you think about the copyright status of these converted ICC 
> profiles? Can they legally be distributed with darktable, or should I keep 
> them only for myself?
> They are a lot smaller than the source .dcc files, probably because they 
> don't keep nothing valuable except the color matrices. So are 3x3 numeric 
> matrices copyrightable?
> 
> If you think these profiles can be officially added to darktable, I may fix 
> the name tags and submit a pull request.
> 
>> On 4 May 2018, at 17:14, Sarge Borsch <sausagefacto...@gmail.com> wrote:
>> 
>> Hi.
>> I see that there are measured color responses at 
>> https://www.dxomark.com/Cameras/Sony/A5100---Measurements
>> Hence the question: is it a good idea to try to take the built-in profile 
>> and replace the primaries with these measured values, in order to get closer 
>> to the in-camera JPEG color rendering? (or are they already used?)
>> 
>> I'm asking that because I've noticed that none of the built-in input color 
>> profiles for sony a5100 allows me to get close to the in-camera JPEG colors.
>> The 2 of them which are the closest to the correct rendering (that is, 
>> matching camera JPEG, which is quite good when judging by eye) are the 
>> "standard color matrix" and "linear Rec2020 RGB".
>> Both of them wildly differ from the in-camera JPEG in deep blue colors: 
>> "standard color matrix" causes them to be clipped and to look really 
>> unnatural, and "linear Rec2020 RGB" looks more or less natural, but the hue 
>> is obviously different (blue gets moved to cyan). Hence I started to wonder 
>> how easy is it to get a better color profile.
>> 
>> I know that ideally this should be done with a color chart, but I don't have 
>> one and don't have spare money for it at the moment.
>> 
>> Also I can share a shot of the example object (Raw + JPEG) which has such 
>> problematic color if anyone wants to test it, too.
> 

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



Re: [darktable-dev] Re: Improving built-in color profiles

2018-05-04 Thread Sarge Borsch
Mac packages are easier to extract without even installing (and installing 
proprietary software is not very good for security, that's why I went straight 
to trying to extract only the files I wanted)
It's several layers of different but relatively common archive formats: dmg, 
xar, gzip, cpio.
You'll need to go into them roughly like this:
CameraRaw_10_3.pkg -> CameraRawProfiles.pkg -> CameraProfiles
At all steps ignore the file extensions and use `file` utility to test the 
actual file type. When unsure what file to try, aim for bigger files.
Perhaps some steps are harder to do on systems other than macOS, I didn't try 
to extract it on other systems.

After than I used `dcamprof`, it's 2 steps: convert to JSON and then use 
make-icc command (I had to also explicitly tell it the profile name).


> On 5 May 2018, at 00:31, Coding Dave <codingd...@gmail.com> wrote:
> 
> Hi, I would like to follow your approach and compare the Darktable profiles 
> for my Nikon D750 with the ones I did on my own and your method. I found the 
> camera raw plug-in downloader from adobe in version 10.3 and downloaded it 
> for both, mac and windows. Now Im stuck: Neither using wine and the nullsoft 
> installer nor using xar to extract the macOSX package gave me the dcp files. 
> Am I missing something? Could you please give some more details on how to get 
> your color matrices?
> 
> Cheers,
> Dave
> 
> 2018-05-04 21:10 GMT+02:00 Sarge Borsch <sausagefacto...@gmail.com>:
> So, I tried to edit an ICC file in a hex editor to put the values from that 
> website, and, just as expected, got nonsensical results.
> 
> After that I tried another idea to snatch better color profiles — I searched 
> the web for Adobe Camera Raw package, extracted the profiles from it (they 
> are in .dcp format), and figured that it's possible to convert them to ICC by 
> dcamprof.
> They seem to work very well — better than the currently built-in input 
> profiles for sony a5100 in darktable.
> Now what do you think about the copyright status of these converted ICC 
> profiles? Can they legally be distributed with darktable, or should I keep 
> them only for myself?
> They are a lot smaller than the source .dcc files, probably because they 
> don't keep nothing valuable except the color matrices. So are 3x3 numeric 
> matrices copyrightable?
> 
> If you think these profiles can be officially added to darktable, I may fix 
> the name tags and submit a pull request.
> 
> > On 4 May 2018, at 17:14, Sarge Borsch <sausagefacto...@gmail.com> wrote:
> > 
> > Hi.
> > I see that there are measured color responses at 
> > https://www.dxomark.com/Cameras/Sony/A5100---Measurements
> > Hence the question: is it a good idea to try to take the built-in profile 
> > and replace the primaries with these measured values, in order to get 
> > closer to the in-camera JPEG color rendering? (or are they already used?)
> > 
> > I'm asking that because I've noticed that none of the built-in input color 
> > profiles for sony a5100 allows me to get close to the in-camera JPEG colors.
> > The 2 of them which are the closest to the correct rendering (that is, 
> > matching camera JPEG, which is quite good when judging by eye) are the 
> > "standard color matrix" and "linear Rec2020 RGB".
> > Both of them wildly differ from the in-camera JPEG in deep blue colors: 
> > "standard color matrix" causes them to be clipped and to look really 
> > unnatural, and "linear Rec2020 RGB" looks more or less natural, but the hue 
> > is obviously different (blue gets moved to cyan). Hence I started to wonder 
> > how easy is it to get a better color profile.
> > 
> > I know that ideally this should be done with a color chart, but I don't 
> > have one and don't have spare money for it at the moment.
> > 
> > Also I can share a shot of the example object (Raw + JPEG) which has such 
> > problematic color if anyone wants to test it, too.
> 
> ___
> darktable developer mailing list
> to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org
> 
> 
> 
> ___ 
> darktable developer mailing list to unsubscribe send a mail to 
> darktable-dev+unsubscr...@lists.darktable.org 

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] Re: Improving built-in color profiles

2018-05-04 Thread Sarge Borsch
So, I tried to edit an ICC file in a hex editor to put the values from that 
website, and, just as expected, got nonsensical results.

After that I tried another idea to snatch better color profiles — I searched 
the web for Adobe Camera Raw package, extracted the profiles from it (they are 
in .dcp format), and figured that it's possible to convert them to ICC by 
dcamprof.
They seem to work very well — better than the currently built-in input profiles 
for sony a5100 in darktable.
Now what do you think about the copyright status of these converted ICC 
profiles? Can they legally be distributed with darktable, or should I keep them 
only for myself?
They are a lot smaller than the source .dcc files, probably because they don't 
keep nothing valuable except the color matrices. So are 3x3 numeric matrices 
copyrightable?

If you think these profiles can be officially added to darktable, I may fix the 
name tags and submit a pull request.

> On 4 May 2018, at 17:14, Sarge Borsch <sausagefacto...@gmail.com> wrote:
> 
> Hi.
> I see that there are measured color responses at 
> https://www.dxomark.com/Cameras/Sony/A5100---Measurements
> Hence the question: is it a good idea to try to take the built-in profile and 
> replace the primaries with these measured values, in order to get closer to 
> the in-camera JPEG color rendering? (or are they already used?)
> 
> I'm asking that because I've noticed that none of the built-in input color 
> profiles for sony a5100 allows me to get close to the in-camera JPEG colors.
> The 2 of them which are the closest to the correct rendering (that is, 
> matching camera JPEG, which is quite good when judging by eye) are the 
> "standard color matrix" and "linear Rec2020 RGB".
> Both of them wildly differ from the in-camera JPEG in deep blue colors: 
> "standard color matrix" causes them to be clipped and to look really 
> unnatural, and "linear Rec2020 RGB" looks more or less natural, but the hue 
> is obviously different (blue gets moved to cyan). Hence I started to wonder 
> how easy is it to get a better color profile.
> 
> I know that ideally this should be done with a color chart, but I don't have 
> one and don't have spare money for it at the moment.
> 
> Also I can share a shot of the example object (Raw + JPEG) which has such 
> problematic color if anyone wants to test it, too.

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] Improving built-in color profiles by using dxomark.com color response measurements

2018-05-04 Thread Sarge Borsch
Hi.
I see that there are measured color responses at 
https://www.dxomark.com/Cameras/Sony/A5100---Measurements
Hence the question: is it a good idea to try to take the built-in profile and 
replace the primaries with these measured values, in order to get closer to the 
in-camera JPEG color rendering? (or are they already used?)

I'm asking that because I've noticed that none of the built-in input color 
profiles for sony a5100 allows me to get close to the in-camera JPEG colors.
The 2 of them which are the closest to the correct rendering (that is, matching 
camera JPEG, which is quite good when judging by eye) are the "standard color 
matrix" and "linear Rec2020 RGB".
Both of them wildly differ from the in-camera JPEG in deep blue colors: 
"standard color matrix" causes them to be clipped and to look really unnatural, 
and "linear Rec2020 RGB" looks more or less natural, but the hue is obviously 
different (blue gets moved to cyan). Hence I started to wonder how easy is it 
to get a better color profile.

I know that ideally this should be done with a color chart, but I don't have 
one and don't have spare money for it at the moment.

Also I can share a shot of the example object (Raw + JPEG) which has such 
problematic color if anyone wants to test it, 
too.___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



Re: [darktable-dev] Migrate Lightroom 7.2 -> Darktable 2.2

2018-02-21 Thread Sarge Borsch
Besides cropping, rotation and WB I don't think it's possible to get similar 
processing.
LR devs didn't document what it does, and it does a lot of strange 
processing—even the exposure slider in LR does something weird, definitely not 
a simple multiplier for raw values. Also (AFAIK) it uses completely different 
color profiles.
And I doubt anyone would like to reverse-engineer all of that…
But you could render your previous work to JPEG before switching, right? 
(that's what I did btw—so I only ever needed to re-develop only a few older 
shots)

> On 20 Feb 2018, at 12:45, Nikolaus Thiel  wrote:
> 
> Dear All
> 
> I am still using Lightroom Classic CC 7.2 (Desktop Version) to process my RAW 
> images. For several months I have tried out Darktable 2.2 but now I would 
> like to migrate definitely from Lightroom to Darktable.
> 
> I would like to import the changes made in Lightroom to Darktable knowing 
> that I will not get identical results but hoping for similar results in order 
> to not to loos all my work done.
> 
> Has anybody made some experience with switching from Lightroom to Darktable 
> and can give some hints or pitfalls to avoid ?
> 
> A question concerning Lightroom
> 
> The documentation darktable-usermanual.pdf talks in section 2.2.8. about 
> importing sidecar files generated by Lightroom. Unfortunately I am not able 
> to find any sidecar files - it seems that the meta data and the changes are 
> stored inside the DNG file. The option to save changes automatically in XMP 
> is enabled.
> 
> Can anyone tell me where to find the XMP files ?
> I could not find any hint in the Internet.
> 
> 
> Thanks for your help,
> Klaus
> 
> 
> 
> ___ 
> darktable developer mailing list to unsubscribe send a mail to 
> darktable-dev+unsubscr...@lists.darktable.org 

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



Re: [darktable-dev] Another denoising method for darktable

2018-01-07 Thread Sarge Borsch
I think it should also be compared to non-local means (with various patch size 
and strength settings) with some image pairs, with a reasonably faithful image 
comparison metric (https://github.com/kornelski/dssim for example)
And AFAIK the kind of noise which is removed is not really gaussian, so perhaps 
it'd make sense to test with the kind of noise which the real-world cameras 
produce (for example take a pair of images of exactly the same scene with ISO 
100 and ISO 1600 with different exposure time to compensate for brightness 
difference, and use the first image as the noise-less reference; for better 
results, first image could be an average of multiple shots, because most 
cameras still produce some visible noise at ISO 100)
When simply looking at the demo, it's not immediately clear if it's really 
better than NLM.

(For an image metric to be meaningful, it should have good correlation with 
human vision tests, for example http://www.ponomarenko.info/tid2013.htm
PSNR is obviously an outsider, and while RMSE is not listed on that page, I 
guess it's not much better).

> On 8 Jan 2018, at 07:38, Aurélien PIERRE  wrote:
> 
> Hi,
> 
> I would like to propose a new denoising method for dt : the Total Variation. 
> It plays in the same category as the bilateral denoising :
> 
>   • it smoothens surfaces while retaining edges
>   • it's very efficient to recover chroma noise and noise in bokeh areas 
> without affecting too much the in-focus areas
>   • but it could be more computing efficient. 
> A researcher has published an article comparing several sub-methods to do so 
> (with various regularizations) and released his C++ code under the GPL. 
> Regular people can test the algorithm online with their own pictures. The 
> rest of the details (and more candies) are on his page : 
> https://joandurangrimalt.wordpress.com/software/
> The background of this method is to minimize the energy of the picture, hence 
> the noise, defined as the integral of the gradients over the picture. I have 
> succesfully achieved a faster gradient estimation using a 2D convolution with 
> separable filters (same way as the Sobel operator) with this research.
> 
> I don't have time now to work on integrating this myself, as I'm already 
> buisy working on the blind deconvolution and stuggling with C, but I believe 
> it would be a great add-on to offer a more efficient alternative to the 
> bilateral filter, and all the maths and C libs are already there, so most of 
> the work would be UI.
> 
> Anybody willing to work on that ?
> 
> Thanks !
> 
> PS : there is also a non-local total-variation regularization available, able 
> to both denoise and reconstruct details by inpainting, but it's just maths 
> and no GPL code for now : 
>   • https://hal.archives-ouvertes.fr/hal-01342111/
>   • 
> https://joandurangrimalt.wordpress.com/research/novel-tv-based-regularization/
> -- 
> Aurélien PIERRE
> aurelienpierre.com
> 
> 
> ___ 
> darktable developer mailing list to unsubscribe send a mail to 
> darktable-dev+unsubscr...@lists.darktable.org 

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] Re: Cannot create darktable DMG — make-app-bundle doesn't work

2017-12-23 Thread Sarge Borsch
When I run it locally, the lensfun update seems to work OK, but there are the 
same errors after it:

$ sudo ./make-app-bundle
Reading http://lensfun.sourceforge.net/db/versions.json …
Reading http://wilson.bronger.org/lensfun-db/versions.json …
Successfully updated the database in /var/lib/lensfun-updates/version_1.
cp: /Users/user/.local/share/lensfun: No such file or directory
Cannot find source to copy: 
/Users/user/src/darktable/packaging/macosx/lensfun/updates
sed: package/darktable.app/Contents/Resources/etc/gtk-3.0/gtk.immodules: No 
such file or directory
Error opening directory 
“package/darktable.app/Contents/Resources/share/glib-2.0/schemas/”: No such 
file or directory
fatal: No names found, cannot describe anything.
…

> On 23 Dec 2017, at 17:07, Sarge Borsch <sausagefacto...@gmail.com> wrote:
> 
> Hmm apparently the error is just because it can't print a character (present 
> directly in the source code) to the current terminal because it's not in 
> UTF-8 encoding or something.
> (I were accessing the build machine over ssh and maybe it's set up badly by 
> default)
> 
>> On 23 Dec 2017, at 16:56, Sarge Borsch <sausagefacto...@gmail.com> wrote:
>> 
>> Hello. I've finally fixed speed issues with my hardware and was able to 
>> reach the step where DMG image is created:
>> https://github.com/darktable-org/darktable/blob/master/packaging/macosx/BUILD.txt#L54
>>  and it gives some trouble:
>> 
>> $ ./make-app-bundle
>> Info: root privileges needed for updating the system database.
>> Info: updating user DB in '/Users/user/.local/share/lensfun/updates'
>> Traceback (most recent call last):
>> File "/opt/local/bin/lensfun-update-data", line 133, in 
>>   read_location("http://lensfun.sourceforge.net/db/;)
>> File "/opt/local/bin/lensfun-update-data", line 114, in read_location
>>   print("Reading {} \u2026".format(base_url + "versions.json"))
>> UnicodeEncodeError: 'ascii' codec can't encode character '\u2026' in 
>> position 56: ordinal not in range(128)
>> cp: /Users/user/.local/share/lensfun: No such file or directory
>> Cannot find source to copy: 
>> /Users/user/src/darktable/packaging/macosx/lensfun/updates
>> sed: package/darktable.app/Contents/Resources/etc/gtk-3.0/gtk.immodules: No 
>> such file or directory
>> Error opening directory 
>> “package/darktable.app/Contents/Resources/share/glib-2.0/schemas/”: No such 
>> file or directory
>> fatal: No names found, cannot describe anything.
>> …
>> (there are a lot more errors after that, I think this is because errors are 
>> not checked and the script always tries to ignore errors and continue… I am 
>> not sure I should post the full log of this error snowballing)
>> 
>> Before that, I have made all steps as described, except I set the target OS 
>> X version to 10.11, and I skipped patches for python, GraphicsMagick and 
>> pango. I think they must be unrelated here?
>> By the way, if I visit the URL from the error message in a web browser 
>> (http://lensfun.sourceforge.net/db/) there's some page with something 
>> resembling an error message:
>>> An error has been encountered in accessing this page.
>>> 1. Server: lensfun.sourceforge.net 
>>> 2. URL path: /db/ 
>>> 3. Error notes: NONE 
>>> 4. Error type: 403
>> 
>> Can anyone suggest what could went wrong?
> 

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] Re: Cannot create darktable DMG — make-app-bundle doesn't work

2017-12-23 Thread Sarge Borsch
Hmm apparently the error is just because it can't print a character (present 
directly in the source code) to the current terminal because it's not in UTF-8 
encoding or something.
(I were accessing the build machine over ssh and maybe it's set up badly by 
default)

> On 23 Dec 2017, at 16:56, Sarge Borsch <sausagefacto...@gmail.com> wrote:
> 
> Hello. I've finally fixed speed issues with my hardware and was able to reach 
> the step where DMG image is created:
> https://github.com/darktable-org/darktable/blob/master/packaging/macosx/BUILD.txt#L54
>  and it gives some trouble:
> 
> $ ./make-app-bundle
> Info: root privileges needed for updating the system database.
> Info: updating user DB in '/Users/user/.local/share/lensfun/updates'
> Traceback (most recent call last):
>  File "/opt/local/bin/lensfun-update-data", line 133, in 
>read_location("http://lensfun.sourceforge.net/db/;)
>  File "/opt/local/bin/lensfun-update-data", line 114, in read_location
>print("Reading {} \u2026".format(base_url + "versions.json"))
> UnicodeEncodeError: 'ascii' codec can't encode character '\u2026' in position 
> 56: ordinal not in range(128)
> cp: /Users/user/.local/share/lensfun: No such file or directory
> Cannot find source to copy: 
> /Users/user/src/darktable/packaging/macosx/lensfun/updates
> sed: package/darktable.app/Contents/Resources/etc/gtk-3.0/gtk.immodules: No 
> such file or directory
> Error opening directory 
> “package/darktable.app/Contents/Resources/share/glib-2.0/schemas/”: No such 
> file or directory
> fatal: No names found, cannot describe anything.
> …
> (there are a lot more errors after that, I think this is because errors are 
> not checked and the script always tries to ignore errors and continue… I am 
> not sure I should post the full log of this error snowballing)
> 
> Before that, I have made all steps as described, except I set the target OS X 
> version to 10.11, and I skipped patches for python, GraphicsMagick and pango. 
> I think they must be unrelated here?
> By the way, if I visit the URL from the error message in a web browser 
> (http://lensfun.sourceforge.net/db/) there's some page with something 
> resembling an error message:
>> An error has been encountered in accessing this page.
>> 1. Server: lensfun.sourceforge.net 
>> 2. URL path: /db/ 
>> 3. Error notes: NONE 
>> 4. Error type: 403
> 
> Can anyone suggest what could went wrong?

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] Cannot create darktable DMG — make-app-bundle doesn't work

2017-12-23 Thread Sarge Borsch
Hello. I've finally fixed speed issues with my hardware and was able to reach 
the step where DMG image is created:
https://github.com/darktable-org/darktable/blob/master/packaging/macosx/BUILD.txt#L54
 and it gives some trouble:

$ ./make-app-bundle
Info: root privileges needed for updating the system database.
Info: updating user DB in '/Users/user/.local/share/lensfun/updates'
Traceback (most recent call last):
  File "/opt/local/bin/lensfun-update-data", line 133, in 
read_location("http://lensfun.sourceforge.net/db/;)
  File "/opt/local/bin/lensfun-update-data", line 114, in read_location
print("Reading {} \u2026".format(base_url + "versions.json"))
UnicodeEncodeError: 'ascii' codec can't encode character '\u2026' in position 
56: ordinal not in range(128)
cp: /Users/user/.local/share/lensfun: No such file or directory
Cannot find source to copy: 
/Users/user/src/darktable/packaging/macosx/lensfun/updates
sed: package/darktable.app/Contents/Resources/etc/gtk-3.0/gtk.immodules: No 
such file or directory
Error opening directory 
“package/darktable.app/Contents/Resources/share/glib-2.0/schemas/”: No such 
file or directory
fatal: No names found, cannot describe anything.
…
(there are a lot more errors after that, I think this is because errors are not 
checked and the script always tries to ignore errors and continue… I am not 
sure I should post the full log of this error snowballing)

Before that, I have made all steps as described, except I set the target OS X 
version to 10.11, and I skipped patches for python, GraphicsMagick and pango. I 
think they must be unrelated here?
By the way, if I visit the URL from the error message in a web browser 
(http://lensfun.sourceforge.net/db/) there's some page with something 
resembling an error message:
> An error has been encountered in accessing this page.
> 1. Server: lensfun.sourceforge.net 
> 2. URL path: /db/ 
> 3. Error notes: NONE 
> 4. Error type: 403

Can anyone suggest what could went wrong?
___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] Darktable 2.4.0.rc2 crashed when entering darkroom mode

2017-12-16 Thread Sarge Borsch
The crash happened when I double-clicked on an image in the lighttable mode 
(when it should have switched to darkroom mode).
Looks like it's somehow related to GraphicsMagick.
…
Thread 59 Crashed:
0   libsystem_kernel.dylib  0x7fffad33ed42 __pthread_kill + 10
1   libsystem_pthread.dylib 0x7fffad42c457 pthread_kill + 90
2   libsystem_c.dylib   0x7fffad2a4420 abort + 129
3   libGraphicsMagick.3.dylib   0x0001086fc7e7 
MagickPanicSignalHandler + 58
4   libsystem_platform.dylib0x7fffad41fb3a _sigtramp + 26
…

I think the full report contains some private details so I am not sure if it's 
a good idea to post it on the redmine; I'll send it here instead.
There's a lot of text so I am attaching it as a file.

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



dt_2.4.0.rc2_crash_report.txt.xz
Description: Binary data


[darktable-dev] Trouble with following OS X build instructions (cp command at line 14 fails)

2017-12-11 Thread Sarge Borsch
I've been following 
https://github.com/darktable-org/darktable/blob/master/packaging/macosx/BUILD.txt
I've got a VirtualBox VM with OS X (El Capitan), installed everything as 
written before this point, plus system updates.
When I got to line 14, the command fails:
$ cp -R 
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/python36
 ~/ports/lang
> cp: 
> /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/python36:
>  No such file or directory

What could be missing?
Also, maybe I can skip (some of) these patching steps if I don't need to build 
for OS X < 10.11? I'm building only to do some test drive by myself, so it 
doesn't have to work on other 
machines.___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] Another denoising algorithm, looking pretty interesting

2017-12-02 Thread Sarge Borsch
https://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf
And according to test images presented in another page 
(https://dmitryulyanov.github.io/deep_image_prior), "BM3D" might be even better 
than Non-Local Means. Although it's unclear which patch size for NLM was used 
in that comparison… if it was small then it doesn't say anything yet.

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] idea: guided filter instead or (or in addition to) bilateral

2017-11-07 Thread Sarge Borsch
Looks like there's a superior alternative to bilateral filter which produces 
less gradient reversal artifacts when used for tone mapping
http://kaiminghe.com/publications/eccv10guidedfilter.pdf
http://kaiminghe.com/eccv10/index.html
I'm no good in maths but I guess it had similar complexity to bilateral filter 
and the figures in the "paper" look tempting.

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



[darktable-dev] issue tracker is down (404)

2017-11-05 Thread Sarge Borsch
Sorry if this is already known…
At the moment, the official issue tracker URL 
(https://redmine.darktable.org/projects/darktable/issues 
<https://redmine.darktable.org/projects/darktable/issues> ) responds with "404" 
page + nginx version.
I'm also forwarding some history from user mailing list.

> Begin forwarded message:
> 
> From: Rafa García <conta...@rafagarcia.net>
> Subject: Re: [darktable-user] Issue tracker (https://redmine.darktable.org) 
> is down
> Date: 4 November 2017 at 23:22:14 GMT+2
> To: Michael Rasmussen <m...@miras.org>
> Cc: darktable-user <darktable-u...@lists.darktable.org>
> 
> To fix it you need to reinstall passenger module because it's linked to a 
> different shared library.
> 
> I also would reinstall gems(bundle install --force) for the same cause. 
> 
> Regards
> 
> 2017-11-04 17:50 GMT+01:00 Michael Rasmussen <m...@miras.org 
> <mailto:m...@miras.org>>:
> On Sat, 4 Nov 2017 18:35:42 +0200
> Sarge Borsch <sausagefacto...@gmail.com <mailto:sausagefacto...@gmail.com>> 
> wrote:
> 
> > Visiting https://redmine.darktable.org/ <https://redmine.darktable.org/> 
> > <https://redmine.darktable.org/ <https://redmine.darktable.org/>> gives a 
> > page with the following messages:
> >
> > > Web application could not be started
> > > An error occurred while starting up the preloader. It exited before 
> > > signalling successful startup back to Phusion Passenger.
> > > /usr/lib/passenger/support-binaries/PassengerAgent: error while loading 
> > > shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No 
> > > such file or directory
> >
> Apparently this days update of libssl was not propagated to the ROR
> environment running the project management website for darktable.
> Broken link to the chroot environment without doubt.
> 
> --
> Hilsen/Regards
> Michael Rasmussen
> 
> Get my public GnuPG keys:
> michael  rasmussen  cc
> http://pgp.mit.edu:11371/pks/lookup?op=get=0xD3C9A00E 
> <http://pgp.mit.edu:11371/pks/lookup?op=get=0xD3C9A00E>
> mir  datanom  net
> http://pgp.mit.edu:11371/pks/lookup?op=get=0xE501F51C 
> <http://pgp.mit.edu:11371/pks/lookup?op=get=0xE501F51C>
> mir  miras  org
> http://pgp.mit.edu:11371/pks/lookup?op=get=0xE3E80917 
> <http://pgp.mit.edu:11371/pks/lookup?op=get=0xE3E80917>
> --
> /usr/games/fortune -es says:
> The full impact of parenthood doesn't hit you until you multiply the
> number of your kids by thirty-two teeth.
> 
> 
> 
> -- 
> Enviado desde mi tabla de planchar
> 
>  
> darktable user mailing list to unsubscribe send a mail to 
> darktable-user+unsubscr...@lists.darktable.org 
> Begin forwarded message:
> 
> From: Michael Rasmussen <m...@miras.org>
> Subject: Re: [darktable-user] Issue tracker (https://redmine.darktable.org) 
> is down
> Date: 4 November 2017 at 18:50:22 GMT+2
> To: darktable-u...@lists.darktable.org
> 
> On Sat, 4 Nov 2017 18:35:42 +0200
> Sarge Borsch <sausagefacto...@gmail.com> wrote:
> 
>> Visiting https://redmine.darktable.org/ <https://redmine.darktable.org/> 
>> gives a page with the following messages:
>> 
>>> Web application could not be started
>>> An error occurred while starting up the preloader. It exited before 
>>> signalling successful startup back to Phusion Passenger.
>>> /usr/lib/passenger/support-binaries/PassengerAgent: error while loading 
>>> shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No 
>>> such file or directory  
>> 
> Apparently this days update of libssl was not propagated to the ROR
> environment running the project management website for darktable.
> Broken link to the chroot environment without doubt.
> 
> -- 
> Hilsen/Regards
> Michael Rasmussen
> 
> Get my public GnuPG keys:
> michael  rasmussen  cc
> http://pgp.mit.edu:11371/pks/lookup?op=get=0xD3C9A00E
> mir  datanom  net
> http://pgp.mit.edu:11371/pks/lookup?op=get=0xE501F51C
> mir  miras  org
> http://pgp.mit.edu:11371/pks/lookup?op=get=0xE3E80917
> --
> /usr/games/fortune -es says:
> The full impact of parenthood doesn't hit you until you multiply the
> number of your kids by thirty-two teeth.
> Begin forwarded message:
> 
> From: Sarge Borsch <sausagefacto...@gmail.com>
> Subject: Issue tracker (https://redmine.darktable.org) is down
> Date: 4 November 20