Issue 115354 - Printing report build with SRB crashes Base 3.3.0 RC3
Summary: Printing report build with SRB crashes Base 3.3.0 RC3
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOO330m13
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: marc.neumann
QA Contact: issues@sw
URL:
Keywords: regression
Depends on:
Blocks: 111112
  Show dependency tree
 
Reported: 2010-11-02 12:13 UTC by jgsylvester
Modified: 2017-05-20 11:41 UTC (History)
2 users (show)

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


Attachments
document to reproduce the bug case (142.94 KB, application/vnd.sun.xml.base)
2010-11-02 12:29 UTC, Frank Schönheit
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jgsylvester 2010-11-02 12:13:04 UTC
I have upgraded to Openoffice.org 3.30 RC 3 on both Windows(Vista) and Linux
(Ubuntu 10.10). I am attempting to print out any report created with Sun
(Oracle)N Report Builder 1.2.1. When the print command is selected and entered
from Base, OOo 3.3.RC3 crashes every time. It does this on both Windows and
Linux. I have sent three reports generated upon OOo recovery. I can print out a
report built with the Report Wizard with no problem.
Comment 1 Frank Schönheit 2010-11-02 12:25:59 UTC
can reproduce at least with the document I'm going to attach.

Confirming. Adding preliminary target. Adding "regression" keyword. Assigning to
developer. Correction "Version" field.
Comment 2 Frank Schönheit 2010-11-02 12:29:19 UTC
Created attachment 72824 [details]
document to reproduce the bug case
Comment 3 Frank Schönheit 2010-11-02 12:31:50 UTC
to reproduce:
- open the attached database document
- execute the contained report by double-clicking it
- menu: File => Print
=> crash
Comment 4 Oliver Specht 2010-11-02 12:34:28 UTC
->TL: please have a look
Comment 5 thomas.lange 2010-11-03 10:20:55 UTC
TL: crash occurs because when loading the report setPrintData was not called
thus getPrintData return a NULL pointer.
I discussed this with OS and adding the following two lines to
SwDoc::getPrintData in sw/source/core/doc/doc.cxx will solve the problem:

SwPrintData* SwDoc::getPrintData() const
{
+    if (!pPrtData)
+        ((SwDoc*)this)->pPrtData = new SwPrintData;
    return pPrtData;
}

Comment 6 Oliver Specht 2010-11-03 11:36:29 UTC
This fix is o.k. as short fix for OOo3.3

The DEV300 code line needs a fix that initializes the printer settings correctly
and replaces the pointer access of ::getPrintData
Comment 7 thomas.lange 2010-11-03 11:44:43 UTC
Follow-up issue for DEV300 code line is issue 115373.
Comment 8 thomas.lange 2010-11-04 14:58:37 UTC
.
Comment 9 thomas.lange 2010-11-04 14:59:09 UTC
.
Comment 10 marc.neumann 2010-11-05 10:36:21 UTC
verified in CWS tl88
find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Ftl88