SergioRibera / super_clipboard

Manage your clipboard history with a beautiful and simple interface
MIT License
24 stars 2 forks source link

I'm getting "Segmentation fault" error #8

Open yasarciv opened 6 months ago

yasarciv commented 6 months ago

Hello. I tried your program on our pure Wayland Linux operating system. But I get the "Segmentation fault" error. I get the same error when I compile it myself with Cargo.

SergioRibera commented 6 months ago

This is an interesting problem, I always dealt with it in xorg environments, just now I have changed to a completely Wayland environment, so I will be testing it, I will update you through this issue, thank you very much for the report 😁🦀

SergioRibera commented 6 months ago

@yasarciv I was trying, and I have not been able to cause the error, could you tell me what operating system you have and what wayland environment you have, if it is possible to run superclipboard with the SUPER_CLIPBOARD_LOG=trace environment variable please.

yasarciv commented 6 months ago

Our operating system is a pure wayland native Linux operating system project based on LFS. Website is https://mls.akdeniz.edu.tr/en We use Labwc compozitor and waybar panel. And we use our init system. SUPER_CLIPBOARD_LOG=trace superclipboard output is: https://0x0.st/HE7a.txt

yasarciv commented 6 months ago

Maybe we can find a solution if we know what runtime dependencies are required for Superclipboard.

SergioRibera commented 6 months ago

Totally agree, reviewing the logs, the error comes from iced apparently, the execution requirements can be found here, I was building a flake as well and to run it without errors I need these libraries without forgetting the fonts

buildInputs = with pkgs; [
  pkg-config
  fontconfig

  libxkbcommon
  vulkan-loader
  wayland
  wayland-protocols
  xorg.libX11
];
nativeBuildInputs = with pkgs; [
  pkg-config
  gtk-layer-shell
  gtk3
];
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;

Although I have noticed that for both versions (X11 and Wayland) it requires both, so I will be working on separating both by feature and providing both binaries separately