Falcon's Eye

I compiled Falcon’s Eye on Mac OS X and everything went smoothly, but
when I run the program I get this huge error message. Based on a google
search, this looks like the problem is with SDL. Can anyone tell me
what I might have to change to get this to work with OS X?
(Here’s the error:)

./nethack
…kCGErrorInvalidConnection : CGSNewWindow: Invalid
connection
2002-11-15 22:42:58.257 nethack[856] _NXCreateWindow: error creating
window (1002)
kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSInvalidateWindowShadow: Invalid connection
kCGErrorInvalidConnection : CGSSetWindowListAlpha: Invalid connection
kCGErrorIllegalArgument : CGSLockWindowRectBits: Invalid window
kCGErrorFailure : Failed to create window context device.
kCGErrorFailure : CGWindowContextCreate: failed to create context.
2002-11-15 22:42:58.338 nethack[856] _initWithWindowNumber: error
creating graphics ctxt object for ctxt:0, window:-1
kCGErrorFailure : CGContextResetClip: invalid context
kCGErrorFailure : CGContextReplaceTopGState: invalid context
kCGErrorInvalidConnection : CGSGetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSSetHideOnDeact: error getting current
hide-on-deactivate state
kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSSetEventMask: error setting client event
mask window property
kCGErrorInvalidConnection : CGSSetWindowEventMask: Invalid connection
kCGErrorInvalidConnection : CGSSetEventMask: error setting window event mask
kCGErrorInvalidConnection : CGSSetWindowToReleaseBackingOnOrderOut:
Invalid connection
2002-11-15 22:42:58.362 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1004d00 of class NSCFArray autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.364 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1004d20 of class NSCFArray autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.365 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1004d60 of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.367 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1004e20 of class NSCFArray autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.368 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1004e60 of class NSCFArray autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.369 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1004ea0 of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.370 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1004ec0 of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.372 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1004ee0 of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.373 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1004f30 of class NSCFArray autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.374 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1004f50 of class NSCFArray autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.376 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1004f70 of class NSPathStore2 autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.377 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1004fd0 of class NSPathStore2 autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.378 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1005000 of class NSPathStore2 autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.380 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1005030 of class NSPathStore2 autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.381 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1005110 of class NSCFDictionary autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.383 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1005210 of class NSIdEnumerator autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.384 nethack[856] *** _NSAutoreleaseNoPool(): Object
0xa307ccec of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.386 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x10051c0 of class NSCFArray autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.387 nethack[856] *** _NSAutoreleaseNoPool(): Object
0xa307cd4c of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.389 nethack[856] *** _NSAutoreleaseNoPool(): Object
0xa307cd9c of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.391 nethack[856] *** _NSAutoreleaseNoPool(): Object
0xa307cd1c of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.392 nethack[856] *** _NSAutoreleaseNoPool(): Object
0xa307ccdc of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.393 nethack[856] *** _NSAutoreleaseNoPool(): Object
0xa307cd6c of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.395 nethack[856] *** _NSAutoreleaseNoPool(): Object
0xa307ccfc of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.396 nethack[856] *** _NSAutoreleaseNoPool(): Object
0xa307cccc of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.398 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1005bc0 of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.427 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1005e80 of class NSPathStore2 autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.429 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1005f10 of class NSPathStore2 autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.431 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1005f90 of class NSPathStore2 autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.432 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x252d20 of class NSPathStore2 autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.434 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1006010 of class NSPathStore2 autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.435 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1005c80 of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.437 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x10061c0 of class NSPathStore2 autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.439 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1006820 of class NSPathStore2 autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.441 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x10068f0 of class NSPathStore2 autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.443 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1006a50 of class NSPathStore2 autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.444 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x24e180 of class NSConcreteData autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.446 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1006f40 of class NSConcreteData autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.447 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1005e60 of class NSCFArray autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.534 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x10087d0 of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.536 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1008890 of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.538 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x7ab030 of class NSCFDictionary autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.541 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x10069e0 of class NSCFData autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.542 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x7a9110 of class NSCFData autoreleased with no pool in place - just leaking
2002-11-15 22:42:58.605 nethack[856] *** _NSAutoreleaseNoPool(): Object
0xa307999c of class NSCFString autoreleased with no pool in place - just
leaking
2002-11-15 22:42:58.608 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x10090e0 of class NSBitmapImageRep autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.611 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x1009800 of class NSImage autoreleased with no pool in place - just leaking
2002-11-15 22:42:58.639 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x100a2b0 of class NSBitmapImageRep autoreleased with no pool in place -
just leaking
2002-11-15 22:42:58.640 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x100a2f0 of class NSImage autoreleased with no pool in place - just leaking
2002-11-15 22:42:58.642 nethack[856] *** _NSAutoreleaseNoPool(): Object
0x7b1ba0 of class _NSThemeCloseWidget autoreleased with no pool in place

  • just leaking
    2002-11-15 22:42:58.644 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0xa307999c of class NSCFString autoreleased with no pool in place - just
    leaking
    2002-11-15 22:42:58.646 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100a870 of class NSBitmapImageRep autoreleased with no pool in place -
    just leaking
    2002-11-15 22:42:58.647 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100a8b0 of class NSImage autoreleased with no pool in place - just leaking
    2002-11-15 22:42:58.649 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100a950 of class NSBitmapImageRep autoreleased with no pool in place -
    just leaking
    2002-11-15 22:42:58.650 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100a990 of class NSImage autoreleased with no pool in place - just leaking
    2002-11-15 22:42:58.651 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100a4d0 of class _NSThemeWidget autoreleased with no pool in place -
    just leaking
    2002-11-15 22:42:58.653 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0xa307999c of class NSCFString autoreleased with no pool in place - just
    leaking
    2002-11-15 22:42:58.655 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x1008ce0 of class NSBitmapImageRep autoreleased with no pool in place -
    just leaking
    2002-11-15 22:42:58.657 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x2531c0 of class NSImage autoreleased with no pool in place - just leaking
    2002-11-15 22:42:58.658 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x1008e00 of class NSBitmapImageRep autoreleased with no pool in place -
    just leaking
    2002-11-15 22:42:58.660 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x7b2d40 of class NSImage autoreleased with no pool in place - just leaking
    2002-11-15 22:42:58.661 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100aac0 of class _NSThemeWidget autoreleased with no pool in place -
    just leaking
    kCGErrorInvalidConnection : CGSGetCurrentCursorLocation: Invalid connection
    kCGErrorInvalidConnection : CGSGetCurrentCursorLocation: Invalid connection
    kCGErrorInvalidConnection : CGSGetCurrentCursorLocation: Invalid connection
    2002-11-15 22:42:58.671 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100aeb0 of class NSView autoreleased with no pool in place - just leaking
    2002-11-15 22:42:58.674 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x1008e40 of class SDL_QuartzWindowDelegate autoreleased with no pool in
    place - just leaking
    2002-11-15 22:42:58.675 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100b400 of class NSIdEnumerator autoreleased with no pool in place -
    just leaking
    2002-11-15 22:42:58.677 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0xa307584c of class NSCFString autoreleased with no pool in place - just
    leaking
    kCGErrorInvalidConnection : CGSNewWindow: Invalid connection
    2002-11-15 22:42:58.682 nethack[856] _NXCreateWindow: error creating
    window (1002)
    kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
    kCGErrorInvalidConnection : CGSInvalidateWindowShadow: Invalid connection
    kCGErrorInvalidConnection : CGSSetWindowListAlpha: Invalid connection
    kCGErrorIllegalArgument : CGSLockWindowRectBits: Invalid window
    kCGErrorFailure : Failed to create window context device.
    kCGErrorFailure : CGWindowContextCreate: failed to create context.
    2002-11-15 22:42:58.695 nethack[856] _initWithWindowNumber: error
    creating graphics ctxt object for ctxt:0, window:-1
    kCGErrorFailure : CGContextResetClip: invalid context
    kCGErrorFailure : CGContextReplaceTopGState: invalid context
    kCGErrorInvalidConnection : CGSGetWindowProperty: Invalid connection
    kCGErrorInvalidConnection : CGSSetHideOnDeact: error getting current
    hide-on-deactivate state
    kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
    kCGErrorInvalidConnection : CGSSetEventMask: error setting client event
    mask window property
    kCGErrorInvalidConnection : CGSSetWindowEventMask: Invalid connection
    kCGErrorInvalidConnection : CGSSetEventMask: error setting window event mask
    kCGErrorInvalidConnection : CGSSetWindowToReleaseBackingOnOrderOut:
    Invalid connection
    kCGErrorInvalidConnection : CGSNewWindow: Invalid connection
    2002-11-15 22:42:58.741 nethack[856] _NXCreateWindow: error creating
    window (1002)
    kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
    kCGErrorInvalidConnection : CGSInvalidateWindowShadow: Invalid connection
    kCGErrorInvalidConnection : CGSSetWindowListAlpha: Invalid connection
    kCGErrorIllegalArgument : CGSLockWindowRectBits: Invalid window
    kCGErrorFailure : Failed to create window context device.
    kCGErrorFailure : CGWindowContextCreate: failed to create context.
    2002-11-15 22:42:58.755 nethack[856] _initWithWindowNumber: error
    creating graphics ctxt object for ctxt:0, window:-1
    kCGErrorFailure : CGContextResetClip: invalid context
    kCGErrorFailure : CGContextReplaceTopGState: invalid context
    kCGErrorInvalidConnection : CGSGetWindowProperty: Invalid connection
    kCGErrorInvalidConnection : CGSSetHideOnDeact: error getting current
    hide-on-deactivate state
    kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
    kCGErrorInvalidConnection : CGSSetEventMask: error setting client event
    mask window property
    kCGErrorInvalidConnection : CGSSetWindowEventMask: Invalid connection
    kCGErrorInvalidConnection : CGSSetEventMask: error setting window event mask
    kCGErrorInvalidConnection : CGSSetWindowToReleaseBackingOnOrderOut:
    Invalid connection
    2002-11-15 22:42:58.774 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x7ac520 of class NSCFArray autoreleased with no pool in place - just
    leaking
    2002-11-15 22:42:58.776 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x251c70 of class NSCFArray autoreleased with no pool in place - just
    leaking
    2002-11-15 22:42:58.777 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x79b350 of class NSCFArray autoreleased with no pool in place - just
    leaking
    kCGErrorInvalidConnection : CGSGetCurrentCursorLocation: Invalid connection
    Fatal signal: Bus Error (SDL Parachute Deployed)
    2002-11-15 22:43:00.788 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x7a4030 of class SDL_QuartzWindow autoreleased with no pool in place -
    just leaking
    2002-11-15 22:43:00.791 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x7b1ba0 of class _NSThemeCloseWidget autoreleased with no pool in place
  • just leaking
    2002-11-15 22:43:00.792 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100a4d0 of class _NSThemeWidget autoreleased with no pool in place -
    just leaking
    2002-11-15 22:43:00.794 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100aac0 of class _NSThemeWidget autoreleased with no pool in place -
    just leaking
    2002-11-15 22:43:00.795 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100aeb0 of class NSView autoreleased with no pool in place - just leaking
    2002-11-15 22:43:00.797 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x7b1ba0 of class _NSThemeCloseWidget autoreleased with no pool in place
  • just leaking
    2002-11-15 22:43:00.798 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100a4d0 of class _NSThemeWidget autoreleased with no pool in place -
    just leaking
    2002-11-15 22:43:00.799 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100aac0 of class _NSThemeWidget autoreleased with no pool in place -
    just leaking
    2002-11-15 22:43:00.800 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x100aeb0 of class NSView autoreleased with no pool in place - just leaking
    2002-11-15 22:43:00.802 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0x7b1c90 of class NSIdEnumerator autoreleased with no pool in place -
    just leaking
    2002-11-15 22:43:00.804 nethack[856] *** _NSAutoreleaseNoPool(): Object
    0xa307584c of class NSCFString autoreleased with no pool in place - just
    leaking

I compiled Falcon’s Eye on Mac OS X and everything went smoothly, but
when I run the program I get this huge error message. Based on a
google search, this looks like the problem is with SDL. Can anyone
tell me what I might have to change to get this to work with OS X?
(Here’s the error:)

./nethack
…kCGErrorInvalidConnection : CGSNewWindow:
Invalid connection
2002-11-15 22:42:58.257 nethack[856] _NXCreateWindow: error creating
window (1002)

The main entry point needs to be the one defined in SDLMain.m (in
src/main/macosx). Since I presume you are using the command line build,
you need to do 2 things (if this is not all, let us know). First, make
sure the file that contains the main() function in Falcon’s Eye
#includes SDL.h. Second, add “-lsdlmain”, “-lobjc”, and “-framework
Cocoa” to the linking flags.On Saturday, November 16, 2002, at 01:52 AM, Ryan Brown wrote: