LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-18-2011, 12:31 PM   #1
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,188

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
OpenOffice/LibreOffice writer uses 100% CPU time, 100% memory, workaround someone?


I am trying to open a document in LibreOffice or OpenOffice which was saved in Word 2007 by a co-worker.
We have both written some parts, and the last step was that he integrated my part in his part, saved it as .DOC and sent it to me.
When I try to open this document in LibreOffice or OpenOffice, CPU usage by soffice.bin skyrockets to 100%, all memory is being used up until the soffice.bin process is killed by the kernel.
So far I have tried to open this document in:
LibreOffice 3.3.2 Debian Unstable, kernel 2.6.32-5-686
OpenOffice 3.2.1 Debian Squeeze, kernel 2.6.32-5-686
OpenOffice 3.2.0 Debian Squeeze, kernel 2.6.32-3-686
OpenOffice 2.4.1 Debian Lenny, kernel 2.6.26-2-686

All without succes. I tried to open the document in Word 2000, where it opened all right but the layout was completely snafu.
I also tried to open it in Word 2003, and saved it again, both as DOC and DOCX.
I tried to open the DOCX in OpenOffice 3.2.1. It opens all right, but as soon as I scroll past a certain part in the document, CPU usage skyrockets.
When I open the freshly re-saved .DOC version in OO 2.4.1 CPU goes to 100% immediately.

Any suggestions as how to work around this? The file size is only 2.7 MB, and I have a bit of a problem telling my co-worker I cannot work on our file because I am using Linux. You know how it works... Besides we are 8000 km apart so there is only e-mail exchange, we can not work on each other's computer.

If someone wants to reproduce this, PM me and I'll send a link to the file in question.

--Edit: Oops forgot to mention my system. Added behind the OO versions.

jlinkels

Last edited by jlinkels; 04-18-2011 at 01:49 PM.
 
Old 04-18-2011, 12:37 PM   #2
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,185

Rep: Reputation: 813Reputation: 813Reputation: 813Reputation: 813Reputation: 813Reputation: 813Reputation: 813
Quote:
Originally Posted by jlinkels View Post
as soon as I scroll past a certain part in the document, CPU usage skyrockets.
What is the doc doing at that point?

Have you tried rich-text format?
 
Old 04-18-2011, 12:42 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
You could try opening the docx, using Ctrl+A and Ctrl+C and, if that works, pasting into a new document ...

EDIT: if you have OOo or LO on the same system as Word 2003, you could do the above on that system ...

Last edited by catkin; 04-18-2011 at 12:44 PM.
 
Old 04-18-2011, 02:20 PM   #4
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,188

Original Poster
Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
Quote:
Originally Posted by DavidMcCann View Post
What is the doc doing at that point?
My report was not accurate. The CPU skyrocketed when I was scrolling, not at a certain point. The time between start of the scroll and the 100% CPU was variable.
Quote:
Originally Posted by DavidMcCann View Post
Have you tried rich-text format?
No, but I did after your post. Saved as RTF. Opened it in OOWriter 3.2.1. Took about 5 minutes 100% CPU but then the document opened. Unfortunately about half of all picture were not shown as picture but as pages of hex dump.

jlinkels
 
Old 04-18-2011, 02:24 PM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,188

Original Poster
Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
Quote:
Originally Posted by catkin View Post
You could try opening the docx, using Ctrl+A and Ctrl+C and, if that works, pasting into a new document ...
I doesn't work. When I open the document in OOWriter 3.2.1 and don't do anything, the CPU load stays down. As soon as I do something in the document (placing my cursor in it, Menu -> Edit -> Select All) the CPU goes up full load.
Quote:
Originally Posted by catkin View Post
EDIT: if you have OOo or LO on the same system as Word 2003, you could do the above on that system ...
I am running OO on Linux. My first post was not complete, added that information now. I don't have regular access to a Windows machine. I run a few systems with VM's but that is only to access my on-line banking with IE6...

More info in the next post.

jlinkels

Last edited by jlinkels; 04-18-2011 at 07:16 PM.
 
Old 04-18-2011, 02:37 PM   #6
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,188

Original Poster
Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
OK, thinking along the lines of asking my co-worker to cut some parts from the document and resave it, I got the brilliant idea to do that myself, rather than admitting shamefully that Linux actually cannot replace Windows.

What actually happened is this:
  • My colleague created a document in Word 2007 and sent it to me. I was able to open it in OO-writer
  • Then I wrote some chapters in OO-writer which included pictures and tables
  • These chapters I saved as DOC and submitted those to my colleage
  • My colleague edited his DOC file and integrated my chapters in his file, saved it as DOC and sent it to me again
  • This time I could not open the DOC file anymore, experiencing the problems I just explained.
I had done so before, and in course of time my colleague has split the document in two as to make the size more managable. Part #1 also consists of an integration of his pieces and my chapters and I still can open that without problems, altough that file is about 8 MB in size.

What I did eventually, while I had the file open in Word 2000, I cut out the chapter I had submitted last. Saved the file again, and now I could open the file in OOWriter without any problems.

So recapitulating, we had a Word DOC, pasted some parts from another DOC created with OO-writer, saved that as DOC in Word, and then it could not be opened anymore regardless of the version of OO.

I still think this is a bug, in my mind an application should never run out of control when the input file is not consistent or contains errors.

Thanks for who answered me, I filed this bug also against the Debian bug system.

jlinkels
 
Old 08-17-2012, 07:02 PM   #7
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-15 with Cinnamon & KDE
Posts: 1,367
Blog Entries: 3

Rep: Reputation: 86
Quote:
Originally Posted by jlinkels View Post
I am trying to open a document in LibreOffice or OpenOffice which was saved in Word 2007 by a co-worker. We have both written some parts, and the last step was that he integrated my part in his part, saved it as .DOC and sent it to me. When I try to open this document in LibreOffice or OpenOffice, CPU usage by soffice.bin skyrockets to 100%, all memory is being used up until the soffice.bin process is killed by the kernel.
...

Yet More Follow-up:
TIME+ runtime is now 23h55min... all the other values remain the same.
Can someone tell me how to force a "crash dump" or similar process "trace back" so that we know what is going on?

More Follow-up:
I let the workstation "idle" overnight. The LO-writer process now has 17h57min of TIME+ runtime. One CPU continues at 100% while the other readings -- VIRT, MEM%, SWP-bar, MEM-bar -- are unchanged.
What in Sam Hill is going on!!!

Follow-up:
After over 40 minutes "idle" at the user interface, the process continues to run at 100% CPU. Total process runtime is 1h39min. After this much elapsed time without any sort of task management intervention, I can't even guess what the code might be doing.

I am having similar problems with LibreOffice Writer v3.4.4-0ubuntu1.4 and Linux Mint-12 with Cinnamon.

In my case, I have a simple DOCX file. It consists of about 30 bullet statements without using a formal "bullet" style. Instead, they prefix each point with "* space space".

I have enabled Change Recording and then step through the document adding comments to each bullet point of the original document. On occasion I press ENTER and LO-Writer formats the preceding "* sp sp" paragraph as a "bullet" style. I press CTRL-Z to undo that formatting and continue my edits.

After a while of working with the document, I mis-format a 'graph into a formal "bullet" style and try CTRL-Z dance. The CPU goes to 100% (as reported by 'htop') and stays there. Neither the value of VIRT (885M) nor the value of MEM% (1.5) change. Both the MEM bar and the SWP bar are stable. One of the five CPU's is pegged to 100% the others are doing normally.

Thanks in advance,
~~~ 0;-Dan

Last edited by SaintDanBert; 08-18-2012 at 06:48 PM. Reason: clarification and typo correction
 
Old 08-20-2012, 01:42 PM   #8
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-15 with Cinnamon & KDE
Posts: 1,367
Blog Entries: 3

Rep: Reputation: 86
Quote:
Originally Posted by SaintDanBert View Post
[color=green][indent]
Yet More Follow-up:
TIME+ runtime is now 23h55min... all the other values remain the same.
Can someone tell me how to force a "crash dump" or similar process "trace back" so that we know what is going on?
...
I tried to use strace but could not discover the right things to do. However, 'strace', that is trace system calls is not really what I'm looking for. I'm really looking to discover where we are on the function call stack.

Is there some way to attach gdb to an already running program process, and then:
Code:
prompt$  ... some command to attach gdb ...

gdb>  CTRL-C
...
gdb>  bt
...
back trace output
...
100 years ago I used to know how to do this, but I've slept since then.
~~~ 0;-Dan
 
Old 08-25-2012, 02:44 PM   #9
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-15 with Cinnamon & KDE
Posts: 1,367
Blog Entries: 3

Rep: Reputation: 86
Bump!!!

This problem happened again.
I still cannot get a back trace or stack dump from a running process.

Can anyone tell me how to do that?
~~~ 0;-Dan
 
Old 08-28-2012, 04:21 PM   #10
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-15 with Cinnamon & KDE
Posts: 1,367
Blog Entries: 3

Rep: Reputation: 86
I guess no one really cares about Libre Office mis-behavior...

Sadly,
~~~ 0;-< Dan
 
Old 08-29-2012, 07:57 PM   #11
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 20 x86_64
Posts: 393

Rep: Reputation: 47
Quote:
Originally Posted by SaintDanBert View Post
I guess no one really cares about Libre Office mis-behavior...Dan
I hope they do!
I can't be sure, but this bug report <https://bugs.freedesktop.org/show_bug.cgi?id=39006> looks like a similar problem to the one you are experiencing.
Have you been able to try another version to see if behaves differently? I note that LibreOffice 3.6 is available from the LO website for download...it might be worth a try.

Cheers,
Terry
 
1 members found this post helpful.
Old 08-30-2012, 02:50 PM   #12
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-15 with Cinnamon & KDE
Posts: 1,367
Blog Entries: 3

Rep: Reputation: 86
Quote:
Originally Posted by terry-duell View Post
I hope they do!
I can't be sure, but this bug report <https://bugs.freedesktop.org/show_bug.cgi?id=39006> looks like a similar problem to the one you are experiencing.
Have you been able to try another version to see if behaves differently? I note that LibreOffice 3.6 is available from the LO website for download...it might be worth a try.

Cheers,
Terry
I'm aware of newer editions of LO, but I'm running Mint-12 (Ubuntu 11.10) and they are not in the repositories. In a prior life, I side loaded LO over and older edition of Ubuntu without joy. As a result I'm shy to FUBAR again.

Thanks for the bug-report link. I'll go and read.
~~~ 0;-Dan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
time yielding CPU% > 100 arg3t3k.senvx Programming 7 09-21-2006 02:25 PM
100% cpu use 100% of the time serafean Linux - Newbie 4 05-04-2006 04:36 PM
cpu usage stuck to 100% all the time mohama Linux - Software 0 03-05-2006 02:12 PM
ubuntu smp: why is kswapd0 taking 100% CPU time? eantoranz Linux - Software 0 10-18-2005 03:38 PM
Grip - rips are very slow and take 100% cpu time Mad Merlin Linux - Software 3 05-02-2004 01:16 PM


All times are GMT -5. The time now is 12:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration