Closed RiQuY closed 9 months ago
can you try from head? b6130e3901ed5c6d423f168705929e555608d870 fixed this IIRC.
Sorry if this sounds dumb but because I downloaded a pre-built package from the openSUSE build service I don't know how to build this properly or if I'm missing dependencies.
To build the package to be able to answer you question I did the following:
git clone https://github.com/hyprwm/hyprpicker.git
cd hyprpicker
make all
And I got this output:
make clear
make[1]: Entering directory '/media/Almacen/Programas/hyprpicker'
rm -rf build
rm -f *.o *-protocol.h *-protocol.c
make[1]: Leaving directory '/media/Almacen/Programas/hyprpicker'
make protocols
make[1]: Entering directory '/media/Almacen/Programas/hyprpicker'
/usr/bin/wayland-scanner private-code \
protocols/wlr-layer-shell-unstable-v1.xml wlr-layer-shell-unstable-v1-protocol.c
/usr/bin/wayland-scanner client-header \
protocols/wlr-layer-shell-unstable-v1.xml wlr-layer-shell-unstable-v1-protocol.h
Package wlroots was not found in the pkg-config search path.
Perhaps you should add the directory containing `wlroots.pc'
to the PKG_CONFIG_PATH environment variable
Package 'wlroots', required by 'virtual:world', not found
cc -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wno-unused-result -Wdeclaration-after-statement -I. -DWLR_USE_UNSTABLE -std=c99 -I/usr/include/wayland -c -o wlr-layer-shell-unstable-v1-protocol.o wlr-layer-shell-unstable-v1-protocol.c
/usr/bin/wayland-scanner private-code \
protocols/wlr-screencopy-unstable-v1.xml wlr-screencopy-unstable-v1-protocol.c
/usr/bin/wayland-scanner client-header \
protocols/wlr-screencopy-unstable-v1.xml wlr-screencopy-unstable-v1-protocol.h
Package wlroots was not found in the pkg-config search path.
Perhaps you should add the directory containing `wlroots.pc'
to the PKG_CONFIG_PATH environment variable
Package 'wlroots', required by 'virtual:world', not found
cc -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wno-unused-result -Wdeclaration-after-statement -I. -DWLR_USE_UNSTABLE -std=c99 -I/usr/include/wayland -c -o wlr-screencopy-unstable-v1-protocol.o wlr-screencopy-unstable-v1-protocol.c
/usr/bin/wayland-scanner private-code \
/stable/xdg-shell/xdg-shell.xml xdg-shell-protocol.c
Could not open input file: No such file or directory
make[1]: *** [Makefile:40: xdg-shell-protocol.c] Error 1
make[1]: Leaving directory '/media/Almacen/Programas/hyprpicker'
make: *** [Makefile:61: all] Error 2
Package wlroots was not found in the pkg-config search path.
errors are quite clear, missing wlroots
It works, I had to install this deps wlroots-devel wayland-protocols-devel ninja cairo-devel pango-devel libjpeg8-devel Mesa-libGLESv3-devel
but the program was able to build and open. It printed the HEX value of the pixel I selected on the console.
So the problem was that your last commit is still not saved in a new release?
it's after the latest release. Yes.
closing as already fixed
@vaxerski , I'm still getting a SIGSEGV error with the latest code. Cloned the repo and ran make all
to build the binary.
Getting this error:
./build/hyprpicker
fish: Job 1, './build/hyprpicker' terminated by signal SIGSEGV (Address boundary error)
Some debug logs (do let me know if anything else would help): GDB:
gdb ./build/hyprpicker
GNU gdb (GDB) 13.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./build/hyprpicker...
(gdb) run
Starting program: /home/devansh/Temp/hyprpicker/build/hyprpicker
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) n
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7f499d4 in wl_proxy_get_version () from /usr/lib/libwayland-client.so.0
Coredumpctl:
PID: 37147 (hyprpicker)
UID: 1000 (devansh)
GID: 1000 (devansh)
Signal: 11 (SEGV)
Timestamp: Thu 2023-11-23 18:54:16 IST (4min 10s ago)
Command Line: ./build/hyprpicker
Executable: /home/devansh/Temp/hyprpicker/build/hyprpicker
Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-konsole-7d7f6a4c402a480e84c39ac96f0e575a.scope
Unit: user@1000.service
User Unit: app-konsole-7d7f6a4c402a480e84c39ac96f0e575a.scope
Slice: user-1000.slice
Owner UID: 1000 (devansh)
Boot ID: 260197b5e909474bbc005fe694afec5f
Machine ID: d96bafd23c124394af4d86ced7c59e74
Hostname: arch
Storage: /var/lib/systemd/coredump/core.hyprpicker.1000.260197b5e909474bbc005fe694afec5f.37147.1700745856000000.zst (present)
Size on Disk: 227.1K
Message: Process 37147 (hyprpicker) of user 1000 dumped core.
Stack trace of thread 37147:
#0 0x00007fe54154f9d4 wl_proxy_get_version (libwayland-client.so.0 + 0x79d4)
#1 0x00005559efefe9be n/a (/home/devansh/Temp/hyprpicker/build/hyprpicker + 0x79be)
ELF object binary architecture: AMD x86-64
Running this on Arch Linux KDE Wayland.
Description
hyprpicker commands returns this message to the console when executing it:
System info
OS: openSUSE Tumbleweed x86_64 Kernel: 6.6.1-1-default Shell: bash 5.2.15 Resolution: 2560x1440 DE: Hyprland Terminal: kitty CPU: AMD Ryzen 7 1700X (16) @ 3.400GHz GPU: AMD ATI Radeon RX 5600 OEM/5600 XT / 5700/5700 XT Memory: 7453MiB / 32016MiB
hyprland version (from zypper): 0.32.3-1.1 hyprpicker version (from build.opensuse.org/home:smolsheep): 0.2.0-2.4
Log/core dump info