Remove images from lighttable crashes
When removing images from lighttable, if thumbs are being generated, darktable may crash.
To reproduce, paste a heavy edit on several images and remove them while thumbs are generated.
Not always is the same error, I attach two traces.
According to the backtrace, one of them is related to this:
#1 0x00007ffff679fb35 in dt_image_cache_write_release (cache=<optimized out>, img=0x61a00005b280, mode=mode@entry=DT_IMAGE_CACHE_RELAXED) at /src/common/image_cache.c:263
I'm not familiar with the code and this is too low level, so I don't want to mess with it.