https://bugs.freedesktop.org/show_bug.cgi?id=55587
--- Comment #3 from [email protected] --- Hi: The issue is triggered by calling the following macro and then trying to exit. Sub SaveSlidesAsPDF(srcFile) srcURL = ConvertToURL( srcFile ) dim oPropDoc(0) as New com.sun.star.beans.PropertyValue oPropDoc(0).Name="Hidden" oPropDoc(0).Value=True 'msgbox(srcURL) oDoc = StarDesktop.loadComponentFromURL( srcURL, "_blank", 0, _ oPropDoc()) pdfFile=Left(srcFile,Len(srcFile)-4)+".pdf" pdfURL=ConvertToURL( pdfFile ) Dim oPropPDF(1) As New com.sun.star.beans.PropertyValue oPropPDF(0).Name="ExportNotesPages" oPropPDF(0).Value=true Dim oProp(3) As New com.sun.star.beans.PropertyValue oProp(0).Name="Overwrite" oProp(0).Value=true oProp(1).Name="FilterName" oProp(1).Value="impress_pdf_Export" oProp(2).Name="FilterData" oProp(2).Value=oPropPDF() oDoc.storeToURL(pdfURL,oProp()) oDoc.close( True ) End Sub The thing is invoked via a bash script that does ${SOFFICE} ${SOFFICE_OPTIONS} \ $CMDPREFIX.SaveSlidesAsPDF\($fullname\) ".uno:Quit" Where: SOFFICE is /usr/bin/libreoffice4.1 CMDPREFIX is the place where the macro is stored inside libreoffice, in my case macro:///SC_PDF_Export.lib fullname is the name of an odp file that is passed to the script for instance libreoffice macro:///SC_PDF_Export.lib.SaveSlidesAsPDF\(file://$PWD/test.odp\) .uno:Quit The basic script executes just fine. Indeed the pdf document is correctly generated. However when getting to the ".uno.Quit", libreoffice segfaults. The issue is still present in 4.1.2RC2 SOME NOTES 1) Without the final .uno.Quit libreoffice does not segfault. 2) With --backtrace libreoffice does not segfault, so it is impossible to take a backtrace 3) Apparently there is not anymore the need for the final .uno:Quit, because after the macro libreoffice exits by itself (with previous versions of libreoffice and with openoffice this was not the case and .uno:Quit was indispensable to eventually exit libreoffice) 4) Even if the .uno:Quit is now redundant, it should not make libreoffice segfault. Please, switch to confirmed if this information is enough. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
