Issue 98532 - Writer freezes when opening document
Summary: Writer freezes when opening document
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: OOo 3.0.1
Hardware: PC All
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-27 16:00 UTC by cjwhite
Modified: 2017-05-20 11:18 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description cjwhite 2009-01-27 16:00:42 UTC
Writer is freezing after loading a document.  The document was created in
Writer, saved in native odt format.  I have been working on the document for
several weeks.  After adding several pages of documentation, I saved the
document then shutdown.

On restart, the document loads, displays the current view where I left off
editing, but then freezes.  soffice.bin soars to 100% CPU utilization.  The
entire window is frozen, no refresh of any contents, including the menus, status
bar.

This happens in the following versions:
  Linux i586 RH9 - 2.4.2
  Linux i586 OpenSuse 11.1 - OOO300m9
  Linux i586 OpenSuse 11.1 - OOO300m15 Build 9379 (3.0.1)
  Windows Vista - 3.0.0 OOO300m9 Build 9358

Exact same behavior on all platforms, except that on windows, it detected a
crash, tried to generate a crash report, but that then froze creating the crash
report.

For a brief moment after displaying the current page of the document, I can
select text.  If I keep mouse down and drag, I can scroll through the entire
document.  After releasing the mouse, it freezes, and this time I have to switch
to a console (Ctrl-Alt-F1) to kill it, as the mouse in X is locked up.

Memory seems to stay static.

I tried all of the following to no effect:
 - disabling Java
 - disabling autosave
 - disable all writing aids
 - disabled update fields / charts
 - opening read-only,

After killing Writer and trying again, it always asks about trying to recover
the document.  Even in read-only mode, it tries to recover the read-only version.

I have been able to open the document in KOffice and immediately resave it in
ODT, and then I can successfully open it in Writer, but significant formatting
has been lost in the process.

Using the 3.0.1 build on Linux, attached to soffice.bin using gdb and got the
following backtrace while it's stuck at 100%:

#0  0xb7cd55b5 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0xb7ef89b1 in rtl_cache_free () from
/opt/openoffice.org3/program/../basis-link/ure-link/lib/libuno_sal.so.3
#2  0xb7ef883c in rtl_freeMemory () from
/opt/openoffice.org3/program/../basis-link/ure-link/lib/libuno_sal.so.3
#3  0x08048f43 in ?? ()
#4  0x08048f6e in operator delete(void*) ()
#5  0xacf009b4 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#6  0xacefffe5 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#7  0xacf00129 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#8  0xacf0082b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#9  0xacf01328 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#10 0xacf00043 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#11 0xad025516 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#12 0xacf7c370 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#13 0xacf7b935 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#14 0xacf5feec in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#15 0xacf60450 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#16 0xacf61407 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#17 0xacf46ecd in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#18 0xacf49923 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#19 0xacf4a0eb in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#20 0xacf4a7e1 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#21 0xaced0f30 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#22 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#23 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#24 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#25 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#26 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#27 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#28 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#29 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#30 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#31 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#32 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#33 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#34 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#35 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#36 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#37 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#38 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#39 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#40 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#41 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#42 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#43 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#44 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#45 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#46 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#47 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#48 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#49 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#50 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#51 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#52 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#53 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#54 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#55 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#56 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#57 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#58 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#59 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#60 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#61 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#62 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#63 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#64 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#65 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#66 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#67 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#68 0xacecea2b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#69 0xaced1799 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
---Type <return> to continue, or q <return> to quit---
#70 0xaceceacd in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#71 0xacef74dc in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#72 0xacef7888 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#73 0xacef825b in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#74 0xacef8b03 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#75 0xacef9a6e in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#76 0xace9e2ce in ViewShell::LayoutIdle() () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#77 0xacfad42f in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#78 0xacfad580 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libswli.so
#79 0xb694ce73 in Timer::Timeout() () from
/opt/openoffice.org3/program/../basis-link/program/libvclli.so
#80 0xb694ca9f in Timer::ImplTimerCallbackProc() () from
/opt/openoffice.org3/program/../basis-link/program/libvclli.so
#81 0xb4b6f5a7 in X11SalData::Timeout() const () from
/opt/openoffice.org/basis3.0/program/libvclplug_genli.so
#82 0xb51fabfb in ?? () from
/opt/openoffice.org/basis3.0/program/libvclplug_gtkli.so
#83 0xb51fac21 in ?? () from
/opt/openoffice.org/basis3.0/program/libvclplug_gtkli.so
#84 0xb4bd80d6 in ?? () from /usr/lib/libglib-2.0.so.0
#85 0xb4bd79a8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#86 0xb4bdb063 in ?? () from /usr/lib/libglib-2.0.so.0
#87 0xb4bdb221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#88 0xb51fba5e in ?? () from
/opt/openoffice.org/basis3.0/program/libvclplug_gtkli.so
#89 0xb4b7b916 in X11SalInstance::Yield(bool, bool) () from
/opt/openoffice.org/basis3.0/program/libvclplug_genli.so
#90 0xb6946c2f in Application::Yield(bool) () from
/opt/openoffice.org3/program/../basis-link/program/libvclli.so
#91 0xb6946c81 in Application::Execute() () from
/opt/openoffice.org3/program/../basis-link/program/libvclli.so
#92 0xb7e93fc8 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libsofficeapp.so
#93 0xb694c630 in ?? () from
/opt/openoffice.org3/program/../basis-link/program/libvclli.so
#94 0xb694c7bb in SVMain() () from
/opt/openoffice.org3/program/../basis-link/program/libvclli.so
#95 0xb7ebc1e7 in soffice_main () from
/opt/openoffice.org3/program/../basis-link/program/libsofficeapp.so
#96 0x08048dea in main ()
(gdb)
Comment 1 michael.ruess 2009-01-27 16:43:22 UTC
I have some verdict...
- maybe a bug in OOo 3.0 handling a special thing in your document: in this case
please attach the document to this issue (or send directly to mru@openoffice.org
for the case it contains confidential data) so that we can reproduce and fix the
bug here.

- an X-Server problem in SUSE 11.x displaying certain graphics or anything
similar. Can the document be opened on a different system (oes not matter if
Windows or Linux)?
Comment 2 cjwhite 2009-01-27 16:49:40 UTC
I have sent the document to mru@openoffice.org.

Regarding your other comments.  This freeze occurs in 2.4 as well.  When opening
in 2.4, it first recognizes that it was created by a newer version, offers
"Update Now..." or "Later".  I choose "Later", and it opens the document, puts
the cursor just where I left off, and then freezes, just like in 3.0.0 and 3.0.1

This occurs on multiple platforms, Linux Fedora 9, OpenSuse 11.1, and Windows Vista.
Comment 3 cjwhite 2009-01-27 18:36:22 UTC
It has to do with the table of contents.

I hand edited the content.xml within the ODT file (emacs handles this nicely)
and pulled out the <text:table-of-content> tag.  Now I can open the file without
a problem.
Comment 4 cjwhite 2009-01-28 04:51:00 UTC
Well, I continue to have problems with this document.  After removing the TOC,
I'm able to edit somewhat, but I have already seen it crash once while editing,
and a second time it froze. 

As such, it seems to be a bigger problem that removing the TOC just "moved" it
around...
Comment 5 michael.ruess 2009-01-28 09:56:52 UTC
MRU->OD: open the attached document, right after the view is visible, Writer
will be caught in a loop. It is not clear, which content is responsible for
this, so please have a look with the debugger ;-) Thanks!
Comment 6 Oliver-Rainer Wittmann 2009-07-02 12:26:30 UTC
reproduced in DEV300m50, OOo 2.4.1 and OOo 2.1

due to limited resources I have to re-target this issue to OOo 3.x
Comment 7 Marcus 2017-05-20 11:18:18 UTC
Reset assigne to the default "issues@openoffice.apache.org".