Project

General

Profile

Bug #10123

crash export preset with lua

Added by Pascal Obry over 4 years ago. Updated over 4 years ago.

Status:
Fixed
Priority:
Medium
Category:
Lua
Start date:
09/26/2014
Due date:
% Done:

100%

Affected Version:
git development version
System:
Debian
bitness:
64-bit
hardware architecture:
amd64/x86

Description

We probably want to fix that before the release as this is a regression.

Put the attached 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?

gimp.lua (457 Bytes) Pascal Obry, 09/26/2014 08:40 AM

Associated revisions

Revision c295b232
Added by Jérémy Rosen over 4 years ago

lua : fix bug #10123 : crash when using presets with lua storages

This is due to the addition of versioning to storage parameters

lua currently always reports a version of 0
(which is fine since lua can't store storage parameters at this point)

History

#1 Updated by Jérémy Rosen over 4 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Fixed

Also available in: Atom PDF