Bug 113762 - LibreOffice Writer crashes when using Java API to convert HTML document
Summary: LibreOffice Writer crashes when using Java API to convert HTML document
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.7.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-10 15:32 UTC by essj
Modified: 2019-03-11 13:17 UTC (History)
3 users (show)

See Also:
Crash report or crash signature: ["OpenGLSalGraphicsImpl::doFlush()"]


Attachments
Test code to reproduce issue (1.98 MB, application/zip)
2017-11-10 15:34 UTC, essj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description essj 2017-11-10 15:32:10 UTC
When using the LibreOffice Java API to convert an HTML document to Word (.doc), LibreOffice will crash.  The crash report for the attached test case is here:
crashreport.libreoffice.org/stats/crash_details/d18237d7-ca2c-416d-bb1a-5e2e40b72ec9

The original crash report from our web application is here:
crashreport.libreoffice.org/stats/crash_details/86a94ed4-e9ea-481d-a3e7-c37ebd716372
Comment 1 essj 2017-11-10 15:34:33 UTC
Created attachment 137667 [details]
Test code to reproduce issue

This is a simple test application that reproduces the issue.  See the README.txt file inside the JAR for details on running.
Comment 2 Buovjaga 2017-11-15 14:29:00 UTC
Interesting that it is related to OpenGL.

What if you disable Tools - Options - LibreOffice - View - Use OpenGL for all rendering?
Comment 3 essj 2017-11-15 14:57:50 UTC
If I disable OpenGL, LibreOffice does not crash.  I can run the test application over and over and it works fine.
Comment 4 Buovjaga 2017-11-15 15:03:06 UTC
(In reply to essj from comment #3)
> If I disable OpenGL, LibreOffice does not crash.  I can run the test
> application over and over and it works fine.

Great. Please copy and paste the contents of your C:\Users\User\AppData\Roaming\LibreOffice\4\cache\opengl_device.log

You might also try updating your graphics drivers to see, if it makes any difference.
Comment 5 essj 2017-11-15 15:41:57 UTC
opengl_device.log
===========================================
DriverVersion: 10.18.13.5413
DriverDate: 9-10-2015
DeviceID: PCI\VEN_10DE&DEV_13BA&SUBSYS_1097103C&REV_A2
AdapterVendorID: 0x10de
AdapterDeviceID: 0x13ba
AdapterSubsysID: 0x1097103c
DeviceKey: System\CurrentControlSet\Control\Video\{91642A1F-64A1-41DC-8D05-7730E9BBCD5A}\0001
DeviceString: NVIDIA Quadro K2200
Comment 6 essj 2017-11-15 16:31:33 UTC
I updated the driver and turned OpenGL rendering back on.  Here is opengl_device.log:

DriverVersion: 22.21.13.8590
DriverDate: 10-30-2017
DeviceID: PCI\VEN_10DE&DEV_13BA&SUBSYS_1097103C&REV_A2
AdapterVendorID: 0x10de
AdapterDeviceID: 0x13ba
AdapterSubsysID: 0x1097103c
DeviceKey: System\CurrentControlSet\Control\Video\{91642A1F-64A1-41DC-8D05-7730E9BBCD5A}\0001
DeviceString: NVIDIA Quadro K2200
Comment 7 essj 2017-11-15 16:33:09 UTC
Crash report from the latest run with the new driver:
http://crashreport.libreoffice.org/stats/crash_details/959545f8-fa8d-445f-a039-e1d7c8a9b17a
Comment 8 Xisco Faulí 2018-11-27 15:00:04 UTC
Hello,
A new major release of LibreOffice is available since this bug was reported.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 9 Julien Nabet 2019-03-10 07:59:22 UTC
We may also blacklist the driver like in https://cgit.freedesktop.org/libreoffice/core/commit/?id=cb5438a3d16634eb267584122169758ab2b76930

I just wonder if something is planned to retest these with future LO and graphic card drivers upgrading.

Right now, it could be useful to give a new try with 6.2.1 LO version and graphic card driver updated so let's this to NEEDINFO.
Comment 10 essj 2019-03-11 13:12:18 UTC
I ran this test code against LO 6.1.2.1 and it appears to work fine.
Comment 11 Buovjaga 2019-03-11 13:17:07 UTC
Great news, let's close.