Bug 1564 : Mac OS X Java Update breaks Processing
Last modified: 2010-06-05 03:10




Status:
ASSIGNED
Resolution:
-
Priority:
P2
Severity:
normal

 

Reporter:
ajstarks
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2010-05-19 16:26
Processing 1.1, Mac OS X 10.6.3, MacBook Pro 4GB

The latest Java update from Apple: "Java Mac OS X 10.5 Update 7 and Java for Mac OS X 10.6 Update 2"
breaks Processing.

java -version:
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)


Upon startup, the console says:

5/19/10 7:20:23 PM JavaApplicationStub[46444] *** Assertion failure in -[CocoaAppWindow
_changeJustMain], /SourceCache/AppKit/AppKit-1038.29/AppKit.subproj/NSWindow.m:9470
5/19/10 7:20:23 PM JavaApplicationStub[46444] *** CPerformer: ignoring exception 'Invalid
parameter not satisfying: [self canBecomeMainWindow]' raised during perform of selector 'requestFocus:'
on target 'FocusManager' with args '<AWTComponentSetFocusData: 0x360ff0>'
5/19/10 7:20:23 PM JavaApplicationStub[46444] *** Assertion failure in -[CocoaAppWindow
_changeJustMain], /SourceCache/AppKit/AppKit-1038.29/AppKit.subproj/NSWindow.m:9470
5/19/10 7:20:23 PM JavaApplicationStub[46444] *** CPerformer: ignoring exception 'Invalid
parameter not satisfying: [self canBecomeMainWindow]' raised during perform of selector 'requestFocus:'
on target 'FocusManager' with args '<AWTComponentSetFocusData: 0x361a40>'

Opening a sketch:

5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] Exception in thread "AWT-
EventQueue-0"
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] java.lang.NullPointerExceptionQueue-
0"
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
processing.app.Base.handleOpenReplace(Base.java:602)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
processing.app.Base$4.actionPerformed(Base.java:998)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)java:387)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
javax.swing.AbstractButton.doClick(AbstractButton.java:389)l.java:242)java:387)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95)2)java:387)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
java.awt.MenuItem.processActionEvent(MenuItem.java:627)Item.java:95)2)java:387)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
java.awt.MenuItem.processEvent(MenuItem.java:586)a:627)Item.java:95)2)java:387)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:317):95)2)java:387)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
java.awt.MenuComponent.dispatchEvent(MenuComponent.java:305)317):95)2)java:387)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:638)a:305)317):95)2)java:387)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)96)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)ad.java:201)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)ad.java:201)
5/19/10 7:23:47 PM [0x0-0xa2da2d].org.processing.app[46444] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)va:188)ad.java:201)
Additional Comment #1 From fry 2010-05-19 16:37
ohhh Apple, so fickle.

will look into it, but in the meantime, try renaming/deleting your
preferences.txt file and see if that doesn't fix things at least for the
time being.
Additional Comment #2 From ajstarks 2010-05-19 16:55
renamed pref file, no joy. :(
Additional Comment #3 From fry 2010-05-19 17:02
what method are you using to open the sketch? cmd-O, the menu, the toolbar,
double-clicking from the finder?
Additional Comment #4 From ajstarks 2010-05-19 18:04
File > Sketchbook -- crash
Cmd-O; sketch loads, runs, with console message:

5/19/10 9:03:49 PM JavaApplicationStub[46843] *** Assertion failure in -[CocoaAppWindow
_changeJustMain], /SourceCache/AppKit/AppKit-1038.29/AppKit.subproj/NSWindow.m:9470
5/19/10 9:03:49 PM JavaApplicationStub[46843] *** CPerformer: ignoring exception 'Invalid
parameter not satisfying: [self canBecomeMainWindow]' raised during perform of selector
'requestFocus:' on target 'FocusManager' with args '<AWTComponentSetFocusData: 0x105ed0>'
5/19/10 9:03:49 PM JavaApplicationStub[46843] *** Assertion failure in -[CocoaAppWindow
_changeJustMain], /SourceCache/AppKit/AppKit-1038.29/AppKit.subproj/NSWindow.m:9470
5/19/10 9:03:49 PM JavaApplicationStub[46843] *** CPerformer: ignoring exception 'Invalid
parameter not satisfying: [self canBecomeMainWindow]' raised during perform of selector
'requestFocus:' on target 'FocusManager' with args '<AWTComponentSetFocusData: 0x130370>'
5/19/10 9:04:14 PM JavaApplicationStub[46843] *** Assertion failure in -[CocoaAppWindow
_changeJustMain], /SourceCache/AppKit/AppKit-1038.29/AppKit.subproj/NSWindow.m:9470
5/19/10 9:04:14 PM JavaApplicationStub[46843] *** CPerformer: ignoring exception 'Invalid
parameter not satisfying: [self canBecomeMainWindow]' raised during perform of selector
'requestFocus:' on target 'FocusManager' with args '<AWTComponentSetFocusData: 0x3bc410>'
5/19/10 9:04:14 PM JavaApplicationStub[46843] *** Assertion failure in -[CocoaAppWindow
_changeJustMain], /SourceCache/AppKit/AppKit-1038.29/AppKit.subproj/NSWindow.m:9470
5/19/10 9:04:14 PM JavaApplicationStub[46843] *** CPerformer: ignoring exception 'Invalid
parameter not satisfying: [self canBecomeMainWindow]' raised during perform of selector
'requestFocus:' on target 'FocusManager' with args '<AWTComponentSetFocusData: 0x3c7030>'
5/19/10 9:04:19 PM java[46848] *** Assertion failure in -[CocoaAppWindow
_changeJustMain], /SourceCache/AppKit/AppKit-1038.29/AppKit.subproj/NSWindow.m:9470
5/19/10 9:04:19 PM [0x0-0xa83a83].org.processing.app[46843] 2010-05-19 21:04:19.323
java[46848:180f] *** Assertion failure in -[CocoaAppWindow _changeJustMain],
/SourceCache/AppKit/AppKit-1038.29/AppKit.subproj/NSWindow.m:9470
5/19/10 9:04:19 PM java[46848] *** CPerformer: ignoring exception 'Invalid parameter not
satisfying: [self canBecomeMainWindow]' raised during perform of selector 'requestFocus:' on
target 'FocusManager' with args '<AWTComponentSetFocusData: 0x1282fb0>'
5/19/10 9:04:19 PM [0x0-0xa83a83].org.processing.app[46843] 2010-05-19 21:04:19.326
java[46848:180f] *** CPerformer: ignoring exception 'Invalid parameter not satisfying: [self
canBecomeMainWindow]' raised during perform of selector 'requestFocus:' on target
'FocusManager' with args '<AWTComponentSetFocusData: 0x1282fb0>'
>
> what method are you using to open the sketch? cmd-O, the menu, the toolbar,
> double-clicking from the finder?
>
>

Additional Comment #5 From fry 2010-05-19 18:11
yeah, i'm getting error spew with file > sketchbook > ... but it's still
loading and working. will have to look into it further.
Additional Comment #6 From Serian 2010-05-26 13:26
I'm getting error spew as well and overall Processing seems to be running more slowly.
Shortcuts are not working reliably as well, such as Apple + N to open a new window.

I'm not sure if this is part of Processing 1.1, but when I open a new example sketch or attempt
to open a sketch in my sketchbook it wants to close the one I am currently working on, while
previously it opened a new window.

I'm going to be teaching with Processing starting next Tuesday so it would be great to have this
error disappear, even if whatever is causing it does not get fixed right away.
Additional Comment #7 From fry 2010-06-03 08:51
There's not much we can do about Apple's bugs except try to find
workarounds. There's nothing we can do from a Java application to cause an
assertion failure in Apple's code--that's something happening at a much
deeper level than what we can do from Java. The only thing we can do is
hide the error, but I'd rather that Apple fix this garbage.

As for opening new sketches, this is covered in the reference (Help ->
Environment).
http://processing.org/reference/environment/#PDE
Additional Comment #8 From fry 2010-06-03 09:27
*** Bug 1571 has been marked as a duplicate of this bug. ***
This bug is now being tracked here.