You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2013/03/29 20:57:16 UTC

[Bug 121977] New: crash on doc file opening

https://issues.apache.org/ooo/show_bug.cgi?id=121977

            Bug ID: 121977
        Issue Type: DEFECT
           Summary: crash on doc file opening
    Classification: Application
           Product: Writer
           Version: AOO 3.4.1
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: open-import
          Assignee: issues@openoffice.apache.org
          Reporter: charly.hamy@gmail.com
                CC: issues@openoffice.apache.org

Created attachment 80479
  --> https://issues.apache.org/ooo/attachment.cgi?id=80479&action=edit
file causing the crash

When opening the file in attachment under Windows 8, Writer crashes (receovery
dialog is displayed).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

Oliver-Rainer Wittmann <or...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |ACCEPTED
           Assignee|issues@openoffice.apache.or |orw@apache.org
                   |g                           |

--- Comment #8 from Oliver-Rainer Wittmann <or...@apache.org> ---
working on the fix which is definitely inspired by Andre ;-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

--- Comment #9 from SVN Robot <sv...@dev.null.org> ---
"orw" committed SVN revision 1496918 into trunk:
121977: WW8 import: apply grid property values, if grid is active and if the
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

--- Comment #5 from Andre <aw...@googlemail.com> ---
There seems to be a general problem with the bug doc.  MS Office 2013 opens the
document in a protected view and reports "Office has detected a problem with
this file. Editing it may harm your computer. Click for more details."  But
there are no noteworthy details.

Replacing 

    aGrid.SetLines(writer_cast<sal_uInt16>(nTextareaHeight/nLinePitch));

with 

    if (nLinePitch > 0)
        aGrid.SetLines(writer_cast<sal_uInt16>(nTextareaHeight/nLinePitch));

results in the document being correctly loaded (looks the same as what MS
Office shows in its viewer).
Maybe that is enough of a fix?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

--- Comment #7 from Oliver-Rainer Wittmann <or...@apache.org> ---
(In reply to Andre from comment #5)
> There seems to be a general problem with the bug doc.  MS Office 2013 opens
> the document in a protected view and reports "Office has detected a problem
> with this file. Editing it may harm your computer. Click for more details." 
> But there are no noteworthy details.
> 
> Replacing 
> 
>     aGrid.SetLines(writer_cast<sal_uInt16>(nTextareaHeight/nLinePitch));
> 
> with 
> 
>     if (nLinePitch > 0)
>         aGrid.SetLines(writer_cast<sal_uInt16>(nTextareaHeight/nLinePitch));
> 
> results in the document being correctly loaded (looks the same as what MS
> Office shows in its viewer).
> Maybe that is enough of a fix?

>From my point of view with fix would be enough to fix the problem.
I have some further changes in mind to improve the corresponding method.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

charly.hamy@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|All                         |PC
                 OS|All                         |Windows 8

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

Andre <aw...@googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |awf.aoo@googlemail.com
                 OS|Windows 8                   |Windows, all

--- Comment #2 from Andre <aw...@googlemail.com> ---
I can reproduce this crash on Windows 7 64 bit (changing platform to Windows,
all).

Here is the interesting part of the stack trace:
>	msword.dll!SwWW8ImplReader::SetDocumentGrid(SwFrmFmt & rFmt, const wwSection & rSection)  Line 309 + 0x4 bytes	C++
     msword.dll!wwSectionManager::SetSegmentToPageDesc(const wwSection &
rSection, bool bTitlePage, bool bIgnoreCols)  Line 3850    C++
    
msword.dll!wwSectionManager::SetSwFmtPageDesc(std::_Deque_iterator<wwSection,std::allocator<wwSection>,1>
& rIter, std::_Deque_iterator<wwSection,std::allocator<wwSection>,1> & rStart,
bool bIgnoreCols)  Line 3952    C++
     msword.dll!wwSectionManager::InsertSegments()  Line 4060 + 0x1c bytes   
C++
     msword.dll!SwWW8ImplReader::CoreLoad(WW8Glossary * pGloss, const
SwPosition & rPos)  Line 4655    C++
     msword.dll!SwWW8ImplReader::LoadThroughDecryption(SwPaM & rPaM,
WW8Glossary * pGloss)  Line 5153 + 0x19 bytes    C++
     msword.dll!SwWW8ImplReader::LoadDoc(SwPaM & rPaM, WW8Glossary * pGloss) 
Line 5461 + 0x10 bytes    C++
     msword.dll!WW8Reader::Read(SwDoc & rDoc, const String & rBaseURL, SwPaM &
rPam, const String & __formal)  Line 5530 + 0xe bytes    C++
     sw.dll!SwReader::Read(const Reader & rOptions)  Line 189 + 0x30 bytes   
C++
     sw.dll!SwDocShell::ConvertFrom(SfxMedium & rMedium)  Line 256 + 0xc bytes 
  C++
     sfx.dll!SfxObjectShell::DoLoad()  + 0x7e4 bytes    


Crash happens in this line
    aGrid.SetLines(writer_cast<sal_uInt16>(nTextareaHeight/nLinePitch));
where nLinePitch is zero => division by zero.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Armin.Le.Grand@me.com

--- Comment #3 from Armin Le Grand <Ar...@me.com> ---
ALG: Checked on Mac, crashes, too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

jsc@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsc@apache.org
              Flags|4.0.0_release_blocker?      |4.0.0_release_blocker+

--- Comment #4 from jsc@apache.org ---
set showstopper flag

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

Oliver-Rainer Wittmann <or...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ACCEPTED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |AOO 4.0

--- Comment #10 from Oliver-Rainer Wittmann <or...@apache.org> ---
fixed in trunk for AOO 4.0

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

Oliver-Rainer Wittmann <or...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |orw@apache.org

--- Comment #6 from Oliver-Rainer Wittmann <or...@apache.org> ---
The given document is corrupt according to MS Word 2003, MS Word 2007, MS Word
2010 and MS Word 2013. MS Word versions are reporting that a problem with the
file has been detected and that editing may harm your computer.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

liupingtan <do...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doneyourself@gmail.com

--- Comment #11 from liupingtan <do...@gmail.com> ---
Verify on Mac OS 10.8 on   Rev. 1499347 ,pass ; maybe someone may verify on
wondows8 OS

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

charly.hamy@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |charly.hamy@gmail.com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

4.0.0_release_blocker granted: [Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
jsc@apache.org has granted fanyuzhen@gmail.com's request for
4.0.0_release_blocker:
Bug 121977: crash on doc file opening
https://issues.apache.org/ooo/show_bug.cgi?id=121977


------- Additional Comments from jsc@apache.org
set showstopper flag

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

DanielAlvaro <jd...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
                 CC|                            |jdaniel.alvaro@gmail.com
     Ever confirmed|0                           |1

--- Comment #1 from DanielAlvaro <jd...@gmail.com> ---
Reproduced in WIN 8, I have the same error, but I  could opened in  Microsoft
Office I  saw it's only for reading not to edit it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

Rob Weir <ro...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED

--- Comment #12 from Rob Weir <ro...@apache.org> ---
Verified with 4.0.0 RC on Windows 8 32-bit.  Document loads and displays
without error.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 121977] crash on doc file opening

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121977

fanyuzhen@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fanyuzhen@gmail.com
              Flags|                            |4.0.0_release_blocker?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.