Ok, thanks. The guarded thing is basically the try/catch around all callbacks.
But I would like to focus more on:
This has not so much tied to Gtk but the task machinery itself. What I observe is that sometimes the program crashed and sometimes nothing happens (no exception printed). I would argue that it would be better if the Julia runtime catches all exceptions. In C++ for instance all uncatched exceptions will call std::terminate
which can be replaced.