On Mon, Sep 25, 2017 at 09:17:41AM +0200, Stephan Witt wrote:
> 
> Oh no. I did some further testing and now I’m feeling blue.
> 
> Not all SVG images we provide can be converted this way.
> 
> $ lyx-build/LyX-2.4.0dev.app/Contents/MacOS/lyxconvert -d 
> lyx/lib/images/math-subscript.svgz math-subscript.pdf
> lyxconvert: Load file 'lyx/lib/images/math-subscript.svgz', infmt is 'auto'
> Segmentation fault: 11
> $ lyx-build/LyX-2.4.0dev.app/Contents/MacOS/lyxconvert -d 
> lyx/lib/images/math-superscript.svgz math-superscript.pdf
> lyxconvert: Load file 'lyx/lib/images/math-superscript.svgz', infmt is 'auto'
> lyxconvert: Save converted image to file 'math-superscript.pdf', outfmt is 
> ‚pdf'
> $
> 
> Both images can be displayed in LyX work area. ImageMagick convert processes 
> them too.
> 
> I’ve attached the current lyxconvert.cpp. Any idea?

Seemingly, this is due to using QCoreApplication instead of QApplication.
Replace that and it should not segfault anymore.

-- 
Enrico

Reply via email to