Apache OpenOffice (AOO) Bugzilla – Issue 66151
OOo crashes when using too many WIndows GDI resources
Last modified: 2013-08-07 15:31:33 UTC
WinXP - OOo203m5 - my build Opening more than 57 concurrent windows of OOo (tested Writer and Calc too) cause crash... The windows are closed fastly, and QuickStarter closed. The restarted OOo shows the repair facility...
I checked with "2.0.3 RC5 German version WIN XP: [680m5(Build9036)]" and can confirm the problem - I am not absolutely sure wether it was exactly at the 57th window :-/ Steps to reproduce: 1. open new spreadsheet as the only open OOo document 2. insert one letter to A1 3. save document 4. open more new windows, always with Menu "Window - New Window" on and on expected: endless more windows actual: OOo closes without warning if you open more than 57 (?) windows I created a crash report, the ID of the error report is r2m5vf. Hint: I did the test with 2.0.3 RC5, but reopened OOo with 680m113 after crash, because current versions have some problems with error reports.
Because I wanted to be sure that it's not a general WIN problem, I opened 58 windows for "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0" without any problem.
JA: I cannot confirm this on Linux.
Not confirmed on Linux following steps by rainerbielefeld. I could open more than 100 windows with no problems, except a comprehensible few seconds' delay when closing all open windows. Version: 2.0.3-RC5, build "680m5(Build9036)", Italian, Linux.
TM->PL: Reproducible in a m175 build.
Of course that is reproducible. Guess what happens if you exhaust your memory.
TM->PL: Testet again on a mashine with 1GB (the other one has 512MB) and OOo crashes at window No.47 ! So it crashes sooner and the problem doesn´t seem to be memory-related, or does it ? Nevertheless, it is a crash and therefore a defect. No matter how much memory a mashine has.
Yes, you are right. It was not main memory, it was the number of GDI resources which is desktopwide and finite by design on Windows. You can easily see that as with those 57 windows open you get into trouble opening any other new window. So what this boils down to is that OOo's applications use more system handles than e.g. Firefox - some of which is probably necessary while other cases could be avoided. Changing the summary accordingly. But basically this issue falls into the same category as "OOo starts to slow" and "OOo uses too much memory". Both certainly true, and both basically not fixable with one simply change, certainly not for 2.0.4 and certainly not in gsl alone. Solving this one necessesitates a jont effort by applications, drawing layer and gsl. In the meantime i can only suggest not opening 57 Windows on Windows, sorry.
Any legal break fo ir? Fo example opens a windows... You can open only 57 windows, not more not less. :o) But crash is a ugly behavior...