Issue 16625 - Selecting even simple drawings requires huge amounts of GDI resources
Summary: Selecting even simple drawings requires huge amounts of GDI resources
Status: CLOSED DUPLICATE of issue 15222
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 Beta2
Hardware: PC Windows 98
: P2 Trivial (vote)
Target Milestone: ---
Assignee: wolframgarten
QA Contact: issues@graphics
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2003-07-09 20:29 UTC by n7dr
Modified: 2003-09-08 16:52 UTC (History)
3 users (show)

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


Attachments
Drawing file (6.14 KB, application/octet-stream)
2003-07-10 16:40 UTC, n7dr
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description n7dr 2003-07-09 20:29:55 UTC
The Drawing component uses so many GDI resources as to be close to useless under Windows 98SE:

1. Starting with 70% of GDI resources free (after starting the Drawing program).
2. Create a simple drawing containing:
  two lines
  three labelled arrows
  two small text boxes
3. Select the drawing, and free GDI resources immediately drop to 38%

If, for example, one wanted to cut and paste this drawing into a Word Processor document, one is unable to do so reliably because the free GDI resources drop below 30%, at which point Win98SE is prone to crashes.

FWIW, creating an identical diagram in Visio and then selecting it causes the GDI resources to drop by only 2% instead of by more than 30%.
Comment 1 dankegel 2003-07-10 04:35:06 UTC
It's interesting that the number goes low, and that
Win98 usually crashes when the number goes low,
but it would be more interesting if you could
give us a recipe that reliably crashed OOo on Win98.
e.g. "1. Open this drawing file  2. 'Select All'
3. 'Copy'  4 'New text document'  5 'Paste'. 
Windows will crash 30% of the time."
Something like that would be terrific.  Can you find such a recipe?
Thanks!
Comment 2 dankegel 2003-07-10 06:20:07 UTC
I did what you described, and my "System Resources" never
went below 52% free.  ('Course, I have 384MB of RAM in my 
WinME laptop, but I think "System Resources" is GDI stuff
and doesn't really take advantage of lots of RAM.)
Opening a second drawing and pasting in the whole thing
dropped me down to 49%.  Each time I opened a new app,
it went down 2%; each time I pasted the simple drawing it
went down another 2%.   

I'm going to mark this one 'WorksForMe' until the original
reporter posts a way to repeat the crash.
Comment 3 n7dr 2003-07-10 16:40:23 UTC
Created attachment 7538 [details]
Drawing file
Comment 4 n7dr 2003-07-10 16:43:58 UTC
> I'm going to mark this one 'WorksForMe' until the original
> reporter posts a way to repeat the crash.

But you tried it on WinME. The report is for Win98SE. WinME uses a different mechanism for managing GDI resources.

From a clean boot here is what happens to my GDI resources when I use the attached file:

1. Start: 82%
2. Start Drawing program: 75%
3. Start Word processor: 71%
4. Open attached document in Drawing program: 53%
5. Select the drawing: 37%
6. Copy to clipboard: 34%

These numbers are consistent +/- 1 from a clean boot. If I am running any other programs (e.g., a Web browser) the numbers are obviously even lower. Once Win98SE goes below about 30% it generally becomes unstable -- not in the sense that there will be an immediate crash, but in the sense that you can expect either a crash or serious misbehaviour sometime within the next few minutes.

So starting from a completely clean boot and performing the above sequence is not a problem -- but if one has some other program running  as well (maybe a browser or an IM client), one is very likely to experience a crash.

I am typing this having performed the above steps, but with Mozilla also open, and am at 29% free. If I were to open my IM client (which takes 6% resources) then there is a good chance that I would be unable to finish submitting this report because Win98SE would probably get very sick.

(You are correct that GDI resources has nothing to do with RAM. I believe that in Win9x it is a fixed 64K block.)

Now to see if I can successfully attach the test file I am using. (I have never done this before.)

  Doc
Comment 5 wolframgarten 2003-07-11 12:33:47 UTC
Sorry, but this is not reproduceable here. I have tested the behaviour
on Win98 SE with the ressource display. According to your runtable
here are my values:
1. 82%
2. 80%
3. 79%
4. 79%
5. 79%
6. 48%
It wont go lower than 48 % than.
What might help you: please have a look into the autostart directory:
maybe there are some programs that are not necessary and can be
deleted. Or there are utilities in the back eating up your ressources.
Thanks for your help anyway.
Comment 6 wolframgarten 2003-07-11 12:33:59 UTC
Closed.
Comment 7 Rainer Bielefeld 2003-07-20 16:22:52 UTC
This problem still exists, might be not on eevery PC, but on mine, for
example :-(

This might be related to issue 15222

Rainer

Comment 8 Rainer Bielefeld 2003-07-20 16:31:10 UTC
I checked the problem with the attached testfile. Not always, but
sometimes I was able to reproduce decreasing System- and GDI-resources
from app. 55% to 25% when I selected the image.

My system:
PIII 667MHz, 128MB, WIN98SE

Rainer
Comment 9 dankegel 2003-07-20 16:37:28 UTC
Rainer, thanks for keeping us honest :-)  I agree it looks like
issue 15222.  I'm going to mark it duplicate - let's continue
over there.

*** This issue has been marked as a duplicate of 15222 ***
Comment 10 Rainer Bielefeld 2003-07-21 06:01:49 UTC
I see that problem with WIN98SE with 1.0.3.1, 1.1Beta2, 1.1RC1

Rainer
Comment 11 wolframgarten 2003-07-21 14:00:08 UTC
Closed.