seg tool hangs after figure only on ubuntu