Bug 58827

Summary: crash while opening docx file (having shapes)
Product: LibreOffice Reporter: prasanna.barate
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: mmenaz, serval2412
Priority: medium    
Version: 4.1.0.0.alpha0+ Master   
Hardware: Other   
OS: Linux (All)   
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: snapshots for reproducing bug
stack trace for crash

Description prasanna.barate 2012-12-28 12:26:59 UTC
Created attachment 72209 [details]
snapshots for reproducing bug

Problem description: 

Steps to reproduce:
1. create new text document.
2. insert any smiley or draw (toolbar-> show draw function -> select any shape -> drag n drop
3. save file with .docx extension
4. reopen file 

Current behavior:
when we reopen .docx file then there is crash (segmentaion fault)

Expected behavior:
file should not crash

              
Operating System: Ubuntu
Version: 4.1.0.0.alpha0+ Master
Comment 1 prasanna.barate 2012-12-28 12:44:55 UTC
i have mention stack trace for above crash in "stackstarce.log" attachment file
Comment 2 prasanna.barate 2012-12-28 12:46:30 UTC
Created attachment 72210 [details]
stack trace for crash
Comment 3 Marco Menardi 2013-01-01 16:27:30 UTC
Debian GNU/Linux 64 Beta2, can't reproduce.
Btw, what is the difference among:
Microsoft Word 2007/2010 XML (.docx)
and
Office Open XML text (.docx) ?
(I've tested both)
Could you please try again with Beta2?
Comment 4 Julien Nabet 2013-02-09 06:09:53 UTC
on pc Debian x86-64 with master sources updated yesterday, I don't reproduce the crash.
However, when reopening the file, there's no smiley.

I noticed these logs during docx saving:
TODO VMLExport::Commit(), unimplemented id: 327, value: 17520, data: [0, (nil)]
TODO VMLExport::Commit(), unimplemented id: 135, value: 1, data: [0, (nil)]
TODO VMLExport::Commit(), unimplemented id: 511, value: 524296, data: [0, (nil)]
TODO VMLExport::Commit(), unimplemented id: 450, value: 5282507, data: [0, (nil)]
warn:legacy.tools:6084:1:filter/source/msfilter/eschesdo.cxx:835: ImplEscherExSdr::~ImplEscherExSdr: unwritten SolverContainer
warn:legacy.tools:6084:1:svx/source/unodraw/unopage.cxx:87: SvxDrawPage must be disposed!
warn:svx.sdr:6084:1:svx/source/svdraw/svdobj.cxx:2935: SdrObject::impl_setUnoShape: still having impl. pointer to dead object!
warn:svx.sdr:6084:1:svx/source/svdraw/svdobj.cxx:2935: SdrObject::impl_setUnoShape: still having impl. pointer to dead object!
warn:legacy.osl:6084:1:unotools/source/config/configmgr.cxx:200: OSL_ASSERT: items_.empty()

So there's still a problem but no crash now.

Some bugs are about shape/smileys which don't appear in docx, eg
https://bugs.freedesktop.org/show_bug.cgi?id=31357

prasanna: don't hesitate to reopen this tracker if you still reproduce it (+ attach an updated bt)

I noticed that exporting shapes in .doc is ok when reopening
Comment 5 Julien Nabet 2013-02-09 06:23:03 UTC
Sorry https://bugs.freedesktop.org/show_bug.cgi?id=31357 is wrong, I created a brand new bug here:
https://bugs.freedesktop.org/show_bug.cgi?id=60529