Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2025-08-05 22:26:54



Reply to topic  [ 8 posts ] 
fontconfig issues under Linux 
Author Message

Joined: 2012-08-08 17:51:35
Posts: 90
Reply with quote
I think I might be on to something about the delay.

This is from the console output when starting the respective viewer and just getting the login screen:

1.26.4.22
Code:
2012-08-09T17:47:11Z INFO: getDynamicFallbackFontList: Getting system font list from FontConfig...
2012-08-09T17:47:11Z INFO: getDynamicFallbackFontList: Language en
2012-08-09T17:47:11Z INFO: getDynamicFallbackFontList: Location GB
2012-08-09T17:47:11Z INFO: getDynamicFallbackFontList: Variant
2012-08-09T17:47:11Z INFO: getDynamicFallbackFontList: Preferring fonts of language: en
2012-08-09T17:47:11Z INFO: getDynamicFallbackFontList: Using 40/71 system fonts.


1.26.4.23 and 1.26.5.2
Code:
2012-08-09T17:44:42Z INFO: getDynamicFallbackFontList: Getting system font list from FontConfig...
2012-08-09T17:44:42Z INFO: getDynamicFallbackFontList: Language en
2012-08-09T17:44:42Z INFO: getDynamicFallbackFontList: Location GB
2012-08-09T17:44:42Z INFO: getDynamicFallbackFontList: Variant
2012-08-09T17:44:42Z INFO: getDynamicFallbackFontList: Preferring fonts of language: en
Fontconfig error: Cannot load default config file
2012-08-09T17:45:10Z INFO: getDynamicFallbackFontList: Using 40/50 system fonts.


Notice the time delay?
A funny thing is the message about the fonts only shows in the console, not in the debug file.

I also see that 1.26.4.23 and 1.26.5.2 complains about this:
Code:
2012-08-09T17:45:10Z INFO: createFont: ONCE: Couldn't load font /usr/share/fonts/X11/100dpi/timR08.pcf.gz

The 1.26.4.22 does not show this line.

Do I miss some needed font on my system or what can be up?
What change makes the newer version complain but not the older?
And what does 40/71 vs 40/50 mean?

I guess this will be another learning experience again... :roll:


2012-08-09 18:19:26
Profile

Joined: 2009-03-17 18:42:51
Posts: 6028
Reply with quote
Jessica Hultcrantz wrote:
I think I might be on to something about the delay.

This is from the console output when starting the respective viewer and just getting the login screen:

1.26.4.22
Code:
2012-08-09T17:47:11Z INFO: getDynamicFallbackFontList: Getting system font list from FontConfig...
2012-08-09T17:47:11Z INFO: getDynamicFallbackFontList: Language en
2012-08-09T17:47:11Z INFO: getDynamicFallbackFontList: Location GB
2012-08-09T17:47:11Z INFO: getDynamicFallbackFontList: Variant
2012-08-09T17:47:11Z INFO: getDynamicFallbackFontList: Preferring fonts of language: en
2012-08-09T17:47:11Z INFO: getDynamicFallbackFontList: Using 40/71 system fonts.


1.26.4.23 and 1.26.5.2
Code:
2012-08-09T17:44:42Z INFO: getDynamicFallbackFontList: Getting system font list from FontConfig...
2012-08-09T17:44:42Z INFO: getDynamicFallbackFontList: Language en
2012-08-09T17:44:42Z INFO: getDynamicFallbackFontList: Location GB
2012-08-09T17:44:42Z INFO: getDynamicFallbackFontList: Variant
2012-08-09T17:44:42Z INFO: getDynamicFallbackFontList: Preferring fonts of language: en
Fontconfig error: Cannot load default config file
2012-08-09T17:45:10Z INFO: getDynamicFallbackFontList: Using 40/50 system fonts.


Notice the time delay?
A funny thing is the message about the fonts only shows in the console, not in the debug file.

I also see that 1.26.4.23 and 1.26.5.2 complains about this:
Code:
2012-08-09T17:45:10Z INFO: createFont: ONCE: Couldn't load font /usr/share/fonts/X11/100dpi/timR08.pcf.gz

The 1.26.4.22 does not show this line.

Do I miss some needed font on my system or what can be up?
What change makes the newer version complain but not the older?
And what does 40/71 vs 40/50 mean?

I guess this will be another learning experience again... :roll:
That's just because of different fontconfig libraries (v1.26.4.23 and v1.26.5.x use the newer libraries that the v3 viewer also uses): try deleting the libfontconfig.so.1 library from the lib/ sub-directory of the viewer installation and see if it helps (this will force the viewer to try and use your system's fontconfig).


2012-08-09 18:45:00
Profile WWW

Joined: 2011-09-27 11:18:31
Posts: 244
Reply with quote
Jessica, I can verify that (Linux 64, 1.26.4.23):

Code:
2012-08-09T18:42:34Z INFO: getDynamicFallbackFontList: Getting system font list from FontConfig...
2012-08-09T18:42:34Z INFO: getDynamicFallbackFontList: Language el
2012-08-09T18:42:34Z INFO: getDynamicFallbackFontList: Location GR
2012-08-09T18:42:34Z INFO: getDynamicFallbackFontList: Variant UTF-8
2012-08-09T18:42:34Z INFO: getDynamicFallbackFontList: Preferring fonts of language: el
Fontconfig error: Cannot load default config file
2012-08-09T18:43:30Z INFO: getDynamicFallbackFontList: Using 40/94 system fonts.
2012-08-09T18:43:30Z INFO: dump: LLFontRegistry dump:
2012-08-09T18:43:30Z INFO: dump: Size: Huge => 16
2012-08-09T18:43:30Z INFO: dump: Size: Large => 12
2012-08-09T18:43:30Z INFO: dump: Size: Medium => 10
2012-08-09T18:43:30Z INFO: dump: Size: Monospace => 9
2012-08-09T18:43:30Z INFO: dump: Size: Small => 9
2012-08-09T18:43:30Z INFO: dump: Font: name=DejaVu style=[0] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: DejaVuSans.ttf
2012-08-09T18:43:30Z INFO: dump: Font: name=DejaVu style=[1] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: DejaVuSansBold.ttf
2012-08-09T18:43:30Z INFO: dump: Font: name=DejaVu style=[2] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: DejaVuSansOblique.ttf
2012-08-09T18:43:30Z INFO: dump: Font: name=DejaVu style=[3] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: DejaVuSansBoldOblique.ttf
2012-08-09T18:43:30Z INFO: dump: Font: name=Helvetica style=[0] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: arial.ttf
2012-08-09T18:43:30Z INFO: dump: Font: name=Helvetica style=[1] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: arialbd.ttf
2012-08-09T18:43:30Z INFO: dump: Font: name=Helvetica style=[2] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: ariali.ttf
2012-08-09T18:43:30Z INFO: dump: Font: name=Helvetica style=[3] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: arialbi.ttf
2012-08-09T18:43:30Z INFO: dump: Font: name=Monospace style=[0] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: profontwindows.ttf
2012-08-09T18:43:30Z INFO: dump: Font: name=OverrideTest style=[0] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: times.ttf
2012-08-09T18:43:30Z INFO: dump: Font: name=SansSerif style=[0] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: MtBkLfRg.ttf
2012-08-09T18:43:30Z INFO: dump: Font: name=SansSerif style=[1] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: MtBdLfRg.ttf
2012-08-09T18:43:30Z INFO: dump: Font: name=default style=[0] size=[TEMPLATE] fileNames=
2012-08-09T18:43:30Z INFO: dump:   file: DejaVuSansCondensed.ttf
2012-08-09T18:43:30Z INFO: createFont: createFont SansSerif size Small style 0
2012-08-09T18:43:30Z INFO: createFont: ONCE: Couldn't load font /usr/share/fonts/100dpi/UTRG__10-ISO8859-1.pcf.gz
2012-08-09T18:43:30Z INFO: createFont: ONCE: Couldn't load font /usr/share/fonts/100dpi/UTRG__10.pcf.gz
2012-08-09T18:43:30Z INFO: createFont: ONCE: Couldn't load font /usr/share/fonts/100dpi/timR08.pcf.gz
2012-08-09T18:43:30Z INFO: createFont: ONCE: Couldn't load font /usr/share/fonts/TTF/dejavu/DejaVuSans.ttf
2012-08-09T18:43:30Z INFO: createFont: createFont SansSerif size Medium style 0
2012-08-09T18:43:30Z INFO: createFont: createFont SansSerif size Large style 0
2012-08-09T18:43:30Z INFO: createFont: createFont SansSerif size Huge style 0
2012-08-09T18:43:30Z INFO: createFont: createFont SansSerif size Medium style 1
2012-08-09T18:43:30Z INFO: createFont: createFont Monospace size Monospace style 0
2012-08-09T18:43:30Z INFO: saveToFile: Saved to /home/nikos/.secondlife/user_settings/settings_coolvlviewer_1264.xml


2012-08-09 18:48:39
Profile

Joined: 2009-03-23 19:07:48
Posts: 30
Reply with quote
Jessica Hultcrantz wrote:
Hi Henri

1.26.5.x and 1.26.4.23 takes about 10-12 seconds to draw the top menus after the viewer is started :(
For reference 1.26.4.22 takes about 1-2 seconds.

The same delay goes for rendering the HTML-based search in the respective viewer. Everything else seems normal this far though.


Jessica,
I have the same issue on my machine, where the initial screen stays black for 10-15 seconds after start.
During this, I see a load of disk activity.

Based on that disk activity and the console log message, I've gotten the feeling its sorting through all my system and add-on fonts and then starting up an HTML renderer for the initial screen.

Given I have ~15000 added TTF fonts, I figured that scan and setup would take a bit.


2012-08-10 14:30:25
Profile

Joined: 2012-08-08 17:51:35
Posts: 90
Reply with quote
Henri Beauchamp wrote:
That's just because of different fontconfig libraries (v1.26.4.23 and v1.26.5.x use the newer libraries that the v3 viewer also uses): try deleting the libfontconfig.so.1 library from the lib/ sub-directory of the viewer installation and see if it helps (this will force the viewer to try and use your system's fontconfig).


Thanks for the explanation Henri, the suggested workaround seems to do the trick, at least for me. Loading time is down to the old renderer and no more message about fontconfig in the console.

It would be nice to get some feedback from the others with the same problem.

(And yes I have quite a lot of fonts installed as well just like Allen although maybe not THAT many :P )

I could also add that with the libfontconfig.so.1 in place, the search for fonts uses one CPU core 100% until it fails.


2012-08-10 18:36:43
Profile

Joined: 2009-03-17 18:42:51
Posts: 6028
Reply with quote
I added LL's pre-built libfontconfig.so.1 in the installer since the viewer is compiled against it and it seemed a good idea to bundle it as well as the rest of the pre-built libraries... Apparently, this assumption was plain wrong, so this library will be removed from the next releases.

In the mean time, Linux users should manually delete libfontconfig.so.1from the lib/ sub-directory from v1.26.4.23's and v1.26.5.2's installation directories.


2012-08-10 18:52:15
Profile WWW

Joined: 2009-03-23 19:07:48
Posts: 30
Reply with quote
Jessica Hultcrantz wrote:
Henri Beauchamp wrote:
That's just because of different fontconfig libraries (v1.26.4.23 and v1.26.5.x use the newer libraries that the v3 viewer also uses): try deleting the libfontconfig.so.1 library from the lib/ sub-directory of the viewer installation and see if it helps (this will force the viewer to try and use your system's fontconfig).


Thanks for the explanation Henri, the suggested workaround seems to do the trick, at least for me. Loading time is down to the old renderer and no more message about fontconfig in the console.

It would be nice to get some feedback from the others with the same problem.

(And yes I have quite a lot of fonts installed as well just like Allen although maybe not THAT many :P )

I could also add that with the libfontconfig.so.1 in place, the search for fonts uses one CPU core 100% until it fails.


Yep - same here - 1 core goes to redline until the font scan is complete. Ouch.
Just moving the lib/libfontconfig.so.1 out of the viewer lib directory worked for me to make startup instant.
And yes, it was a bit of dismay when I counted up the fonts which have accumulated in my home directory since it was started in ~1992 or so.


2012-08-10 21:28:41
Profile

Joined: 2011-09-27 11:18:31
Posts: 244
Reply with quote
Works for me as well. Thank you!


2012-08-11 17:58:58
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 48 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.