20 Dec
2008
20 Dec
'08
7:19 p.m.
Inkscape suddenly crashes for me when using the command line export functionality (in some cases at least). It seems to crash in SPDesktop::doc2dt, probably due to a null-pointer dereference. This function is called from sp_item_i2d_affine now, since rev. 20388. And this was also one of the few revisions since I last updated, so it could very well have to do with this revision.
My guess is that there simply isn't any instance of SPDesktop when Inkscape is used as a command line executable. So possibly the error isn't in sp_item_i2d_affine as such, but rather in the fact that it is being called at all. If anyone with a bit more understanding of this area of the code could have a look that would be great.