JakubMelka / PDF4QT

Open source PDF editor.
https://jakubmelka.github.io/
GNU Lesser General Public License v3.0
658 stars 66 forks source link

flatpak version of the PDF4QT does not start on Fedora 39 #150

Open tdobrovolny opened 8 months ago

tdobrovolny commented 8 months ago

Error message

flatpak run io.github.JakubMelka.Pdf4qt
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
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.

xcb installed on system

libX11-xcb.x86_64                                                                         1.8.7-1.fc39                                           @fedora
libxcb.x86_64                                                                             1.13.1-12.fc39                                         @fedora
libxcb-devel.x86_64                                                                       1.13.1-12.fc39                                         @fedora
xcb-util.x86_64                                                                           0.4.1-3.fc39                                           @fedora
xcb-util-cursor.x86_64                                                                    0.1.4-3.fc39                                           @fedora
xcb-util-image.x86_64                                                                     0.4.1-3.fc39                                           @fedora
xcb-util-keysyms.x86_64                                                                   0.4.1-3.fc39                                           @fedora
xcb-util-renderutil.x86_64                                                                0.3.10-3.fc39                                          @fedora
xcb-util-wm.x86_64                                                                        0.4.2-3.fc39                                           @fedora

flatpak package info:

PDF4QT - Open Source PDF Editor

          ID: io.github.JakubMelka.Pdf4qt
         Ref: app/io.github.JakubMelka.Pdf4qt/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.3.5
     License: LGPL-3.0-only
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 22.1?MB
     Runtime: org.kde.Sdk/x86_64/6.5
         Sdk: org.kde.Sdk/x86_64/6.5

      Commit: 85f4a160dc3166e8c4f07f3bb8fcb8c11a7199e881f21f38e4a873367384526a
     Subject: Fix build issues (c743fa3a)
        Date: 2023-09-18 07:05:31 +0000
JakubMelka commented 8 months ago

Hello, @tdobrovolny , could you please try to install package libxcb-cursor0 ?

tdobrovolny commented 8 months ago

Hello, @tdobrovolny , could you please try to install package libxcb-cursor0 ?

Hello @JakubMelka, on Fedora 39 does not do exists package libxcb-cursor0. There is xcb-util-cursor package which contains:

/usr/lib/.build-id
/usr/lib/.build-id/80
/usr/lib/.build-id/80/fcebd2e9581abc6003f87780639e665f7d5a0d
/usr/lib64/libxcb-cursor.so.0
/usr/lib64/libxcb-cursor.so.0.0.0
/usr/share/doc/xcb-util-cursor
/usr/share/doc/xcb-util-cursor/README.md
/usr/share/licenses/xcb-util-cursor
/usr/share/licenses/xcb-util-cursor/COPYING

I think it contains the mentioned library, and I had and have this package installed.

Shouldn't that missing library be directly included in flatpak package?

I tried today with the new version you posted, unfortunately the result is the same.

PDF4QT - Open Source PDF Editor

          ID: io.github.JakubMelka.Pdf4qt
         Ref: app/io.github.JakubMelka.Pdf4qt/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.3.7
     License: LGPL-3.0-only
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 21.6?MB
     Runtime: org.kde.Sdk/x86_64/6.6
         Sdk: org.kde.Sdk/x86_64/6.6

      Commit: cf2b69fa34d4fbeadaded7b802a437ac6c3bd4c1dab6a1a2e8123276443788ca
      Parent: 85f4a160dc3166e8c4f07f3bb8fcb8c11a7199e881f21f38e4a873367384526a
     Subject: Update of .xml to correct version (6e3c5b9b)
        Date: 2024-01-12 06:07:57 +0000

I tried running it with QT_DEBUG_PLUGINS=1:

qt.core.plugin.factoryloader: checking directory path "/usr/share/runtime/lib/plugins/platforms" ...
qt.core.plugin.factoryloader: checking directory path "/usr/plugins/platforms" ...
qt.core.plugin.factoryloader: looking at "/usr/plugins/platforms/libqeglfs.so"
qt.core.plugin.loader: Found metadata in lib /usr/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 "/usr/plugins/platforms/libqlinuxfb.so"
qt.core.plugin.loader: Found metadata in lib /usr/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 "/usr/plugins/platforms/libqminimal.so"
qt.core.plugin.loader: Found metadata in lib /usr/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 "/usr/plugins/platforms/libqminimalegl.so"
qt.core.plugin.loader: Found metadata in lib /usr/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 "/usr/plugins/platforms/libqoffscreen.so"
qt.core.plugin.loader: Found metadata in lib /usr/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 "/usr/plugins/platforms/libqvkkhrdisplay.so"
qt.core.plugin.loader: Found metadata in lib /usr/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 "/usr/plugins/platforms/libqvnc.so"
qt.core.plugin.loader: Found metadata in lib /usr/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 "/usr/plugins/platforms/libqwayland-egl.so"
qt.core.plugin.loader: Found metadata in lib /usr/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 "/usr/plugins/platforms/libqwayland-generic.so"
qt.core.plugin.loader: Found metadata in lib /usr/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 "/usr/plugins/platforms/libqxcb.so"
qt.core.plugin.loader: Found metadata in lib /usr/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: checking directory path "/app/bin/platforms" ...
qt.core.library: "/usr/plugins/platforms/libqxcb.so" loaded library
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
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.
JakubMelka commented 7 months ago

@tdobrovolny , could you please try AppImage version from 1.3.7?

vjjaimez commented 6 months ago

I can confirm that this bug exists with a flatpak downloaded from flathub, and also that the AppiImage of version 1.3.7 of PDF4QT Viewer Profi works well.

1tonBunny commented 5 months ago

I have the same issue with the Flatpak install on POP OS 22.04. In fact if you do a which pdf4qt from the terminal it cannot find it. (I assumed that was the name of the installed app.)The AppImage does work.

I originally installed from FlatPak via the POPshop and it worked, and then stopped opening. I eventually removed it, and tried a reinstall though it does not sound as though it install much, compared with how long the original install took. When you click on it to start it sounds like it is firing up, and then just stops. It was then that I downloaded the AppImage version 1.37 that does, though does not look as flashy.