Are you using the latest ibus-el? I have tried to start a new Emacs session, start the server and try both of your cases but I don't have any error.
Are you using the latest ibus-el? I have tried to start a new Emacs session, start the server and try both of your cases but I don't have any error.