Bug 94145 - Writer crashed while editing text with Bad Allocation (Graphite fonts with pnum)
Summary: Writer crashed while editing text with Bad Allocation (Graphite fonts with pnum)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-11 20:52 UTC by Jamie Dimmel
Modified: 2017-05-05 23:11 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
List of paragraph styles with special Graphite font features being used (828 bytes, text/plain)
2015-09-11 21:04 UTC, Jamie Dimmel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jamie Dimmel 2015-09-11 20:52:21 UTC
User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Build Identifier: LibreOffice 5.0.1.2

On 2015-09-09 I had 3 crashes in a row while editing text in Writer (the last 2 may have been holdovers from the first as I hadn't restarted). After restart all was ok then, but today it happened again.
Error is titled ""LibreOffice 5.0 - Fatal Error" and message is "bad allocation"; then Writer closes, and recovers doc on re-open.
After the first crash this morning I uninstalled and hid three Updates Microsoft had pushed out on the 9th, thinking they were the issue. The updates were KB3086255, KB3092627, & KB3087039, all relating to Opentype. I thought these were the issue as my doc is using the Graphite versions of Linux Libertine & Biolinum fonts, and I am making extensive use of the Graphite functionality (to create small capitals, old style numbers, and arbitrary fractions).
Unfortunately it just happened again, so the updates don't seem to be the issue. In this case I know exactly what happened, as I had just pasted some text in (as unformatted) from a PDF, and I applied one of my Paragraph Styles to the text, but missed the last line. I deleted the paragraph mark at the end of the last styled line to join it to the unformatted one below, when BAM the error popped up again. Unfortunately there is no exact way I can reproduce this. In one past case I was simply typing text in the middle of a line and it happened, and in a previous I had just deleted a character.
Note that I was working on a different document yesterday that did NOT use the Graphite fonts or any of their features and it didn't crash on me all day.
Also, the doc I am working on is 114 pages (but with only 3 small graphics, the rest all text).

Reproducible: Sometimes




[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: yes

Will include attachments showing the styles with Graphite features I am using, along with the document itself.


Reset User Profile?No
Comment 1 Jamie Dimmel 2015-09-11 21:04:03 UTC
Created attachment 118623 [details]
List of paragraph styles with special Graphite font features being used

This is just a list of the paragraph styles in the doc that are using special features of the  Graphite font rendering engine, along with the specific features being used per font.
Comment 2 Buovjaga 2015-09-18 16:49:34 UTC
Maybe you could try to get a backtrace of the crash: https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg

Before attempting that, you might try this trick: https://wiki.documentfoundation.org/UserProfile#Resolving_corruption_in_the_user_profile
Comment 3 Jamie Dimmel 2015-09-18 17:37:29 UTC
I don't think this has to do with a corrupt profile, as I have no problems with heavy editing when using fonts that don't use Graphite. Also, I had wiped my profile before installing v5, so the profile is fairly new.

Also, right after filing this bug, I tried removing the "pnum=1" option in the font designation (which turns on proportional fonts), along with "quot=1" (which handles smart quotes), and haven't had any crashes of this type since. The quot feature I turned off because LibreOffice itself can take care of that, and I don't think that was an issue. But the proportional numbering was one I thought might be a culprit, as several times when I would type there would be a lot of rearranging of text (as in repositioning characters) that I thought might have been caused by this (there still is to some extent, but not nearly as much).

It looks like the pnum option may have been the issue (not saying it is, as I don't know enough about the Graphite features, but since I removed it I haven't had the issue.
Comment 4 Buovjaga 2015-09-19 13:24:12 UTC
Ok, I tried some simple editing like you describe for a few minutes, using Linux Libertine G:onum=1&pnum=1&frac=1&quot=1

No crashing.

Win 7 Pro 64-bit, Version: 5.0.1.2 (32-bit)
Build ID: 81898c9f5c0d43f3473ba111d7b351050be20261
Locale: fi-FI (fi_FI)
Comment 5 Pierre C 2016-03-03 08:46:29 UTC
It seems that I have the same problem. Writer crashes often but not always, and not at the same time. Sometimes I can work 15 minutes and sometimes a few seconds. So I went back to 4.4.7.2.
I'm using graphite fonts within all my documents
Comment 6 tommy27 2016-10-13 04:18:18 UTC
status NEW according to previous comment.

@Jamie and Pierre
are you still experiencing this issue with latest LibO 5.1.5 or 5.2.2 releases?
Comment 7 Pierre C 2016-10-13 09:56:31 UTC
I've no more crashes. But I can't work with OpenGL enabled, due to very low performance.
https://bugs.documentfoundation.org/show_bug.cgi?id=100120

So this is just no crashes if OpenGL disabled when using graphite fonts and their specials features
Comment 8 Buovjaga 2016-10-13 10:00:45 UTC
(In reply to Pierre C from comment #7)
> I've no more crashes. But I can't work with OpenGL enabled, due to very low
> performance.
> https://bugs.documentfoundation.org/show_bug.cgi?id=100120
> 
> So this is just no crashes if OpenGL disabled when using graphite fonts and
> their specials features

So could you get a backtrace of the crash? https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg
Comment 9 Xisco Faulí 2017-05-05 16:03:59 UTC
Hello Jamie,

Do you still reproduce the crash wit LibreOffice 5.3 ?Could you please attach the document that caused the crash?
Comment 10 Jamie Dimmel 2017-05-05 21:12:52 UTC
(In reply to Xisco Faulí from comment #9)
> Hello Jamie,
> 
> Do you still reproduce the crash wit LibreOffice 5.3 ?Could you please
> attach the document that caused the crash?

Have not had this crash now for over a year that I can remember. I reformatted the document, and have upgraded LibreOffice.

You can close this bug if you want, I do not experience it anymore.
Comment 11 Xisco Faulí 2017-05-05 23:11:45 UTC
Ok, Closing as RESOLVED WORKSFORME.
Feel free to reopen it if you reproduce the problem again in the future