Running a Qt5 application using libvlc crashes that application, apparently because of outdated/non-existing VLC cache (backtrace attached below).
Running "/usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins/" as root fixes the crash; apparently the Qt4 GUI is being loaded during introspection, causing a symbol clash crash.
According Project Neon packagers, it's a bug in the VLC package as that command should be run after installing to make sure the cache actually reflects what is installed.
---
$ lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10
$ apt-cache policy vlc
vlc:
Installed: 2.0.8-1
Candidate: 2.0.8-1
Version table:
*** 2.0.8-1 0
500 http://cz.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
100 /var/lib/dpkg/status
---
Thread 1 (Thread 0x7f7b6fa1e780 (LWP 15799)):
[KCrash Handler]
#6 0x00007f7b4c189e4c in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7 0x00007f7b6f854856 in call_init (l=l@entry=0x12012f0, argc=argc@entry=1, argv=argv@entry=0x7fff34beea58, env=env@entry=0x7fff34beea68) at dl-init.c:84
#8 0x00007f7b6f854910 in call_init (env=<optimized out>, argv=<optimized out>, argc=<optimized out>, l=0x12012f0) at dl-init.c:55
#9 _dl_init (main_map=main_map@entry=0x11ff990, argc=1, argv=0x7fff34beea58, env=0x7fff34beea68) at dl-init.c:133
#10 0x00007f7b6f858fdf in dl_open_worker (a=a@entry=0x7fff34bea458) at dl-open.c:577
#11 0x00007f7b6f8546e6 in _dl_catch_error (objname=objname@entry=0x7fff34bea448, errstring=errstring@entry=0x7fff34bea450, mallocedp=mallocedp@entry=0x7fff34bea440, operate=operate@entry=0x7f7b6f858c00 <dl_open_worker>, args=args@entry=0x7fff34bea458) at dl-error.c:177
#12 0x00007f7b6f858809 in _dl_open (file=0x11f3ff0 "/usr/lib/vlc/plugins/gui/libqt4_plugin.so", mode=-2147483647, caller_dlopen=<optimized out>, nsid=-2, argc=1, argv=0x7fff34beea58, env=0x7fff34beea68) at dl-open.c:667
#13 0x00007f7b67164026 in dlopen_doit (a=a@entry=0x7fff34bea660) at dlopen.c:66
#14 0x00007f7b6f8546e6 in _dl_catch_error (objname=0xaaa0b0, errstring=0xaaa0b8, mallocedp=0xaaa0a8, operate=0x7f7b67163fc0 <dlopen_doit>, args=0x7fff34bea660) at dl-error.c:177
#15 0x00007f7b6716463c in _dlerror_run (operate=operate@entry=0x7f7b67163fc0 <dlopen_doit>, args=args@entry=0x7fff34bea660) at dlerror.c:163
#16 0x00007f7b671640c1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#17 0x00007f7b504b75bd in ?? () from /usr/lib/libvlccore.so.5
#18 0x00007f7b5049ea28 in ?? () from /usr/lib/libvlccore.so.5
#19 0x00007f7b5049ed17 in ?? () from /usr/lib/libvlccore.so.5
#20 0x00007f7b5049ef0b in ?? () from /usr/lib/libvlccore.so.5
#21 0x00007f7b5049f14c in ?? () from /usr/lib/libvlccore.so.5
#22 0x00007f7b5049f6ca in ?? () from /usr/lib/libvlccore.so.5
#23 0x00007f7b50435e2c in libvlc_InternalInit () from /usr/lib/libvlccore.so.5
#24 0x00007f7b502095bb in libvlc_new () from /usr/lib/libvlc.so.5
#25 0x00007f7b5072b466 in LibVLC::init () at /home/mck182/kf5-dev/src/phonon-vlc/src/utils/libvlc.cpp:118
#26 0x00007f7b50714c77 in Phonon::VLC::Backend::Backend (this=0x1047f00, parent=<optimized out>) at /home/mck182/kf5-dev/src/phonon-vlc/src/backend.cpp:89
#27 0x00007f7b5072d8cb in qt_plugin_instance () at /home/mck182/kf5-dev/build/phonon-vlc/src/moc_backend.cpp:237
#28 0x00007f7b6bc9db67 in QPluginLoader::instance (this=0x7fff34beafd0) at plugin/qpluginloader.cpp:200
#29 0x00007f7b5d010c0d in Phonon::FactoryPrivate::tryCreateBackend (this=this@entry=0x1005c10, path=...) at /home/mck182/kf5-dev/src/phonon/phonon/factory.cpp:117
#30 0x00007f7b5d011c81 in Phonon::FactoryPrivate::createSuitableBackend (this=this@entry=0x1005c10, libPath=..., plugins=...) at /home/mck182/kf5-dev/src/phonon/phonon/factory.cpp:204
#31 0x00007f7b5d0122c2 in Phonon::FactoryPrivate::createBackend (this=0x1005c10) at /home/mck182/kf5-dev/src/phonon/phonon/factory.cpp:299
#32 0x00007f7b5d0125f4 in Phonon::Factory::backend (createWhenNull=createWhenNull@entry=true) at /home/mck182/kf5-dev/src/phonon/phonon/factory.cpp:571
#33 0x00007f7b5d015ea7 in Phonon::GlobalConfig::audioOutputDeviceListFor (this=0x7fff34beb3b0, category=Phonon::NoCategory, override=2) at /home/mck182/kf5-dev/src/phonon/phonon/globalconfig.cpp:438
#34 0x00007f7b5095b8b2 in Phonon::DevicePreference::loadCategoryDevices (this=0xfa8230) at /home/mck182/kf5-dev/src/plasma-desktop/kcms/phonon/devicepreference.cpp:521
#35 0x00007f7b5095b848 in Phonon::DevicePreference::load (this=0xfa8230) at /home/mck182/kf5-dev/src/plasma-desktop/kcms/phonon/devicepreference.cpp:512
#36 0x00007f7b509581a8 in PhononKcm::load (this=0xfa4ad0) at /home/mck182/kf5-dev/src/plasma-desktop/kcms/phonon/main.cpp:77
#37 0x00007f7b509580a1 in PhononKcm::PhononKcm (this=0xfa4ad0, parent=0xfdb1e0, args=...) at /home/mck182/kf5-dev/src/plasma-desktop/kcms/phonon/main.cpp:62
#38 0x00007f7b50958a07 in KPluginFactory::createInstance<PhononKcm, QWidget> (parentWidget=0x0, parent=0xfdb1e0, args=...) at /opt/kde5/include/KF5/KCoreAddons/kpluginfactory.h:457
#39 0x00007f7b6c1ee390 in KPluginFactory::create (this=0xfd9260, iface=0x7f7b6e0ea4c8 <qt_meta_stringdata_KCModule+360> "KCModule", parentWidget=0x0, parent=0xfdb1e0, args=..., keyword=...) at /home/mck182/kf5-dev/src/kcoreaddons/src/lib/plugin/kpluginfactory.cpp:145
#40 0x00007f7b6f3eeb7e in KPluginFactory::create<KCModule> (this=0xfd9260, parentWidget=0x0, parent=0xfdb1e0, keyword=..., args=...) at /opt/kde5/include/KF5/KCoreAddons/kpluginfactory.h:519
#41 0x00007f7b6f3ee65a in KService::createInstance<KCModule> (this=0xe1ca10, parentWidget=0x0, parent=0xfdb1e0, args=..., error=0x7fff34beb810) at /opt/kde5/include/KF5/KService/kservice.h:526
#42 0x00007f7b6f3ee312 in KService::createInstance<KCModule> (this=0xe1ca10, parent=0xfdb1e0, args=..., error=0x7fff34beb810) at /opt/kde5/include/KF5/KService/kservice.h:501
#43 0x00007f7b6f3ed431 in KCModuleLoader::loadModule (mod=..., report=KCModuleLoader::Inline, parent=0xfdb1e0, args=...) at /home/mck182/kf5-dev/src/kcmutils/src/kcmoduleloader.cpp:89
#44 0x00007f7b6f3f3d51 in KCModuleProxyPrivate::loadModule (this=0xfdafe0) at /home/mck182/kf5-dev/src/kcmutils/src/kcmoduleproxy.cpp:105
#45 0x00007f7b6f3f3a2c in KCModuleProxy::realModule (this=0xfdb1e0) at /home/mck182/kf5-dev/src/kcmutils/src/kcmoduleproxy.cpp:82
#46 0x00007f7b6f3f4512 in KCModuleProxy::showEvent (this=0xfdb1e0, ev=0x7fff34bec030) at /home/mck182/kf5-dev/src/kcmutils/src/kcmoduleproxy.cpp:191
#47 0x00007f7b6d2f9863 in QWidget::event (this=0xfdb1e0, event=0x7fff34bec030) at kernel/qwidget.cpp:8174
#48 0x00007f7b6d2b0182 in QApplicationPrivate::notify_helper (this=0xaf3410, receiver=0xfdb1e0, e=0x7fff34bec030) at kernel/qapplication.cpp:3501
#49 0x00007f7b6d2affe6 in QApplication::notify (this=0x7fff34bee940, receiver=0xfdb1e0, e=0x7fff34bec030) at kernel/qapplication.cpp:3466
#50 0x00007f7b6bcb2872 in QCoreApplication::notifyInternal (this=0x7fff34bee940, receiver=0xfdb1e0, event=0x7fff34bec030) at kernel/qcoreapplication.cpp:935
#51 0x00007f7b6d2a20c9 in QCoreApplication::sendEvent (receiver=0xfdb1e0, event=0x7fff34bec030) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:237
#52 0x00007f7b6d2f70e4 in QWidgetPrivate::show_helper (this=0xfdb220) at kernel/qwidget.cpp:7177
#53 0x00007f7b6d2f6b32 in QWidgetPrivate::show_recursive (this=0xfdb220) at kernel/qwidget.cpp:7053
#54 0x00007f7b6d2f7f04 in QWidgetPrivate::showChildren (this=0xfa1830, spontaneous=false) at kernel/qwidget.cpp:7470
#55 0x00007f7b6d2f6f43 in QWidgetPrivate::show_helper (this=0xfa1830) at kernel/qwidget.cpp:7129
#56 0x00007f7b6d2f7a93 in QWidget::setVisible (this=0xfa17f0, visible=true) at kernel/qwidget.cpp:7389
#57 0x00007f7b6d2f6a33 in QWidget::show (this=0xfa17f0) at kernel/qwidget.cpp:7030
#58 0x00007f7b6d2f7f12 in QWidgetPrivate::showChildren (this=0xfd1760, spontaneous=false) at kernel/qwidget.cpp:7472
#59 0x00007f7b6d2f6f43 in QWidgetPrivate::show_helper (this=0xfd1760) at kernel/qwidget.cpp:7129
#60 0x00007f7b6d2f7a93 in QWidget::setVisible (this=0xe67be0, visible=true) at kernel/qwidget.cpp:7389
#61 0x00007f7b6d2f6a33 in QWidget::show (this=0xe67be0) at kernel/qwidget.cpp:7030
#62 0x00007f7b6d2e04cb in QStackedLayout::setCurrentIndex (this=0xeb30c0, index=1) at kernel/qstackedlayout.cpp:332
#63 0x00007f7b6d2e06db in QStackedLayout::setCurrentWidget (this=0xeb30c0, widget=0xe67be0) at kernel/qstackedlayout.cpp:387
#64 0x00007f7b6d490d03 in QStackedWidget::setCurrentWidget (this=0xeb2e60, widget=0xe67be0) at widgets/qstackedwidget.cpp:250
#65 0x00007f7b6dbd84d5 in KPageViewPrivate::_k_pageSelected (this=0xeb29c0, index=..., previous=...) at /home/mck182/kf5-dev/src/kwidgetsaddons/src/kpageview.cpp:246
#66 0x00007f7b6dbd93e9 in KPageView::qt_static_metacall (_o=0xeb1c20, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff34bec7c0) at /home/mck182/kf5-dev/build/kwidgetsaddons/src/moc_kpageview.cpp:113
#67 0x00007f7b6bcf5204 in QMetaObject::activate (sender=0xfdbf90, signalOffset=3, local_signal_index=0, argv=0x7fff34bec7c0) at kernel/qobject.cpp:3680
#68 0x00007f7b6bcf49a0 in QMetaObject::activate (sender=0xfdbf90, m=0x7f7b6c1aa660 <QItemSelectionModel::staticMetaObject>, local_signal_index=0, argv=0x7fff34bec7c0) at kernel/qobject.cpp:3546
#69 0x00007f7b6bc6b4e9 in QItemSelectionModel::selectionChanged (this=0xfdbf90, _t1=..., _t2=...) at .moc/moc_qitemselectionmodel.cpp:279
#70 0x00007f7b6bc6a836 in QItemSelectionModel::emitSelectionChanged (this=0xfdbf90, newSelection=..., oldSelection=...) at itemmodels/qitemselectionmodel.cpp:1686
#71 0x00007f7b6bc6828f in QItemSelectionModel::select (this=0xfdbf90, selection=..., command=...) at itemmodels/qitemselectionmodel.cpp:1242
#72 0x00007f7b6bc67e81 in QItemSelectionModel::select (this=0xfdbf90, index=..., command=...) at itemmodels/qitemselectionmodel.cpp:1117
#73 0x00007f7b6bc686cb in QItemSelectionModel::setCurrentIndex (this=0xfdbf90, index=..., command=...) at itemmodels/qitemselectionmodel.cpp:1313
#74 0x00007f7b6dbd79f6 in KPageViewPrivate::_k_rebuildGui (this=0xeb29c0) at /home/mck182/kf5-dev/src/kwidgetsaddons/src/kpageview.cpp:68
#75 0x00007f7b6dbd8208 in KPageViewPrivate::_k_modelChanged (this=0xeb29c0) at /home/mck182/kf5-dev/src/kwidgetsaddons/src/kpageview.cpp:199
#76 0x00007f7b6dbd93b7 in KPageView::qt_static_metacall (_o=0xeb1c20, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff34bece00) at /home/mck182/kf5-dev/build/kwidgetsaddons/src/moc_kpageview.cpp:112
#77 0x00007f7b6bcf5204 in QMetaObject::activate (sender=0xeb7010, signalOffset=3, local_signal_index=3, argv=0x7fff34bece00) at kernel/qobject.cpp:3680
#78 0x00007f7b6bcf49a0 in QMetaObject::activate (sender=0xeb7010, m=0x7f7b6c1adb80 <QAbstractItemModel::staticMetaObject>, local_signal_index=3, argv=0x7fff34bece00) at kernel/qobject.cpp:3546
#79 0x00007f7b6bd829fc in QAbstractItemModel::layoutChanged (this=0xeb7010, _t1=..., _t2=QAbstractItemModel::NoLayoutChangeHint) at .moc/moc_qabstractitemmodel.cpp:406
#80 0x00007f7b6dbdf5f5 in KPageWidgetModel::addPage (this=0xeb7010, item=0xfb76d0) at /home/mck182/kf5-dev/src/kwidgetsaddons/src/kpagewidgetmodel.cpp:423
#81 0x00007f7b6dbdd9cb in KPageWidget::addPage (this=0xeb1c20, item=0xfb76d0) at /home/mck182/kf5-dev/src/kwidgetsaddons/src/kpagewidget.cpp:89
#82 0x00007f7b6f6373a6 in ModuleView::addModule (this=0xeb16c0, module=0xe498b8) at /home/mck182/kf5-dev/src/systemsettings/core/ModuleView.cpp:196
#83 0x00007f7b6f636e68 in ModuleView::loadModule (this=0xeb16c0, menuItem=...) at /home/mck182/kf5-dev/src/systemsettings/core/ModuleView.cpp:149
#84 0x00007f7b51565ed2 in IconMode::changeModule (this=0xeaf600, activeModule=...) at /home/mck182/kf5-dev/src/systemsettings/icons/IconMode.cpp:145
#85 0x00007f7b5156a07b in IconMode::qt_static_metacall (_o=0xeaf600, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff34bed200) at /home/mck182/kf5-dev/build/systemsettings/icons/moc_IconMode.cpp:84
#86 0x00007f7b6bcf5204 in QMetaObject::activate (sender=0xec6d80, signalOffset=7, local_signal_index=3, argv=0x7fff34bed200) at kernel/qobject.cpp:3680
#87 0x00007f7b6bcf49a0 in QMetaObject::activate (sender=0xec6d80, m=0x7f7b6dac4860 <QAbstractItemView::staticMetaObject>, local_signal_index=3, argv=0x7fff34bed200) at kernel/qobject.cpp:3546
#88 0x00007f7b6d564ccf in QAbstractItemView::activated (this=0xec6d80, _t1=...) at .moc/moc_qabstractitemview.cpp:603
#89 0x00007f7b6d55a55a in QAbstractItemView::mouseDoubleClickEvent (this=0xec6d80, event=0x7fff34bedd20) at itemviews/qabstractitemview.cpp:1896
#90 0x00007f7b6d2f8cf8 in QWidget::event (this=0xec6d80, event=0x7fff34bedd20) at kernel/qwidget.cpp:7963
#91 0x00007f7b6d42213d in QFrame::event (this=0xec6d80, e=0x7fff34bedd20) at widgets/qframe.cpp:534
#92 0x00007f7b6d4bdf23 in QAbstractScrollArea::viewportEvent (this=0xec6d80, e=0x7fff34bedd20) at widgets/qabstractscrollarea.cpp:1194
#93 0x00007f7b6d5590f1 in QAbstractItemView::viewportEvent (this=0xec6d80, event=0x7fff34bedd20) at itemviews/qabstractitemview.cpp:1689
#94 0x00007f7b6d4bf17f in QAbstractScrollAreaPrivate::viewportEvent (this=0xec6dc0, event=0x7fff34bedd20) at widgets/qabstractscrollarea_p.h:110
#95 0x00007f7b6d4bf246 in QAbstractScrollAreaFilter::eventFilter (this=0xec8940, o=0xec7280, e=0x7fff34bedd20) at widgets/qabstractscrollarea_p.h:126
#96 0x00007f7b6bcb2be3 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0xaf3410, receiver=0xec7280, event=0x7fff34bedd20) at kernel/qcoreapplication.cpp:1031
#97 0x00007f7b6d2b0159 in QApplicationPrivate::notify_helper (this=0xaf3410, receiver=0xec7280, e=0x7fff34bedd20) at kernel/qapplication.cpp:3497
#98 0x00007f7b6d2adfaf in QApplication::notify (this=0x7fff34bee940, receiver=0xec7280, e=0x7fff34bedd20) at kernel/qapplication.cpp:3068
#99 0x00007f7b6bcb2872 in QCoreApplication::notifyInternal (this=0x7fff34bee940, receiver=0xec7280, event=0x7fff34bedd20) at kernel/qcoreapplication.cpp:935
#100 0x00007f7b6d2b236b in QCoreApplication::sendSpontaneousEvent (receiver=0xec7280, event=0x7fff34bedd20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:240
#101 0x00007f7b6d2ac853 in QApplicationPrivate::sendMouseEvent (receiver=0xec7280, event=0x7fff34bedd20, alienWidget=0xec7280, nativeWidget=0xb8e6b0, buttonDown=0x7f7b6dade670 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2541
#102 0x00007f7b6d324b0b in QWidgetWindow::handleMouseEvent (this=0xcf94c0, event=0x7fff34bee420) at kernel/qwidgetwindow.cpp:507
#103 0x00007f7b6d3238b5 in QWidgetWindow::event (this=0xcf94c0, event=0x7fff34bee420) at kernel/qwidgetwindow.cpp:179
#104 0x00007f7b6d2b0182 in QApplicationPrivate::notify_helper (this=0xaf3410, receiver=0xcf94c0, e=0x7fff34bee420) at kernel/qapplication.cpp:3501
#105 0x00007f7b6d2ad7ca in QApplication::notify (this=0x7fff34bee940, receiver=0xcf94c0, e=0x7fff34bee420) at kernel/qapplication.cpp:2954
#106 0x00007f7b6bcb2872 in QCoreApplication::notifyInternal (this=0x7fff34bee940, receiver=0xcf94c0, event=0x7fff34bee420) at kernel/qcoreapplication.cpp:935
#107 0x00007f7b6ca3a727 in QCoreApplication::sendSpontaneousEvent (receiver=0xcf94c0, event=0x7fff34bee420) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:240
#108 0x00007f7b6ca342da in QGuiApplicationPrivate::processMouseEvent (e=0xd31aa0) at kernel/qguiapplication.cpp:1754
#109 0x00007f7b6ca334a8 in QGuiApplicationPrivate::processWindowSystemEvent (e=0xd31aa0) at kernel/qguiapplication.cpp:1512
#110 0x00007f7b6ca1dca1 in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:579
#111 0x00007f7b6157a95e in userEventSourceDispatch (source=0xb4ecd0) at eventdispatchers/qeventdispatcher_glib.cpp:78
#112 0x00007f7b66eaa3b6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#113 0x00007f7b66eaa708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#114 0x00007f7b66eaa7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#115 0x00007f7b6bd2a781 in QEventDispatcherGlib::processEvents (this=0xb512b0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#116 0x00007f7b6157ab70 in QPAEventDispatcherGlib::processEvents (this=0xb512b0, flags=...) at eventdispatchers/qeventdispatcher_glib.cpp:123
#117 0x00007f7b6bcaf53a in QEventLoop::processEvents (this=0x7fff34bee7e0, flags=...) at kernel/qeventloop.cpp:136
#118 0x00007f7b6bcaf805 in QEventLoop::exec (this=0x7fff34bee7e0, flags=...) at kernel/qeventloop.cpp:212
#119 0x00007f7b6bcb2f58 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#120 0x00007f7b6ca33254 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1446
#121 0x00007f7b6d2acfeb in QApplication::exec () at kernel/qapplication.cpp:2746
#122 0x0000000000420eff in main (argc=1, argv=0x7fff34beea58) at /home/mck182/kf5-dev/src/systemsettings/app/main.cpp:55
Relevant upstream ticket https:/ /trac.videolan. org/vlc/ ticket/ 9807