Issue 92426

Summary: WW8: Writer freeze when loading 800 page Asian text
Product: Writer Reporter: jian.li
Component: open-importAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P2 CC: chengxiuzhi, issues, liujiaxiang, maho.nakata, nesshof, peter.junge
Version: OOo 2.4.1Keywords: crash
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 84291    
Attachments:
Description Flags
bugdoc none

Description jian.li 2008-08-04 04:44:56 UTC
The attached document is a 800 pages text-only doc file.
Use OOo writer to open this doc file, Writer freeze.
Comment 1 jian.li 2008-08-04 04:46:32 UTC
Created attachment 55527 [details]
bugdoc
Comment 2 michael.ruess 2008-08-04 09:11:53 UTC
MRU->HBRINKM: the import will hang at about 50% of the progress. document
contains 800pages simple Chinese text, no complex formatting at all.
Comment 3 openoffice 2009-07-17 15:46:03 UTC
Analysis:

This does not seem to be a loop or recursion problem. The document states to have 1708176 characters. 
Debugging in ReadText reveals steady, but slow,  progress. Most prominent stack:

              libswmxi.dylib`std::__deque_buf_size(unsigned long)
              libswmxi.dylib`std::_Deque_iterator<SwFltStackEntry*, SwFltStackEntry*&, 
SwFltStackEntry**>::_S_buffer_size()+0x12
              libswmxi.dylib`std::_Deque_iterator<SwFltStackEntry*, SwFltStackEntry*&, 
SwFltStackEntry**>::operator+=(int)+0x2e
              libswmxi.dylib`std::_Deque_iterator<SwFltStackEntry*, SwFltStackEntry*&, 
SwFltStackEntry**>::operator+(int) const+0x31
              libswmxi.dylib`std::_Deque_iterator<SwFltStackEntry*, SwFltStackEntry*&, 
SwFltStackEntry**>::operator[](int) const+0x1f
              libswmxi.dylib`std::deque<SwFltStackEntry*, std::allocator<SwFltStackEntry*> >::operator[](unsigned 
long)+0x1b
              libswmxi.dylib`SwFltControlStack::operator[](unsigned long)+0x1b
              libswmxi.dylib`SwFltControlStack::SetAttr(SwPosition const&, unsigned short, unsigned char, long, 
unsigned char)+0x47
              libmswordmxi.dylib`SwWW8FltControlStack::SetAttr(SwPosition const&, unsigned short, unsigned char, 
long, unsigned char)+0xff
              libmswordmxi.dylib`SwWW8ImplReader::Read_FontCode(unsigned short, unsigned char const*, 
short)+0xde
              libmswordmxi.dylib`SwWW8ImplReader::EndSprm(unsigned short)+0x99
              libmswordmxi.dylib`SwWW8ImplReader::ReadTextAttr(long&, bool&)+0x185
              libmswordmxi.dylib`SwWW8ImplReader::ReadAttrs(long&, long&, bool&)+0x2d
              libmswordmxi.dylib`SwWW8ImplReader::ReadText(long, long, ManTypes)+0x1d4
              libmswordmxi.dylib`SwWW8ImplReader::CoreLoad(WW8Glossary*, SwPosition const&)+0x1177
              libmswordmxi.dylib`SwWW8ImplReader::LoadThroughDecryption(SwPaM&, WW8Glossary*)+0x921
              libmswordmxi.dylib`SwWW8ImplReader::LoadDoc(SwPaM&, WW8Glossary*)+0x21d
              libmswordmxi.dylib`WW8Reader::Read(SwDoc&, String const&, SwPaM&, String const&)+0x1c8
              libswmxi.dylib`SwReader::Read(Reader const&)+0x5e5
              libswmxi.dylib`SwDocShell::ConvertFrom(SfxMedium&)+0x11e
Comment 4 Marcus 2017-05-20 11:13:26 UTC
Reset assigne to the default "issues@openoffice.apache.org".