JDK-7188971 : [macosx] "NaN position" in clipboard data
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7u4
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-08-03
  • Updated: 2013-08-19
  • Resolved: 2013-08-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Relates :  
Relates :  
Description
Run closed/java/awt/dnd/DnDClipboardDeadlockTest. It used to fail because of a titular reason (see 7146556) and apparently fixed with 7171163, but now it reports somewhere from java.io:
Font transform has NaN position.

========= Child VM System.err ========
java.io.IOException: Font transform has NaN position
	at sun.lwawt.macosx.CClipboard.getClipboardData(Native Method)
	at sun.awt.datatransfer.ClipboardTransferable.fetchOneFlavor(ClipboardTransferable.java:118)
	at sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:97)
	at sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:147)
	at DragSourceButton.dragOver(DnDClipboardDeadlockTest.java:299)
	at java.awt.dnd.DragSourceContext.dragOver(DragSourceContext.java:378)
	at sun.awt.dnd.SunDragSourceContextPeer$EventDispatcher.run(SunDragSourceContextPeer.java:478)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701)
	at java.awt.EventQueue.access$000(EventQueue.java:102)
	at java.awt.EventQueue$3.run(EventQueue.java:662)
	at java.awt.EventQueue$3.run(EventQueue.java:660)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:671)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

Comments
please reopen in case of steps to reproduce
19-08-2013

I have tried to reproduce the problem on my mac with jdk7u7 and jdk7u14 binaries but I cannot. Should I use some special environment? If the problem is not reproducible with the latest builds I would close the issue as not reproducible if the submitter cannot reproduce the issue with the latest binaries. The exception is thrown in the next line 359: [JNFException raise:env as:"java/io/IOException" reason:"Font transform has NaN position"]; /export/wsps/jdk7u-dev/jdk/src/macosx/native/sun/awt/CClipboard.m This happens because clipboard data form clipboard for particular data type is null. Actually I am not sure that we should throw the exception here. A case when we do not have data for particular data type looks normal. To say more, more careful investigation of this code is required.
01-02-2013