Bug 4409 - All fonts lost
: All fonts lost
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Display
: 7.0
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-22 04:51 UTC by Jim McAtee
Modified: 2008-12-18 11:12 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments
server log (2.53 KB, text/plain)
2006-10-22 18:49 UTC, Jim McAtee
Details
fonts.bin (61.48 KB, application/octet-stream)
2006-10-22 19:04 UTC, Jim McAtee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim McAtee 2006-10-22 04:51:02 UTC
At r10440 I no longer have any display output on any of my Squeezeboxes.

In the web interface, under the players' display settings I see that the font drop down lists are now empty.  The radio buttons appear to have retained their old settings and I see four buttons under each FONT and STANDBY FONT.  Using the remote's 'Size' button, I can move the selection and see it reflected in the web interfaces radion button.
Comment 1 Adrian Smith 2006-10-22 07:37:38 UTC
Could you start the server with --d_graphics and post what it says.
Comment 2 Adrian Smith 2006-10-22 07:44:36 UTC
Or ./slimserver.pl --debug=player.graphics
Comment 3 Jim McAtee 2006-10-22 11:08:16 UTC
(In reply to comment #2)
> Or ./slimserver.pl --debug=player.graphics

Did that already.  Nothing is logged with player.graphics set to the debug level.



Comment 4 Jim McAtee 2006-10-22 11:47:46 UTC
For whatever reason, it looks like the logging changes are causing this.  Display & font settings are fine at 10436, but fail at 10438.
Comment 5 Adrian Smith 2006-10-22 12:33:43 UTC
Its working for me with the logging code, but on linux.  Do you have any files in the Graphics directory and is it readable - if so I would expect the debug to show lines like:
[20:09:07.2585] Slim::Display::Lib::Fonts::fontfiles (460)  found: /usr/local/slimserver/Graphics/large.2.font.bmp
Comment 6 Jim McAtee 2006-10-22 13:21:59 UTC
(In reply to comment #5)
> Do you have any files in the Graphics directory and is it readable

Yes, about 20 bmp files and a ttf.

> if so I would expect the debug to show lines like:
> [20:09:07.2585] Slim::Display::Lib::Fonts::fontfiles (460)  found:
> /usr/local/slimserver/Graphics/large.2.font.bmp

Nothing.

I just noticed - no settings are being saved to the prefs file, so the debug settings aren't persisting across server restarts.  They stick while the server remains running, fwiw.  Will file a new bug.

Comment 7 KDF 2006-10-22 13:57:42 UTC
seems to be more windows supidity.  working fine here on linux.
Comment 8 Jim McAtee 2006-10-22 18:49:35 UTC
Created attachment 1660 [details]
server log

I added --debug=player.graphics to the startup command since prefs aren't being saved. This raised some display messages. See the attached log.
Comment 9 Jim McAtee 2006-10-22 19:04:02 UTC
Created attachment 1661 [details]
fonts.bin

How large should the fonts.bin file be? It's only 33 bytes on my system.

[19:42:25.4700] Slim::Display::Lib::Fonts::loadFonts (558) Writing font cache: C:\Program Files\SlimServer\server\Cache\fonts.bin
Comment 10 Adrian Smith 2006-10-23 11:25:17 UTC
33 bytes sounds like just the header for the font cache, but no actual font information.  It should contain a preparsed version of all the fonts - about 80K or so.

Looks like the problem is that the server is not reading the Graphics directory correctly.

Are you able to edit the perl, if so in Slim/Display/Lib/Fonts.pm sub fontfiles, could you add a print statement:

--- trunk/server/Slim/Display/Lib/Fonts.pm      2006-10-22 21:52:58.000000000 +0100
+++ Slim/Display/Lib/Fonts.pm   2006-10-23 19:24:31.000000000 +0100
@@ -437,6 +437,8 @@
 
        for my $fontFileDir (graphicsDirs()) {
 
+               print "dir: $fontFileDir\n";
+
                if (!-d $fontFileDir) {
                        next;
                }
Comment 11 sbjaerum 2006-10-23 12:36:02 UTC
The result of the print is:

[21:33:06.8717] main::init (320) SlimServer Graphic Fonts init...
dir: C:\slim\trunk\server\Graphics
dir: C:\slim\trunk\server\Plugins\AlbumReview
dir: C:\slim\trunk\server\Plugins\Alien
dir: C:\slim\trunk\server\Plugins\Biography
dir: C:\slim\trunk\server\Plugins\DateTime
dir: C:\slim\trunk\server\Plugins\DigitalInput
dir: C:\slim\trunk\server\Plugins\Health
dir: C:\slim\trunk\server\Plugins\LMA
dir: C:\slim\trunk\server\Plugins\Live365
dir: C:\slim\trunk\server\Plugins\MoodLogic
dir: C:\slim\trunk\server\Plugins\MusicMagic
dir: C:\slim\trunk\server\Plugins\MyPicks
dir: C:\slim\trunk\server\Plugins\Picks
dir: C:\slim\trunk\server\Plugins\Podcast
dir: C:\slim\trunk\server\Plugins\PreventStandby
dir: C:\slim\trunk\server\Plugins\RS232
dir: C:\slim\trunk\server\Plugins\RadioIO
dir: C:\slim\trunk\server\Plugins\RadioTime
dir: C:\slim\trunk\server\Plugins\RandomPlay
dir: C:\slim\trunk\server\Plugins\Rhapsody
dir: C:\slim\trunk\server\Plugins\ShoutcastBrowser
dir: C:\slim\trunk\server\Plugins\iTunes
[21:33:07.6754] main::init (328) UDP init...
Comment 12 Adrian Smith 2006-10-23 13:37:49 UTC
Please try change 10457 and close if it works for you.
Comment 13 Jim McAtee 2006-10-23 13:51:30 UTC
That did it.  Thanks.
Comment 14 Chris Owens 2008-03-07 09:04:07 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.