FS#11428 - Fonts keep file handles open during UMS mode

Attached to Project: Rockbox
Opened by Michael Sparmann (TheSeven) - Monday, 21 June 2010, 19:03 GMT
Last edited by Michael Sparmann (TheSeven) - Monday, 21 June 2010, 20:20 GMT
Task Type Bugs
Category Font/charset
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.6
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


During USB mass storage mode, some file handles are kept open by the fonts.
If there is a font cache miss during UMS mode (for example because of a HID mode switch), this could lead to disk access attempts, which won't be any good.
Also, if the font files were modified during the UMS session, undefined behavior can occur after resuming normal non-USB operation.

The attached patch fixes this by unloading all non-builtin fonts during UMS sessions.
This task depends upon

Closed by  Michael Sparmann (TheSeven)
Monday, 21 June 2010, 20:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  Committed as r27027/r27028