JDK-4459994 : painting regressions: wrong color and flashing
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2001-05-17
  • Updated: 2001-07-17
  • Resolved: 2001-07-17
Related Reports
Duplicate :  
Relates :  
Description
Effective with Java 1.4.0-beta-b61, SMC is exhibitting the following problems
that did not occur with 1.4.0-beta-b59 or 1.3.1-beta-b15.

These can be seen by running one of the following environments:

  - You must be running build37.  SMC will be b55-built bytecodes
    running on a b61 JVM.

  - You can run an earlier OS build as long as you have b61 installed
    as the default JVM, and install the AI nightly build referenced
    at http://smpt.east/projects/SMC/install.html.  Follow the 
    "Cluster install" instructions.  You should run "nuke_admin"
    first to purge any previous versions.  SMC will be b61-built
    bytecodes running on a b61 JVM.

  - The problems still exist in 1.4-b64.
    b64-built bytecodes for SMC can be found at /net/divet.east/files/s81/b64-pkgs.
    Simply follow the same instructions as mentioned at the above URL, accept
    cd to this directory before running "install_admin".

After installation, set JAVA_HOME to point to the location of B61 or B64 and
run "/usr/sadm/bin/smc".  When the console comes up, note the following
problems:


1) Click on any tool in the navigation pane (say Serial Ports under the Devices
   folder).  The 1st tool will you click on will require you to login.  After
   login, the right-side pane
   says "Loading Serial Ports Tool", followed by "Loading Serial Ports".
   Both text messages are supposed to be displayed in the same purple color
   as the icon image to the immediate left.  However, in b61, they appear
   in the color black.

2) After performing step one, you will see a list of objects in the right-side
   pane.  Select one and invoke the Actions->Properties menu.
   Note how the main window completely fills in
   with grey and then repaints itself before the dialog comes up - this too,
   is new behavior which has not been seen previously.  This does NOT happen
   if you double-click on the object to invoke properties, or you click on
   the Properties button in the toolbar.

   The same behavior can also be seen by simply invoking Console->New Console.

These problems were previously reported in bug #4453472, as part of a whole
series of problems that were related.  However, it was proven otherwise and
so it was decided to break out these problems into a seperate bug.


Here's the output from xdpyinfo:

name of display:    :0.0
version number:    11.0
vendor string:    Sun Microsystems, Inc.
vendor release number:    6420
maximum request size:  262140 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 132
focus:  window 0xd00009, revert to PointerRoot
number of extensions:    28
    AccessX
    Adobe-DPS-Extension
    DOUBLE-BUFFER
    DPMS
    DPSExtension
    Extended-Visual-Information
    FBPM
    LBX
    MIT-SCREEN-SAVER
    MIT-SHM
    MIT-SUNDRY-NONSTANDARD
    Multi-Buffering
    RECORD
    SECURITY
    SHAPE
    SUN_ALLPLANES
    SUN_DGA
    SUN_OVL
    SUN_SME
    SYNC
    SolarisIA
    TOG-CUP
    XC-APPGROUP
    XC-MISC
    XIE
    XInputDeviceEvents
    XInputExtension
    XTEST
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1280x1024 pixels (361x288 millimeters)
  resolution:    90x90 dots per inch
  depths (3):    1, 8, 24
  root window id:    0x37
  depth of root window:    8 planes
  number of colormaps:    minimum 1, maximum 5
  default colormap:    0x34
  default number of colormap cells:    256
  preallocated pixels:    black 1, white 0
  options:    backing-store YES, save-unders YES
  largest cursor:    64x64
  current input event mask:    0x78003f
    KeyPressMask             KeyReleaseMask           ButtonPressMask          
    ButtonReleaseMask        EnterWindowMask          LeaveWindowMask          
    SubstructureNotifyMask   SubstructureRedirectMask FocusChangeMask          
    PropertyChangeMask       
  number of visuals:    16
  default visual id:  0x20
  visual:
    visual id:    0x20
    class:    PseudoColor
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x21
    class:    PseudoColor
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x22
    class:    StaticColor
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x7, 0x38, 0xc0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x23
    class:    StaticGray
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x24
    class:    GrayScale
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x25
    class:    TrueColor
    depth:    8 planes
    available colormap entries:    8 per subfield
    red, green, blue masks:    0x7, 0x38, 0xc0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x26
    class:    DirectColor
    depth:    8 planes
    available colormap entries:    8 per subfield
    red, green, blue masks:    0x7, 0x38, 0xc0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x27
    class:    StaticGray
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x2e
    class:    PseudoColor
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x2f
    class:    PseudoColor
    depth:    8 planes
    available colormap entries:    255
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x28
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff0000
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x29
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff0000
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x2a
    class:    DirectColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff0000
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x2b
    class:    DirectColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff0000
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x2c
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff0000
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x2d
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff0000
    significant bits in color specification:    8 bits


And here's the output from prtdiag:

System Configuration:  Sun Microsystems  sun4u Sun Ultra 60 UPA/PCI (2 X UltraSPARC-II 296MHz)
System clock frequency: 99 MHz
Memory size: 384 Megabytes

========================= CPUs =========================

                    Run   Ecache   CPU    CPU
Brd  CPU   Module   MHz     MB    Impl.   Mask
---  ---  -------  -----  ------  ------  ----
 0     0     0      296     2.0   US-II    2.0
 0     2     2      296     2.0   US-II    2.0


========================= IO Cards =========================

     Bus   Freq
Brd  Type  MHz   Slot  Name                              Model
---  ----  ----  ----  --------------------------------  ----------------------
 0   PCI    33     1   network-SUNW,hme                                        
 0   PCI    33     3   scsi-glm/disk (block)             Symbios,53C875        
 0   PCI    33     3   scsi-glm/disk (block)             Symbios,53C875        
 0   UPA    99    30   FFB, Double Buffered              SUNW,501-4788         

No failures found in System
===========================

========================= HW Revisions =========================

ASIC Revisions:
---------------
PCI: pci Rev 4
PCI: pci Rev 4
Cheerio: ebus Rev 1

FFB Hardware Configuration:
-----------------------------------
	Board rev: 2
	FBC version: 0x3241906d
	DAC: Brooktree 9070, version 1
	3DRAM: Mitsubishi 130a, version 1

System PROM revisions:
----------------------
  OBP 3.17.0 1998/10/23 11:26   POST 2.0.2 1998/10/19 10:46



Comments
EVALUATION Please try running with: java -Xint and with env NO_J2D_DGA=true java -Xint and see if it makes any difference. Also, could you include the output from xdpyinfo and prtdiag (or fbinfo)? jeannette.hung@Eng 2001-05-17 I've run the application and it seems to me that this is more likely to be awt or swing issue: the frame completely repaints itself when a new window is shown. It doesn't happen every time, though. I'm reassigning the bug to Swing team. Also, I don't think it's a P3 since when the repaint is done, everything is rendered as expected - downgrading to a P4. dmitri.trembovetski@eng 2001-07-11 Yes, text in 1.4 for metal has been changed to be black by default. According to the putback the id is 4418155. The second problem is a manifestation of 4419252. Closing as a duplicate. joutwate@eng 2001-07-17
17-07-2001