{"issue":{"title":"NSException on mac os x snow leopard (10.6.8) with Perl 5.14.1","user":{"login":"pktm","id":131959,"url":"https://api.github.com/users/pktm","avatar_url":"https://secure.gravatar.com/avatar/34d1c3eee45226f30dd2914cda9ce69f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"34d1c3eee45226f30dd2914cda9ce69f"},"created_at":"2011-12-20T14:32:25Z","milestone":null,"labels":[],"state":"open","updated_at":"2011-12-26T16:57:54Z","id":2613310,"closed_at":null,"html_url":"https://github.com/PerlGameDev/SDL/issues/208","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Hi!\r\n\r\nI tried to run this piece of code:\r\n```perl\r\n\t\t#!perl\r\n\t\t\r\n\t\tuse strict;\r\n\t\tuse warnings;\r\n\t\tuse SDL;\r\n\t\tuse SDL::Event;\r\n\t\tuse SDLx::App;\r\n\t\t\r\n\t\tmy $app = SDLx::App->new(\r\n\t\t\tw     => 200,\r\n\t\t\th     => 200,\r\n\t\t\td     =>  32,\r\n\t\t\ttitle => \"Quit Events\",\r\n\t\t\texit_on_quit => 1\r\n\t\t);\r\n\t\t\r\n\t\t$app->add_event_handler( \\&quit_event );\r\n\t\t\r\n\t\t$app->run();\r\n\t\texit(0);\r\n\t\t\r\n\t\tsub quit_event {\r\n\t\t\t# the callback receives the appropriate SDL::Event\r\n\t\t\tmy $event = shift;\r\n\t\t\r\n\t\t\t# ... as well as the calling SDLx::Controller\r\n\t\t\tmy $controller = shift;\r\n\t\t\r\n\t\t\t# stopping the controller will exit $app->run() for us\r\n\t\t\t$controller->stop if $event->type == SDL_QUIT;\r\n\t\t} # /quit_event```\r\n\r\nI'm getting this error:\r\n\r\n```text\r\n\t\t2011-12-20 10:49:53.368 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101512a00 of class NSCFNumber autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.377 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x10151bf20 of class NSCFNumber autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.378 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015190f0 of class NSCFNumber autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.378 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x10151c880 of class NSCFDictionary autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.379 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff70070c68 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.379 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015192c0 of class NSCFNumber autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.380 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff7007bec8 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.380 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015192e0 of class NSCFNumber autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.380 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff7007bfa8 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.381 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015192a0 of class NSCFNumber autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.381 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff7007c5a8 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.382 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015192a0 of class NSCFNumber autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.382 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff7007bfa8 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.383 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff7007c5a8 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.383 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff7007bfa8 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.383 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff7007c5a8 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.384 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff7007bfa8 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.384 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff7007bfa8 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.385 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff7007bfa8 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.385 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101504550 of class NSCFNumber autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.389 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1012ab020 of class __NSFontTypefaceInfo autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.390 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1012ab3b0 of class NSAffineTransform autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.392 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101520320 of class NSFont autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.392 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101520680 of class NSFont autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.396 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101524ab0 of class NSCFArray autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.397 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101525210 of class NSCFArray autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.397 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015255e0 of class NSCFSet autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.398 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015256b0 of class NSCFArray autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.398 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015256f0 of class NSCFArray autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.399 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1012ab570 of class NSCFSet autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.400 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff708a0910 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.400 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff708ac6f0 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.401 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff708ae590 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.401 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101525740 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.402 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101525920 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.402 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff708ab8d0 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.402 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff708a2b30 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.403 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff708a3ed0 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.403 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff708ad450 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.404 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff708abdd0 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.404 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101525780 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.405 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff7089f830 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.414 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015258e0 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.415 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101525980 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.415 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015259d0 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.417 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101520680 of class NSFont autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.419 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff708ade30 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.419 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff7089fe70 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.420 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101501b60 of class NSCFNumber autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.421 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1012aa820 of class NSCalibratedWhiteColor autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.421 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1013f8670 of class NSCFArray autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.422 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1013f8eb0 of class NSCFDictionary autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.535 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015360f0 of class NSMutableParagraphStyle autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.536 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015361b0 of class NSCFDictionary autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.536 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101533580 of class NSCFArray autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.537 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101537780 of class __NSFontTypefaceInfo autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.538 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101537930 of class NSFont autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.538 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101537ce0 of class NSFont autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.539 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff70065588 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.539 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1015370b0 of class _NSThemeCloseWidget autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.542 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101525f30 of class NSCFArray autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.543 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101537ce0 of class NSFont autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.543 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff70065588 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.544 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101538790 of class _NSThemeWidget autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.544 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101537290 of class NSCFArray autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.545 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101537ce0 of class NSFont autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.546 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x7fff70065588 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.546 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101536760 of class _NSThemeWidget autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.547 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101523ea0 of class NSCFArray autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.549 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x101537e70 of class NSTrackingArea autoreleased with no pool in place - just leaking\r\n\t\tTue Dec 20 10:49:53 imac24.fritz.box perl5.14.1[51900] <Error>: kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection\r\n\t\tTue Dec 20 10:49:53 imac24.fritz.box perl5.14.1[51900] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.\r\n\t\t2011-12-20 10:49:53.550 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x114501fe0 of class NSTrackingArea autoreleased with no pool in place - just leaking\r\n\t\tTue Dec 20 10:49:53 imac24.fritz.box perl5.14.1[51900] <Error>: kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection\r\n\t\tTue Dec 20 10:49:53 imac24.fritz.box perl5.14.1[51900] <Error>: kCGErrorInvalidConnection: CGSNewWindowWithOpaqueShape: Invalid connection\r\n\t\t2011-12-20 10:49:53.551 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1002076d0 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.551 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x1012a3a10 of class NSException autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.552 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x114506a40 of class _NSCallStackArray autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.552 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x114506af0 of class _NSCallStackArray autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.552 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x114506c00 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.553 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x100e09000 of class NSCFString autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.554 perl5.14.1[51900:903] *** __NSAutoreleaseNoPool(): Object 0x114506c70 of class NSConcreteMutableData autoreleased with no pool in place - just leaking\r\n\t\t2011-12-20 10:49:53.554 perl5.14.1[51900:903] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1002) creating CGSWindow'\r\n\t\t*** Call stack at first throw:\r\n\t\t(\r\n\t\t\t0   CoreFoundation                      0x00007fff84ca3784 __exceptionPreprocess + 180\r\n\t\t\t1   libobjc.A.dylib                     0x00007fff8522df03 objc_exception_throw + 45\r\n\t\t\t2   CoreFoundation                      0x00007fff84ca35a7 +[NSException raise:format:arguments:] + 103\r\n\t\t\t3   CoreFoundation                      0x00007fff84ca3534 +[NSException raise:format:] + 148\r\n\t\t\t4   AppKit                              0x00007fff80567f52 _NSCreateWindowWithOpaqueShape2 + 473\r\n\t\t\t5   AppKit                              0x00007fff804fc691 -[NSWindow _commonAwake] + 1214\r\n\t\t\t6   AppKit                              0x00007fff804f9376 -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 1501\r\n\t\t\t7   AppKit                              0x00007fff804f8002 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1396\r\n\t\t\t8   AppKit                              0x00007fff804f7a8b -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42\r\n\t\t\t9   libSDL-1.2.0.dylib                  0x00000001006b72ac -[SDL_QuartzWindow initWithContentRect:styleMask:backing:defer:] + 349\r\n\t\t\t10  libSDL-1.2.0.dylib                  0x00000001006b385e QZ_SetVideoWindowed + 832\r\n\t\t\t11  libSDL-1.2.0.dylib                  0x00000001006b411c QZ_SetVideoMode + 169\r\n\t\t\t12  libSDL-1.2.0.dylib                  0x00000001006a5b0c SDL_SetVideoMode + 655\r\n\t\t\t13  Video.bundle                        0x0000000100724a92 XS_SDL__Video_set_video_mode + 210\r\n\t\t\t14  perl5.14.1                          0x00000001000a0a36 Perl_pp_entersub + 1782\r\n\t\t\t15  perl5.14.1                          0x0000000100099103 Perl_runops_standard + 35\r\n\t\t\t16  perl5.14.1                          0x0000000100021c0f perl_run + 895\r\n\t\t\t17  perl5.14.1                          0x000000010000165b main + 283\r\n\t\t\t18  perl5.14.1                          0x0000000100001534 start + 52\r\n\t\t)\r\n\t\tterminate called after throwing an instance of 'NSException'```\r\n\r\n\r\nHere is some more information:\r\nOS: OS X snow leopard 10.6.8\r\nPerl:  5.14.1 built for darwin-2level, built via perlbrew\r\nSDL.pmversion : 2.534\r\nAlien::SDL.pm version: 1.428\r\nUsing the code here http://sdl.perl.org/SDL-Version.html the output is:\r\nSDL::version is 1.2.14\r\nSDL::linked_version is 1.2.14","number":208,"url":"https://api.github.com/repos/PerlGameDev/SDL/issues/208","comments":1,"assignee":null},"comment":{"user":{"login":"jtpalmer","id":328284,"url":"https://api.github.com/users/jtpalmer","avatar_url":"https://secure.gravatar.com/avatar/ec205c2b20370bcf9f654482adbcc54b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ec205c2b20370bcf9f654482adbcc54b"},"created_at":"2011-12-26T16:57:54Z","updated_at":"2011-12-26T16:57:54Z","id":3275560,"body":"Did you use the SDLPerl binary when you ran that code? ","url":"https://api.github.com/repos/PerlGameDev/SDL/issues/comments/3275560"},"action":"created"}