Bug 112022 - Writer repeatedly crashing for no apparent reason
Summary: Writer repeatedly crashing for no apparent reason
Status: RESOLVED DUPLICATE of bug 114064
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.6.2 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: wantBacktrace
Depends on:
Blocks:
 
Reported: 2017-08-25 10:59 UTC by Sam
Modified: 2017-11-26 16:31 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
error report (908.85 KB, text/plain)
2017-09-15 06:28 UTC, Sam
Details
error report (934.39 KB, text/plain)
2017-10-21 16:43 UTC, Sam
Details
two reports (91.69 KB, application/zip)
2017-11-25 18:32 UTC, Sam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam 2017-08-25 10:59:19 UTC
Description:
LibreOffice Writer keeps crashing for no apparent reason. While everything seems to be fine when working on an odt file, suddenly, out of the blue, LO crashes. The crash never really seems to be related to a particular task – maybe I was just typing text, or I was navigating the document, or I was changing a setting – and it may occur from anything within a few seconds to a few hours working on a file. The file may be a new one (almost empty) or an existing one. It happens both with the fresh and the still versions of LO.

This is the message that I use to get: "Due to an unexpected error, LibreOffice crashed. All the files you were working on will now be saved."

On the positive side, Document Recovery works fine always, I don't seem to have lost any data so far.

macOS Sierra 10.12.4, MacBook Pro early 2015

Steps to Reproduce:
1. open or create an odt file
2. write some text (no images, tables etc. needed)
3. go on for anything between one minute to one hour

Actual Results:  
LO Writer crashed: "Due to an unexpected error, LibreOffice crashed. All the files you were working on will now be saved."

Expected Results:
Writer should not have crashed


Reproducible: Sometimes

User Profile Reset: Yes. For a day or two it worked fine, then the crashing began again.

Additional Info:
All other software works fine on my computer. Thanks for any help!


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:55.0) Gecko/20100101 Firefox/55.0
Comment 1 Julien Nabet 2017-08-25 12:00:18 UTC
5.2 branch is EOL, could you give a try with a recent LO version (last stable one is 5.3.5)?
Comment 2 Sam 2017-08-25 12:15:49 UTC
(In reply to Julien Nabet from comment #1)
> 5.2 branch is EOL, could you give a try with a recent LO version (last
> stable one is 5.3.5)?

The same applies here using 5.3.5.2.

After years of successfully using Writer, the crashings began to occur only when I moved to a new Mac (Sierra). On my old Mac (Mountain Lion) Writer works impeccably.
Comment 3 Julien Nabet 2017-08-25 12:22:25 UTC
1) Since LO on Mac is 64bits.
Did you check you had Java 64 bits?
Indeed LO 64 bits needs Java 64 bits
(and LO 32 bits needs Java 32 bits).

2) Did you install any specific fonts?

3) Do you have any accessibility options enabled? If yes could you disable them for the test?
Comment 4 Sam 2017-08-25 12:37:56 UTC
(In reply to Julien Nabet from comment #3)
> 1) Since LO on Mac is 64bits.
> Did you check you had Java 64 bits?
> Indeed LO 64 bits needs Java 64 bits
> (and LO 32 bits needs Java 32 bits).
> 
> 2) Did you install any specific fonts?
> 
> 3) Do you have any accessibility options enabled? If yes could you disable
> them for the test?

1. Java here is Version 8 Update 144 (build 1.8.0_144-b01) (can't find info on whether 32 or 64 bit, but the Java Control Panel says "Your system has the recommended version of Java.")

2. Yes, lots of specific fonts installed.

3. no accessibility options activated AFAIK
Comment 5 Julien Nabet 2017-08-25 12:51:07 UTC
About Java, could you open a "Terminal" and give the result of:
java -version

For fonts, would it be possible you uninstall them temporarily to check if the crash could be related.

It'd be interesting too to have the backtrace (see https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#Mac_OSX:_How_to_get_debug_information)
Comment 6 Telesto 2017-08-25 12:57:08 UTC
@Sam
Is the apple crash reporter opening after the crash? The crash report could be helpful.
Comment 7 Alex Thurgood 2017-08-25 15:08:18 UTC
Currently there are several main possibilities for crashing on startup :

1) graphics chip switching problems (discrete/dedicated, especially certain Intel/Nvidia combinations);

2) no recognized Java JDK - you mention your Java version but don't say whether it is a JDK or a JRE - you *need* a JDK

3) incorrect permmissions - check to see whether the xattr bit is correctly set - if LibreOffice was installed without bypassing Gatekeeper security (even though it is a signed bundle), the xattr bit can be set and cause LO to crash on startup.

4) Screen display resolution / HiDPI support if outputting to a separate screen.

5) VoiceOver / Assistive Technology options, or apps that use these functions like Dragon Dictate.
Comment 8 Sam 2017-08-25 19:10:10 UTC
(In reply to Julien Nabet from comment #5)
> About Java, could you open a "Terminal" and give the result of:
> java -version

Done (JDK):

java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
Comment 9 Sam 2017-08-25 19:21:28 UTC
Note that these crashes do not occur at startup but "out of the blue", for no apparent reason -- I haven't found a way yet to reproduce them. Sometimes several hours' work cause no problems, and then suddenly a crash strikes.
Comment 10 Sam 2017-08-26 06:40:16 UTC
Don't know whether this is related, but I occasionally get this message:

Either another instance of LibreOffice is accessing your personal settings or personal settings are locked.
Simultaneous access can lead to inconsistencies in your personal settings. Before continuing, you should make sure user [username this "macbook"] closes LibreOffice on host [username "another macbook-air-1.home"].
Do you really want to continue?

I click Yes, and LO seems to work normally afterwards (till the next unexpected crash).
Comment 11 Alex Thurgood 2017-08-28 07:42:47 UTC
(In reply to Sam from comment #10)

> I click Yes, and LO seems to work normally afterwards (till the next
> unexpected crash).



This sounds like the bash user profile corruption/settings bug that Telesto mentioned in another bug report about LO crashing on OSX.

@Sam : if you create an extra new user account (for testing purposes) on your Mac, and then start LO from that account, does it still crash repeatedly ?
Comment 12 Alex Thurgood 2017-08-28 07:56:39 UTC
@Sam : by any chance, are you using Nuance Dragon Dictate ?
Comment 13 Sam 2017-08-28 08:29:07 UTC
No, I'm not using Nuance Dragon Dictate.
Comment 14 Sam 2017-09-14 04:55:17 UTC
(In reply to Telesto from comment #6)
> @Sam
> Is the apple crash reporter opening after the crash? The crash report could
> be helpful.

There is no Apple crash reporter message that I get. All I get is this, from LO:

===

Due to an unexpected error, LibreOffice crashed. All the files you were working on will now be saved. The next time LibreOffice is launched, your files will be recovered automatically.

The following files will be recovered:

- [name of 1st file]
- [name of 2nd file]
- etc.

===

I click ok, then this:

===

LibreOffice 5.3 Document Recovery

Libre Office will attempt to recover the state of the files you were working on before it crashed. Click "Start" to begin the process, or click "Discard" to cancel the recovery.

Status of recovered documents:

[a table with the headers] Document Name / Status
[1st column lists files, 2nd column says "Not recovered yet"]

===

The recovery works fine.
Comment 15 Sam 2017-09-14 06:43:40 UTC
(In reply to Alex Thurgood from comment #11)
> (In reply to Sam from comment #10)
> 
> > I click Yes, and LO seems to work normally afterwards (till the next
> > unexpected crash).
> 
> 
> 
> This sounds like the bash user profile corruption/settings bug that Telesto
> mentioned in another bug report about LO crashing on OSX.
> 
> @Sam : if you create an extra new user account (for testing purposes) on
> your Mac, and then start LO from that account, does it still crash
> repeatedly ?

I haven't tried, for practical reasons: Using my normal account, I have been able to use LO Writer for several days without it crashing a single time (up to now, when it just crashed again -- see comment #14). If I knew what steps to take to make it crash, I would of course create a new user account to see if it also happens there.
Comment 16 Sam 2017-09-15 06:28:08 UTC
Created attachment 136257 [details]
error report
Comment 17 Sam 2017-09-15 06:30:39 UTC
Comment on attachment 136257 [details]
error report

These crashes are definitely back again. The last two occurred while editing:

- a .DOC file
- View | Web
- Record Track Changes on
- Show Track Changes off

This time only one file was open when LO Writer crashed, and surprisingly, Document Recovery did not seem to work – the spinning beach ball did not disappear, and I had to force quit. Attached is the error message I then got.
Comment 18 Alex Thurgood 2017-09-15 07:26:31 UTC
(In reply to Sam from comment #16)
> Created attachment 136257 [details]
> error report

The trace you provided suggests on the face of it that Assistive Technology objects are being called that are no longer referenced or have been released, which appears to block the main thread.

Are you sure that you don't have any of the Assistive Technology options activated ? (System Prefs > Assistive Technology. 

As the problem seems to appear randomly, I am wondering maybe whether some AT key combo when you're typing might accidentally set this off ?


Other than that, perhaps a dodgy memory chip (clutching at straws, I'm afraid) ? No idea how one tests memory on MacOS.
Comment 19 Sam 2017-09-15 07:38:52 UTC
> The trace you provided suggests on the face of it that Assistive Technology
> objects are being called that are no longer referenced or have been
> released, which appears to block the main thread.
> 
> Are you sure that you don't have any of the Assistive Technology options
> activated ? (System Prefs > Assistive Technology. 
> 
> As the problem seems to appear randomly, I am wondering maybe whether some
> AT key combo when you're typing might accidentally set this off ?

Thanks. System Preferences | Accessibility | General: all items were ticked, so I have toggled them now.
Comment 20 Sam 2017-09-15 17:57:42 UTC
(In reply to Sam from comment #19)
> > The trace you provided suggests on the face of it that Assistive Technology
> > objects are being called that are no longer referenced or have been
> > released, which appears to block the main thread.
> > 
> > Are you sure that you don't have any of the Assistive Technology options
> > activated ? (System Prefs > Assistive Technology. 
> > 
> > As the problem seems to appear randomly, I am wondering maybe whether some
> > AT key combo when you're typing might accidentally set this off ?
> 
> Thanks. System Preferences | Accessibility | General: all items were ticked,
> so I have toggled them now.

No improvement, unfortunately: LO Writer just crashed again (the third time today) just after I opened an existing .doc file. The *only* thing I did was go to View and choose Web – and then it crashed. (Document Recovery worked fine, and there is no error report to submit.)
Comment 21 Sam 2017-09-18 12:48:39 UTC
The crashing continues after installing with LO 5.3.6.1.

Am at a loss. What can I do to help you experts find the source of the problem?
Comment 22 Sam 2017-09-24 06:43:04 UTC
Please see Comment #17 (attachment 136257 [details]) and Comment #20
Comment 23 Alex Thurgood 2017-09-26 07:07:41 UTC
(In reply to Sam from comment #22)
> Please see Comment #17 (attachment 136257 [details]) and Comment #20

Hmm, looking at the bottom of that trace, are you opening/editing/saving your documents to/from Apple's Cloud Drive as opposed to saving locally on the hard disk ? Just a shot in the dark I'm afraid.
Comment 24 Alex Thurgood 2017-09-26 07:13:16 UTC
(In reply to Sam from comment #21)
> The crashing continues after installing with LO 5.3.6.1.
> 
> Am at a loss. What can I do to help you experts find the source of the
> problem?

Ideally, a full backtrace using a nightly(daily) build of LibreOffice with symbols/debug-code included.

Unfortunately, there are no such versions currently available.
Comment 25 Alex Thurgood 2017-09-26 07:20:07 UTC
@Sam : could you check that you're not suffering from bug 98805 ?
Comment 26 Sam 2017-09-26 08:02:57 UTC
(In reply to Alex Thurgood from comment #23)
> (In reply to Sam from comment #22)
> > Please see Comment #17 (attachment 136257 [details]) and Comment #20
> 
> Hmm, looking at the bottom of that trace, are you opening/editing/saving
> your documents to/from Apple's Cloud Drive as opposed to saving locally on
> the hard disk ? Just a shot in the dark I'm afraid.

No, everything is done locally, on my hard disk.
Comment 27 Alex Thurgood 2017-09-26 08:14:22 UTC
Thanks. Then the only other way is to obtain a full backtrace from a debug-enabled build.
Comment 28 Sam 2017-09-26 08:17:13 UTC
(In reply to Alex Thurgood from comment #25)
> @Sam : could you check that you're not suffering from bug 98805 ?

Hmm, I can't see any connection ... If you were referring to comment 7 there, yes, I'm using the latest LO version:

Version: 5.3.6.1
Build ID: 686f202eff87ef707079aeb7f485847613344eb7
CPU Threads: 4; OS Version: Mac OS X 10.12.6; UI Render: default; Layout Engine: new; 
Locale: en-GB (en_GB.UTF-8); Calc: group
Comment 29 Sam 2017-09-26 08:22:04 UTC
In case this is relevant: after Document Recovery, I usually notice that the display of text is "slightly less clear" (difficult to describe) than it was before the crash. If I close the file and reopen it, it looks fine again.
Comment 30 Sam 2017-10-11 11:07:40 UTC
(In reply to Alex Thurgood from comment #24)
> (In reply to Sam from comment #21)
> > The crashing continues after installing with LO 5.3.6.1.
> > 
> > Am at a loss. What can I do to help you experts find the source of the
> > problem?
> 
> Ideally, a full backtrace using a nightly(daily) build of LibreOffice with
> symbols/debug-code included.
> 
> Unfortunately, there are no such versions currently available.

Once a debug-enabled build is available, how can I get notified?
Comment 31 Alex Thurgood 2017-10-12 07:18:41 UTC
(In reply to Sam from comment #30)


> 
> Once a debug-enabled build is available, how can I get notified?

Other than by consulting the daily builds list manually (or writing a script that will check and notify of any changes in the daily builds lists), you can't.
Comment 32 Sam 2017-10-21 16:43:10 UTC
Created attachment 137190 [details]
error report

Here's another error report that I got after a Force Quit. This time, the crash occurred while I was doing a simple "Replace All" (with view track changes on).

Perhaps there are details in this report that point to the source of the problem?
Comment 33 Sam 2017-10-24 15:20:08 UTC
(In reply to Alex Thurgood from comment #31)
> (In reply to Sam from comment #30)
> 
> 
> > 
> > Once a debug-enabled build is available, how can I get notified?
> 
> Other than by consulting the daily builds list manually (or writing a script
> that will check and notify of any changes in the daily builds lists), you
> can't.

(In reply to Alex Thurgood from comment #24)
> (In reply to Sam from comment #21)
> > The crashing continues after installing with LO 5.3.6.1.
> > 
> > Am at a loss. What can I do to help you experts find the source of the
> > problem?
> 
> Ideally, a full backtrace using a nightly(daily) build of LibreOffice with
> symbols/debug-code included.
> 
> Unfortunately, there are no such versions currently available.

I'm now using Version: 5.4.4.0.0+ (nightly build).

How do I provide you with symbols/debug-code next time it crashes? (There was another crash, but again no error report.)
Comment 34 Alex Thurgood 2017-11-06 08:49:16 UTC
(In reply to Sam from comment #33)


> How do I provide you with symbols/debug-code next time it crashes? (There
> was another crash, but again no error report.)

You need XCode and the lldb debugger (provided with the XCode command line tools as an extra installation after first launch of XCode).

1) From a terminal, start lldb and point to the app to load into the debugging session :

lldb /Applications/LibreOfficeDev.app

2) wait for it to load until you see something like this :

(lldb) target create "/Applications/LibreOfficeDev.app"
Current executable set to '/Applications/LibreOfficeDev.app' (x86_64).

3) then type

run 

and the application will start. Output will be channelled through the debugging session in the terminal. You can enter various lldb commands to set breakpoints, obtain backtraces, follow threads, examine register content, etc.

4) When a crash occurs, try typing, in the debugging session in the terminal:

bt all

and wait for the output to appear on the terminal. This output can be copied to a text editor and saved for posting here (or zipped, if too big).

5) Type c to continue with the debugging session or q to quit.
Comment 35 Sam 2017-11-25 18:32:13 UTC
Created attachment 137987 [details]
two reports
Comment 36 Sam 2017-11-25 18:33:04 UTC
Comment on attachment 137987 [details]
two reports

Thanks much! I've now installed Xcode and it works fine.

So I've started LO, and after working a couple of minutes on a Writer file, it froze and I had to force quit.

Attached are two files: the output from the terminal (crash1) and the problem report generated from Apple.
Comment 37 Sam 2017-11-25 18:44:05 UTC
The force quit mentioned in the previous comment turns out not to have happened: there is the spinning wheel, and even using Cmd+Opt+Esc and choosing LibreOfficeDev does not close the application. It's still frozen, with the wheel. This has never happened before (maybe this is in connection with the debugging session?) What can I do?
Comment 38 Sam 2017-11-25 21:17:09 UTC
Update: The problem mentioned in Comment # 37 is resolved (I've now been able to quit the app properly.)
Comment 39 Sam 2017-11-26 10:03:31 UTC
I know this is slightly off-topic, but I fail to find basic information (targeted at non-superusers) on how to use Xcode Command Line Tools. For example, how do I properly stop a debugging session (without causing LO to freeze)?
Comment 40 Dieter 2017-11-26 10:34:37 UTC
Sam, since the bug summary is a very general description and I don't want to read all comments written since your first report, it is hardly impossible for me to make a contribution to confirm your bug. I assume that a lot of people who might be willing to help, would agree. So is your actual bug description and the steps to reproduce still up to date? If not, can you give an update and narrow down the bug summary?
Comment 41 Telesto 2017-11-26 10:46:39 UTC
Thanks for the BT. Looks like document specific issue (as far I can tell; not a Dev); A change related to page layout change because of a change related to footnotes. For example cutting a footnote (or something like that).

So a sample file is needed & a list of exact steps to reproduce.
Comment 42 Sam 2017-11-26 15:36:15 UTC
(In reply to Dieter Praas from comment #40)
> Sam, since the bug summary is a very general description and I don't want to
> read all comments written since your first report, it is hardly impossible
> for me to make a contribution to confirm your bug. I assume that a lot of
> people who might be willing to help, would agree. So is your actual bug
> description and the steps to reproduce still up to date? If not, can you
> give an update and narrow down the bug summary?

Thanks. I have now summarised all the info and created Bug 114064.
Comment 43 Dieter 2017-11-26 16:31:03 UTC

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