qtfred issues on linux
Description: qtfred crashes when right clicking to change event type or mission objective type in the editors.
Steps to reproduce: In qtfred click editors>mission objectives or events then select a new event/objective. This will bring up the default. As soon as I right click to change qtfred crashes to desktop.
Running qtfred from the terminal produces the following output on the crash (see below). The segmentation fault may be due to my current version of libc.so.6 being too recent??
lib.so.6 version is currently 2.35.
The problem is reproduced on linux desktop (ubuntu 22.04) and laptop (ubuntu 20.04),
I tested qtfred both in the FSO directory and the FotG mod with the same results.
Terminal output on crash:
$ ./qtfred_23_1_0_x64 Stack: ./qtfred_23_1_0_x64 : ()+0x166253 /lib/x86_64-linux-gnu/libc.so.6 : ()+0x42520 ./qtfred_23_1_0_x64 : ()+0x2a2793 ./qtfred_23_1_0_x64 : ()+0x2bd6c4 ./qtfred_23_1_0_x64 : ()+0x2be142 /lib/x86_64-linux-gnu/libQt5Core.so.5 : ()+0x2f1793 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QWidget::customContextMenuRequested(QPoint const&)+0x39 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QWidget::event(QEvent*)+0x1064 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QFrame::event(QEvent*)+0x22 /lib/x86_64-linux-gnu/libQt5Core.so.5 : QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)+0xaa /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x72 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplication::notify(QObject*, QEvent*)+0x3c4 /lib/x86_64-linux-gnu/libQt5Core.so.5 : QCoreApplication::notifyInternal2(QObject*, QEvent*)+0x13a /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : ()+0x1c94a4 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : ()+0x1cbfd5 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x83 /lib/x86_64-linux-gnu/libQt5Core.so.5 : QCoreApplication::notifyInternal2(QObject*, QEvent*)+0x13a /lib/x86_64-linux-gnu/libQt5Gui.so.5 : QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)+0x697 /lib/x86_64-linux-gnu/libQt5Gui.so.5 : QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag)+0xac /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 : ()+0x73d6e /lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_dispatch()+0x26b /lib/x86_64-linux-gnu/libglib-2.0.so.0 : ()+0xaa6c8 /lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_iteration()+0x33 /lib/x86_64-linux-gnu/libQt5Core.so.5 : QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag)+0x68 /lib/x86_64-linux-gnu/libQt5Core.so.5 : QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag)+0x12b /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QDialog::exec()+0x202 ./qtfred_23_1_0_x64 : ()+0x1fcfd8 ./qtfred_23_1_0_x64 : ()+0x1646d3 /lib/x86_64-linux-gnu/libQt5Core.so.5 : ()+0x2f14e5 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QAction::triggered(bool)+0x46 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QAction::activate(QAction::ActionEvent)+0xac /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : ()+0x2f3142 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : ()+0x2fad39 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QWidget::event(QEvent*)+0x20e /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x83 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplication::notify(QObject*, QEvent*)+0xa84 /lib/x86_64-linux-gnu/libQt5Core.so.5 : QCoreApplication::notifyInternal2(QObject*, QEvent*)+0x13a /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool)+0x1b7 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : ()+0x1c9843 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : ()+0x1cbfd5 /lib/x86_64-linux-gnu/libQt5Widgets.so.5 : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x83 /lib/x86_64-linux-gnu/libQt5Core.so.5 : QCoreApplication::notifyInternal2(QObject*, QEvent*)+0x13a /lib/x86_64-linux-gnu/libQt5Gui.so.5 : QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)+0x697 /lib/x86_64-linux-gnu/libQt5Gui.so.5 : QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag)+0xac /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 : ()+0x73d6e /lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_dispatch()+0x26b /lib/x86_64-linux-gnu/libglib-2.0.so.0 : ()+0xaa6c8 /lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_iteration()+0x33 /lib/x86_64-linux-gnu/libQt5Core.so.5 : QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag)+0x68 /lib/x86_64-linux-gnu/libQt5Core.so.5 : QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag)+0x12b /lib/x86_64-linux-gnu/libQt5Core.so.5 : QCoreApplication::exec()+0x94 ./qtfred_23_1_0_x64 : main()+0x16cd /lib/x86_64-linux-gnu/libc.so.6 : ()+0x29d90 /lib/x86_64-linux-gnu/libc.so.6 : __libc_start_main()+0x80 ./qtfred_23_1_0_x64 : ()+0x15b7c5
Segmentation fault (core dumped) $
This appears to be a Linux-only crash, as I was not able to reproduce it on Windows.
Duplicate of #4182