For me, this problem occurs because clutter fails to initialize (inside clutter_backend_glx_create_context; the call to glXCreateWindow fails, so (apparently) the call to clutter_x11_untrap_x_errors returns true). I'm using Mesa indirect rendering. Alex