Bug 115927 - LibreOffice - Export to PDF Causes Immediate Crash (kde only)
Summary: LibreOffice - Export to PDF Causes Immediate Crash (kde only)
Status: RESOLVED DUPLICATE of bug 98776
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
5.4.5.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
: 115920 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-21 23:08 UTC by xghost
Modified: 2018-02-23 18:39 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
A sample document for the bug report. (8.68 KB, application/vnd.oasis.opendocument.text)
2018-02-21 23:21 UTC, xghost
Details
gdbtrace.log file (13.40 KB, text/x-log)
2018-02-22 08:41 UTC, xghost
Details
Trace for " (14.11 KB, text/x-log)
2018-02-22 08:45 UTC, xghost
Details
gdbtrace.log for "Save as..." option (14.11 KB, text/x-log)
2018-02-22 08:48 UTC, xghost
Details
gdbtrace-vlcplugin-gtk-crash.log (13.40 KB, text/x-log)
2018-02-22 09:18 UTC, xghost
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xghost 2018-02-21 23:08:31 UTC
Description:
LibreOffice crashes whenever an attempt is made to use "Export to PDF..." functionality. I've verified this in Calc and Writer using both the icon and the File menu entry.

Steps to Reproduce:
1. Open a document
2. Try to export the document to a PDF file.
3. Observe crash, followed by document recovery process.

Actual Results:  
Application crashes, potentially losing data.

Expected Results:
Properly exports the contents to PDF


Reproducible: Always


User Profile Reset: Yes



Additional Info:
I noticed this immediately after today's release update in the Ubuntu repositories. I was using it before the updates and everything was working fine. I restarted the application after the repository updates and the export functionality was broken.

After the update had completed, I also rebooted the PC as recommended by the updater. This made no difference.

I tried restarting in safe mode, including using the option to reset my profile to factory defaults. Again, this made no difference.

The Build ID reported by the updated package(s) is: 1:5.4.5-0ubuntu0.17.10.1


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.167 Chrome/64.0.3282.167 Safari/537.36
Comment 1 xghost 2018-02-21 23:09:39 UTC
I'd change the severity to a minimum of "major", but I don't have permissions to do so.
Comment 2 xghost 2018-02-21 23:16:40 UTC
Actually, I just observed that the application also crashes in the same way if I choose the option "Save as...", which would be done if you're trying to save a document in a different format (e.g. LibreOffice Calc to Microsoft Excel).

This is _not limited_ to PDF exports.
Comment 3 Xisco Faulí 2018-02-21 23:16:59 UTC Comment hidden (obsolete)
Comment 4 xghost 2018-02-21 23:21:51 UTC
Created attachment 140048 [details]
A sample document for the bug report.

The issue is present regardless of document I use. I've created a new sample document as requested.
Comment 5 xghost 2018-02-21 23:24:44 UTC Comment hidden (obsolete)
Comment 6 Xisco Faulí 2018-02-21 23:44:14 UTC Comment hidden (obsolete)
Comment 7 xghost 2018-02-21 23:47:07 UTC Comment hidden (obsolete)
Comment 8 Julien Nabet 2018-02-22 08:35:44 UTC
Could you also check it's not related to OpenGL (see https://wiki.documentfoundation.org/QA/FirstSteps#Graphics-related_issues_.28OpenGL.29)

If you still reproduce this, would it be possible you attach a backtrace? (see https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.2FLinux:_How_to_get_a_backtrace)
Comment 9 xghost 2018-02-22 08:41:46 UTC
Created attachment 140049 [details]
gdbtrace.log file

Trace of crash after reproducing issue.
Comment 10 xghost 2018-02-22 08:42:30 UTC
(In reply to Julien Nabet from comment #8)
> Could you also check it's not related to OpenGL (see
> https://wiki.documentfoundation.org/QA/FirstSteps#Graphics-related_issues_.
> 28OpenGL.29)
 
Mine says "UI render: default", so according to the document, this is not an OpenGL-related issue and the rest doesn't apply.


> If you still reproduce this, would it be possible you attach a backtrace?
> (see
> https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.
> 2FLinux:_How_to_get_a_backtrace)

I've attached the trace to this report.
Comment 11 xghost 2018-02-22 08:45:44 UTC Comment hidden (ignore, obsolete)
Comment 12 xghost 2018-02-22 08:48:09 UTC
Created attachment 140051 [details]
gdbtrace.log for "Save as..." option

While the first trace posted was generated by clicking the "Export to PDF" icon, this second trace attachment was generated by clicking the File > "Save as..." entry in the menu.

Posted both in case there's a difference.
Comment 13 Julien Nabet 2018-02-22 09:03:50 UTC
Thank you for your quick feedback.
According to the bt, it seems related to kde rendering.
For the test could you try other renderings, ie:
export SAL_USE_VCLPLUGIN=gtk3
then launch LO from console.

You can also try these:
SAL_USE_VCLPLUGIN=gen
SAL_USE_VCLPLUGIN=gtk
Comment 14 xghost 2018-02-22 09:18:32 UTC
Created attachment 140052 [details]
gdbtrace-vlcplugin-gtk-crash.log

Test Case: export SAL_USE_VCLPLUGIN=gtk3
Result   : Good

Test Case: export SAL_USE_VCLPLUGIN=gen
Result   : Good

Test Case: export SAL_USE_VCLPLUGIN=gtk
Result   : Crash (gdbtrace-vlcplugin-gtk-crash.log attached)

A new/independent terminal was spawned for each test case.
Comment 15 Julien Nabet 2018-02-22 09:21:29 UTC
According to your last bt, since it seems there's no gtk libs present on your env (only gtk3), LO used kde rendering for your test with gtk.

Let's put this one to NEW given the bts.
Comment 16 xghost 2018-02-22 09:29:04 UTC
(In reply to Julien Nabet from comment #15)
> According to your last bt, since it seems there's no gtk libs present on
> your env (only gtk3), LO used kde rendering for your test with gtk.
> 
> Let's put this one to NEW given the bts.

Did something change internally in LO? I've been using Kubuntu (currently 17.10) and LO had been working fine for months without crashes.

The only thing I did prior to running into the crashes was to apply a LO update that showed up in the repositories today.

Nothing else was changed. And since I was using LO before the update and had to resume using it afterwards, it was pretty easy to realize that the issues arrived b/c of the update.

Is there at least a way to specify rendering to gtk3 when launching LO from the K Application Launcher -at least while a proper fix is released?

This is very disrupting.
Comment 17 Julien Nabet 2018-02-22 10:11:43 UTC
(In reply to xghost from comment #16)
> ...
> Is there at least a way to specify rendering to gtk3 when launching LO from
> the K Application Launcher -at least while a proper fix is released?
> 
> ...
Sorry I don't know.

Katarina: thought you might be interested in this one since it concerns kde rendering.
Comment 18 Julien Nabet 2018-02-22 13:19:29 UTC
*** Bug 115920 has been marked as a duplicate of this bug. ***
Comment 19 Julien Nabet 2018-02-22 14:28:17 UTC
Workaround to use a different rendering, see https://bugs.documentfoundation.org/show_bug.cgi?id=115920#c6
Comment 20 Xisco Faulí 2018-02-23 18:39:33 UTC
I guess we can close this as a duplicate of bug 98776

*** This bug has been marked as a duplicate of bug 98776 ***