I had a simple Lua script to export an image and open it with gimp. It
was working but now crashes dt.
<<<
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)
>>>
I have checked that the routines are using correct interface.
Any idea?
The crash is:
#1 0x00007ffff79d303e in dt_control_export (imgid_list=<optimized
out>,
max_width=max_width@entry=1024, max_height=max_height@entry=1024,
format_index=format_index@entry=0,
storage_index=storage_index@entry=0,
high_quality=high_quality@entry=0,
style=style@entry=0x7fffffffd410 "présentation google+")
at /home/obry/dev/builds/darktable/src/src/control/jobs/control_jobs.c:1291
(gdb) f 1
#1 0x00007ffff79d303e in dt_control_export (imgid_list=<optimized
out>,
max_width=max_width@entry=1024, max_height=max_height@entry=1024,
format_index=format_index@entry=0,
storage_index=storage_index@entry=0,
high_quality=high_quality@entry=0,
style=style@entry=0x7fffffffd410 "présentation google+")
at /home/obry/dev/builds/darktable/src/src/control/jobs/control_jobs.c:1291
1291 mstorage->export_dispatched(mstorage);
(gdb) print mstorage->export_dispatched
$1 = (void (*)(struct dt_imageio_module_storage_t *)) 0x0
So, the storage is null.
--
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
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
darktable-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-devel