To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96167
                 Issue #|96167
                 Summary|PDF Export Crashes in page preview
               Component|Word processor
                 Version|OOo 3.0
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|save-export
             Assigned to|writerneedsconfirm
             Reported by|haggai





------- Additional comments from [EMAIL PROTECTED] Wed Nov 12 18:09:49 +0000 
2008 -------
* Open a new writer document
* Insert any field, e.g. date
* Turn on Edit->Field Names (it is off by default)
* Click page preview
* Click export to PDF, select a filename
* OOo crashes

Reproducible in 2.4, 3.0.

This might be the same issue as 92836.

The problem occurs in SwXTextDocument::render (unotxdoc.cxx). A
SwViewOptionAdjust_Impl is created with member m_rShell used to get the current
view. But that is deleted here:

lcl_DisposeView( m_pHiddenViewFrame, pDocShell );

So pViewOptionAdjust->m_rShell is then a dangling pointer, which is referred to
in the destructor.

Stack trace of crash:

#0  0xb083e3ce in SwView::GetWrtShell (this=0x22657572) at ../inc/view.hxx:441
#1  0xb086884e in SwModule::ApplyUsrPref (this=0x8d014b8, [EMAIL PROTECTED],
pActView=0x22657572, nDest=3)
    at /home/cha/oo/sw/source/ui/app/swmodul1.cxx:197
#2  0xb09b15a3 in ~SwViewOptionAdjust_Impl (this=0x97ff4e0) at
/home/cha/oo/sw/source/ui/uno/unotxdoc.cxx:2528
#3  0xb09b82a6 in SwXTextDocument::render (this=0x8d48000, nRenderer=0,
[EMAIL PROTECTED], [EMAIL PROTECTED])
    at /home/cha/oo/sw/source/ui/uno/unotxdoc.cxx:2816
#4  0xac6886cd in PDFExport::ExportSelection (this=0xbfdccc84,
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
    aMultiSelection=
      {aSels = {<Container> = {pFirstBlock = 0xbfdccb94, pCurBlock = 0xbfdcc948,
pLastBlock = 0x1, nCurIndex = 50876, nBlockSize = 49116, nInitSize = 53236,
nReSize = 47046, nCount = 0}, <No data fields>}, aTotRange = {<Pair> = {nA =
-1211702896, nB = 150729024}, <No data fields>}, nCurSubSel = 134283264,
nCurIndex = 193, nSelCount = 3218918564, bInverseCur = 2 '\002', bCurValid = 0
'\0', bSelectNew = 0 '\0'}, [EMAIL PROTECTED], nPageCount=1) at
/home/cha/oo/filter/source/pdf/pdfexport.cxx:235
#5  0xac68d14d in PDFExport::Export (this=0xbfdccc84, [EMAIL PROTECTED],
[EMAIL PROTECTED])
    at /home/cha/oo/filter/source/pdf/pdfexport.cxx:866
#6  0xac6802c0 in PDFFilter::implExport (this=0x8fbbfc8,
[EMAIL PROTECTED]) at /home/cha/oo/filter/source/pdf/pdffilter.cxx:124
[...]

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to