In certain (error) cases it can happen CPTLayer gets a 0 context in drawInContext and it should protect against that by not render at all (maybe issue a warning). This will also prevent a crash in CPTPushCGContext if there's no current graphics context.
I have seen this problem when using the new NSTitlebarAccessoryViewController in OSX 10.10 (via 3rd party component WAYWindow).
In certain (error) cases it can happen CPTLayer gets a 0 context in drawInContext and it should protect against that by not render at all (maybe issue a warning). This will also prevent a crash in CPTPushCGContext if there's no current graphics context.
I have seen this problem when using the new NSTitlebarAccessoryViewController in OSX 10.10 (via 3rd party component WAYWindow).