OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to solve error : Precondition violation!

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
andre4s_y
General User
General User


Joined: 05 May 2008
Posts: 9

PostPosted: Sun Mar 01, 2009 8:04 am    Post subject: How to solve error : Precondition violation! Reply with quote

Hi all,

My current work is trying to convert presentation file (.ppt,.sxi and .odp) into .swf file via PUNO. I am using OpenOffice.org 2.4.1.

Everything run smooth, until when i try to convert one of my ppt file. It was made using Microsoft Power Point 2003. When i try to convert that file, OpenOffice.org output an error via log file :
Quote:

terminate called after throwing an instance of 'vigra::PreconditionViolation'
what():
Precondition violation!
BasicImage::upperLeft(): image must have non-zero size.

And then the OOo's service terminated.

The file open correctly when i try to open it normally using OOo impress. Then why error occured when i try to open it via OOo API? Presentation version conflict between Microsoft PowerPoint 2003 and OOo Impress 2.4.1? Or something else?

How to solve that error?
Anyone can help me?

Thank you very much..

NB :
I can still produce the error, if someone interested to try.
Back to top
View user's profile Send private message
B Marcelly
Super User
Super User


Joined: 12 May 2004
Posts: 1453
Location: France

PostPosted: Mon Mar 02, 2009 1:14 am    Post subject: Reply with quote

Hi,
can you convert this ppt file into swf format with the user interface ?
______
Bernard
Back to top
View user's profile Send private message Visit poster's website
andre4s_y
General User
General User


Joined: 05 May 2008
Posts: 9

PostPosted: Mon Mar 02, 2009 5:06 am    Post subject: Reply with quote

Hi..
Thanks for your response. The answer is YES..
I can convert that file only if i start OOo service with User Interface. (manually with impress and using command line without -headless option). If i start OOo with -headless option, it will log error and will terminate. In other word, it only happens in headless mode.

There is mail archive says that :
xStorable.storeToURL(destinationStoreUrl, propertyValues);
cause the crash.

But, i have tried it, and it gives error when open, not when try to convert. So, i say XComponentLoader.loadComponentFromUrl() method cause it. Maybe lack of arguments input? Which one?

Any help?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group