Rockbox

Tasklist

FS#11185 - Text viewer returns div by 0 if font is missing, renamed or corrupted

Attached to Project: Rockbox
Opened by Michael Carr (Strife89) - Wednesday, 07 April 2010, 16:54 GMT
Last edited by Tomer Shalev (tomers) - Thursday, 08 April 2010, 21:56 GMT
Task Type Bugs
Category Plugins
Status Closed
Assigned To Tomer Shalev (tomers)
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Steps to reproduce:

1) Start the text viewer in the normal way (i.e., open a text file) and change the viewing font.

2) Exit the text viewer.

3) Move, remove or rename the font you used in /.rockbox/fonts

4) Open the text viewer again. It will return "font not found" and then crash with a divide by zero.
This task depends upon

Closed by  Tomer Shalev (tomers)
Thursday, 08 April 2010, 21:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in r25544.
Comment by Michael Sparmann (TheSeven) - Wednesday, 07 April 2010, 16:58 GMT
  • Field changed: Category (Battery/Charging → Plugins)
Corrected category.
Comment by Amr Medhat (amr) - Wednesday, 07 April 2010, 20:51 GMT
After the latest update r25519, there is no exceptions now that were mentioned in  FS#11169 .., but still the viewer reads a wrong font name without neither loading a default font, nor allowing to modify font settings.

I constantly get: "Can't open font: /.rockbox/fonts/6-GNU-Unifont.fnt" which should be "06-GN...fnt" not "6-GN...fnt"
Trying to delete viewer_file.dat from rocks/viewers to let the viewer create a fresh new setting file caused the "Stack Smashing" error and only viewer_file.tmp was created.

Loading...