Issue 22982 - ImpressPhotoAlbum as "Template" crashes OO
Summary: ImpressPhotoAlbum as "Template" crashes OO
Status: CLOSED FIXED
Alias: None
Product: Impress
Classification: Application
Component: code (show other issues)
Version: OOo 1.1
Hardware: Other Windows XP
: P2 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: christian.guenther
QA Contact: issues@graphics
URL: http://sourceforge.net/tracker/index....
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-28 13:50 UTC by moueen
Modified: 2004-07-14 17:13 UTC (History)
1 user (show)

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


Attachments
sample presentation template (7.62 KB, application/vnd.sun.xml.impress)
2004-06-18 11:21 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 moueen 2003-11-28 13:50:06 UTC
The same findings were replicated in Win2000, WinXP, & Linux Debian (Woody with 
OO from Sarge-testing version 1.1.0-2, latest) on PIII 800MHz, 512MB SDRAM, ATI 
Rage Pro 32MB, and enough HD space.

When the file from ( http://sourceforge.net/projects/ooomacros/ ) is either 
saved as a "Template" or when the original file is palced in the 
"~\share\template\english\presnt\" folder, lanching Impress and selecting 
"ImpressPhotoAlbum" results in one of two outcomes:

1) OO crashes:
   When the presentaion wizard launched,
   a) uncheck the "preview" option
   b) Select "From Template"
   c) choose the file "ImpressPhotoAlbum"
   d) select (check) the "preview" option to crash! If it did not crash, click 
or right click on the preview window. The message "An unrecoverable error has 
occured...." shows.

I was able to replicate the crash every time. The Error Reporting launched in 
WIndows and I reported the crash twice.

Inorder to load the template without crashing OO, click "create" after
step C) above, then outcome #2 occurs

2) When the template loads, clicking on the button does not run the macro. I 
presume that this is another bug in OO and not in the ImagePhotoAlbum macro. I 
do not know if this should be filed as a seperate bug. This also occured in 
WinXP, Win2000, and Debian Woody.

Thanks
Comment 1 wolframgarten 2003-11-28 13:54:38 UTC
Reassigned to Christian.
Comment 2 moueen 2003-11-28 20:51:16 UTC
I have added the URL of the bug reported to the Sourceforge OOMacros 
Website bug # 849364:

http://sourceforge.net/tracker/index.php?
func=detail&aid=849364&group_id=87718&atid=584152

Thanks
Comment 3 christian.guenther 2003-12-05 12:16:30 UTC
Set to new and change the target
Comment 4 christian.guenther 2003-12-05 12:24:19 UTC
I can reproduce the bug.
I can give you the file.
Please have a look.
Comment 5 groucho266 2003-12-08 10:20:41 UTC
Accepted.
Comment 6 groucho266 2004-02-27 16:40:09 UTC
The crash takes place in StdTabController::activateTabOrder()
(toolkit/source/controls/stdtabcontroller.cxx).  Here the XControl xC is asked
for its peer casted to XVclContainerPeer.  The peer exists but the cast leads to
an empty reference which is then referenced without asking for its validity (is()).
Adding the later prevents the crash and the template can be instantiated.  The
preview of the autopilot, however, does not show the form control.
Comment 7 groucho266 2004-03-01 15:02:03 UTC
To obtain the bugdoc document, follow the link above to ooomacros, select the
"Impress Photo Album Creator", download the ImpressPhotoAlbum-2003-11-25.zip and
install the .sxi file like described above.
Comment 8 Frank Schönheit 2004-04-26 10:11:56 UTC
Moueen, I'd like to ask you to submit an extra issue for the macro not running.
Two things I noticed here:
- It seems the document was created with StarOffice 5.x - the assigned macro
does not have an "application:" or "document:" prefix. You may want to change
this (simply re-assign the macro), and try again.
- I am not sure how the macro handling is defined for newly created documents.
Since they do not yet have a storage location, the usual (path-oriented)
security settings may not apply.
Comment 9 Frank Schönheit 2004-04-26 10:15:56 UTC
I'll fix the crash, but I'll submit a separate issue for the form controls not
displaying in the preview. Reasons:
- the crash is much more serious than then controls not displaying
- Even in StarOffice 5.2, the controls did not display in the preview - and
nopbody ever complained, so I don't think that it's really a show stopper :)
Comment 10 Frank Schönheit 2004-04-26 10:25:51 UTC
issue 28366 is about the form controls not showing up in the preview
Comment 11 Frank Schönheit 2004-04-26 12:04:22 UTC
the crash is fixed in CWS dba12.
Comment 12 Frank Schönheit 2004-06-18 11:21:04 UTC
Created attachment 15980 [details]
sample presentation template
Comment 13 Frank Schönheit 2004-06-18 11:21:54 UTC
Since the original document does not exist anymore, I attached a sample document
for reproducing the crash.
Comment 14 Frank Schönheit 2004-06-18 16:57:15 UTC
reopening for reassign to QA
Comment 15 Frank Schönheit 2004-06-18 17:02:56 UTC
fs->cgu: please verify in CWS dba13
(http://eis.services.openoffice.org/EIS2/servlet/cws.ShowCWS?Id=1349&Path=SRC680%2Fdba13)
Comment 16 Frank Schönheit 2004-06-18 17:06:13 UTC
argh. The CWS is dba12, not dba13. Sorry.
Comment 17 marc.neumann 2004-06-22 09:07:12 UTC
fixed in cws dba12
Comment 18 marc.neumann 2004-06-22 09:07:29 UTC
verified in cws dba12
Comment 19 christian.guenther 2004-07-14 17:13:58 UTC
Integrated in src680m47 on Sols, Lin, Win.