Login  Register

Re: OS X 10.13 High Sierra, ImageJ Java 6 and text editing?

Posted by ctrueden on Nov 17, 2017; 9:23pm
URL: http://imagej.273.s1.nabble.com/OS-X-10-13-High-Sierra-ImageJ-Java-6-and-text-editing-tp5019713p5019720.html

Hi Jeff,

I am able to reproduce that bug on my High Sierra system running with Java
6 (in both 32-bit and 64-bit modes).

It does not happen with the ImageJ2 Script Editor -- only with the ImageJ1
text editor. (It might be a Swing vs. AWT thing, but that is pure
speculation.)

I also see an exception stack trace [1] every time I press a key,
regardless of which ImageJ window is currently active. This error may be
related to the keystrokes being eaten in some circumstances. It appears to
be a bug in Java -- or perhaps more likely, the legacy Apple Java 6
interacting with the newer High Sierra OS.

My advice would be to use an older version of MacOS if you continue to need
Java 6 functionality.

Regards,
Curtis

[1] The stack trace is as follows:

Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Non-Java
exception raised, not handled! (Original problem: Deprecated in 10_12... DO
NOT EVER USE CGSEventRecord directly. Bad things, man.... bad things.)
at apple.awt.ComponentModel._handleEvent(Native Method)
at apple.awt.ComponentModel.handleEvent(ComponentModel.java:273)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Defaul
tKeyboardFocusManager.java:753)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Def
aultKeyboardFocusManager.java:1000)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Def
aultKeyboardFocusManager.java:865)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKe
yboardFocusManager.java:686)
at java.awt.Component.dispatchEventImpl(Component.java:4648)
at java.awt.Container.dispatchEventImpl(Container.java:2142)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege
(AccessControlContext.java:86)
at java.security.AccessControlContext$1.doIntersectionPrivilege
(AccessControlContext.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:690)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege
(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
patchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
chThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
patchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

--
Curtis Rueden
LOCI software architect - https://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - https://imagej.net/User:Rueden
Did you know ImageJ has a forum? http://forum.imagej.net/


On Wed, Nov 15, 2017 at 9:25 PM, Jeff Hardin <[hidden email]> wrote:

> P.S.- Sorry! I accidentally quoted the previous digest. My bad...
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html