Issue 14397 - OpenOffice.org freezes-up while printing
Summary: OpenOffice.org freezes-up while printing
Status: CLOSED OBSOLETE
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOo 1.1 Beta
Hardware: PC Windows 2000
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: crash, oooqa
: 11819 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-05-13 05:04 UTC by danielbrosseau
Modified: 2019-07-23 22:05 UTC (History)
6 users (show)

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


Attachments
Simple repetitive load, print and close program (10.49 KB, text/plain)
2003-05-13 05:06 UTC, danielbrosseau
no flags Details
Simple document that ends by freezing OpenOffice.org (11.36 KB, application/octet-stream)
2003-05-13 05:07 UTC, danielbrosseau
no flags Details
These are bitmap images of VC threads, modules, stack ... on freeze (643.49 KB, application/octet-stream)
2003-05-23 15:56 UTC, danielbrosseau
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description danielbrosseau 2003-05-13 05:04:17 UTC
My program loads a text document, prints it to a file and closes the document, 
over and over again, always with the same document and printer. It always 
finishes by freezing up OpenOffice.org, sometimes as soon as after 3 loads, 
sometimes it takes 75, but usually sooner than later. It always freezes on the 
print at the line: xPrintable->print( property_2 );, but it freezes in 
OpenOffice.org, not my program. When it freezes, OpenOffice.org no longer 
responds and I have to force it out by clicking End Now in the Windows message 
box which allows you to close a non responding program. The last time I ran my 
program, after ending OpenOffice.org, my program continued with:
OpenOffice Exception on print:
 URP_Bridge : disposed
(tid=2016) Unexpected connection closure
Loaded 34 documents. 
Printed 33 documents.
Closed 33 documents.
There were errors.

I which I could tell where the error is, but I can't :( The document loads, I 
can save it and for a while I can print it. I noticed that when the document 
loads the progress bar advances smoothly, but I believe that on the load that 
preceeds the print that fails, the progress bar zips through much more quickly 
and seems to repeat a few times, but the document appears normal on the 
screen. So I do not know if the problem is with the load which causes a 
problem with the print, or is it a print problem or a synchronization problem. 
But it always happens, always at the same place and always in OpenOffice.org.

If attached the file and the program.

Regards
Comment 1 danielbrosseau 2003-05-13 05:06:05 UTC
Created attachment 6165 [details]
Simple repetitive load, print and close program
Comment 2 danielbrosseau 2003-05-13 05:07:52 UTC
Created attachment 6166 [details]
Simple document that ends by freezing OpenOffice.org
Comment 3 Mathias_Bauer 2003-05-13 14:36:24 UTC
@as: please investigate this problem and check wether you can
reproduce the freeze in our newest beta.
Comment 4 andreas.schluens 2003-05-16 10:10:02 UTC
I cant reproduce this freeze for our latest versions (e.g. srx644 m12).
Following tests was done by me:

1) Using the original script (except changing of the document URL -
not the test document itself)
Parameters:
Hidden = FALSE
PrintWait = TRUE
CloseOwnerShip = TRUE
=> more then 400 successfully loads without any problems

2) Use the same test but dont wait for finishing the print job
Parameters:
Hidden = FALSE
PrintWait = FALSE
CloseOwnerShip = TRUE
=> more then 400 successfully loads without any problems

3) Use the same test but dont wait for print jobs and take over the
owner ship on closing time
Parameters:
Hidden = FALSE
PrintWait = FALSE
CloseOwnerShip = FALSE
=> 2..10 successfully loads + 1 CloseVetoException and showing of your
debug output "There was errors"
But there was no freeze inside office.

4) Load documents hidden ...
Parameters:
Hidden = TRUE
PrintWait = FALSE
CloseOwnerShip = TRUE
=> 100 successfully loads ...

Result: works for me.

Tip: May your are able to get some stack traces if you can reproduce a
freeze again. Then you should provide this informations, so we can
check your problem again. But please use the newest OO version so we
can be shure that the problem was not already fixed by other bug reports.
THX.
Comment 5 andreas.schluens 2003-05-16 10:11:12 UTC
.
Comment 6 danielbrosseau 2003-05-23 15:56:07 UTC
Created attachment 6355 [details]
These are bitmap images of VC threads, modules, stack ... on freeze
Comment 7 danielbrosseau 2003-05-23 16:03:28 UTC
I have just tried the load, print and close program with OOO 1.1. 
The program still freezes OOo, but now in a very consistent fashion, 
always after the 97th print ( tried 5 times ), always in OOo. I have 
attached the stack trace, list of loaded modules, disassembly, etc 
as bitmaps from MS VC 6 windows. We are trying to use OOo as part of 
a report generation program and often have many more than 97 reports 
to print, so if we consistently freeze after 97 prints we fear we 
will not be able to use OOo.

Regards
Daniel Brosseau
Comment 8 danielbrosseau 2003-05-23 22:02:50 UTC
Rather strange thing happened. I ran the Open, Print and Close 
program for 95 iterations and then exited. Reported no errors. This 
is what I expected because it always freezes after 97 prints or on 
the 97th close. I then ran the program again and OOo froze after 2 
prints, on the second close. So effectively it froze on the 97th 
close again, but this time after 2 connects to OOo. So the number of 
connects to OOo may be multiple but it will still freeze on the 97th 
close. Any ideas as to what is going on?
Regards,
Daniel 
Comment 9 Joost Andrae 2003-05-25 19:55:50 UTC
Joost->Daniel: Andreas mentioned a version which might be newer than
your version. I would try it again using the current OOo 1.1 Beta2
which is based on a newer version of the development tree. 
Comment 10 Joost Andrae 2003-05-26 17:33:01 UTC
JA: update which I got from Daniel by mail:

I did try it against OOo 1.1 Beta 2. This is why I updated the issue.
There was a change in behaviour with Beta2, it now freezes consistently
on the 97th iteration whereas before it would freeze, but at various
iterations. The behaviour has now become more consistent. You can see
from the attachment that it seems to be in Winsockets when it freezes so
it might be waiting for a response that never comes or maybe the sockets
are not being handled in the way Winsockets likes? But this is just a
quess.

JA->AS: please have a look at it again. Reassigned to you
Comment 11 andreas.schluens 2003-05-28 09:03:00 UTC
I could reproduce the described scenario using a 6.1 Beta 2 version
... after 25 cycles. Its a race problem inside office. But such
threading related problems are still well known. So we will leave this
task open till we have a general solution related to multithreading
problems and use this issue as test case then.

There exist a workaround for this bug here: wait for the print job and
deliver the owner ship on closing the document. Further it can be
usefull to load all documents in hidden mode. So no paint messages or
unspecified user interactions can damage your process.
Comment 12 danielbrosseau 2003-09-28 20:41:33 UTC
I suspect this issue is somehow related to issue 18883.
Comment 13 utomo99 2003-09-30 05:47:39 UTC
utomo>AS: 
If you can reproduce it, do you think we better to change to New ? and
setting the target ? or you still need to check with latest version? 

Utomo> Daniel: Please try Newer version 1.1 Rc5, as Joost suggest, If
the problem still happend in 1.1 RC5 please report back

Thanks
Comment 14 andreas.schluens 2003-09-30 08:00:05 UTC
AS->Daniel: Issue 18883 isnt related to this issue. Because it
describe not the time used for printing - it describes the time for
marshalling remote call data and calling of the remote uno interface!

AS->utomo: Yes I can reproduce it ... but as I`ve already described.
Such multithreading issues cant be fixed ASAP. We have to change to
many things inside our office code (which was already started) to
solve it. Further this bug wont be fixed seperatly(?). It will be
fixed automaticly(!), if our code can be used inside a multithreading
environment in general. So this bug is more a good test scenario then
a real bug, which has to be fixed. Thats the reason, why I let it stay
on "UNCONFIRMED" instead of "NEW".
Comment 15 danielbrosseau 2003-09-30 17:45:17 UTC
Thank you Andreas, comment by Kai Sommerfeld 2003-09-30 08:23 PDT on 
issue 18883 might be why I though issues might be linked.

Regards,
Daniel Brosseau
Comment 16 Mathias_Bauer 2003-10-01 11:57:11 UTC
*** Issue 11819 has been marked as a duplicate of this issue. ***
Comment 17 andreas.schluens 2003-10-20 10:02:07 UTC
.
Comment 18 Mathias_Bauer 2003-10-20 10:03:24 UTC
I cc myself because I set another issue to "duplicate" to this one.
Comment 19 andreas.schluens 2004-04-22 08:45:02 UTC
.
Comment 20 andreas.schluens 2004-06-07 08:32:05 UTC
*** Issue 25506 has been marked as a duplicate of this issue. ***
Comment 21 Mathias_Bauer 2004-06-18 11:44:47 UTC
We postpone all work on threading issues until the new threading framework will
be available
Comment 22 utomo99 2007-01-31 03:29:00 UTC
to mba
is there any progress for this issue. 
since you postpone it at Jun 18 02:44:47 -0800 2004 
Thanks
Comment 23 Rob Weir 2013-07-30 02:37:58 UTC
Reset assignee on issues not touched by assignee in more than 1000 days.
Comment 24 oooforum (fr) 2019-07-14 20:02:14 UTC
Set as obsolete
Comment 25 utomo99 2019-07-14 22:15:12 UTC
Instead just setting to obsolete, I hope we can add notes that this is already tested and Solved
Comment 26 Peter 2019-07-15 03:30:20 UTC
Then please retest with an actual windows OS and actual Version of OpenOffice. 
dessrlbe the test with each step and document the results.

We can the reopen, or correctly close the issue.

Thanks