According to the stack trace, we have nux::GetGraphicsDisplay() returning NULL in texture_from_cairo_graphics. This would happen if we are calling it from any thread other than the main thread.
According to the stack trace, we have nux::GetGraphic sDisplay( ) returning NULL in texture_ from_cairo_ graphics. This would happen if we are calling it from any thread other than the main thread.