Cannot start snap, stuck after "Watches established"

Do you think this error might be related to the desktop-launch wrapper?

hiransarkar@ubuntu:~$ snap logs cluemaster-mediadisplay-core
2021-09-10T02:48:45Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4735]: /tmp/tmp.MgsRHOoayF CLOSE_WRITE,CLOSE
2021-09-10T02:48:47Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4755]: Prepairing launch ...
2021-09-10T02:48:47Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4755]: Environment variables setup complete ...
2021-09-10T02:48:48Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: Using Wayland-EGL
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "xdg-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "xdg-shell-v6" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "wl-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "ivi-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: Loading shell integration failed.
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")

And this issue

Failed to stage: Parts 'copy-source-code' and 'desktop-qt5' have the following files, but with different contents:
    usr/lib/x86_64-linux-gnu/dri/i915_dri.so
    usr/lib/x86_64-linux-gnu/dri/i965_dri.so
    usr/lib/x86_64-linux-gnu/dri/iris_dri.so
    usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
    usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
    usr/lib/x86_64-linux-gnu/dri/nouveau_vieux_dri.so
    usr/lib/x86_64-linux-gnu/dri/r200_dri.so
    usr/lib/x86_64-linux-gnu/dri/r300_dri.so
    usr/lib/x86_64-linux-gnu/dri/r600_dri.so
    usr/lib/x86_64-linux-gnu/dri/radeon_dri.so
    usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
    usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
    usr/lib/x86_64-linux-gnu/dri/virtio_gpu_dri.so
    usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so
    usr/lib/x86_64-linux-gnu/dri/zink_dri.so
    usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0
    usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0
    usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
    usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
    usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
    usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
    usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
    usr/lib/x86_64-linux-gnu/libgbm.so.1.0.0
    usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
    usr/share/doc/libdrm-common/changelog.Debian.gz
    usr/share/doc/libdrm2/changelog.Debian.gz
    usr/share/doc/libgbm1/changelog.Debian.gz
    usr/share/doc/libglapi-mesa/changelog.Debian.gz
    usr/share/drirc.d/00-mesa-defaults.conf
    usr/share/libdrm/amdgpu.ids

Snapcraft offers some capabilities to solve this by use of the following keywords:
    - `filesets`
    - `stage`
    - `snap`
    - `organize`

To learn more about these part keywords, run `snapcraft help plugins`.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.

is fixed

did you not discuss this before alerady ? in this answer @Saviq gave some debugging hints …

you might need to move the qtwayland stage package over to the desktop-qt5 part

1 Like

thanks, I totally forgot about that. I will try it out

Hi @ogra. I followed the thread ā€œCannot run PyQt5 snap in Ubuntu Coreā€ and added QT_DEBUG_PLUGINS and QT_PLUGINS_PATH as @Saviq suggested but no luck.

Here are the complete logs after setting both of the variables

Prepairing launch ...
Environment variables setup complete ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqeglfs.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archreq": 0,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archreq": 0,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqminimal.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archreq": 0,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqminimalegl.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archreq": 0,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqoffscreen.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archreq": 0,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqvnc.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archreq": 0,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-egl.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archreq": 0,
    "className": "QWaylandEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("wayland-egl")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-generic.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-generic.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland"
        ]
    },
    "archreq": 0,
    "className": "QWaylandIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("wayland")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-xcomposite-egl.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-xcomposite-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-xcomposite-egl"
        ]
    },
    "archreq": 0,
    "className": "QWaylandXCompositeEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("wayland-xcomposite-egl")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-xcomposite-glx.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-xcomposite-glx.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-xcomposite-glx"
        ]
    },
    "archreq": 0,
    "className": "QWaylandXCompositeGlxPlatformIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("wayland-xcomposite-glx")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqxcb.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/platforms" ...
loaded library "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-egl.so"
Using Wayland-EGL
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platformthemes" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platformthemes/libqgtk2.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platformthemes/libqgtk2.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "gtk2"
        ]
    },
    "archreq": 0,
    "className": "QGtk2ThemePlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("gtk2")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platformthemes/libqgtk3.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platformthemes/libqgtk3.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "gtk3"
        ]
    },
    "archreq": 0,
    "className": "QGtk3ThemePlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("gtk3")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/platformthemes" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqcleanlooksstyle.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqcleanlooksstyle.so, metadata=
{
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
        "Keys": [
            "cleanlooks"
        ]
    },
    "archreq": 0,
    "className": "QCleanlooksStylePlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("cleanlooks")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqgtk2style.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqgtk2style.so, metadata=
{
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
        "Keys": [
            "gtk2"
        ]
    },
    "archreq": 0,
    "className": "QGtk2StylePlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("gtk2")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqmotifstyle.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqmotifstyle.so, metadata=
{
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
        "Keys": [
            "motif",
            "cde"
        ]
    },
    "archreq": 0,
    "className": "QMotifStylePlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("motif", "cde")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqplastiquestyle.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqplastiquestyle.so, metadata=
{
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
        "Keys": [
            "plastique"
        ]
    },
    "archreq": 0,
    "className": "QPlastiqueStylePlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("plastique")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/styles" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/iconengines" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/iconengines/libqsvgicon.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/iconengines/libqsvgicon.so, metadata=
{
    "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz",
            "svg.gz"
        ]
    },
    "archreq": 0,
    "className": "QSvgIconPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("svg", "svgz", "svg.gz")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/iconengines" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqgif.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqgif.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "gif"
        ],
        "MimeTypes": [
            "image/gif"
        ]
    },
    "archreq": 0,
    "className": "QGifPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("gif")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqico.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqico.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "ico",
            "cur"
        ],
        "MimeTypes": [
            "image/vnd.microsoft.icon",
            "image/vnd.microsoft.icon"
        ]
    },
    "archreq": 0,
    "className": "QICOPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("ico", "cur")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqjpeg.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqjpeg.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "jpg",
            "jpeg"
        ],
        "MimeTypes": [
            "image/jpeg",
            "image/jpeg"
        ]
    },
    "archreq": 0,
    "className": "QJpegPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("jpg", "jpeg")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqsvg.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqsvg.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz"
        ],
        "MimeTypes": [
            "image/svg+xml",
            "image/svg+xml-compressed"
        ]
    },
    "archreq": 0,
    "className": "QSvgPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("svg", "svgz")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/imageformats" ...
loaded library "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqgif.so"
loaded library "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqico.so"
loaded library "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqjpeg.so"
loaded library "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqsvg.so"
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/accessiblebridge" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/accessiblebridge" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/wayland-shell-integration" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/wayland-shell-integration" ...
qt.qpa.wayland: No shell integration named "xdg-shell" found
qt.qpa.wayland: No shell integration named "xdg-shell-v6" found
qt.qpa.wayland: No shell integration named "wl-shell" found
qt.qpa.wayland: No shell integration named "ivi-shell" found
qt.qpa.wayland: Loading shell integration failed.
qt.qpa.wayland: Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/accessible" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/accessible" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/wayland-decoration-client" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/wayland-decoration-client" ...
No decoration plugins available. Running with no decorations.
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

where do you point it to ? does it actually point to the right directory (sorry, i have not much clue about PyQT5, i would actually expect the desktop-qt5 part to set that variable correctly) … btw, have you tried simply forcing X11 usage by adding DISABLE_WAYLAND: 1 to your environment: block ?

1 Like

Hi @ogra. I fixed this error

hiransarkar@ubuntu:~$ snap logs cluemaster-mediadisplay-core
2021-09-10T02:48:45Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4735]: /tmp/tmp.MgsRHOoayF CLOSE_WRITE,CLOSE
2021-09-10T02:48:47Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4755]: Prepairing launch ...
2021-09-10T02:48:47Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4755]: Environment variables setup complete ...
2021-09-10T02:48:48Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: Using Wayland-EGL
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "xdg-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "xdg-shell-v6" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "wl-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "ivi-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: Loading shell integration failed.
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")

The path where my executable was looking for the plugins, was hardcoded by Pyinstaller, so I tranferred the missing plugins and libs, into that directory, rebuild it and now its working!!! Thanks

1 Like

Hi @ogra. After my latest build, I am noticing some weird things in my app… The text started disappearing. I can also see the .gif animations but no texts

Here is the snapcraft.yaml

name: cluemaster-mediadisplay-core
base: core20
version: '1.0.9' 
summary: summary
description: description
grade: stable 
confinement: strict

apps:
  cluemaster-mediadisplay-core:
    daemon: simple
    restart-condition: always
    command-chain:
      - env-setup
    command: usr/local/bin/x11_kiosk_launch $SNAP/bin/desktop-launch $SNAP/bin/prepare-launch $SNAP/cluemaster_display
    plugs:
      - home
      - desktop-legacy
      - desktop
      - wayland
      - x11
      - unity7
      - network
      - opengl
      - gsettings
      - network-bind
      - screen-inhibit-control
      - audio-playback
      - shutdown
      - process-control
      - mount-observe
      - network-control

parts:
  copy-source-code:
    after: [desktop-qt5]
    plugin: dump
    source: cluemaster_display/
    stage-packages:
      - ffmpeg
      - locales
      - libvdpau1
      - i965-va-driver
      - libmpv1
      - va-driver-all
      - vdpau-driver-all
      - mesa-va-drivers
      - libvdpau-va-gl1
      - libglu1-mesa
      - samba-libs
      - git
      - python3-dbus
      - qtwayland5
      - mesa-utils
      - libgl1-mesa-dri
      - libdrm2
      - libgbm1
      - python3-pyqt5.qtmultimedia
      - libqt5multimedia5-plugins

    stage-snaps: [mir-kiosk-x11]

  extra-libraries:
    plugin: nil
    stage-packages:
      - libasound2-data
      - libasound2-plugins
      - libpulse0
      - libpulse-mainloop-glib0

  extras:
    plugin: dump
    source: static/
    organize:
      "prepare-launch": "bin/"

  desktop-qt5:
    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
    source-subdir: qt
    plugin: make
    make-parameters: ["FLAVOR=qt5"]
    build-packages:
      - build-essential
      - qtbase5-dev
      - dpkg-dev
    stage-packages:
      - libxkbcommon0
      - ttf-ubuntu-font-family
      - dmz-cursor-theme
      - light-themes
      - adwaita-icon-theme
      - gnome-themes-standard
      - shared-mime-info
      - libqt5gui5
      - libgdk-pixbuf2.0-0
      - libqt5svg5 # for loading icon themes which are svg
      - try: [appmenu-qt5] # not available on core18
      - locales-all
      - xdg-user-dirs
      - fcitx-frontend-qt5
    stage:
      - -usr/lib/x86_64-linux-gnu/dri/*
      - -usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0
      - -usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
      - -usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
      - -usr/lib/x86_64-linux-gnu/libgbm.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
      - -usr/share/doc/libdrm-common/changelog.Debian.gz
      - -usr/share/doc/libdrm2/changelog.Debian.gz
      - -usr/share/doc/libgbm1/changelog.Debian.gz
      - -usr/share/doc/libglapi-mesa/changelog.Debian.gz
      - -usr/share/drirc.d/00-mesa-defaults.conf
      - -usr/share/libdrm/amdgpu.ids


layout:
  /usr/share/X11:
    bind: $SNAP/usr/share/X11
  /usr/bin/xkbcomp:
    symlink: $SNAP/usr/bin/xkbcomp
  /usr/share/icons:
    bind: $SNAP/usr/share/icons
  /usr/local/share/fonts:
    bind: $SNAP/usr/local/share/fonts
  /etc/fonts:
    bind: $SNAP/gnome-platform/etc/fonts

you dropped the extension but still use the layout pointing to it …

okay, that means, I need to remove the last layout.

/etc/fonts:
    bind: $SNAP/gnome-platform/etc/fonts

Thanks

Hi @ogra. I am still facing the issue. There is no font. I checked the logs using snap logs cluemaster-mediadisplay-core , and here it says that it can’t find any font…

hiransarkar@ubuntu:~$ snap logs cluemaster-mediadisplay-core
2021-09-10T19:02:15Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:15.550785] < -warning- > xwayland: Failed to load any default cursor
2021-09-10T19:02:15Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:15.550975] < - ERROR - > xwayland: No default cursor loaded
2021-09-10T19:02:15Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:15.551294] <information> xwayland: XWayland is running
2021-09-10T19:02:15Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2710]: Failed to create /root/.cache for shader cache (Permission denied)---disabling.
2021-09-10T19:02:15Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2710]: Fontconfig error: Cannot load default config file
2021-09-10T19:02:16Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:16.025209] < - ERROR - > xwayland: XCB error: no reply data
2021-09-10T19:02:16Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:16.025816] < - ERROR - > xwayland: XCB error: no reply data
2021-09-10T19:02:16Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:16.040872] < - debug - > wayland-gfx-helpers: Wayland buffer destroyed before use; rendering will be incomplete
2021-09-10T19:02:21Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:21.422873] < - ERROR - > xwayland: XCB error: no reply data
2021-09-10T19:02:21Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:21.441426] < -warning- > mirserver: Failed to find a font

Hi @ogra. I fixed it, added and removed some layouts and now its working… Thanks for the help so far

1 Like