Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 186236

Summary: [Graphics] Message: Couldn't load font "adobe-courier 10" falling back to "Sans 10" on Solaris 9
Product: [Eclipse Project] Platform Reporter: Martin Oberhuber <mober.at+eclipse>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WONTFIX QA Contact: Felipe Heidrich <eclipse.felipe>
Severity: minor    
Priority: P3 CC: aniefer, avkonst, bugs.eclipse, dj.houghton, eclipse.felipe, freidin.alex, grant_gayed, jonathan, martin.gutschelhofer, olaf, pthomas, Silenio_Quarti, snorthov, timothy.w.gean, tracy
Version: 3.3Keywords: triaged
Target Milestone: ---   
Hardware: Sun   
OS: Solaris-GTK   
Whiteboard:
Attachments:
Description Flags
Screenshot with badly formed icons none

Description Martin Oberhuber CLA 2007-05-09 15:26:28 EDT
Launching Eclipse 3.3M7 on Solaris 9 (with the launcher patch from bug 176805) produces hundreds of the following warnings printed to the stdout console:

** (Eclipse:15507): WARNING **: Couldn't load font "adobe-courier 10" falling
back to "Sans 10"

I cannot understand this message, because
- If I go to Preferences:Appearance:Fonts and click the change button for a
  font, I do see "courier", "courier 10 pitch" and "courier new" listed,
  and the preview also looks like a courier font.
- Running xfontsel also does produce fonts named -adobe-courier-r-*-*-*-*-10

I admit that the GTK 2.1.0 version which comes on Solaris 9 is not officially supported, but upgrading the GTK version is extremely hard on Solaris 9 and thus not practical, as outlined on bug #186097.

It seems that this problem has been around for a while, because it is also mentioned on bug #177949 which was filed against Eclipse M20070212-1330 (3.2.2).
Comment 1 Steve Northover CLA 2007-05-09 16:21:11 EDT
Even though the problem is probably on the launcher, you might know what is going on.

Martin, can you confirm that launching eclipse from a command prompt using "java - ...tons of crap ..." works?  Andrew can supply the crap for you.
Comment 2 Martin Oberhuber CLA 2007-05-09 16:26:24 EDT
Sorry if the description was unclear, but Eclipse runs just fine so I think the Launcher is OK. It's just producing these warning messages as a kind of by product. And I notice that the font in the editor looks different than on other platforms - apparently it's a proportional font.
Comment 3 Steve Northover CLA 2007-05-09 16:30:35 EDT
Ok, it's not the launcher.
Comment 4 Andrey Konstantinov CLA 2007-07-05 04:22:26 EDT
I have got the same problem but only for version 3.2.2

During startup eclipse prints to stdout following warnings (and some other similar warnings):
** (Eclipse:6546): WARNING **: Couldn't load font "adobe-courier Bold 14" falling back to "Sans Bold 14"

And one more interesting fact. The pictures on icons are not presented correctly. I'll attach the screenshot
Comment 5 Andrey Konstantinov CLA 2007-07-05 04:25:34 EDT
Created attachment 73086 [details]
Screenshot with badly formed icons

Have you got any comments on this?
Please, tell me if I should change my settings somewhere...
Comment 6 Felipe Heidrich CLA 2007-07-05 11:29:49 EDT
Just to make sure this is not the launcher, please try running without it:

java -jar plugins/org.eclipse.equinox.launcher_1.0.0.<version>.jar

If you are running a old version of eclipse you will have to use:
java -cp eclipse/startup.jar org.eclipse.core.launcher.Main
If that is the case please update your Eclipse to version 3.3, thank you

Andrey, the problem with images you are seing deserves a separate bug report. Please inform the version of Solaris, the depth of your screen (actually, the whole output of xdpyinfo), and gtk version.
Comment 7 Steve Northover CLA 2007-07-05 13:20:51 EDT
Grant knows about the badly formed icons.  I believe this is a bug in the version of GTK (endian problem?).  Grant?
Comment 8 Grant Gayed CLA 2007-07-05 17:47:45 EDT
re: comments 5 and 7

There's a discussion of this interspersed with discussion about a syntax highlighting problem starting at https://bugs.eclipse.org/bugs/show_bug.cgi?id=177949#c18 .  I have not tried what's described there, but it looks like two factors that may help with the icons not showing correctly are to ensure that you're running with 24-bit depth (if possible of course), and to apply the patch from http://sunsolve.sun.com/search/document.do?assetkey=1-21-115738-05-1 to your system.
Comment 9 Andrey Konstantinov CLA 2007-07-06 02:23:23 EDT
Re: comment 6

Bug 195620 was reported
Comment 10 Martin Oberhuber CLA 2007-07-06 07:09:36 EDT
(In reply to comment #8)
Icons: It looks like the Icon discussion is better continued on bug #195620, keeping this bug for the font messages only. 

When I read bug 177949 comment 28 right, applying the Sun GNOME patch from 
http://sunsolve.sun.com/search/document.do?assetkey=1-21-115738-05-1 fixed the display of icons in 8bpp mode, but did not fix it in 24bpp mode. 24bpp mode was required to get the syntax highlighting right, so it looks like the user is still trapped with bad icons - looks like this is exactly bug #195620.

I did not try out those steps myself though, so I'm just reporting what there is on the bugs -- running Eclipse in a local VNC server seemed to be a workaround according to bug 177949 comment 26.
Comment 11 sun_certified CLA 2007-07-06 11:01:43 EDT
(In reply to comment #10)

>...the Sun GNOME patch from 
http://sunsolve.sun.com/search/document.do?assetkey=1-21-115738-05-1 fixed the
display of icons in 8bpp mode, but did not fix it in 24bpp mode...

martin oberhuber is absolutly right about that. on my system at least (sun blade 100, solaris 9 sparc, 1.5mb ram, local x windows display, etc.), that particular fix sorted out the icon issue only (not the syntax highlighting); even then, the icons were fixed only if my local display was in 8bpp mode; changing to 24 bpp mode on my local display ruins the icons, but fixes syntax highligting.
Comment 12 Steve Northover CLA 2007-07-16 11:13:23 EDT
Felipe, can you make the problem happen on our machine?
Comment 13 Felipe Heidrich CLA 2007-07-16 15:10:17 EDT
(In reply to comment #12)
> Felipe, can you make the problem happen on our machine?
No, I can not.

Did anyone try launching eclipse without the launcher:
java -jar plugins/org.eclipse.equinox.launcher_1.0.0.<version>.jar
?
Comment 14 sun_certified CLA 2007-07-16 15:56:01 EDT
> (In reply to comment #12)
> > Felipe, can you make the problem happen on our machine?
> No, I can not.
> 
> Did anyone try launching eclipse without the launcher:
> java -jar plugins/org.eclipse.equinox.launcher_1.0.0.<version>.jar
> ?
> 

i'm running eclipse version 3.2.2 on solaris 9 sparc. these are the only jars with "equinox" in their name on my system:

  
/development/eclipse/plugins/org.eclipse.equinox.registry_3.2.1.R32x_v20060814.jar
/development/eclipse/plugins/org.eclipse.equinox.preferences_3.2.1.R32x_v20060717.jar
/development/eclipse/plugins/org.eclipse.equinox.common_3.2.0.v20060603.jar

these are the only jars with "launcher" in their name on my system:

/development/eclipse/plugins/org.apache.ant_1.6.5/lib/ant-launcher.jar
/development/eclipse/plugins/org.eclipse.platform.source_3.2.2.r322_v20070119-RQghndJN8IM0MsK/src/org.apache.ant_1.6.5/lib/ant-launchersrc.zip
/development/eclipse/plugins/org.eclipse.platform.source_3.2.2.r322_v20070119-RQghndJN8IM0MsK/src/org.eclipse.platform_3.2.2.r322_v20070117b/launchersrc.zip

those are the only things on my system that come close to "plugins/org.eclipse.equinox.launcher_1.0.0.<version>.jar". 

running the following command results in the exact same outcome as described in the previously-mentioned bug reports: 

   java -jar /development/eclipse/startup.jar
Comment 15 sun_certified CLA 2007-07-16 17:49:45 EDT
(In reply to comment #14)

i was a little premature. i remembered i did some troubleshooting on this a while back and i do also happen to have both eclipse version 3.3.0 build id I20070503-1400


   java -jar /development/projects/temp/eclipse-SDK-3.3M7/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070502.jar

and also an intergration build eclipse version build id I20070508-0800

 java - jar /development/projects/temp/eclipse-SDK-I20070508-0800/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070507.jar
 
and just like version 3.2.2, running the above commands on both versions of 3.3.0 produces the exact same results (dodgy icons in 24bpp mode, etc.)
Comment 16 sun_certified CLA 2007-07-16 17:57:13 EDT
(In reply to comment #15)
please forgive me! i keep forgetting that this bug report is about the fonts messages. apologies for the confusion about the icons. even still, on my system the deluge of font messages are being dumped to the console in all the versions/builds that i mentioned above.
Comment 17 sun_certified CLA 2007-07-17 13:20:42 EDT
(In reply to comment #14)


for what it's worth, the following command also results in the same reported deluge of font (and pangoLayout) messages:

   java -cp /development/eclipse/startup.jar org.eclipse.core.launcher.Main 
Comment 18 Tim Gean CLA 2007-10-30 10:27:31 EDT
I'm getting a similar message (Couldn't load font "misc-fixed Bold 14" falling back to "Sans Bold 14") on SunOS 5.9  I see the last entry (#14) is dated 7/17/07 and was wondering if there were any new developments that may help me get rid of these warning messages.
Thx, Tim
Comment 19 Alex Freidin CLA 2008-12-02 17:12:32 EST
Font messages are reproducable with Eclipse 3.4 and SunOS 5.8/9.
Comment 20 Peter Thomas CLA 2008-12-22 16:29:21 EST
Identical behavior in Solaris 9 with Eclipse 3.2.2.  [Patch 115738-05 installed, but that seems to address icon issues, not font messages].
Comment 21 Peter Thomas CLA 2008-12-22 16:46:56 EST
(In reply to comment #20)
> Identical behavior in Solaris 9 with Eclipse 3.2.2.  [Patch 115738-05
> installed, but that seems to address icon issues, not font messages].

Could this be a fonts incompatibility?  I am running Attachmate Reflection/X v14.0, and I see there are some issues with the PCF format fonts.

I tried hand-editing fonts.dir to remove the .Z suffix from the fonts entries per the WRQ documentation, but that [alone] didn't seem to help.

Can we have a census of what X Servers and font configurations are out there related to this bug?
Comment 22 Martin Oberhuber CLA 2009-04-21 10:16:26 EDT
A much newer version of GTK+ is now available from Blastwave:
http://www.blastwave.org/packages.php/gtk2

I'm not yet sure whether it runs on Solaris 9 or only 10, but it might be worth a try... I won't be able to try this out myself, but I'd appreciate if anyone else has the time and could give feedback.
Comment 23 Felipe Heidrich CLA 2009-08-21 16:29:21 EDT
Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info.
Comment 24 Lakshmi P Shanmugam CLA 2017-06-20 02:39:06 EDT
Solaris is no longer a supported platform.