Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot display in singularity shell in wslg [qt.qpa.screen: QXcbConnection: Could not connect to display :0]

Cannot display in singularity shell in wslg [qt.qpa.screen: QXcbConnection: Could not connect to display :0]

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 563 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    omozopia
    wrote on last edited by
    #1

    Hello Forum. Please, I am having problems launching the singularity container in wslg/wsl2. I am currently getting this error:

    qt.qpa.screen: QXcbConnection: Could not connect to display :0
    Could not connect to any X display.

    This is a log output below when I set QT_DEBUG_PLUGINS=1

    Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqeglfs.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "eglfs"
    ]
    },
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqlinuxfb.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "linuxfb"
    ]
    },
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqminimal.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "minimal"
    ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqminimalegl.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "minimalegl"
    ]
    },
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqoffscreen.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "offscreen"
    ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqvnc.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "vnc"
    ]
    },
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqxcb.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "xcb"
    ]
    },
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    qt.qpa.screen: QXcbConnection: Could not connect to display :0
    Could not connect to any X display.
    QLibraryPrivate::unload succeeded on "/usr/lib64/qt5/plugins/platforms/libqxcb.so"

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Do you have an X server running on your machine ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      O 1 Reply Last reply
      0
      • O Offline
        O Offline
        omozopia
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi and welcome to devnet,

          Do you have an X server running on your machine ?

          O Offline
          O Offline
          omozopia
          wrote on last edited by
          #4

          @SGaist I do have x server running on the machine. This is already implemented with WSLG, which enables me to launch the GUI of other apps.

          JonBJ 1 Reply Last reply
          0
          • O omozopia

            @SGaist I do have x server running on the machine. This is already implemented with WSLG, which enables me to launch the GUI of other apps.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @omozopia
            Well all I know is that

            qt.qpa.screen: QXcbConnection: Could not connect to display :0

            Could not connect to any X display.

            is telling you it cannot find or use it, for whatever reason....

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved