On 09/14/2011 09:21 PM, Tommaso Cucinotta wrote: > One last remark: I just found a SEGFAULT while exporting, that was > there already before my last export patch: > I get an assertion at line 192 of RenderPreview.cpp. I take it the problem is that, without a GUI, we do not have a PreviewLoader, which is what I use to create math images. I'll have to figure out what to do about this.
Richard > $ gdb --args ./src/lyx -e xhtml ./lib/doc/EmbeddedObjects.lyx > GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2 > Copyright (C) 2010 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show > copying" > and "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu". > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>... > Reading symbols from > /home/tommaso/lyx-trunk-ws/lyx-trunk-export-filename-odg/src/lyx...(no > debugging symbols found)...done. > (gdb) run > Starting program: > /home/tommaso/lyx-trunk-ws/lyx-trunk-export-filename-odg/src/lyx -e > xhtml ./lib/doc/EmbeddedObjects.lyx > [Thread debugging using libthread_db enabled] > [New Thread 0x7ffff02ca700 (LWP 15399)] > > Program received signal SIGSEGV, Segmentation fault. > 0x0000000000ab3971 in > lyx::graphics::PreviewLoader::Impl::startLoading(bool) () > (gdb) bt > #0 0x0000000000ab3971 in > lyx::graphics::PreviewLoader::Impl::startLoading(bool) () > #1 0x0000000000ab2319 in > lyx::graphics::PreviewLoader::startLoading(bool) const () > #2 0x000000000077009e in lyx::RenderPreview::startLoading(lyx::Buffer > const&, bool) const () > #3 0x00000000006cb455 in > lyx::InsetMathHull::loadPreview(lyx::DocIterator const&) const () > #4 0x00000000006d5699 in lyx::InsetMathHull::xhtml(lyx::XHTMLStream&, > lyx::OutputParams const&) const () > #5 0x00000000005ba817 in > lyx::Paragraph::simpleLyXHTMLOnePar(lyx::Buffer const&, > lyx::XHTMLStream&, lyx::OutputParams const&, lyx::Font const&, long) > const () > #6 0x00000000005a98c5 in lyx::(anonymous > namespace)::makeParagraphs(lyx::Buffer const&, lyx::XHTMLStream&, > lyx::OutputParams const&, lyx::Text const&, > std::_List_const_iterator<lyx::Paragraph> const&, > std::_List_const_iterator<lyx::Paragraph> const&) () > #7 0x00000000005aabee in lyx::xhtmlParagraphs(lyx::Text const&, > lyx::Buffer const&, lyx::XHTMLStream&, lyx::OutputParams const&) () > #8 0x0000000000847b77 in > lyx::InsetText::insetAsXHTML(lyx::XHTMLStream&, lyx::OutputParams > const&, lyx::InsetText::XHTMLOptions) const () > #9 0x000000000082909e in > lyx::InsetTableCell::xhtml(lyx::XHTMLStream&, lyx::OutputParams > const&) const () > #10 0x0000000000826191 in lyx::Tabular::xhtmlRow(lyx::XHTMLStream&, > unsigned long, lyx::OutputParams const&, bool) const () > #11 0x0000000000826e21 in lyx::Tabular::xhtml(lyx::XHTMLStream&, > lyx::OutputParams const&) const () > #12 0x000000000082fca8 in lyx::InsetTabular::xhtml(lyx::XHTMLStream&, > lyx::OutputParams const&) const () > #13 0x00000000005ba817 in > lyx::Paragraph::simpleLyXHTMLOnePar(lyx::Buffer const&, > lyx::XHTMLStream&, lyx::OutputParams const&, lyx::Font const&, long) > const () > #14 0x00000000005a98c5 in lyx::(anonymous > namespace)::makeParagraphs(lyx::Buffer const&, lyx::XHTMLStream&, > lyx::OutputParams const&, lyx::Text const&, > std::_List_const_iterator<lyx::Paragraph> const&, > std::_List_const_iterator<lyx::Paragraph> const&) () > #15 0x00000000005aabee in lyx::xhtmlParagraphs(lyx::Text const&, > lyx::Buffer const&, lyx::XHTMLStream&, lyx::OutputParams const&) () > #16 0x0000000000847f90 in > lyx::InsetText::insetAsXHTML(lyx::XHTMLStream&, lyx::OutputParams > const&, lyx::InsetText::XHTMLOptions) const () > #17 0x00000000007a725a in lyx::InsetFloat::xhtml(lyx::XHTMLStream&, > lyx::OutputParams const&) const () > #18 0x00000000005ba817 in > lyx::Paragraph::simpleLyXHTMLOnePar(lyx::Buffer const&, > lyx::XHTMLStream&, lyx::OutputParams const&, lyx::Font const&, long) > const () > #19 0x00000000005a98c5 in lyx::(anonymous > namespace)::makeParagraphs(lyx::Buffer const&, lyx::XHTMLStream&, > lyx::OutputParams const&, lyx::Text const&, > std::_List_const_iterator<lyx::Paragraph> const&, > std::_List_const_iterator<lyx::Paragraph> const&) () > #20 0x00000000005aabee in lyx::xhtmlParagraphs(lyx::Text const&, > lyx::Buffer const&, lyx::XHTMLStream&, lyx::OutputParams const&) () > #21 0x0000000000481a4b in > lyx::Buffer::writeLyXHTMLSource(std::basic_ostream<wchar_t, > std::char_traits<wchar_t> >&, lyx::OutputParams const&, bool) const () > > T.