Issue 86416 - XSimpleAnimation::start() crashes OOo
Summary: XSimpleAnimation::start() crashes OOo
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P2 Trivial
Target Milestone: ---
Assignee: joerg.skottke
QA Contact: issues@api
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2008-02-25 04:58 UTC by Ariel Constenla-Haile
Modified: 2013-02-24 21:10 UTC (History)
2 users (show)

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


Attachments
zip folder with an ODT file with sample code and a folder containing the pictures (44.67 KB, application/x-compressed)
2008-02-25 04:59 UTC, Ariel Constenla-Haile
no flags Details
WinNT crash report (12.58 KB, text/plain)
2008-02-25 09:44 UTC, Ariel Constenla-Haile
no flags Details
This sample code correct some things in the prevois attachement: the control model is instantiated at the UnoControlDialogModel and I do not use a base control to position the animation, so now you can see that the first XGraphic in the image list is dis (47.46 KB, application/x-compressed)
2008-02-28 15:18 UTC, Ariel Constenla-Haile
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Ariel Constenla-Haile 2008-02-25 04:58:18 UTC
The com.sun.star.awt.UnoSimpleAnimationControl and the
com.sun.star.awt.UnoSimpleAnimationControlModel can be instantieted, the control
added to the dialog, the XGraphic sequence set invoking
XSimpleAnimation::setImageList(), but XSimpleAnimation::start() simply crashes OOo.
Comment 1 Ariel Constenla-Haile 2008-02-25 04:59:40 UTC
Created attachment 51698 [details]
zip folder with an ODT file with sample code and a folder containing the pictures
Comment 2 Ariel Constenla-Haile 2008-02-25 05:00:59 UTC
Note: I am aware the the API project is not the owner of this, but who is? gsl?
please feel free to change the component.
Comment 3 jsc 2008-02-25 07:54:51 UTC
jsc -> cd: do you know who is responsible for this control, i assume dv but not sure
Comment 4 Ariel Constenla-Haile 2008-02-25 09:44:32 UTC
Created attachment 51703 [details]
WinNT crash report
Comment 5 carsten.driesner 2008-02-25 11:55:12 UTC
cd->dv: Could you please have a look.
Comment 6 Frank Schönheit 2008-02-27 20:26:59 UTC
crashs are usually considered a P2, to be fixed for the next release. Adding
keyword, adjusting priority, targeting.
Comment 7 Ariel Constenla-Haile 2008-02-28 15:18:39 UTC
Created attachment 51789 [details]
This sample code correct some things in the prevois attachement: the control model is instantiated at the UnoControlDialogModel and I do not use a base control to position the animation, so now you can see that the first XGraphic in the image list is dis
Comment 8 dirk.voelzke 2008-02-28 15:26:51 UTC
Accepted.
Comment 9 dirk.voelzke 2008-03-04 15:11:27 UTC
Fixed in cws dv03. There is another problem with your sample code. I'll write a
new issue for that problem.
Comment 10 Ariel Constenla-Haile 2008-03-04 15:23:41 UTC
->dv: another problem? please tell me the problem and issue.

By the way, now that you're fixing this in a cws, could you fix also

http://www.openoffice.org/issues/show_bug.cgi?id=86417
it is about the IDL for the AutoRepeat property

And now that we are in it, also
http://www.openoffice.org/issues/show_bug.cgi?id=86414 is about the simple
animation.

As discussed there, in the IDL the names for the services are wrong:
com.sun.star.awt.UnoSimpleAnimationControl
com.sun.star.awt.UnoSimpleAnimationControl
are the actual names one must use

But taking a new look at it, shouldn't they be changed to the ones indicated in
the IDL?

I mean, for consistency with all other toolkit controls: they all are named

com.sun.star.awt.UnoControlXxx
com.sun.star.awt.UnoControlXxxModel

so maybe here the IDL is right, and the service names in the code should be
change to be consistent with the rest of UNO controls.
Comment 11 dirk.voelzke 2008-03-28 14:32:13 UTC
Please verify ( you might need to modify the sample code a little bit because of
another bug )
Comment 12 joerg.skottke 2008-04-02 13:50:01 UTC
The second Test document - with a few modifications to the BASIC Code - shows
that the issue is fixed.

However, the first test document causes a crash in the instant the macro is
executed from within the BASIC IDE.

I have no reference yet so i assume this problem was introduced with the fix to
this issue.
Comment 13 joerg.skottke 2008-04-02 13:50:54 UTC
Reopen
Comment 14 dirk.voelzke 2008-04-02 14:28:32 UTC
First sample doesn't set an image for the throbber which leads to the crash when
the code tries to show the images
Comment 15 dirk.voelzke 2008-04-02 15:24:15 UTC
Please verify.
Comment 16 joerg.skottke 2008-04-03 09:12:21 UTC
Verified for both test documents.
Comment 17 joerg.skottke 2008-09-15 14:02:37 UTC
Whatever the correct behavior was, there is no crash anymore.