ClosestStorm / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

GSNewWindowWithOpaqueShape: Cannot create window #465

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I was routinely editing an HTML file in macvim, then closed it, then went back 
to open macvim through iTerm2, and got this error output.

<Error>: kCGErrorRangeCheck: CGSNewWindowWithOpaqueShape: Cannot create window
<Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch 
errors as they are logged.
Error (1007) creating CGSWindow on line 263
0   CoreFoundation                      0x00007fff8d78ef56 
__exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff8c0a1d5e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff8d78ed8a +[NSException raise:format:arguments:] + 106
    3   CoreFoundation                      0x00007fff8d78ed14 +[NSException raise:format:] + 116
    4   AppKit                              0x00007fff954f016f _NSCreateWindowWithOpaqueShape2 + 755
    5   AppKit                              0x00007fff9543e6c5 -[NSWindow _commonAwake] + 1875
    6   AppKit                              0x00007fff953bb287 -[NSWindow _makeKeyRegardlessOfVisibility] + 85
    7   AppKit                              0x00007fff953bb207 -[NSWindow makeKeyAndOrderFront:] + 27
    8   MacVim                              0x000000010f01bcca -[MMWindowController presentWindow:] + 145
    9   Foundation                          0x00007fff9636e186 __NSFireDelayedPerform + 392
    10  CoreFoundation                      0x00007fff8d743934 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
    11  CoreFoundation                      0x00007fff8d743486 __CFRunLoopDoTimer + 534
    12  CoreFoundation                      0x00007fff8d723e11 __CFRunLoopRun + 1617
    13  CoreFoundation                      0x00007fff8d723486 CFRunLoopRunSpecific + 230
    14  HIToolbox                           0x00007fff8e6182bf RunCurrentEventLoopInMode + 277
    15  HIToolbox                           0x00007fff8e61f56d ReceiveNextEventCommon + 355
    16  HIToolbox                           0x00007fff8e61f3fa BlockUntilNextEventMatchingListInMode + 62
    17  AppKit                              0x00007fff952c2779 _DPSNextEvent + 659
    18  AppKit                              0x00007fff952c207d -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
    19  AppKit                              0x00007fff952be9b9 -[NSApplication run] + 470
    20  AppKit                              0x00007fff9553aeac NSApplicationMain + 867
    21  MacVim                              0x000000010f009164 start + 52

I've never seen anything like this. This doesn't happen in the system vim, and 
I just downloaded the latest snapshot, and it still happens there. I'm on OSX 
10.7.5.

Original issue reported on code.google.com by iamnicho...@gmail.com on 29 Jul 2013 at 1:56

GoogleCodeExporter commented 9 years ago
Do you have a way to reliably reproduce this problem?

Original comment by bjorn.winckler@gmail.com on 29 Jul 2013 at 12:48

GoogleCodeExporter commented 9 years ago
I don't. I did try troubleshooting (renaming my .vim folder, trying system 
vim), and none of that worked. I tried upgrading from the recent snapshot, same 
error. This happens trying to open any file in any directory on my system.

I don't have the steps to reproduce it because I'm not totally sure what 
happened. Does that error output tell you anything, or even suggest a starting 
place?

Original comment by iamnicho...@gmail.com on 29 Jul 2013 at 5:20

GoogleCodeExporter commented 9 years ago
Here's some more information as I've been working with this. I've deleted 
MacVim from my applications. Then I ran mvim in a directory to make sure it 
gave me some sort of error (like that it couldn't find the application), and it 
didn't. Instead, it opened the directory in MacVim as expected. I've double 
checked to make sure MacVim isn't in my applications, and it isn't. I'm the 
root user and it isn't installed for any other users. 

So…while this is great, and is certainly preferable to not being able to use 
MacVim at all, this doesn't seem like it should even be possible.

So I'm not sure what to do here. I'll certainly report back as I find out more 
information.

Original comment by iamnicho...@gmail.com on 30 Jul 2013 at 5:59

GoogleCodeExporter commented 9 years ago
I still have this problem in the latest version as well.

2015-03-10 08:17:25.436 MacVim[1593:11534] Error (1000) creating CGSWindow on 
line 281
2015-03-10 08:17:25.437 MacVim[1593:11534] (
    0   CoreFoundation                      0x00007fff8908f66c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff8cdcf76e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff8908f51d +[NSException raise:format:] + 205
    3   AppKit                              0x00007fff901cb59d _NSCreateWindowWithOpaqueShape2 + 1417
    4   AppKit                              0x00007fff901c9906 -[NSWindow _commonAwake] + 1882
    5   AppKit                              0x00007fff901c9009 -[NSWindow _makeKeyRegardlessOfVisibility] + 85
    6   AppKit                              0x00007fff901c8f7e -[NSWindow makeKeyAndOrderFront:] + 27
    7   MacVim                              0x0000000104d33b78 -[MMWindowController presentWindow:] + 147
    8   Foundation                          0x00007fff8eee784b __NSFireDelayedPerform + 364
    9   CoreFoundation                      0x00007fff88fe2b64 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
    10  CoreFoundation                      0x00007fff88fe27f3 __CFRunLoopDoTimer + 1059
    11  CoreFoundation                      0x00007fff89055dbd __CFRunLoopDoTimers + 301
    12  CoreFoundation                      0x00007fff88f9f288 __CFRunLoopRun + 2024
    13  CoreFoundation                      0x00007fff88f9e858 CFRunLoopRunSpecific + 296
    14  HIToolbox                           0x00007fff8a432aef RunCurrentEventLoopInMode + 235
    15  HIToolbox                           0x00007fff8a43286a ReceiveNextEventCommon + 431
    16  HIToolbox                           0x00007fff8a4326ab _BlockUntilNextEventMatchingListInModeWithFilter + 71
    17  AppKit                              0x00007fff900b9f81 _DPSNextEvent + 964
    18  AppKit                              0x00007fff900b9730 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194
    19  AppKit                              0x00007fff900ad593 -[NSApplication run] + 594
    20  AppKit                              0x00007fff90098a14 NSApplicationMain + 1832
    21  libdyld.dylib                       0x00007fff937485c9 start + 1
    22  ???                                 0x0000000000000003 0x0 + 3
)

The problem can be solved by removing the org.vim.* files in 
~/Library/Preferences and then restarting OS X. The problem is indeed related 
to switching between multiple monitor setup and single monitor (the problem 
does not occur when I have the secondary monitor connected).

Original comment by eelco.ku...@gmail.com on 10 Mar 2015 at 7:29