Qt openframework BadMatch invalid parameter attributes

I install qtcreator in my azure server with ubuntu operating system. the problem’ if I run my code there is error message.

Error message is

X Error of failed request: BadMatch (invalid parameter attributes)

Major opcode of failed request: 72 (X_PutImage)

Serial number of failed request: 41

Current serial number in output stream: 43

Also I have another problem the keyboard doest not works properly on qt… the error message is Qt: XKEYBOARD extension not present on the X server.

any idea how to fixed this?

Cross posted https://www.opengl.org/discussion_boards/showthread.php/200766-Qt-openframework-BadMatch-invalid-parameter-attributes?p=1291725#post1291725 , https://ubuntuforums.org/showthread.php?t=2393636&p=13773724#post13773724