JDK-7029523 : Splash screen of size <90x90 is not shown in GNOME
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Not an Issue
  • OS: generic
  • CPU: generic
  • Submitted: 2011-03-21
  • Updated: 2012-03-22
  • Resolved: 2011-03-22
Related Reports
Relates :  
Description
The splash screen of size less than 90x90px is not shown by the java launcher in Linux/Solaris using GNOME desktop environment with 16-bit color depth scheme. Only explicit invocation of update() makes the splash screen appear. It does not matter how many time passes before the update method is invoked.

If the size of an image is 90x90px or more in the same context, the splash screen is shown as expected.

The splash screen appears for the 89x89px image if one of the following context changes happen:
- GNOME -> not GNOME
- 16-bit color depth -> 24-bit

The following code helps to observe the splash screen start failure:

        System.out.println("Sleeping for " + sleepms + "ms...");
        sleep(sleepms);
        SplashScreen ss = SplashScreen.getSplashScreen();
        System.out.println("createGraphics()");
        ss.createGraphics();
        sleep(1000);
        System.out.println("update()");
        ss.update();	// Splash screen appears at this point
        sleep(2000);
        System.out.println("ending in 1sec");
        sleep(1000);

The sample code is attached.
For your convenience I also attach the bundled jars containing the image and the code:

* test-89x89.jar - contains an image of size 89x89px
* test-90x90.jar - contains an image of size 90x90px

Invoke as follows:
> java -jar test-NNxNN.jar [sleepms in seconds; default: 5]



Reproduced in the following configurations:
- openSuSe 11.2 + GNOME
- Ubuntu 10.04 + GNOME
- Solaris 10 x64 + GNOME

Comments
EVALUATION I'm sorry, looks like all described failures are caused by the VNC. Playing with the splash screen locally I've discovered the following: - JDK7 shows the splash screen as expected (at least builds b131-b134) But! - JDK6u23, JDK6u25 do not show the SS until update() is invoked - 90x90px image does not help (image size does not matter?) - KDE instead of GNOME does not help (display manager does not matter?) I'm going to close this CR as and file a new one regarding 6u?? behavior.
22-03-2011

EVALUATION Cannot reproduce the problem on Ubuntu 10.4 Absolute upper-left X: 0 Absolute upper-left Y: 0 Relative upper-left X: 0 Relative upper-left Y: 0 Width: 2560 Height: 1024 Depth: 16 Visual: 0x21 Visual Class: TrueColor Border width: 0 Class: InputOutput Colormap: 0x20 (installed) Bit Gravity State: ForgetGravity Window Gravity State: NorthWestGravity Backing Store State: NotUseful Save Under State: no Map State: IsViewable Override Redirect State: no Corners: +0+0 -0+0 -0-0 +0-0 -geometry 2560x1024+0+0
22-03-2011