bpozdena / OneDriveGUI

A simple GUI for OneDrive Linux client, with multi-account support.
GNU General Public License v3.0
704 stars 33 forks source link

No Qt platform plugin could be initialized #169

Closed dalemartin closed 4 months ago

dalemartin commented 4 months ago

Describe the bug

Launching the GUI fails (it never appears) with the following message:

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, wayland-egl, wayland, xcb.

Aborted

To Reproduce Steps to reproduce the behavior:

  1. In a terminal, run export QT_DEBUG_PLUGINS=1 (for Qt debug)
  2. In the same terminal launch the app

Expected behavior

GUI should launch normally, but it never appears.

Screenshots

N/A

Log

Console output:

Click to expand ``` 2024-04-30 12:53:23,549 [OneDriveGUI.py:3093][fn=config_client_bin_path][INFO] - Onedrive client location: 'onedrive' 2024-04-30 12:53:23,575 [OneDriveGUI.py:2854][fn=get_installed_client_version][DEBUG] - [GUI] Installed client version is 2425 2024-04-30 12:53:23,579 [OneDriveGUI.py:2889][fn=create_global_config][DEBUG] - [GUI] - loading default config {'onedrive': {'sync_dir': '"~/OneDrive"', 'monitor_interval': '"300"', 'log_dir': '"/var/log/onedrive/"', 'drive_id': '""', 'upload_only': '"false"', 'check_nomount': '"false"', 'check_nosync': '"false"', 'download_only': '"false"', 'disable_notifications': '"false"', 'disable_upload_validation': '"false"', 'enable_logging': '"false"', 'force_http_11': '"false"', 'local_first': '"false"', 'no_remote_delete': '"false"', 'skip_symlinks': '"false"', 'debug_https': '"false"', 'skip_dotfiles': '"false"', 'dry_run': '"false"', 'min_notify_changes': '"5"', 'monitor_log_frequency': '"5"', 'monitor_fullscan_frequency': '"10"', 'sync_root_files': '"false"', 'classify_as_big_delete': '"1000"', 'user_agent': '""', 'remove_source_files': '"false"', 'skip_dir_strict_match': '"false"', 'application_id': '""', 'resync': '"false"', 'bypass_data_preservation': '"false"', 'azure_ad_endpoint': '""', 'azure_tenant_id': '"common"', 'sync_business_shared_folders': '"false"', 'sync_dir_permissions': '"700"', 'sync_file_permissions': '"600"', 'rate_limit': '"125000000"', 'operation_timeout': '"3600"', 'webhook_enabled': '"false"', 'webhook_public_url': '""', 'webhook_listening_host': '""', 'webhook_listening_port': '"8888"', 'webhook_expiration_interval': '"86400"', 'webhook_renewal_interval': '"43200"', 'skip_file': '"~*|.~*|*.tmp"', 'skip_dir': '""'}} 2024-04-30 12:53:23,580 [OneDriveGUI.py:2933][fn=create_global_config][DEBUG] - [GUI]{'sdi_OneDrive': {'config_file': '/home/sdi/.config/onedrive/accounts/sdi_OneDrive/config', 'auto_sync': 'False', 'account_type': 'Business', 'free_space': '', 'onedrive': {'sync_dir': '"~/OneDrive/onedrive"', 'monitor_interval': '"300"', 'log_dir': '"/var/log/onedrive/"', 'drive_id': '""', 'upload_only': '"false"', 'check_nomount': '"false"', 'check_nosync': '"false"', 'download_only': '"false"', 'disable_notifications': '"false"', 'disable_upload_validation': '"false"', 'enable_logging': '"false"', 'force_http_11': '"false"', 'local_first': '"false"', 'no_remote_delete': '"false"', 'skip_symlinks': '"false"', 'debug_https': '"false"', 'skip_dotfiles': '"false"', 'dry_run': '"false"', 'min_notify_changes': '"5"', 'monitor_log_frequency': '"5"', 'monitor_fullscan_frequency': '"10"', 'sync_root_files': '"false"', 'classify_as_big_delete': '"1000"', 'user_agent': '""', 'remove_source_files': '"false"', 'skip_dir_strict_match': '"false"', 'application_id': '""', 'resync': '"false"', 'bypass_data_preservation': '"false"', 'azure_ad_endpoint': '""', 'azure_tenant_id': '"common"', 'sync_business_shared_folders': '"false"', 'sync_dir_permissions': '"700"', 'sync_file_permissions': '"600"', 'rate_limit': '"125000000"', 'operation_timeout': '"3600"', 'webhook_enabled': '"false"', 'webhook_public_url': '""', 'webhook_listening_host': '""', 'webhook_listening_port': '"8888"', 'webhook_expiration_interval': '"86400"', 'webhook_renewal_interval': '"43200"', 'skip_file': '"~*|.~*|*.tmp"', 'skip_dir': '""'}}} 2024-04-30 12:53:23,580 [OneDriveGUI.py:2942][fn=save_global_config][DEBUG] - [save_global_config]:[1]{'sdi_OneDrive': {'config_file': '/home/sdi/.config/onedrive/accounts/sdi_OneDrive/config', 'auto_sync': 'False', 'account_type': 'Business', 'free_space': '', 'onedrive': {'sync_dir': '"~/OneDrive/onedrive"', 'monitor_interval': '"300"', 'log_dir': '"/var/log/onedrive/"', 'drive_id': '""', 'upload_only': '"false"', 'check_nomount': '"false"', 'check_nosync': '"false"', 'download_only': '"false"', 'disable_notifications': '"false"', 'disable_upload_validation': '"false"', 'enable_logging': '"false"', 'force_http_11': '"false"', 'local_first': '"false"', 'no_remote_delete': '"false"', 'skip_symlinks': '"false"', 'debug_https': '"false"', 'skip_dotfiles': '"false"', 'dry_run': '"false"', 'min_notify_changes': '"5"', 'monitor_log_frequency': '"5"', 'monitor_fullscan_frequency': '"10"', 'sync_root_files': '"false"', 'classify_as_big_delete': '"1000"', 'user_agent': '""', 'remove_source_files': '"false"', 'skip_dir_strict_match': '"false"', 'application_id': '""', 'resync': '"false"', 'bypass_data_preservation': '"false"', 'azure_ad_endpoint': '""', 'azure_tenant_id': '"common"', 'sync_business_shared_folders': '"false"', 'sync_dir_permissions': '"700"', 'sync_file_permissions': '"600"', 'rate_limit': '"125000000"', 'operation_timeout': '"3600"', 'webhook_enabled': '"false"', 'webhook_public_url': '""', 'webhook_listening_host': '""', 'webhook_listening_port': '"8888"', 'webhook_expiration_interval': '"86400"', 'webhook_renewal_interval': '"43200"', 'skip_file': '"~*|.~*|*.tmp"', 'skip_dir': '""'}}} 2024-04-30 12:53:23,607 [OneDriveGUI.py:2998][fn=save_global_config][INFO] - sdi_OneDrive config saved 2024-04-30 12:53:23,608 [OneDriveGUI.py:3000][fn=save_global_config][INFO] - All configs saved 2024-04-30 12:53:23,608 [OneDriveGUI.py:3001][fn=save_global_config][DEBUG] - {'sdi_OneDrive': {'config_file': '/home/sdi/.config/onedrive/accounts/sdi_OneDrive/config', 'auto_sync': 'False', 'account_type': 'Business', 'free_space': '', 'onedrive': {'sync_dir': '"~/OneDrive/onedrive"', 'monitor_interval': '"300"', 'log_dir': '"/var/log/onedrive/"', 'drive_id': '""', 'upload_only': '"false"', 'check_nomount': '"false"', 'check_nosync': '"false"', 'download_only': '"false"', 'disable_notifications': '"false"', 'disable_upload_validation': '"false"', 'enable_logging': '"false"', 'force_http_11': '"false"', 'local_first': '"false"', 'no_remote_delete': '"false"', 'skip_symlinks': '"false"', 'debug_https': '"false"', 'skip_dotfiles': '"false"', 'dry_run': '"false"', 'min_notify_changes': '"5"', 'monitor_log_frequency': '"5"', 'monitor_fullscan_frequency': '"10"', 'sync_root_files': '"false"', 'classify_as_big_delete': '"1000"', 'user_agent': '""', 'remove_source_files': '"false"', 'skip_dir_strict_match': '"false"', 'application_id': '""', 'resync': '"false"', 'bypass_data_preservation': '"false"', 'azure_ad_endpoint': '""', 'azure_tenant_id': '"common"', 'sync_business_shared_folders': '"false"', 'sync_dir_permissions': '"700"', 'sync_file_permissions': '"600"', 'rate_limit': '"125000000"', 'operation_timeout': '"3600"', 'webhook_enabled': '"false"', 'webhook_public_url': '""', 'webhook_listening_host': '""', 'webhook_listening_port': '"8888"', 'webhook_expiration_interval': '"86400"', 'webhook_renewal_interval': '"43200"', 'skip_file': '"~*|.~*|*.tmp"', 'skip_dir': '""'}}} qt.core.plugin.factoryloader: checking directory path "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms" ... qt.core.plugin.factoryloader: looking at "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqeglfs.so" qt.core.plugin.loader: Found metadata in lib /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqeglfs.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "eglfs" ] }, "archlevel": 1, "className": "QEglFSIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs") qt.core.plugin.factoryloader: looking at "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqlinuxfb.so" qt.core.plugin.loader: Found metadata in lib /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqlinuxfb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "linuxfb" ] }, "archlevel": 1, "className": "QLinuxFbIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("linuxfb") qt.core.plugin.factoryloader: looking at "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqminimal.so" qt.core.plugin.loader: Found metadata in lib /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqminimal.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimal" ] }, "archlevel": 1, "className": "QMinimalIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal") qt.core.plugin.factoryloader: looking at "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqminimalegl.so" qt.core.plugin.loader: Found metadata in lib /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqminimalegl.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimalegl" ] }, "archlevel": 1, "className": "QMinimalEglIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimalegl") qt.core.plugin.factoryloader: looking at "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqoffscreen.so" qt.core.plugin.loader: Found metadata in lib /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqoffscreen.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "offscreen" ] }, "archlevel": 1, "className": "QOffscreenIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen") qt.core.plugin.factoryloader: looking at "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqvkkhrdisplay.so" qt.core.plugin.loader: Found metadata in lib /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqvkkhrdisplay.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "vkkhrdisplay" ] }, "archlevel": 1, "className": "QVkKhrDisplayIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vkkhrdisplay") qt.core.plugin.factoryloader: looking at "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqvnc.so" qt.core.plugin.loader: Found metadata in lib /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqvnc.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "vnc" ] }, "archlevel": 1, "className": "QVncIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vnc") qt.core.plugin.factoryloader: looking at "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqwayland-egl.so" qt.core.plugin.loader: Found metadata in lib /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqwayland-egl.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "wayland-egl" ] }, "archlevel": 1, "className": "QWaylandEglPlatformIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland-egl") qt.core.plugin.factoryloader: looking at "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqwayland-generic.so" qt.core.plugin.loader: Found metadata in lib /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqwayland-generic.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "wayland" ] }, "archlevel": 1, "className": "QWaylandIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland") qt.core.plugin.factoryloader: looking at "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqxcb.so" qt.core.plugin.loader: Found metadata in lib /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqxcb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "xcb" ] }, "archlevel": 1, "className": "QXcbIntegrationPlugin", "debug": false, "version": 394752 } qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb") qt.core.plugin.factoryloader: looking at "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/qt6.conf" qt.core.plugin.loader: Failed to find metadata in lib /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/qt6.conf: '/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/qt6.conf' is not a valid ELF object (invalid signature) qt.core.plugin.factoryloader: "Failed to extract plugin meta data from '/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/qt6.conf': '/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/qt6.conf' is not a valid ELF object (invalid signature)" not a plugin qt.core.plugin.factoryloader: checking directory path "/tmp/.mount_onedrijbP2gq/usr/bin/platforms" ... qt.core.library: "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqxcb.so" cannot load: Cannot load library /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqxcb.so: qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /tmp/.mount_onedrijbP2gq/usr/local/lib/python3.11/dist-packages/PySide6/Qt/plugins/platforms/libqxcb.so: " qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, wayland-egl, wayland, xcb. Aborted ```

/tmp/onedrive-gui/onedrive-gui.log contains the first part of above console output, up until the Qt logs start.

System Info

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye
$ echo $XDG_CURRENT_DESKTOP

$ loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}'
$ python --version
-bash: python: command not found
$ onedrive --version
onedrive v2.4.25-1+np2+4.1
$ 

OneDriveGUI info How did you install OneDriveGUI?: AppImage What is the name of the AppImage file (if applicable)? : OneDriveGUI-1.0.3_fix150-x86_64.AppImage

Additional context

I am testing in a QEMU/KVM virtual machine configured as described above.

bpozdena commented 4 months ago

@dalemartin I don't think I'll be able to help this issue. It looks like some potential incompatibility with your system. But here are some ideas that you can try:

1)try the original 1.0.3 AppImage without any additional fixes. It was packed with older versions of python and libraries. 2) try the 1.1.0RC1 AppImage. It will not be compatible with your onedrive client, but I just want to see if the GUI can start. 3)try to install the GUI manually and run in from source. 4)Try on newer version of Debian. I think Debian 11 will be EOL this year anyway.

dalemartin commented 4 months ago

I just observed the same behaviour and logs on Ubuntu 22.04 + XFCE (aka Xubuntu).

@bpozdena thanks for the ideas. I doubt I'll pursue this as it's not critical that I get my XFCE installation working. Thanks.

dalemartin commented 4 months ago

Update: because they were so easy, I tried items 1 and 2. Both worked, though as you said onedrive is incompatible with 1.1.0RC1.

bpozdena commented 4 months ago

Ok great. Please keep using v1.0.3 for now. At least we know GUI v1.1 will work for you too once the onedrive client v.2.5 will release.