Bug 51690 - Crash with Graphite 2 (incorrect Graphite cache size)
Summary: Crash with Graphite 2 (incorrect Graphite cache size)
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
3.6.0.0.beta2
Hardware: x86 (IA32) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-03 05:28 UTC by László Németh
Modified: 2013-11-15 23:36 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
testcase (127.88 KB, application/vnd.oasis.opendocument.text)
2012-07-03 05:28 UTC, László Németh
Details
testcase 2 (10.79 KB, application/vnd.oasis.opendocument.text)
2012-07-03 05:37 UTC, László Németh
Details
screenshot of the regression in the testcase 2 (17.64 KB, image/png)
2012-07-03 05:41 UTC, László Németh
Details
Crash log (78.55 KB, text/plain)
2012-07-06 05:56 UTC, László Németh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description László Németh 2012-07-03 05:28:06 UTC
Created attachment 63761 [details]
testcase

The attached document crashes LibreOffice under Linux when Graphite is not disabled (SAL_DISABLE_GRAPHITE=0 ./soffice).

I have also prepared a small test file (without crash) with a strange Graphite regression, missing superiors in a commonly formatted paragraph.
Comment 1 László Németh 2012-07-03 05:37:15 UTC
Created attachment 63762 [details]
testcase 2

The content.xml of the ODF contains plain, continuous text: 

<text:p text:style-name="P1">Hatodikos voltam 1986-ban, amikor vakáció előtt pár nappal az osztályfőnököm egy, akkor még ritkaságnak számító személyi számítógépet mutatott be az osztálynak az utolsó matematikaórán. Az első találkozás hatására a nyári szünetben – ugyan</text:p>

But there is a regression in its Graphite layout, mixed normal and superior text (see screenshot). LibO Version 3.6 alpha0 works well this test file.
Comment 2 László Németh 2012-07-03 05:41:25 UTC
Created attachment 63763 [details]
screenshot of the regression in the testcase 2
Comment 3 Jean-Baptiste Faure 2012-07-04 22:07:16 UTC
Crash not reproducible for me with LO 3.6.0.0.beta2 under Ubuntu 11.10 x86_64 with gnome-shell.
In your testcase_2 you have a line spacing of 75%. Is it intended ?
I do not reproduce your horrible screenshot. ;-)

Best regards. JBF
Comment 4 László Németh 2012-07-05 02:06:28 UTC
It seems, this is a Graphite bug resulting problem and crashes only on 32-bit platforms (I have specified the platform in the bug report.), but it should be confirmed. Thanks for your testing.
Comment 5 László Németh 2012-07-05 03:08:15 UTC
(In reply to comment #3)
Yes, 75% is intended for this superscript letters, but it is not relevant to the bug. (By the way, default "single" line spacing of LibreOffice is 115% of the letter size, so 87% proportial value is the "real" single line spacing.)
Comment 6 Andras Timar 2012-07-06 04:29:04 UTC
It does not crash under Windows (32-bit).
Comment 7 László Németh 2012-07-06 05:53:20 UTC
It seems, this is a (significant. I have tested with several test file) problem of my platform/configuration/temporary files. Starting LibreOffice as root, solves this and other Graphite problems (eg. crashing with Graphite feature name of Linux Libertine G.) Many thanks for your tests.
Comment 8 László Németh 2012-07-06 05:56:05 UTC
Created attachment 63887 [details]
Crash log
Comment 9 László Németh 2012-07-06 06:23:31 UTC
Solution: Using Graphite extension (https://github.com/thanlwinsoft/groooext), the program set the Graphite cache size in ~/.profile

export SAL_GRAPHITE_CACHE_SIZE=2047

Removing this line the problem has been solved.