[#7976] problem running on Mac OS X El Capitan

Please log in

State: more information
Open
Date:
2015-11-29 19:47
Priority: more information
3
Submitted By:
Russell Poldrack (poldrack)
Assigned To: more information
Nobody (None)
Hardware: 
Macintosh
Product: 
None
Operating System: 
MacOS X
Component: 
None
Version: 
v1.1
Severity: 
None
Resolution: 
None
Summary: more information
problem running on Mac OS X El Capitan

Detailed description

I get the following error when trying to run DeID (either version) on Mac OS X El Capitan (10.11.1) with java version "1.8.0_25":

$ java -jar "DeIDTool.jar"
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
at java.awt.image.BufferedImage.(BufferedImage.java:340)
at com.apple.laf.AquaImageFactory.getAppIconImageCompositedOn(AquaImageFactory.java:133)
at com.apple.laf.AquaImageFactory.lambda$getAppIconCompositedOn$245(AquaImageFactory.java:113)
at com.apple.laf.AquaImageFactory$$Lambda$9/1976222190.apply(Unknown Source)
at sun.awt.image.MultiResolutionBufferedImage.lambda$map$231(MultiResolutionBufferedImage.java:96)
at sun.awt.image.MultiResolutionBufferedImage$$Lambda$10/622549531.apply(Unknown Source)
at sun.awt.image.MultiResolutionBufferedImage.getResolutionVariant(MultiResolutionBufferedImage.java:78)
at sun.java2d.SunGraphics2D.getResolutionVariant(SunGraphics2D.java:3198)
at sun.java2d.SunGraphics2D.drawHiDPIImage(SunGraphics2D.java:3111)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3313)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3296)
at javax.swing.ImageIcon.paintIcon(ImageIcon.java:425)
at javax.swing.plaf.IconUIResource.paintIcon(IconUIResource.java:72)
at dit.ErrorFrame$ErrorCellRenderer.scaleIcon(ErrorFrame.java:91)
at dit.ErrorFrame$ErrorCellRenderer.(ErrorFrame.java:62)
at dit.ErrorFrame.(ErrorFrame.java:152)
at dit.DEIDGUI.(DEIDGUI.java:67)
at dit.DEIDGUI$8.run(DEIDGUI.java:685)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Response

Message

Date: 2016-02-29 22:44
Sender: yongtai liu

Thanks very much to Russ for reporting the bug and for Ross' reply. The now corrected bug relates to the Mac Retina display. In order to present a sharp image, Retina functions expect a two-times large image (2X) and present the image on a regular (1X) scale. DeID was displaying using a 1X image, which Retina functions converted to 0.5X. A 0.5X image was not fitting into to display window, which caused the crash. We have corrected this scaling problem in the new release (v1.2). Please let us know if you encounter any additional bugs and thanks for using DeID.

Sincerely,
Yongtai Liu


Date: 2016-02-02 23:56
Sender: Ross Blair

For posterity I was able to get deid started by making the following changes:

Comment out line 91 in the file src/dit/ErrorFrame.java from:
icon.paintIcon(null, g, 0, 0);
to:
//icon.paintIcon(null, g, 0, 0);
I also ran into an issue with javadoc failing to compile so a section of nbproject/build-impl.xml may need to commented out. At around line 1185 change it from:
to:
And at around line 1225 change it from:
to:
-->

To recompile the code the program ant needs to be installed.
From main directory in the downloaded code run:
ant -f nbbuild.xml compile
ant -f nbbuild.xml run

Attached Files:

Name Download
No Files Currently Attached

Changes:

Field Old Value Date By
MessageThanks very much to Russ for reporting the bug and for Ross' reply. The now corrected bug relates to the Mac Retina display. In order to present a sharp image, Retina functions expect a two-times large image (2X) and present the image on a regular (1X) scale. DeID was displaying using a 1X image, which Retina functions converted to 0.5X. A 0.5X image was not fitting into to display window, which caused the crash. We have corrected this scaling problem in the new release (v1.2). Please let us know if you encounter any additional bugs and thanks for using DeID.

Sincerely,
Yongtai Liu
2021-06-02 15:12yongtal
New Message2016-02-29 22:44yongtal
New Message2016-02-02 23:56rblair