Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Does not start on Fedora using Wayland #28

Open
eeickmeyer opened this issue Sep 18, 2020 · 3 comments
Open

Does not start on Fedora using Wayland #28

eeickmeyer opened this issue Sep 18, 2020 · 3 comments

Comments

@eeickmeyer
Copy link

eeickmeyer commented Sep 18, 2020

Also reported to the unofficial-webapp-todo developer (ojoanalogo#1) as well as the icloud-for-linux developer (cross-platform#24).

Just as an example, using Outlook, attempted form command line using QT_DEBUG_PLUGINS=1:

$ QT_DEBUG_PLUGINS=1 snap run unofficial-webapp-office.outlook

WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
QFactoryLoader::QFactoryLoader() checking directory path "/snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
Found metadata in lib /snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 329989
}


Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 329989
}


Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
Found metadata in lib /snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 329989
}


Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
Found metadata in lib /snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 329989
}


Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
Found metadata in lib /snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 329989
}


Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
Found metadata in lib /snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 329989
}


Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
Found metadata in lib /snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 329989
}


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/unofficial-webapp-office/46/usr/lib/qt5/bin/platforms" ...
loaded library "/snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
qt.qpa.screen: QXcbConnection: Could not connect to display :0
Could not connect to any X display.
QLibraryPrivate::unload succeeded on "/snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so" 

Runs on Xorg just fine. :)

@castagnag
Copy link

I confirm the bug. For me the problem is when loading libqtwebengineplugin library:

loaded library "/snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/libqtquickcontrolsplugin.so"
Found metadata in lib /snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/qml/QtWebEngine/libqtwebengineplugin.so, metadata=
{
"IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
"MetaData": {
},
"className": "QtWebEnginePlugin",
"debug": false,
"uri": [
"QtWebEngine"
],
"version": 329989
}

loaded library "/snap/unofficial-webapp-office/46/usr/lib/x86_64-linux-gnu/qt5/qml/QtWebEngine/libqtwebengineplugin.so"
[11029:11029:1127/110646.402067:FATAL:credentials.cc(295)] Check failed: 0 == sys_unshare(CLONE_NEWUSER). : Operation not permitted
#0 0x7f5816b97aee
#1 0x7f5816baa0e2
#2 0x7f5816bab45c
#3 0x7f58177203db
#4 0x7f58167b4527
#5 0x7f581645fd48
#6 0x7f5816463262
#7 0x7f5816251a9b
#8 0x7f5816252bd5
#9 0x7f58161e74f1 QtWebEngineCore::BrowserContextAdapter::defaultContext()
#10 0x7f582213a3b5 QQuickWebEngineProfile::defaultProfile()
#11 0x7f5822141dba QQuickWebEngineViewPrivate::QQuickWebEngineViewPrivate()
#12 0x7f5822142c9b QQuickWebEngineView::QQuickWebEngineView()
#13 0x7f582237a27b
#14 0x7f583dd59962 QQmlType::create()
#15 0x7f583ddca146 QQmlObjectCreator::createInstance()
#16 0x7f583ddcc3da QQmlObjectCreator::setPropertyBinding()
#17 0x7f583ddcce11 QQmlObjectCreator::setupBindings()
#18 0x7f583ddc9ba6 QQmlObjectCreator::populateInstance()
#19 0x7f583ddca97c QQmlObjectCreator::createInstance()
#20 0x7f583ddcdc6c QQmlObjectCreator::create()
#21 0x7f583dd44408 QQmlComponentPrivate::beginCreate()
#22 0x7f583dd4274f QQmlComponent::create()
#23 0x560d35761c5a
#24 0x7f583b902b97 __libc_start_main
#25 0x560d35763ada

Fontconfig warning: FcPattern object weight does not accept value [0 205)
Segmentation fault (core dumped)

I'on Linux 5.9.10-200.fc33.x86_64 #1 SMP Mon Nov 23 18:12:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

@sirredbeard
Copy link
Owner

Yes, I am looking at options for supporting Wayland going forward.

@castagnag
Copy link

Well, actually after some tries I have to change my bug report. For me the problem is not Wayland, the command above fails both for gnome on Wayland and Gnome on Xorg. It is a matter of permissions. Indeed if I do (notice the sudo)

sudo QT_DEBUG_PLUGINS=1 snap run unofficial-webapp-office.word
then it works flawlessly (well modulo the other bugs already signaled, e.g. the fact that one has to login every time) both in Xorg and in Wayland. I use Fedora 33 with kernel 5.9.11-200.fc33.x86_64 and installed unofficial-webapp-office from snap

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants