On startup or plugin addition, the UI crashes due to a segfault. I have only specifically tried the OpenRGB Effects Plugin, but the offending code within PluginManager looks to be buggy with other plugins. Will append a MR with a preliminary fix.
Expected behavior is that plugin loading failure results in a popup with an error message, and not a segfault.
Operating System
OS - Linux
Manjaro Linux on kernel 6.6.8-2-MANJARO
OpenRGB version: 0.9 from AUR
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
Recompiled both OpenRGB and the OpenRGB Effects Plugin off of master with debug symbols on (qmake CONFIG+=debug && make -j), and never hit a segfault. When it was segfaulting, the backtrace showed the dlopen call failing. Might be an issue with the plugin, but I'd still think OpenRGB should handle plugin loading failure a bit more gracefully. Needing to manually recompile with debug symbols isn't exactly the most user-friendly thing...
Sounds like the plugin version doesn't match the OpenRGB version which is why it's segfaulting. Have you just upgraded OpenRGB? Which version of the plugin did you install?
I thought that's what it was, so I cloned the latest git of OpenRGBEffectsPlugin and compiled it myselfe, deleted the original plugin from ~/.config/OpenRGB/plugins/ and tried again. Crashes. Deleted the file from plugins/, no crash. So instead of my build of OpenRGB from Chaotic-AUR which they build themselves daily, I compiled OpenRGB myself locally from the latest git master, then recompiled the plugin against that. Still crashes.
So then I installed the latest stable release of OpenRGB instead of the latest git master, then recompiled the plugin. Still crashes.
Keep in mind that I've had this plugin installed for over 2 years, and this has never once happened before, except for once or twice and doing any of the above steps fixed it.
Here is the log with -vv:
Attempting to connect to local OpenRGB server.Connected to serverNetwork client listener startedClient: Received controller count from server: 8Client: Requesting controller 0Client: Requesting controller 1Client: Requesting controller 2Client: Requesting controller 3Client: Requesting controller 4Client: Requesting controller 5Client: Requesting controller 6Client: Requesting controller 7Client: All controllers received, adding them to master list[ResourceManager] Calling device list change callbacks.Local OpenRGB server connected, running in client mode[ResourceManager] Calling detection start callbacks.[ResourceManager] Calling detection progress callbacks.[ResourceManager] Registered detection progress callback. Total callbacks registered: 1[ResourceManager] Registered device list change callback. Total callbacks registered: 1dialog show callback registered[PluginManager] Scanning plugin directory: /home/matt/.config/OpenRGB/plugins/[PluginManager] Found plugin file libOpenRGBHardwareSyncPlugin.so.1.0.0[PluginManager] Plugin /home/matt/.config/OpenRGB/plugins/libOpenRGBHardwareSyncPlugin.so.1.0.0 cannot be loaded: Unknown error[PluginManager] Plugin /home/matt/.config/OpenRGB/plugins/libOpenRGBHardwareSyncPlugin.so.1.0.0 has a compatible API versionLoaded plugin Hardware Sync[OpenRGBHardwareSyncPlugin] Destructor## HardwareMeasure chips: 10GPU found: NVIDIA GeForce RTX 3090, 0[ResourceManager] Registered device list change callback. Total callbacks registered: 2[ResourceManager] Registered device list change callback. Total callbacks registered: 3[OpenRGBHardwareSyncPlugin] Loading file.[OpenRGBPluginsPage] Installing plugin /home/matt/dev/OpenRGBEffectsPlugin/libOpenRGBEffectsPlugin.so.1.0.0[PluginManager] Attempting to remove plugin /home/matt/.config/OpenRGB/plugins/libOpenRGBEffectsPlugin.so.1.0.0[PluginManager] Plugin /home/matt/.config/OpenRGB/plugins/libOpenRGBEffectsPlugin.so.1.0.0 not active[OpenRGBPluginsPage] Copying from /home/matt/dev/OpenRGBEffectsPlugin/libOpenRGBEffectsPlugin.so.1.0.0 to /home/matt/.config/OpenRGB/plugins/libOpenRGBEffectsPlugin.so.1.0.0[PluginManager] Plugin /home/matt/.config/OpenRGB/plugins/libOpenRGBEffectsPlugin.so.1.0.0 cannot be loaded: Unknown error