Bug 1569 : Assertion failure in -[CocoaAppWindow _changeJustMain]
Last modified: 2010-06-03 09:18




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

 

Reporter:
crlf
Assigned To:
fry

Attachment Type Created Size Actions
example sketch application/octet-stream 2010-05-30 08:26 2.40 KB

Description:   Opened: 2010-05-30 08:22
When I run some of my sketches that use the mouse as input, I sometimes get
this exception on the PDE console:

2010-05-30 16:14:31.475 java[662:170f] *** Assertion failure in
-[CocoaAppWindow _changeJustMain],
/SourceCache/AppKit/AppKit-1038.29/AppKit.subproj/NSWindow.m:9470
2010-05-30 16:14:31.478 java[662:170f] *** CPerformer: ignoring exception
'Invalid parameter not satisfying: [self canBecomeMainWindow]' raised
during perform of selector 'requestFocus:' on target 'FocusManager' with
args '<AWTComponentSetFocusData: 0x170f70>'

This seems to happen when the sketch is started and the mouse is over some
PDE window. If the mouse is over the zone where the sketch window appears
or is over a window from another application (or no window at all), there
is no exception thrown (ever).

This exception doesn't seem to affect the sketch itself, it runs fine.

I'm using Processing 1.1 in OSX 10.6.3 with the latest Java (Update 2, from
May 18th).
Additional Comment #1 From crlf 2010-05-30 08:26
edit]
example sketch

This is an example sketch where I can reproduce the problem almost every time
(but not always). The exception sometimes even appears in the console of
another sketch's window...
Additional Comment #2 From fry 2010-06-03 09:18
Yeah, Apple seems to have several bugs in their latest Java update. Very
frustrating. More can be seen at bug #1564.
This bug is now being tracked here.