Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 195620 - Solaris 9 GTK: Icons are not painted properly in 24bpp mode
Summary: Solaris 9 GTK: Icons are not painted properly in 24bpp mode
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3   Edit
Hardware: PC Solaris-GTK
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-06 02:22 EDT by Andrey Konstantinov CLA
Modified: 2017-12-06 01:36 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Konstantinov CLA 2007-07-06 02:22:13 EDT
I'll attach the screenshot with badly formed icons:
https://bugs.eclipse.org/bugs/attachment.cgi?id=73086

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"


Eclipse SDK

Version: 3.2.2
Build id: M20070212-1330

Output from xdpyinfo:

name of display:    <private host name>:54.0
version number:    11.0
vendor string:    Citrix Systems Inc
vendor release number:    57503
maximum request size:  4194300 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, MSBFirst, 32
image byte order:    MSBFirst
number of supported pixmap formats:    3
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 207
focus:  window 0x5000005, revert to PointerRoot
number of extensions:    14
    BIG-REQUESTS
    DOUBLE-BUFFER
    Extended-Visual-Information
    GLX
    MIT-SHM
    MIT-SUNDRY-NONSTANDARD
    RECORD
    SECURITY
    SGI-GLX
    SHAPE
    SYNC
    TOG-CUP
    XC-MISC
    XTEST
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1272x959 pixels (323x244 millimeters)
  resolution:    100x100 dots per inch
  depths (1):    24
  root window id:    0x26
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x22
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store NO, save-unders NO
  largest cursor:    32x32
  current input event mask:    0xda4031
    KeyPressMask             EnterWindowMask          LeaveWindowMask
    KeymapStateMask          StructureNotifyMask      SubstructureNotifyMask
    SubstructureRedirectMask PropertyChangeMask       ColormapChangeMask
  number of visuals:    1
  default visual id:  0x23
  visual:
    visual id:    0x23
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits

I can not apply this patch, because I have not root rights
http://sunsolve.sun.com/search/document.do?assetkey=1-21-115738-05-1 
I need serious reasons to request IT Support to update OS.

Unfortunatelly, I do not know how to check version of gtk... 
As I know there are several installations of gtk, but I don't know which version is used by eclipse (by default)
Could you train me how to do this? So, I'll provide information about GTK.
Comment 1 Andrey Konstantinov CLA 2007-07-06 02:24:07 EDT
+ see comments from TR 186236
Comment 2 Martin Oberhuber CLA 2007-07-06 07:12:47 EDT
Is this on Solaris 9? - I tentatively updated the Summary accordingly, please update if not correct.

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 this bug.

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.

If you want to try switching to 8bpp mode for a test, see bug 177949 comment 28 or try it in an 8bpp VNC visual first.
Comment 3 Martin Oberhuber CLA 2007-07-06 07:31:40 EDT
Regarding GTK version, you can do this - shows the output on a standard Solaris 9 box, which has GTK 2.1.0 preinstalled (don't ask me how one would know this is actually version 2.1.0, it reports itself as 2.0.100):

479 mober@szg-anar~>pkginfo | grep -i gtk
system      SUNWGtkr                         GTK - The GIMP Toolkit (Root)
system      SUNWGtku                         GTK - The GIMP Toolkit (Usr)
480 mober@szg-anar~>pkginfo -l SUNWGtkr
   PKGINST:  SUNWGtkr
      NAME:  GTK - The GIMP Toolkit (Root)
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  11.9.0,REV=2002.10.17.10.57
   BASEDIR:  /
    VENDOR:  Sun Microsystems, Inc.
      DESC:  GTK - The GIMP Toolkit (Root)
    PSTAMP:  sfw-patch20021017110354
  INSTDATE:  Sep 15 2004 20:45
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:       56 installed pathnames
                   1 shared pathnames
                   2 directories
                  36 blocks used (approx)

According to bug 177949 comment 15, these Sun preinstalled GTK libs come in /usr/lib, but it could be that you also have a "Sunfreeware" version of GTK in /usr/local/lib. That one is reported to be seriously broken (bug 177949 comment 18); check its existence with

  ls /usr/local/lib/libgtk-*
Comment 4 sun_certified CLA 2007-07-06 11:34:58 EDT
(In reply to comment #2)
>...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 cde display, sun's gtk 2.1.0, etc.), that particular patch sorted out the icon issue but only if my local display was in 8bpp mode; changing to 24 bpp mode on my local cde display ruins the icons - even with the gnome patch.
Comment 5 Andrey Konstantinov CLA 2007-07-07 08:32:19 EDT
Yes, it is Solaris 9.

Information about GTK:
pkginfo -l SUNWGtkr
   PKGINST:  SUNWGtkr
      NAME:  GTK - The GIMP Toolkit (Root)
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  11.9.0,REV=2002.10.17.10.57
   BASEDIR:  /
    VENDOR:  Sun Microsystems, Inc.
      DESC:  GTK - The GIMP Toolkit (Root)
    PSTAMP:  sfw-patch20021017110354
  INSTDATE:  Feb 06 2006 09:28
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:       56 installed pathnames
                   1 shared pathnames
                   2 directories
                  36 blocks used (approx)
pkginfo -l SUNWGtku
   PKGINST:  SUNWGtku
      NAME:  GTK - The GIMP Toolkit (Usr)
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  11.9.0,REV=2002.10.17.10.57
   BASEDIR:  /
    VENDOR:  Sun Microsystems, Inc.
      DESC:  GTK - The GIMP Toolkit (Usr)
    PSTAMP:  sfw-patch20021017110400
  INSTDATE:  Feb 06 2006 09:29
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:      149 installed pathnames
                   8 shared pathnames
                  14 directories
                   5 executables
                4366 blocks used (approx)
Comment 6 Andrey Konstantinov CLA 2007-07-07 08:36:15 EDT
Re: comment 3

There are not gtk libs in /usr/local/lib/ directory:
>ls /usr/local/lib/libgtk-*
ls: No match.
Comment 7 Eric Moffatt CLA 2007-07-17 09:21:14 EDT
Passing to SW for comment.
Comment 8 Andrey Konstantinov CLA 2007-09-25 03:00:49 EDT
Hi,

Are there any news about this problem?
Has workaround been found for this problem?
Maybe some information is required...
Comment 9 Bogdan Gheorghe CLA 2007-10-01 15:04:42 EDT
Unfortunately, we do not have access to a Solaris 9 box so I can't reproduce your case. Also, our current earliest supported GTK2 version is 2.2.0, what is on your machine? Does this bug persist in a more recent build of Eclipse?
Comment 10 Andrey Konstantinov CLA 2007-10-08 00:50:04 EDT
Re: comment 3

Information about GTK: see my comment 5
Yes, it is reproducable with eclipse-platfrom-3.3.

Comment 11 Alex Freidin CLA 2008-12-02 16:48:03 EST
Reproducable with Eclipse 3.4 and both Solaris 8 and 9. Possible workarounds:
1. Use CygwinX on Windows machine to run Eclipse on Solaris 8/9.
2. Login to Solaris 8/9 from a Linux KDE/GNOME machine.
In both cases, the icons are OK.
Comment 12 Martin Oberhuber CLA 2009-04-21 10:15:46 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 13 Alexander Kurtakov CLA 2017-12-06 01:36:54 EST
SWT no longer provides Solaris builds.