FS#59462 - Qt Creator crashes on KDE Wayland (Qt's binary release works fine)

Attached to Project: Arch Linux
Opened by Ruben Van Boxem (rubenvb) - Thursday, 26 July 2018, 17:17 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 01 August 2018, 07:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Qt Creator crashes moments after startup. The window shows, and the content is visible.
The official binary package works fine, which leads me to believe something is different in Arch's Qt build or other .

Additional info:
* qtcreator 4.7.0-1
* qt5-base 5.11.1-1
* kwin 5.13.3-1
* mesa 18.1.4-1
* linux 4.17.9-1

The log prints:
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Using Wayland-EGL
Using the 'xdg-shell-v6' shell integration
QWaylandShmBuffer: failed: Too many open files

This is the backtrace I get from GDB:
#0 0x00007ffff68ee650 in QImage::constBits() const () from /usr/lib/libQt5Gui.so.5
#1 0x00007fffedb936ba in QtWaylandClient::QWaylandShmBackingStore::resize(QSize const&) () from /usr/lib/libQt5WaylandClient.so.5
#2 0x00007fffedb937da in QtWaylandClient::QWaylandShmBackingStore::beginPaint(QRegion const&) () from /usr/lib/libQt5WaylandClient.so.5
#3 0x00007ffff6a388b6 in QBackingStore::beginPaint(QRegion const&) () from /usr/lib/libQt5Gui.so.5
#4 0x00007ffff708806d in ?? () from /usr/lib/libQt5Widgets.so.5
#5 0x00007ffff7088aa6 in ?? () from /usr/lib/libQt5Widgets.so.5
#6 0x00007ffff70d5790 in ?? () from /usr/lib/libQt5Widgets.so.5
#7 0x00007ffff70d60c4 in ?? () from /usr/lib/libQt5Widgets.so.5
#8 0x00007ffff7078a74 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#9 0x00007ffff7080341 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#10 0x00007ffff5f63cb9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#11 0x00007ffff68ac146 in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () from /usr/lib/libQt5Gui.so.5
#12 0x00007ffff68ace7e in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/libQt5Gui.so.5
#13 0x00007ffff6886b7c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#14 0x00007fffedbd257d in ?? () from /usr/lib/libQt5WaylandClient.so.5
#15 0x00007ffff5f6294c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#16 0x00007ffff726e46e in QDialog::exec() () from /usr/lib/libQt5Widgets.so.5
#17 0x00007ffff72a3356 in ?? () from /usr/lib/libQt5Widgets.so.5
#18 0x00007ffff78b8088 in Utils::PersistentSettingsWriter::save(QMap<QString, QVariant> const&, QWidget*) const () from /usr/bin/../lib/qtcreator/libUtils.so.4
#19 0x00007fffd7762076 in ProjectExplorer::KitManager::saveKits() () from /usr/lib/qtcreator/plugins/libProjectExplorer.so
#20 0x00007ffff5f8dc50 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#21 0x00007fffdd0ab801 in Core::ICore::saveSettings() () from /usr/lib/qtcreator/plugins/libCore.so
#22 0x00007ffff5f8dc50 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#23 0x00007ffff5f8dc50 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#24 0x00007ffff5f99c28 in QTimer::timeout(QTimer::QPrivateSignal) () from /usr/lib/libQt5Core.so.5
#25 0x00007ffff5f8e38b in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#26 0x00007ffff7078a74 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#27 0x00007ffff7080341 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#28 0x00007ffff5f63cb9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#29 0x00007ffff5fb640a in QTimerInfoList::activateTimers() () from /usr/lib/libQt5Core.so.5
#30 0x00007ffff5fb6c92 in ?? () from /usr/lib/libQt5Core.so.5
#31 0x00007ffff2330368 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0x00007ffff23305b1 in ?? () from /usr/lib/libglib-2.0.so.0
#33 0x00007ffff233063e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#34 0x00007ffff5fb7039 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#35 0x00007fffedbd2572 in ?? () from /usr/lib/libQt5WaylandClient.so.5
#36 0x00007ffff5f6294c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#37 0x00007ffff5f6ac46 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#38 0x000055555555d808 in ?? ()
#39 0x00007ffff519a06b in __libc_start_main () from /usr/lib/libc.so.6
#40 0x000055555555dcaa in ?? ()

Steps to reproduce:
Simply call "qtcreator"
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 01 August 2018, 07:15 GMT
Reason for closing:  Not a bug
Additional comments about closing:  User requested: It does indeed fix this issue. Weird that the crash on startup only triggered in a Wayland session. Removing old entries also made Help work again (in X11). Thanks! Never knew this caused that issue.
Comment by Antonio Rojas (arojas) - Friday, 27 July 2018, 09:29 GMT
Go to Options -> Help -> Documentation and remove old entries. Does that fix the issue?

Loading...