Apache OpenOffice (AOO) Bugzilla – Issue 11819
high rate printing process - freeze
Last modified: 2013-02-24 21:10:04 UTC
Hi all, (apologize for my english) I have several (more than hundred) open office files to print and try to use java API. My program runs fine with a single file and with all files (100+) in an IDE with debug mode (breakpoint and step by step). But it freezes when it is used normally (outside IDE and debug). Random printing operations (about 10) may work but the thread will freeze and never continue. This is the code which triggers the freezing (sometimes) (document loading) : PropertyValue[] propertyvalue1 = new PropertyValue[3]; propertyvalue1[0] = new PropertyValue(); propertyvalue1[0].Name = "Hidden"; /* may stop with stress process */ xcomponent = getComponentLoader().loadComponentFromURL( fileUrl, "_blank", com.sun.star.frame.FrameSearchFlag.AUTO, propertyvalue1); // there ! When bug occurs, the open office server also freezes and I have to kill his process. When it is done, client code comes back to life and throws this exception : class com.sun.star.lang.DisposedException : com.sun.star.io.IOException: java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at ... The problem appears outside IDE (no debug mode) and after a certain amount of documents. The only thing I have noticed is that the speed of the processing is quickly rising from 1.5s at the beginning to less than 0.7 s when it crashes. I would like to go bellow 400ms so I think this "defect" is major bug for me. Anybody has an idea of solution or maybee another way for high rate printing process under open office? Thanks for any help.
implementation issue
OOo sometimes has some problems with multithreading. Perhaps your problem can be workarounded by using the "Wait" property of the PrintOptions. Setting this to "true" lets the print call wait until it's finished. Besides that we will try to reproduce that.
IMHO the priority is wrong. P1 and P2 should be reserved for disasters and showstoppers. This bug is obviously neither of them.
Please try using the latest OOo 1.1 Rc5, Your version already old enough, and many bug fixes since your version and 1.1 RC5. If the problem still happend in 1.1 RC5 please report back
I assume that this is the same problem as in #i14397#. *** This issue has been marked as a duplicate of 14397 ***
.