Thx for finding it, I fixed that locally (will push soon)
This is due to the new parameter versionning system that was implemented
for storages but lua was not adapted for it.
On Thu, Sep 25, 2014 at 7:51 PM, Pascal Obry <pas...@obry.net> wrote:
>
> We probably want to fix that before the release.
>
> Put the following Lua script into your local Lua directory.
>
> Start dt and do:
>
> - select "Gimp" in the export dialog target storage
> - select the preset button to create a new preset
> - dt crashes
>
> The backtrace is:
>
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x0000000000000000 in ?? ()
> > (gdb) bt
> > #0 0x0000000000000000 in ?? ()
> > #1 0x00007ffebc9f8419 in get_params (self=<optimized out>,
> > size=0x7fffffffd26c)
> > at /home/obry/dev/builds/darktable/src/src/libs/export.c:915
> > #2 0x00007ffff7a483a9 in popup_callback (button=0x190f460,
> module=0x14af6f0)
> > at /home/obry/dev/builds/darktable/src/src/libs/lib.c:730
> > #3 0x00007ffff7378474 in ?? ()
> > from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>
> export.c:915 is:
>
> int32_t sversion = mstorage->version();
>
> And at this point version is null. So no surprise. This used to work,
> maybe I have missed a change in Lua?
>
> <<<
> dt = require "darktable"
>
> -- the preference
>
> function
>
> store_callback(storage,image,format,filename,num,total,high_quality,extra_data)
>
> command = "gimp "..filename
> os.execute(command)
> end
>
> function supported_callback(storage,format)
> fmt = string.lower(format.name)
> if string.match(fmt,"tiff") == nil then
> return false
> else
> return true
> end
> end
>
>
> dt.register_storage("module_gimp","Gimp",store_callback,nil,supported_callback,nil)
> >>>
>
>
> --
> Pascal Obry / Magny Les Hameaux (78)
>
> The best way to travel is by means of imagination
>
> http://v2p.fr.eu.org
> http://www.obry.net
>
> gpg --keyserver keys.gnupg.net --recv-key F949BD3B
>
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> darktable-devel mailing list
> darktable-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/darktable-devel
>
------------------------------------------------------------------------------
Slashdot TV. Videos for Nerds. Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel