Bug 56527

Summary: FILESAVE: soffice.bin crashes when saving in .doc format
Product: LibreOffice Reporter: Dhruv <dhruvtanwar>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: critical CC: serval2412
Priority: medium    
Version: 3.6.2.2 release   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Generic Resume Format Template for editing
backtrace log
apt-cache-show-libreoffice
apt-cache-show-libreoffice-dbg

Description Dhruv 2012-10-29 14:58:48 UTC
Editing a .doc file; when saving for the first time, prompt appears for warn when not saving in .odt. After selecting save in Microsoft / Windows XP, bottom toolbar pane shows  message "Exporting", then Writer first freezes and within seconds crashes completely. 

Restarting Writer results in File recovery dialogue, and recovery of file results in loss of all edits done to the document, as the recovered version is the original file.

Information from Ubuntu Crash Report

Executable Path: /usr/lib/libreoffice/program/soffice.bin
Package: libreoffice-core 1:3.6.2~rc2-0ubuntu3
Problem Type: Crash
Title: soffice.bin crashed with SIGSEGV in SwAnchoredObject::FindPAgeFrmOfAnchor()
ApportVersion: 2.6.1-0ubuntu6
Architecture: i386
Comment 1 Dhruv 2012-10-29 15:00:54 UTC
Using Ubuntu 12.10 (fresh install). However, the bug also exists when this version of LibreOffice is installed on 12.04 LTS.
Comment 2 Julien Nabet 2012-10-29 20:36:53 UTC
Do you reproduce this on any doc or on a specific file? If specific, could you attach it so we can try to reproduce the crash?
Comment 3 Dhruv 2012-10-29 21:28:30 UTC
Created attachment 69258 [details]
Generic Resume Format Template for editing

One sample .doc file attached, which upon editing and saving reproduces the crash.
1. Open the document
2. Make any edit
3. Save (select "Use Microsoft Word 97/2000/XP/2003 Format")
Crash happens, with momentary freeze before that.
Comment 4 Dhruv 2012-10-29 21:32:45 UTC
This can be reproduced on other documents that were originally created in Microsoft Word. The attached file can still be edited and saved perfectly without any problem in LibreOffice 3.5.4.2 Build ID: 350m1(Build:2).
Comment 5 Julien Nabet 2012-10-29 22:03:43 UTC
On pc Debian x86-64 with 3.5 and 3.6 both updated today, I don't reproduce the crash.
However, I can reproduce the crash with Windows Vista and LO 3.6.2.2. (I didn't try to retrieve a bt)
Comment 6 Dhruv 2012-10-29 22:23:27 UTC
Crash happens when using Ubuntu 12.10 (fresh install) x86-32 and also when using this version of LibreOffice on Ubuntu 12.04 LTS x86-32.
Comment 7 Dhruv 2012-10-29 22:25:43 UTC
With all updates current.

(In reply to comment #6)
> Crash happens when using Ubuntu 12.10 (fresh install) x86-32 and also when
> using this version of LibreOffice on Ubuntu 12.04 LTS x86-32.
Comment 8 Julien Nabet 2012-10-29 22:28:51 UTC
Dhruv: just for the test, could you give a try to 3.6.3 LO pre release? (see http://www.libreoffice.org/download/pre-releases/)
If you can't/don't want, could you try to retrieve an useful backtrace? (see http://wiki.documentfoundation.org/BugReport#How_to_get_a_backtrace_.28on_Linux.29)
Comment 9 Dhruv 2012-10-29 22:43:26 UTC
Okay, installing the debug info packages, will revert soon with an update on the backtrace.
(In reply to comment #8)
> Dhruv: just for the test, could you give a try to 3.6.3 LO pre release? (see
> http://www.libreoffice.org/download/pre-releases/)
> If you can't/don't want, could you try to retrieve an useful backtrace? (see
> http://wiki.documentfoundation.org/BugReport#How_to_get_a_backtrace_.
> 28on_Linux.29)
Comment 10 Dhruv 2012-10-30 00:24:37 UTC
Created attachment 69266 [details]
backtrace log

Attached is the backtrace log. Additionally, while the process was running in terminal, the following message was also displayed in terminal (may not be part of the backtrace, unsure)

Fontconfig warning: "/usr/lib/libreoffice/share/fonts/truetype/fc_local.conf", line 13: Having multiple <family> in <alias> isn't supported and may not works as expected
Comment 11 Julien Nabet 2012-10-30 07:01:32 UTC
The bt is quite broken:
ImportError: No module named libreoffice.sal
ImportError: No module named libreoffice.cppu
ImportError: No module named libreoffice.svl
etc.

Does libreoffice-dbg version correspond exactly to your LO version?
(apt-cache show libreoffice
apt-cache show libreoffice-dbg)
apt-get remove --purge your current version and revert back to LO version from Ubuntu repo or your ppa, then install debug package from it.
Also, it could be interesting you rename your LO profile (see http://wiki.documentfoundation.org/UserProfile).

Other questions:
- did you install any specific font?
- did you install any LO extensions?
- what's your Java version?
Comment 12 Dhruv 2012-10-30 07:48:25 UTC
Created attachment 69287 [details]
apt-cache-show-libreoffice
Comment 13 Dhruv 2012-10-30 07:49:00 UTC
Created attachment 69288 [details]
apt-cache-show-libreoffice-dbg
Comment 14 Dhruv 2012-10-30 07:54:39 UTC
Hello,

Added output of libreoffice-dbg version and LO version (see attached files please). For Java version: I don't believe I have java installed on this machine at the present time as it is a fresh install from the latest 12.10 image, running with only the updates as installed by update manager.

java -showversion
The program 'java' can be found in the following packages:
 * default-jre
 * gcj-4.6-jre-headless
 * gcj-4.7-jre-headless
 * openjdk-7-jre-headless
 * openjdk-6-jre-headless
Try: sudo apt-get install <selected package>

java -version
The program 'java' can be found in the following packages:
 * default-jre
 * gcj-4.6-jre-headless
 * gcj-4.7-jre-headless
 * openjdk-7-jre-headless
 * openjdk-6-jre-headless
Try: sudo apt-get install <selected package>

This is a clean install of Ubuntu 12.10, with no other installations at all except for Google Chrome Browser. No additional fonts installed. No LO extensions installed.Version of LO in use is the one that was shipped with install image of Ubuntu 12.10 (barring updates via update manager, if any).


(In reply to comment #11)
> The bt is quite broken:
> ImportError: No module named libreoffice.sal
> ImportError: No module named libreoffice.cppu
> ImportError: No module named libreoffice.svl
> etc.
> 
> Does libreoffice-dbg version correspond exactly to your LO version?
> (apt-cache show libreoffice
> apt-cache show libreoffice-dbg)
> apt-get remove --purge your current version and revert back to LO version
> from Ubuntu repo or your ppa, then install debug package from it.
> Also, it could be interesting you rename your LO profile (see
> http://wiki.documentfoundation.org/UserProfile).
> 
> Other questions:
> - did you install any specific font?
> - did you install any LO extensions?
> - what's your Java version?
Comment 15 Julien Nabet 2012-10-30 08:50:38 UTC
Dhruv: first, thank you for your patience.

So ok, the packages have same version. Could you install openjdk-6-jre for the test + rename your LO profile so we force LO to redetect everything?
Comment 16 Dhruv 2012-10-30 09:43:02 UTC
No problem, thank you for all your help and guidance.
Step 1:
As suggested, installed java, but I think I installed 1.7:
java -version
java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.3) (7u9-2.3.3-0ubuntu1~12.10.1)
OpenJDK Client VM (build 23.2-b09, mixed mode, sharing)
Since last exchange of message I have also installed package "ubuntu restricted extras", which installed MS core Fonts package for core Microsoft Fonts.

Step 2:
Reset LO Profile by following steps as outlined in the wiki: Closed all LibreOffice instances, renamed the folder with  user profile (by changing, for example, "user" by "user-old"). 

Step 3:
1. Opened the document
2. Made a one line edit.
3. Saved (select "Use Microsoft Word 97/2000/XP/2003 Format")
Crash still happens. Problem persists.


(In reply to comment #15)
> Dhruv: first, thank you for your patience.
> 
> So ok, the packages have same version. Could you install openjdk-6-jre for
> the test + rename your LO profile so we force LO to redetect everything?
Comment 17 Dhruv 2012-11-01 07:04:48 UTC
Julien, is there anything else that you need in terms of info?
Comment 18 Julien Nabet 2012-11-01 07:14:34 UTC
dhruv: could you uninstall completely your LO version and try the prerelease 3.6.3 RC2 (see http://www.libreoffice.org/download/pre-releases/)?

I ask this because you and reproduce this on 3.6.2 (you with Ubuntu, me with Vista) and I don't reproduce this on 3.6 sources.
Of course, a test with 3.6 sources some days ago means it's slightly different from 3.6.3 but perhaps we'll be lucky.
Comment 19 Dhruv 2012-11-03 05:55:03 UTC
Hi Julien,
Sorry, but the message I get on the pre release download page is "There's presently no current pre-release version available, stay tuned for 3.6.4 builds, scheduled for late November 2012."
Is there any other way that I can install 3.6.3 on Ubuntu 12.10?
Comment 20 Julien Nabet 2012-11-03 07:16:27 UTC
Dhruv: it's because 3.6.3 has been released Thursday. So it's no more a pre release.
In brief, you can just go there: http://www.libreoffice.org/download/
Comment 21 Dhruv 2012-11-04 07:15:41 UTC
Julien: As suggested, I uninstalled completely LO 3.6.2 and followed the download and installation instructions for 3.6.3 on my machine running Ubuntu 12.10

Running the 3.6.3 LO, I am able to open, edit and close the file: The crash does not happen, so I guess the problem is resolved in the new version.

I'd like to thank you for all the help and assistance in working through this problem log. I shall install this version on my other machine, running Ubuntu 12.04 as well, and I am guessing that the problem will be resolved there as well.

Many thanks again! Much appreciated.
Regards,
Dhruv
Comment 22 Julien Nabet 2012-11-04 09:21:26 UTC
Great for your Dhruv!
I put WFM instead of FIXED since there's not any specific fix which explains why it works with 3.6.3
Comment 23 Dhruv 2012-11-04 11:13:38 UTC
Yup! Thanks!
(In reply to comment #22)
> Great for your Dhruv!
> I put WFM instead of FIXED since there's not any specific fix which explains
> why it works with 3.6.3