[Pkg-phototools-devel] Bug#831744: darktable: Camera profile for denoise disappears

Roman Lebedev lebedev.ri at gmail.com
Sun Aug 21 11:42:28 UTC 2016


On Tue, Aug 16, 2016 at 3:45 PM, Jan van de W
<debianbugs at kiekerjan.isdronken.nl> wrote:
> Thanks for the help. I was away on holidays so it took some time.
>
> 1. Should I move it to the darktable database?

> 2. Just using it for some time triggers the bug
That is interesting...

> 3. I need some help here. I cannot seem to parse you question ;)
> I tried adding -fsanitize=address to CFLAGS and CXXFLAGS, but I'm probably
> doing something wrong as I didn't see any differences after building and
> installing the debian package. I followed this guide
> (https://wiki.debian.org/BuildingTutorial), is that ok? I noticed that the
> build.sh script in the darktable source is different from the debian
> package. It has an --asan option, that I do not see in the debian source I
> downloaded.
> I probably need some more specific instructions, sorry :|
To be honest i do not really know how to recompile a debian package.
I'd follow https://wiki.debian.org/BuildingAPackage
https://wiki.debian.org/BuildingTutorial

Do make sure that you have debug symbols for at least glib and glib-json

I expect the steps are close to: (WARNING: untested!)
$ cd /tmp && apt-get source darktable
$ sudo apt-get build-dep darktable
$ cd darktable-?.?.?

open debian/rules with editor, and prepend these 2 lines at the top of the file
  export DEB_CFLAGS_MAINT_APPEND = -fno-omit-frame-pointer
-fsanitize=address -fstack-protector-strong
  export DEB_LDFLAGS_MAINT_APPEND = -fno-omit-frame-pointer
-fsanitize=address -fstack-protector-strong

or maybe just exporting those 2 env vars would be enough

$ DEB_BUILD_OPTIONS='nostrip noopt debug' dpkg-buildpackage -b -uc -us
$ sudo dpkg -i darktable.deb darktable-dbg.deb

And then make sure to start darktable from console and, once is
unexpectedly crashes,
save ALL the console output and send it here.

Roman.

> 2016-07-19 12:44 GMT+02:00 Roman Lebedev <lebedev.ri at gmail.com>:
>>
>> Hi.
>>
>> 1. This definitely does not look like debian issue, therefore it is
>> best to to move this into our redmine.
>> 2. Do you know the exact reproduction steps?
>> 3. If you can reproduce it with ease, can you please manually compile
>> dt (2.0.5) with -fsanitize=address
>>     reproduce the issue, and show all the ASan console output?
>>
>> Roman.
>>
>> On Tue, Jul 19, 2016 at 12:21 AM, Jan van de Wijdeven
>> <kiekerjan+debian at gmail.com> wrote:
>> > Package: darktable
>> > Version: 2.0.5-2
>> > Severity: important
>> >
>> > Darktable has a profiled denoise function, which applies denoising on an
>> > image based on ISO and Camera type. When I use this function, the camera
>> > profile disappears after some time. When Darktable is started, the profile
>> > is there. However, after some time, the camera specific profile disappears,
>> > and only the generic poissionian is shown. This causes very heavy noise
>> > reduction.
>> >
>> > I found issue #10340 in the darktable issue database
>> > (https://redmine.darktable.org/issues/10340) and tried the command found
>> > there:
>> > $ darktable -d control | grep noiseprofile
>> >
>> > This at first shows:
>> >
>> >> [noiseprofile] looking for maker `Sony', model `DSLR-A200'
>> >> [noiseprofile] found 11 makers
>> >> [noiseprofile] found `Sony' as `Sony'
>> >> [noiseprofile] found 36 models
>> >> [noiseprofile] found DSLR-A200
>> >> [noiseprofile] found 6 profiles
>> >> [noiseprofile] looking for maker `Sony', model `DSLR-A200'
>> >> [noiseprofile] found 11 makers
>> >> [noiseprofile] found `Sony' as `Sony'
>> >> [noiseprofile] found 36 models
>> >> [noiseprofile] found DSLR-A200
>> >> [noiseprofile] found 6 profiles
>> >> [noiseprofile] looking for maker `Sony', model `DSLR-A200'
>> >> [noiseprofile] found 11 makers
>> >> [noiseprofile] found `Sony' as `Sony'
>> >> [noiseprofile] found 36 models
>> >> [noiseprofile] found DSLR-A200
>> >> [noiseprofile] found 6 profiles
>> >
>> > when these messages are printed, the noise profiles for my camera (guess
>> > what type of camera I have ;) are available in Darktable.
>> >
>> > When the profile disappears, the following is shown by the debug output:
>> >
>> >> [noiseprofile] looking for maker `Sony', model `DSLR-A200'
>> >> [noiseprofile] found 11 makers
>> >> [noiseprofile] found 11 makers
>> >> [noiseprofile] found `Sony' as `Sony'
>> >> [noiseprofile] found `Sony' as `Sony'
>> >> [noiseprofile] found 36 models
>> >> [noiseprofile] found 36 models
>> >> [noiseprofile] found DSLR-A200
>> >> [noiseprofile] found 6 profiles
>> >> [noiseprofile] found DSLR-A200
>> >> [noiseprofile] found 6 profiles
>> >> [noiseprofile] looking for maker `Sony', model `DSLR-A200'
>> >>
>> >> (darktable:21855): Json-CRITICAL **: json_object_ref: assertion
>> >> 'object->ref_count > 0' failed
>> >>
>> >> (darktable:21855): Json-CRITICAL **: json_object_has_member: assertion
>> >> 'object != NULL' failed
>> >> [noiseprofile] found -1 makers
>> >> [noiseprofile] looking for maker `Sony', model `DSLR-A200'
>> >>
>> >> (darktable:21855): Json-CRITICAL **: json_object_ref: assertion
>> >> 'object->ref_count > 0' failed
>> >>
>> >> (darktable:21855): Json-CRITICAL **: json_object_has_member: assertion
>> >> 'object != NULL' failed
>> >> [noiseprofile] found -1 makers
>> >> [noiseprofile] looking for maker `Sony', model `DSLR-A200'
>> >>
>> >> (darktable:21855): Json-CRITICAL **: json_object_ref: assertion
>> >> 'object->ref_count > 0' failed
>> >>
>> >> (darktable:21855): Json-CRITICAL **: json_object_has_member: assertion
>> >> 'object != NULL' failed
>> >> [noiseprofile] found -1 makers
>> >>
>> >> (darktable:21855): Json-CRITICAL **: json_object_ref: assertion
>> >> 'object->ref_count > 0' failed
>> >> [noiseprofile] looking for maker `Sony', model `DSLR-A200'
>> >>
>> >> (darktable:21855): Json-CRITICAL **: json_object_has_member: assertion
>> >> 'object != NULL' failed
>> >> [noiseprofile] found -1 makers
>> >
>> >
>> >
>> > -- System Information:
>> > Debian Release: stretch/sid
>> >   APT prefers testing
>> >   APT policy: (450, 'testing'), (400, 'unstable'), (1, 'experimental')
>> > Architecture: amd64 (x86_64)
>> >
>> > Kernel: Linux 4.5.0-2-amd64 (SMP w/8 CPU cores)
>> > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored:
>> > LC_ALL set to en_US.UTF-8)
>> > Shell: /bin/sh linked to /bin/dash
>> > Init: systemd (via /run/systemd/system)
>> >
>> > Versions of packages darktable depends on:
>> > ii  libatk1.0-0               2.20.0-1
>> > ii  libc6                     2.22-11
>> > ii  libcairo-gobject2         1.14.6-1+b1
>> > ii  libcairo2                 1.14.6-1+b1
>> > ii  libcolord-gtk1            0.1.26-1
>> > ii  libcolord2                1.3.2-1
>> > ii  libcups2                  2.1.4-1
>> > ii  libcurl3-gnutls           7.47.0-1
>> > ii  libexiv2-14               0.25-3
>> > ii  libflickcurl0             1.25-3
>> > ii  libgcc1                   1:6.1.1-7
>> > ii  libgdk-pixbuf2.0-0        2.34.0-1
>> > ii  libgl1-mesa-glx [libgl1]  11.2.2-1
>> > ii  libglib2.0-0              2.48.1-1
>> > ii  libglu1-mesa [libglu1]    9.0.0-2.1
>> > ii  libgomp1                  6.1.1-7
>> > ii  libgphoto2-6              2.5.10-3
>> > ii  libgphoto2-port12         2.5.10-3
>> > ii  libgraphicsmagick-q16-3   1.3.24-1
>> > ii  libgtk-3-0                3.20.6-1
>> > ii  libice6                   2:1.0.9-1+b1
>> > ii  libilmbase12              2.2.0-11
>> > ii  libjpeg62-turbo           1:1.5.0-1
>> > ii  libjs-prototype           1.7.1-3
>> > ii  libjs-scriptaculous       1.9.0-2
>> > ii  libjson-glib-1.0-0        1.2.0-1
>> > ii  liblcms2-2                2.7-1
>> > ii  liblensfun1               0.3.2-3
>> > ii  liblua5.2-0               5.2.4-1
>> > ii  libopenexr22              2.2.0-10
>> > ii  libopenjp2-7              2.1.0-2.1+b1
>> > ii  libosmgpsmap-1.0-1        1.1.0-1
>> > ii  libpango-1.0-0            1.40.1-1
>> > ii  libpangocairo-1.0-0       1.40.1-1
>> > ii  libpng16-16               1.6.23-1
>> > ii  libpugixml1v5             1.7-2
>> > ii  librsvg2-2                2.40.16-1
>> > ii  libsdl1.2debian           1.2.15+dfsg1-4
>> > ii  libsecret-1-0             0.18.3-1
>> > ii  libsm6                    2:1.2.2-1+b1
>> > ii  libsoup2.4-1              2.54.1-1
>> > ii  libsqlite3-0              3.13.0-1
>> > ii  libstdc++6                6.1.1-7
>> > ii  libtiff5                  4.0.6-1
>> > ii  libwebp5                  0.4.4-1+b2
>> > ii  libx11-6                  2:1.6.3-1
>> > ii  libxext6                  2:1.3.3-1
>> > ii  libxml2                   2.9.3+dfsg1-1.2
>> > ii  libxrandr2                2:1.5.0-1
>> > ii  zlib1g                    1:1.2.8.dfsg-2+b1
>> >
>> > darktable recommends no packages.
>> >
>> > darktable suggests no packages.
>> >
>> > -- no debconf information
>> >
>
>



More information about the Pkg-phototools-devel mailing list