Community
Participate
Working Groups
If the image specified for the about dialog is invalid, the about dialog fails to display. Exception in the log: !ENTRY org.eclipse.ui 4 0 Aug 18, 2005 11:13:12.816 !MESSAGE java.lang.NegativeArraySizeException !STACK 0 java.lang.NegativeArraySizeException at org.eclipse.swt.internal.image.WinBMPFileFormat.loadData (WinBMPFileFormat.java:345) at org.eclipse.swt.internal.image.WinBMPFileFormat.loadData (WinBMPFileFormat.java:338) at org.eclipse.swt.internal.image.WinBMPFileFormat.loadFromByteStream (WinBMPFileFormat.java:399) at org.eclipse.swt.internal.image.FileFormat.loadFromStream (FileFormat.java:47) at org.eclipse.swt.internal.image.FileFormat.load(FileFormat.java:75) at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:124) at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:308) at org.eclipse.jface.resource.URLImageDescriptor.getImageData (URLImageDescriptor.java:53) at org.eclipse.jface.resource.ImageDescriptor.createImage (ImageDescriptor.java:152) at org.eclipse.jface.resource.ImageDescriptor.createImage (ImageDescriptor.java:115) at org.eclipse.jface.resource.ImageDescriptor.createImage (ImageDescriptor.java:97) at org.eclipse.ui.internal.dialogs.AboutDialog.createDialogArea (AboutDialog.java:190) at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:632) at org.eclipse.jface.window.Window.create(Window.java:348) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:925) at org.eclipse.jface.window.Window.open(Window.java:637) BMP was created with Acrylic beta from microsoft -- the bmp is supposed to be 24bit bmp. However, Windows XP Paint tool also refuses to display the image) I will attach a sample file later.
Created attachment 26426 [details] bad about image
Created attachment 26427 [details] good about image
Here are two images. One is created in Microsoft Acrylic and exported as a BMP file. This image causes the problem (exception). The second one is an image created by opening the "bad" image in an image viewer and then re-saving it as a BMP file. This one works fine as the about image in Eclipse. It seems like Microsoft Acrylic export is causing the image to be marked strangely (where SWT will not recognize it -- though other image viewers seem to work fine with it).
There are 2 bugs here. I will look into why the BMP is not recognized by SWT. MVM, since you were the last one to touch the AboutDialog code, can you please look into making sure that the dialog[s] does [do] something reasonable if the image does not load? Thanks...
1) The bad image cannot be read by Adobe Photoshop, MS Internet Explorer, or MS Paint, so I don't feel too bad about not being able to read it <g>. I see that MS Picture Viewer and MGI PhotoSuite do read it, however, so I will leave this bug open to look at some day, but it will have to be fairly low priority. 2) Tod, can you please look into making sure that the About dialog does something reasonable if an image does not load? Thanks!
See Bug 134730 for the About portion of this issue
This bug was fixed by the fix for bug 157689. Marking this as a dup of that bug. *** This bug has been marked as a duplicate of 157689 ***