Description
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):
The splash.bmp
is under plugins/org.eclipse.mat.ui.rcp/splash.bmp
:
git clone https://git.eclipse.org/r/mat/org.eclipse.mat.git
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):
The image was created using Gimp on macOS and here is the Gimp file (in a zip
for GitHub upload):
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:
- Make sure Java 11 is on your
PATH
git clone https://git.eclipse.org/r/mat/org.eclipse.mat.git
cd org.eclipse.mat/parent
find .. -type f -name "*mat*product" -not -name mat-2022-03.product -delete
mvn -DskipTests=true clean install
open -n ../org.eclipse.mat.product/target/products/org.eclipse.mat.ui.rcp.MemoryAnalyzer/macosx/cocoa/x86_64/mat.app
- Observe the strange splash screen