Page MenuHome

Font cache eats huge amount of memory when using i18n fonts
Closed, InvalidPublicTO DO

Description

--- Operating System, Graphics card ---

Ubuntu 12.10 amd64
GeForce GTX670

--- Blender version with error, and version that worked ---

r55232

--- Short description of error ---

After i18n monospace font was introduced in r55202, changing font size by crtl+wheel in the text editor increases memory usage up to ~3GiB.

i18n font: OFF ON
--------------------------------------
2.66a ~250MiB ~400MiB
r55232 250MiB-300MiB 450MiB-3GiB

The font caches shouldn't be generated for unused glyphs.
Also, unused caches should be freed immediately if possible.

Event Timeline

I thought you were involved with this? In general we don't use the bug tracker for own todo items... also if you find a bug, try to connect to the developer yourself, or solve it :)
The bug tracker is first for end-users to report issues. Developers have a lot more channels to discuss work.

I also don't understand what the bug is. By definition (here) a bug is when code doesn't do what the developer meant it to do... everything else is 'todo'.

Added this to todo list:

http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/UserInterface#General_todo_items

I'll try to solve this later.

Thanks.

Shinsuke Irie (irie) changed the task status from Unknown Status to Unknown Status.Mar 13 2013, 3:40 PM