Hyprland: Crash when loading empty plugin
Hyprland Version
main @ 99ca26d4eb84e0071264713902e5b287fcab392e (head at time of writing. hyprland does not stay open long enough to use hyprctl)
Bug or Regression?
Regression
Description
An empty plugin causes an instant crash. Entire plugin:
#include <hyprland/src/Compositor.hpp>
#include <hyprland/src/plugins/PluginAPI.hpp>
APICALL EXPORT std::string PLUGIN_API_VERSION() { return HYPRLAND_API_VERSION; }
APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
return {"hy3", "i3 like layout for hyprland", "outfoxxed", "0.1"};
}
APICALL EXPORT void PLUGIN_EXIT() {}
How to reproduce
Build the above plugin and run it. Alternatively build any other plugin and run it. I used the plugin = <path>
method.
Crash reports, logs, images, videos
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Reactions: 3
- Comments: 21 (15 by maintainers)
Commits related to this issue
- groupbar: fix crash in renderGradientTo fixes #3985 — committed to FlafyDev/Hyprland by vaxerski 7 months ago
I think this is a faulty plugin and not hyprland.
Fix worked for me