[Bug Report] Segfault on Startup (Glorious Model D Mouse)

Description of Bug

On latest master (and latest 0.5 release too) I see the window open for a few seconds and then get a segfault:

λ ./openrgb
Attempting to connect to local OpenRGB server.
Connection attempt failed
Local OpenRGB server unavailable, running standalone.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
1E 9F 02 01 00 00
78 3C 00 01 00 00
78 3C 00 00 00 00
00 00 00 00 00 00
00 00 00 08 0A 02
01 F4 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
[1]    3020273 segmentation fault (core dumped)  ./openrgb

Hardware Configuration

  • Motherboard: Asus Crosshair VIII Dark Hero
  • Memory: 4x G.Skill 16GB TridentZ RGB F4-3200C14-16GTZR

Backtrace

#0  0x00005576c5345be3 in Ui::OpenRGBDevicePage::on_LEDBox_currentIndexChanged(int) ()
#1  0x00005576c53474ae in Ui::OpenRGBDevicePage::UpdateModeUi() ()
#2  0x00005576c5348ec6 in Ui::OpenRGBDevicePage::OpenRGBDevicePage(RGBController*, QWidget*) ()
#3  0x00005576c5356249 in Ui::OpenRGBDialog2::UpdateDevicesList() ()
#4  0x00007feeaac4e532 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#5  0x00007feeab6e9752 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#6  0x00007feeaac21a2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#7  0x00007feeaac24523 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#8  0x00007feeaac7b054 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007feea9a2ab84 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#10 0x00007feea9a7ec21 in ?? () from /usr/lib/libglib-2.0.so.0
#11 0x00007feea9a293b1 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#12 0x00007feeaac7a691 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#13 0x00007feeaac203ac in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#14 0x00007feeaac28844 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#15 0x00005576c5302f47 in main ()
Edited by Joshua Rubin