Issue 11819 - high rate printing process - freeze
Summary: high rate printing process - freeze
Status: CLOSED DUPLICATE of issue 14397
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows 2000
: P3 Trivial
Target Milestone: ---
Assignee: Mathias_Bauer
QA Contact: issues@api
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2003-02-25 10:41 UTC by Unknown
Modified: 2013-02-24 21:10 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-02-25 10:41:11 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.
Comment 1 ooo 2003-02-26 09:30:18 UTC
implementation issue
Comment 2 Mathias_Bauer 2003-02-27 12:23:33 UTC
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.
Comment 3 Mathias_Bauer 2003-03-28 13:07:12 UTC
IMHO the priority is wrong. P1 and P2 should be reserved for disasters
and showstoppers. This bug is obviously neither of them.
Comment 4 utomo99 2003-09-24 09:22:13 UTC
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 
Comment 5 Mathias_Bauer 2003-10-01 11:57:12 UTC
I assume that this is the same problem as in #i14397#.

*** This issue has been marked as a duplicate of 14397 ***
Comment 6 Mathias_Bauer 2003-10-20 09:58:02 UTC
.