Issue 121969 - writer_pdf_Export Font GDI handle leaks
Summary: writer_pdf_Export Font GDI handle leaks
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: 3.4.1
Hardware: PC Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needhelp
Depends on:
Blocks:
 
Reported: 2013-03-27 13:42 UTC by flajs.email
Modified: 2014-04-03 18:14 UTC (History)
5 users (show)

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


Attachments
GDI view, Font handle are not released ! (93.05 KB, image/png)
2013-03-27 13:42 UTC, flajs.email
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description flajs.email 2013-03-27 13:42:08 UTC
Created attachment 80472 [details]
GDI view, Font handle are not released !

Batch conversion from RTF->PDF

after 1700 iteration of converted files are GDI handles fill 
GDI Font object isn't released.

how to reproduce:
1) connection to OOo

2) while (i < 1800)
3) open RTF (with arial font, bold font .... etc, multiple file)
4) export to PDF (PDF 1.4 or A)
5) loop
Comment 1 flajs.email 2013-03-27 13:44:13 UTC
LibreOffice same problem
Comment 2 Armin Le Grand 2013-03-27 14:58:48 UTC
ALG: Adding me to CC...
Comment 3 flajs.email 2013-03-28 07:56:59 UTC
Simplest  scenario for a reproduction bug:

1) Execute LibreOffice 4.0.1.2/OpenOffice 3.4.1 on Windows 7 
2) Create new document in Writer
3) write several words with fonts Arial, Arial Bold, Times New Roman etc

4) Run GDIView - applikaction for monitoring windows objects resources
   DC, Fonts, etc.
   http://www.nirsoft.net/utils/gdi_handles.html

5) Export this document to PDF 
6) Check GDIView (F5 refresh) on soffice.bin process -> Font object growth
7) repeat steps 5,6

It's info OK ?
Comment 4 Armin Le Grand 2013-03-28 09:03:07 UTC
ALG: Adding Herbert to CC. Herbert, font ressources...?
Comment 5 hdu@apache.org 2013-03-28 09:20:23 UTC
How many GDI font handles are not released? Of course there is some caching going on. If everything was released immediately the performance would suffer quite a bit.
Comment 6 flajs.email 2013-03-28 09:48:52 UTC
Attachement is PNG screenshot, when is 10 0000 GDI handles allocated
have PDF generator problem,  no or bad fonts are included.

(In reply to comment #5)
> How many GDI font handles are not released? Of course there is some caching
> going on. If everything was released immediately the performance would
> suffer quite a bit.
Comment 7 flajs.email 2013-03-28 09:50:26 UTC
Font handles - GDI objects, sorry I'm not primary win32 developer
(In reply to comment #4)
> ALG: Adding Herbert to CC. Herbert, font ressources...?