KFilterDev bug?

David Faure dfaure at klaralvdalens-datakonsult.se
Tue Dec 2 18:02:33 GMT 2003

On Tuesday 02 December 2003 17:27, Craig Drummond wrote:
> Hi,
> When using KFilterDev to read compressed fonts (*.pcf.gz) kcmfontinst
> consumes a *lot* of memory (on my system well over 300Meg) - and errors such as
> "KFilterDev::open: Couldn't open underlying device" appear on the console. See
> bug report http://bugs.kde.org/show_bug.cgi?id=69334 for details.
There aren't any details there, other than what you're saying here.

> If I change the code to use zlib directly, the problem no longer occurs.
Very surprising since KFilterDev, well, uses zlib directly, and passes it
data in chunks, so it shouldn't consume that much memory.

Anyway the "couldn't open underlying device" is the real problem. Are you
sure you're giving it a filename pointing to a file that exists?
If yes, the open call that fails is in kfilterdev.cpp line 131 - can you step
into it to see why it fails? This is all with kdelibs CVS head, right?

David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions

More information about the kde-core-devel mailing list