Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt creator window closes whenever screen is switched off and on [Solved]



  • Hi All,

    I am using QtCreator 3.0.1 and whenever I switch the monitor off and turn it back on the QtCreator window just hides itself, I can see that process is running in the background but I can't bring back the window. I tried to launch it from command line and I see errors similar to this one:
    QXcbConnection: XCB error: 3 (BadWindow)

    My setup:
    OpenSuse 13.1 KDE 4.11.25
    QtCreator 3.0.1
    Qt versions: 4.8 and 5.2
    GCC: 4.8.1
    Monitor: LG 27EA63 over HDMI.

    List of all the errors is something like this:
    "Qt Warning - invalid keysym: dead_actute"
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 677, resource id: 0, major code: 15 (QueryTree), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 3285, resource id: 0, major code: 15 (QueryTree), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 680, resource id: -1, major code: 1 (CreateWindow), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 681, resource id: 41943077, major code: 2 (ChangeWindowAttributes), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 682, resource id: 41943077, major code: 19 (DeleteProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 683, resource id: 41943077, major code: 24 (ConvertSelection), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 786, resource id: 41943077, major code: 19 (DeleteProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 787, resource id: 41943077, major code: 24 (ConvertSelection), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 891, resource id: 41943077, major code: 19 (DeleteProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 892, resource id: 41943077, major code: 24 (ConvertSelection), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 995, resource id: 41943077, major code: 19 (DeleteProperty), minor code: 0
    QXcbConnection: XCB error: 3 (BadWindow), sequence: 996, resource id: 41943077, major code: 24 (ConvertSelection), minor code: 0

    Appreciate any help in this regard.

    Thank you

    [Edit] OpenSuse version is corrected 13.1.



  • Hi varunamachi,

    First of all, welcome to te DevNet forums.

    I'm not on OpenSuse myself, but after a search i found "this thread":http://qt-project.org/forums/viewthread/20951

    There is no solution there but it says it could be a problem with the X window system.

    Do you get this behaviour also when you use other programs?



  • Hi Eddy,

    Thank you very much for the fast reply.

    You might be right I was using same version of QtCreator on same setup some days back and seemed work properly. May be some update broke some functionality.

    But I think there could be a issue with Qt's X11 back-end also because there is a "bug":https://bugreports.qt-project.org/browse/QTBUG-31410?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab reported on Qt Linguist related to similar issue.

    In any case I will post same question on OpenSuse forums and if get any solution there I will post it here and mark this thread as solved.

    Thank you



  • Did you get Qt from the OpenSuse repositories? A workaround might be to use one from "the Qt download page":http://qt-project.org/downloads

    Could you test if that works? then you know it has something to do with the OpenSuse packages.



  • Actually I am using the .bin files downloaded from the Qt-Project. OpenSuse repositories doesn't seem to have the latest versions.



  • There is bug for this issue on Qt 5: "https://bugreports.qt-project.org/browse/QTBUG-40168":https://bugreports.qt-project.org/browse/QTBUG-40168 . As I have commented on the issue, I solved it by using a DVI connection instead of using HDMI connection.

    Thanks for the support.

    Regards,
    Varun


Log in to reply