[Development] QMetaType::registerType: Binary compatibility break -- Size mismatch for type 'QPaintBufferCacheEntry' [1024]. Previously registered size 0, now registering size 16. Aborted (core dumped)
Olivier Goffart
olivier at woboq.com
Wed Jun 24 10:08:42 CEST 2015
On Wednesday 24. June 2015 14:03:07 Zhang Qun wrote:
> Dear all
>
> I manage to compile my code with Qt 5 but when I run the program and
> encountered the following error:
>
> QMetaType::registerType: Binary compatibility break -- Size mismatch for
> type 'QPaintBufferCacheEntry' [1024]. Previously registered size 0, now
> registering size 16.
> Aborted (core dumped)
> I have googled for a few days and did not find any luck. Anyone could help
> me with this? Thanks in advance. I am running Qt5 on ubuntu 14.04 64bit.
Searching for 'QPaintBufferCacheEntry' on google lead to some report of the
same problems:
https://bugreports.qt.io/browse/QTBUG-27104
https://forum.qt.io/topic/24491/qmetatype-registertype-binary-compatibility-break-size-mismatch-for-type-qpaintbuffercacheentry-1024-previously-registered-size-0-now-regist
It appears that this is because your application loads both Qt5 and Qt4 at the
same time. Qt4 did not register the size and Qt5 tries to register the same
type with a size.
So to fix your problem you must make sure that you do not load a qt4 based
plugin. This can be loaded indirectly from some other library.
--
Olivier
Woboq - Qt services and support - http://woboq.com - http://code.woboq.org
More information about the Development
mailing list