Renderer2d broken on Mojave and Xcode 10


#1

I understand from this post that Mojave / Xcode updates are creating several problems.

It seems setting:
settings->setHighDensityDisplayEnabled(true);

fixes a few of those issues but I am trying to use Cairo for some vector related export work and the CairoBasic example currently builds but continuously spits out:

**2018-10-24 16:14:51.975299+0100 CairoBasic[2166:42801] [org.libcinder.CairoBasic] CGContextClipToRect: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.**

**2018-10-24 16:14:51.975346+0100 CairoBasic[2166:42801] [org.libcinder.CairoBasic] CGContextGetCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.**

**2018-10-24 16:14:51.975379+0100 CairoBasic[2166:42801] [org.libcinder.CairoBasic] CGContextConcatCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.**

etc.
etc.

Does anyone have any wisdom to offer in getting this to work again without downgrading Xcode / macos?

Thanks.


#2

It appears the CGContext of Renderer2d returns NULL. I don’t know the best way to fix this but have posted an issue here: