I'm not sure that trace is showing the real error there, as the error shown in your trace should be trapped correctly and not cause g s-d to exit (and your debug output suggests this is the case as well). Would you mind trying again, but after encountering the first gdk_x_error in GDB, could you please type "cont" and see if GDB catches a second error? If it does, please attach the backtrace for this second error ("bt full").
I'm not sure that trace is showing the real error there, as the error shown in your trace should be trapped correctly and not cause g s-d to exit (and your debug output suggests this is the case as well). Would you mind trying again, but after encountering the first gdk_x_error in GDB, could you please type "cont" and see if GDB catches a second error? If it does, please attach the backtrace for this second error ("bt full").
Thanks