Skip to content

Eclipse splash image looks bad on macOS #39

Closed
@kgibm

Description

@kgibm

I'm a committer on the Eclipse Memory Analyzer Tool project and we recently added a splash screen to our standalone builds. This works fine on Windows and Linux, but on macOS x64, it's very strange: first, it shows for a second with the right dimensions but very low quality and then it switches to an image with the right quality but it is patterned multiple times. Here is a GIF of the start-up sequence (it takes a few seconds to start):

matsplash

The splash.bmp is under plugins/org.eclipse.mat.ui.rcp/splash.bmp:

  1. git clone https://git.eclipse.org/r/mat/org.eclipse.mat.git
  2. ls org.eclipse.mat/plugins/org.eclipse.mat.ui.rcp/splash.bmp

Here is the original and it looks this good on Windows and Linux (converted to jpeg as GitHub doesn't support bmp uploads):

splash

The image was created using Gimp on macOS and here is the Gimp file (in a zip for GitHub upload):

matsplash.zip

As per the Eclipse Splash Screen guidance, the bmp was created without color space information and in 24-bit format.

The product file that specifies the splash image is here: https://git.eclipse.org/c/mat/org.eclipse.mat.git/tree/org.eclipse.mat.product/mat-2022-03.product

   <splash
      location="org.eclipse.mat.ui.rcp"
      startupProgressRect="5,275,445,15"
      startupMessageRect="7,252,445,20"
      startupForegroundColor="000000" />

That project has: https://git.eclipse.org/c/mat/org.eclipse.mat.git/tree/plugins/org.eclipse.mat.ui.rcp/config.ini

osgi.splashPath=platform:/base/plugins/org.eclipse.mat.ui.rcp

If you are running on macOS, you can reproduce the problem like so:

  1. Make sure Java 11 is on your PATH
  2. git clone https://git.eclipse.org/r/mat/org.eclipse.mat.git
  3. cd org.eclipse.mat/parent
  4. find .. -type f -name "*mat*product" -not -name mat-2022-03.product -delete
  5. mvn -DskipTests=true clean install
  6. open -n ../org.eclipse.mat.product/target/products/org.eclipse.mat.ui.rcp.MemoryAnalyzer/macosx/cocoa/x86_64/mat.app
  7. Observe the strange splash screen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions