Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java 1.5 Update - problems with dock image



On Sep 25, 2008, at 12:11 PM, Filip Defoort wrote:

On Thu, Sep 25, 2008 at 11:50 AM, Mike Swingler <email@hidden> wrote:

On Sep 25, 2008, at 11:06 AM, Filip Defoort wrote:

Hi,

After the latest java update, my application is suddenly throwing
errors related to icons in JOptionPanes.

The following appears on the terminal:

2008-09-25 11:03:17.060 java[63400:c1b] *** CPerformer: ignoring
exception 'Can't cache image' raised during perform of selector
'getDockIconImage:' on target '<ApplicationDelegate: 0x13b980>' with
args '<>'
2008-09-25 11:03:29.557 java[63400:c1b] *** CPerformer: ignoring
exception 'Can't cache image' raised during perform of selector
'getDockIconImage:' on target '<ApplicationDelegate: 0x13b980>' with
args '<>'
2008-09-25 11:03:29.627 java[63400:c1b] *** CPerformer: ignoring
exception 'Can't cache image' raised during perform of selector
'getDockIconImage:' on target '<ApplicationDelegate: 0x13b980>' with
args '<>'

This exception also gets thrown

Caused by: java.lang.IllegalArgumentException: Width (0) and height
(0) cannot be <= 0
at
java .awt .image .DirectColorModel .createCompatibleWritableRaster(DirectColorModel.java:999)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:345)
at apple.awt.CImage.<init>(CImage.java:163)
at apple.awt.CImage$Creator.createImageWithSize(CImage.java:59)
at apple.awt.CImage$Creator.createImage(CImage.java:45)
at apple.awt.CImage$Creator.createImage(CImage.java:35)
at com.apple.eawt.Application.getDockIconImage(Application.java:296)
... 51 more


Does anybody know what's going on (and more importantly how to fix it?)

Can you please file a bug with a test case containing the code that triggers
this? Do you have any JNI in this application, or anything else that
significantly changes the Dock icon?



Hi,

It's a bit hard to isolate - large application...

It's using mrjadapter to deal with the OSX specific issues (which does
set the dock image), so I suspect that that's where the problem
originates. Any chance that rings a bell or do you need more info ?

If you could at least file a bug at http://bugreporter.apple.com, with a link to your application, and steps to trigger this problem - we can begin investigating it. In my basic JDialog tests, changing the icon doesn't appear to cause this kind of failure. I'm wondering if some sort of explicit nulling out of the NSDockTile image, which is causing our NSImage-as-BufferedImage wrapper to fail inside of it's constructor.


While I'm sure this is a problem inside the EAWT Application.getDockIconImage() call, it's most helpful to actually have a test case that fails (so I can confirm I've fixed it), and a bug so that you know when it gets fixed in a future release.

Thanks,
Mike Swingler
Java Runtime Engineer
Apple Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Java 1.5 Update - problems with dock image (From: "Filip Defoort" <email@hidden>)
 >Re: Java 1.5 Update - problems with dock image (From: Mike Swingler <email@hidden>)
 >Re: Java 1.5 Update - problems with dock image (From: "Filip Defoort" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.