Forum

Author Topic: Incompatible Qt libraries iwith 0.9.1 build 1714 on Linux  (Read 8128 times)

jedfrechette

  • Full Member
  • ***
  • Posts: 134
  • Lidar Guys
    • View Profile
    • www.lidarguys.com
Incompatible Qt libraries iwith 0.9.1 build 1714 on Linux
« on: August 10, 2013, 02:04:05 AM »
On a Debian Testing system running KDE attempting to launch build 1714 fails with the error message:

Code: [Select]
Cannot mix incompatible Qt library (version 0x40805) with this library (version 0x40804)
Aborted

Adding the line:
Code: [Select]
unset QT_PLUGIN_PATH
to photoscan.sh allows the program to launch.
Jed

ben simons

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Incompatible Qt libraries iwith 0.9.1 build 1714 on Linux
« Reply #1 on: October 14, 2013, 03:20:55 AM »
Had a similar problem which caused a crash at login.

Linux  3.10.7-gentoo-r1, x86_64, KDE-4.10.5, plasma-desktop 4.10.5, Qt 4.8.4

I appended the Photoscan dir to the end of my LD_LIBRARY_PATH
declared in ~/.bashrc  (this was a mistake!)

Later, after a reboot, plasma-desktop crashed at login! it looked very much to be this:
http://dilfridge.blogspot.com.au/2013/02/kde-4100-plasma-desktop-crashes-and-qt.html

/var/log/messages showed:

kernel: plasma-desktop[18427]: segfault at 0 ip 00007f1c627456e8 sp 00007fff55637ea0 error 4 in libQtDeclarative.so.4.8.4[7f1c625f7000+2c8000]

However, gdb of the crash backtrace indicates it was photoscan! It seems plasma-desktop
was trying to restore a photoscan session from the previous login, and the libQtCore in
the app dir came in contact with libQtDeclarative in the system lib (!!). Not sure why (?)

I wonder if Photoscan should use the system libQtCore if it's available? - Perhaps check
for it in "photoscan.sh"?

+ we are really digging this software! Very good. Best wishes! :)

cheers,
ben.

PS. Here's the backtrace from the crash at login.

Application: Plasma Desktop Shell (kdeinit4), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0f6f2b9780 (LWP 15908))]

Thread 3 (Thread 0x7f0f52e34700 (LWP 15910)):
#0  0x00007f0f6db06dcc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f0f61515b02 in ?? () from /usr/lib64/qt4/libQtScript.so.4
#2  0x00007f0f61515b39 in ?? () from /usr/lib64/qt4/libQtScript.so.4
#3  0x00007f0f6db02ec6 in start_thread () from /lib/libpthread.so.0
#4  0x00007f0f6c7d498d in clone () from /lib/libc.so.6

Thread 2 (Thread 0x7f0ec569a700 (LWP 15911)):
#0  0x00007f0f6c7cbcf3 in poll () from /lib/libc.so.6
#1  0x00007f0f694b79d6 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f0f694b7b04 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f0f6dee7f56 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#4  0x00007f0f6deb52b2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#5  0x00007f0f6deb5724 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#6  0x00007f0f6dda7c2f in QThread::exec() () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#7  0x00007f0f6de91f48 in ?? () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#8  0x00007f0f6ddab3a2 in ?? () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#9  0x00007f0f6db02ec6 in start_thread () from /lib/libpthread.so.0
#10 0x00007f0f6c7d498d in clone () from /lib/libc.so.6

Thread 1 (Thread 0x7f0f6f2b9780 (LWP 15908)):
[KCrash Handler]
#6  0x00007f0f60d52ba4 in ?? () from /usr/lib64/qt4/libQtDeclarative.so.4
#7  0x00007f0f6dd909d9 in ?? () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#8  0x00007f0f6dd8dc40 in ?? () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#9  0x00007f0f6dd8e8f4 in ?? () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#10 0x00007f0f6dd91682 in QPropertyAnimation::updateState(QAbstractAnimation::State, QAbstractAnimation::State) () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#11 0x00007f0f6dd8b952 in ?? () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#12 0x00007f0f635a3d63 in Plasma::ItemBackground::itemChange(QGraphicsItem::GraphicsItemChange, QVariant const&) () from /usr/lib64/libplasma.so.3
#13 0x00007f0f6d5df83d in QGraphicsItemPrivate::setVisibleHelper(bool, bool, bool) () from /da/scan/agisoft/photoscan-pro/libQtGui.so.4
#14 0x00007f0f6d5dfaad in QGraphicsItemPrivate::setVisibleHelper(bool, bool, bool) () from /da/scan/agisoft/photoscan-pro/libQtGui.so.4
#15 0x00007f0f6d5e0767 in QGraphicsItemPrivate::setParentItemHelper(QGraphicsItem*, QVariant const*, QVariant const*) () from /da/scan/agisoft/photoscan-pro/libQtGui.so.4
#16 0x00007f0f6d5e0d0a in QGraphicsItem::setParentItem(QGraphicsItem*) () from /da/scan/agisoft/photoscan-pro/libQtGui.so.4
#17 0x00007f0f51eabdf7 in ?? () from /usr/lib64/kde4/imports/org/kde/plasma/core/libcorebindingsplugin.so
#18 0x00007f0f6dec91ae in QObject::event(QEvent*) () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#19 0x00007f0f6cfae8bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /da/scan/agisoft/photoscan-pro/libQtGui.so.4
#20 0x00007f0f6cfb5abd in QApplication::notify(QObject*, QEvent*) () from /da/scan/agisoft/photoscan-pro/libQtGui.so.4
#21 0x00007f0f6ecaa8c6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#22 0x00007f0f6deb66fc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#23 0x00007f0f6debb283 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#24 0x00007f0f6dee83c3 in ?? () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#25 0x00007f0f694b76f3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0x00007f0f694b7a40 in ?? () from /usr/lib/libglib-2.0.so.0
#27 0x00007f0f694b7b04 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#28 0x00007f0f6dee7f03 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#29 0x00007f0f6d0617ce in ?? () from /da/scan/agisoft/photoscan-pro/libQtGui.so.4
#30 0x00007f0f6deb52b2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#31 0x00007f0f6deb5724 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#32 0x00007f0f6debb649 in QCoreApplication::exec() () from /da/scan/agisoft/photoscan-pro/libQtCore.so.4
#33 0x00007f0f5ac2150f in kdemain () from /usr/lib64/libkdeinit4_plasma-desktop.so
#34 0x00000000004089f4 in _start ()