Re: Error (1000) creating CGSWindow?
Re: Error (1000) creating CGSWindow?
- Subject: Re: Error (1000) creating CGSWindow?
- From: Joar Wingfors <email@hidden>
- Date: Wed, 23 Mar 2011 20:18:29 -0700
Hello Rick,
Like memory and file descriptors, windows are a shared and limited resource on Mac OS X. If one application creates, and possibly leaks / abandons, lots of windows it can starve other applications, and you'd end up seeing exceptions such as this one as they try to create new windows.
You might be able to use the window list in Quartz Debug to figure out which application that is responsible for this issue, should you encounter it again. Please file a bug report if you figure out that it's one of our apps.
Cheers,
j o a r
On 23 mar 2011, at 11.51, Rick Mann wrote:
> Got it again, this time as an internal exception in Xcode. Here's what it logged to the console. I'm also seeing other windows not appear (like, menus). I think it's time to restart and hope.
>
> 3/23/11 11:48:39 AM [0x0-0x1d01d].com.apple.Xcode[196] Wed Mar 23 11:48:39 knowntold-lm.corp.mycompany.com Xcode[196] <Error>: kCGErrorFailure: CGSNewWindowWithOpaqueShape: Cannot map window information shmem
> 3/23/11 11:48:39 AM Xcode[196] [MT] Uncaught Exception:
> Error (1000) creating CGSWindow
>
> Backtrace:
> 0 0x00007fff82b69796 __exceptionPreprocess (in CoreFoundation)
> 1 0x00007fff86b3f0f3 objc_exception_throw (in libobjc.A.dylib)
> 2 0x00007fff82b695d7 +[NSException raise:format:arguments:] (in CoreFoundation)
> 3 0x00007fff82b69564 +[NSException raise:format:] (in CoreFoundation)
> 4 0x00007fff80a002b1 _NXCreateWindow (in AppKit)
> 5 0x00007fff80a000ef _NSCreateWindow (in AppKit)
> 6 0x00007fff809ff4e3 -[NSWindow _commonAwake] (in AppKit)
> 7 0x00007fff809fc112 -[NSWindow _commonInitFrame:styleMask:backing:defer:] (in AppKit)
> 8 0x00007fff809fad9e -[NSWindow _initContent:styleMask:backing:defer:contentView:] (in AppKit)
> 9 0x00007fff809fa827 -[NSWindow initWithContentRect:styleMask:backing:defer:] (in AppKit)
> 10 0x0000000100841659 -[XCWindow initWithContentRect:styleMask:backing:defer:] (in DevToolsInterface)
> 11 0x00000001008093bb -[PBXModule loadModuleWindow] (in DevToolsInterface)
> 12 0x0000000100841598 -[PBXProjectModule loadModuleWindow] (in DevToolsInterface)
> 13 0x0000000100afbc46 -[XCDataTipModule loadModuleWindow] (in DevToolsInterface)
> 14 0x0000000100807d98 -[PBXWindowController _installModuleView] (in DevToolsInterface)
> 15 0x0000000100807d2f -[PBXWindowController _setRootModule:] (in DevToolsInterface)
> 16 0x0000000100807bf9 -[PBXWindowController initWithRootModule:] (in DevToolsInterface)
> 17 0x0000000100807bb4 -[PBXModule setWantsModuleWindow:] (in DevToolsInterface)
> 18 0x0000000100963726 -[PBXDebugSessionModule addModuleInWindow:] (in DevToolsInterface)
> 19 0x00000001009623cd -[PBXDebugSessionModule debugExecutable:] (in DevToolsInterface)
> 20 0x00000001008b033f -[XCProjectSelection buildOperationDidStop:] (in DevToolsInterface)
> 21 0x00007fff852fa8e9 _nsnote_callback (in Foundation)
> 22 0x00007fff82b11000 __CFXNotificationPost (in CoreFoundation)
> 23 0x00007fff82afd578 _CFXNotificationPostNotification (in CoreFoundation)
> 24 0x00007fff852f184a -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
> 25 0x00000001001d444e -[XCBuildOperation cleanupAfterRunning] (in DevToolsCore)
> 26 0x00000001001d4095 -[XCTargetBuildOperation cleanupAfterRunning] (in DevToolsCore)
> 27 0x00000001001d34a5 -[XCOperation stopWithResultCode:] (in DevToolsCore)
> 28 0x0000000100307125 __48-[XCThreadedOperation _runOperationInBackground]_block_invoke_0 (in DevToolsCore)
> 29 0x00007fff837fb284 _dispatch_call_block_and_release (in libSystem.B.dylib)
> 30 0x00007fff837d9df2 _dispatch_queue_drain (in libSystem.B.dylib)
> 31 0x00007fff837da69f _dispatch_queue_serial_drain_till_empty (in libSystem.B.dylib)
> 32 0x00007fff8380d43c _dispatch_main_queue_callback_4CF (in libSystem.B.dylib)
> 33 0x00007fff82b04c90 __CFRunLoopRun (in CoreFoundation)
> 34 0x00007fff82b03dbf CFRunLoopRunSpecific (in CoreFoundation)
> 35 0x00007fff827e774e RunCurrentEventLoopInMode (in HIToolbox)
> 36 0x00007fff827e7553 ReceiveNextEventCommon (in HIToolbox)
> 37 0x00007fff827e740c BlockUntilNextEventMatchingListInMode (in HIToolbox)
> 38 0x00007fff80a27e02 _DPSNextEvent (in AppKit)
> 39 0x00007fff80a27751 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
> 40 0x00007fff809ed427 -[NSApplication run] (in AppKit)
> 41 0x00007fff809e6144 NSApplicationMain (in AppKit)
> 42 0x0000000100001694
>
> ---
>
> I try to open my projects in 3.2.6, and I'm getting this error:
>
> Couldn’t open “/Users/me/MyCompany/depot/MyProject/trunk/MyProject.xcodeproj”.
>
> Reason: Error (1000) creating CGSWindow.
>
> If I try again, it opens (sometimes).
>
> What's going on? I'm having oddness in Mail.app, too, with message lists disappearing (just curious if CGSWindow is something low-level, if there are window server issues or graphics issues, or what).
>
> --
> Rick
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden