https://bugs.kde.org/show_bug.cgi?id=408970

            Bug ID: 408970
           Summary: flatpak app gets "FATAL: Cannot mix incompatible Qt
                    library" error after KDE runtime update
           Product: Qt/KDE Flatpak Runtime
           Version: unspecified
          Platform: Flatpak
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: aleix...@kde.org
          Reporter: skierp...@gmail.com
  Target Milestone: ---

SUMMARY
After a recent update of the KDE runtime flatpak (org.kde.Platform on flathub),
I can't run skrooge either from flathub or the master version from kdeapps. The
former exits with
  ##FATAL: Cannot mix incompatible Qt library (version 0x50c02) with this
library (version 0x50c04)
the latter exits with the same error message except the first version is
0x50c03.

I think the problem is the skrooge flatpaks were compiled against Qt 5.12.2 or
5.12.3 but the new KDE runtime is 5.12.4 (confirmed by running
  $ flatpak run --command=bash org.kde.skrooge/x86_64/stable
  [📦 org.kde.skrooge finance]$ kdeinit5 --version
).

I think https://binary-factory.kde.org/job/Skrooge_flatpak/lastBuild/ is the
build log for the flatpak on kdeapps, and it's three days ago, so the problem
may be that KDE apps must be rebuilt when the KDE runtime flatpak is updated.
It seems a bug that building a revised runtime with a different Qt library
doesn't trigger a rebuild of Qt and KDE app flatpaks. The third version number
after 5.12 is the patch version and according to semver it should not introduce
backwards-incompatible changes. Yet it seems to for this KDE app.

STEPS TO REPRODUCE
1. Install skrooge and org.kde.Platform from flathub
2. Try to run skrooge flatpak

OBSERVED RESULT
  ##FATAL: Cannot mix incompatible Qt library (version 0x50c02) with this
library (version 0x50c04)

EXPECTED RESULT
No failures.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
(from kdeinit5 --version within the flatpak)
KDE Plasma Version: ??
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.4 , though note the error suggests a Qt mismatch.

ADDITIONAL INFORMATION
I think manually rebuilding the flathub and kdeapps apps against the same newer
Qt would fix the problem until it happens again.

I tried to reproduce the problem with another KDE app (elisa) and it didn't
have this problem. Maybe it was rebuilt recently, I don't know how to determine
the date of the build of a KDE app. 

Unfortunately there doesn't seem to be any workaround for users.  Bug 172163
mentions a Trolltech.conf file but I don't have that in
$HOME/.var/app/org.kde.skrooge . I tried removing the whole directory and it
didn't help. I tried removing and reinstalling org.kde.skrooge/xk6_64/stable
and reinstalling from flathub and it didn't help.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to