On Thursday, October 31, 2013 at 2:42:18 AM UTC+8, Michael Grubb wrote:
> On Friday, October 25, 2013 1:34:34 PM UTC-5, björn wrote:
> > On Fri, Oct 25, 2013 at 8:26 PM, Michael Grubb wrote:
> > 
> > > Yes there are run-time warnings:
> > 
> > > Oct 25 13:25:53 macbook MacVim[15393] <Error>: The function 
> > > `CGContextErase' is obsolete and will be removed in an upcoming update. 
> > > Unfortunately, this application, or a library it uses, is using this 
> > > obsolete function, and is thereby contributing to an overall degradation 
> > > of system performance.
> > 
> > 
> > 
> > Oh my ... these runtime warnings are so obnoxious.  Well, my apologies
> > 
> > for this and I will try to get this sorted.  Unfortunately there is no
> > 
> > equivalent function to replace the deprecated one so it requires using
> > 
> > a whole new approach to text rendering.
> > 
> > 
> > 
> > I find the best way to work around the warnings is to start MacVim
> > 
> > from the Finder and leave it running (i.e. you can close windows, but
> > 
> > not quit the whole app).  Then you can open files from Terminal
> > 
> > without any warnings (or at least, that used to be the case).
> > 
> > 
> > 
> > Björn
> > 
> > 
> > 
> > P.S. A reminder to everybody on this list to please refrain from top
> > 
> > posting. That is, type your reply below the text you are replying to
> > 
> > and remove irrelevant text from the original.  Thanks!
> 
> Sorry for being so long to reply, but I have gained some insight into the 
> CGContextErase deprecation warnings.
> 
> It is occurring for many other applications including core OS apps like 
> Finder and System Preferences and seems to have something to do at lease 
> remotely with Ink.  After running MacVim through Instruments using the System 
> Call instrument and examining the call tree, it appears that CGContextErase 
> is being called by InkInitializeInstanceGraphics.  This is ultimately being 
> called by AcquireEventFromQueue in HIToolbox.  I've opened a bug with Apple 
> #15353586.

Apologies for resurrecting this thread. I just wanted to thank Michael Grubb 
for his insight. I can confirm that the Ink subsystem initializes the CG calls 
that we see in warnings after starting MacVim in the terminal. I turned off Ink 
writing recognition from System Preferences and the CGContextErase warning goes 
away. Currently on OS X 10.10.1 (Yosemite).

-- 
-- 
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_mac+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to