Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash due to Qt version difference #3

Open
PhysSong opened this issue Apr 20, 2018 · 1 comment
Open

Crash due to Qt version difference #3

PhysSong opened this issue Apr 20, 2018 · 1 comment

Comments

@PhysSong
Copy link

I've found this bug when I tried to use a VST in LMMS after upgrading Qt. If a client uses different Qt version from the version used when building this, the client crashes with the error:

Cannot mix incompatible Qt library (version 0x50904) with this library (version 0x50905)

This is where it crashes:

QObjectPrivate::QObjectPrivate(int version)
    : threadData(0), connectionLists(0), senders(0), currentSender(0), currentChildBeingDeleted(0)
{
#ifdef QT_BUILD_INTERNAL
    // Don't check the version parameter in internal builds.
    // This allows incompatible versions to be loaded, possibly for testing.
    Q_UNUSED(version);
#else
    if (Q_UNLIKELY(version != QObjectPrivateVersion))
        qFatal("Cannot mix incompatible Qt library (version 0x%x) with this library (version 0x%x)",
                version, QObjectPrivateVersion);
#endif

Are there any ways to work around this on clients' side or fix this on this library's side?

@lukas-w
Copy link
Owner

lukas-w commented Apr 20, 2018

I don't think there's a clean way to work around this. We need access to QWidgetPrivate's methods to implement this. We could explicitly pass a different version to QObjectPrivate's constructor, but that's really nasty. So the library will have to be rebuilt for every Qt version specifically.

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

No branches or pull requests

2 participants