Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm getting "Segmentation fault" error #8

Open
yasarciv opened this issue Dec 31, 2023 · 5 comments
Open

I'm getting "Segmentation fault" error #8

yasarciv opened this issue Dec 31, 2023 · 5 comments

Comments

@yasarciv
Copy link

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
Copy link
Owner

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
Copy link
Owner

@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
Copy link
Author

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
Copy link
Author

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

@SergioRibera
Copy link
Owner

SergioRibera commented Dec 31, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants