getting segfault on g.display