hyprwm / hyprpaper

Hyprpaper is a blazing fast wayland wallpaper utility with IPC controls.
https://wiki.hyprland.org/Hypr-Ecosystem/hyprpaper/
BSD 3-Clause "New" or "Revised" License
724 stars 53 forks source link

Memory leak? #63

Open grappas opened 1 year ago

grappas commented 1 year ago

This is my script for slide show:

#!/bin/sh
#
while (true); do
    sleep 4
    LOOP_COUNT=1

    ls -1 ~/Obrazy/Wallpapers | grep -v webp | grep -v mp4 | shuf | while read each; do
        if [ $(expr $LOOP_COUNT % 2) != "0" ]; then
            hyprctl hyprpaper preload "~/Obrazy/Wallpapers/$each"
            sleep 1
            hyprctl hyprpaper wallpaper "$2,~/Obrazy/Wallpapers/$each"
            sleep 1
            hyprctl hyprpaper unload "~/Obrazy/Wallpapers/$each"
        else
            hyprctl hyprpaper preload "~/Obrazy/Wallpapers/$each"
            sleep 1
            hyprctl hyprpaper wallpaper "$3,~/Obrazy/Wallpapers/$each"
            sleep $1
            hyprctl hyprpaper unload "~/Obrazy/Wallpapers/$each"
        fi

        LOOP_COUNT=$((LOOP_COUNT + 1))
    done
done

But "unload all" seems not to be working. hyprpaper grows in RAM with every loop iteration. Typing manually command for unload throws "ok", but doesn't work either.

vaxerski commented 1 year ago

doesn't seem tho be the case for me...

Checked with valgrind too, doesn't seem to be any leaks. There was one small leak of a few kB, fixed in 3bfaac09f58ce31c33e1a56e7eaa606a87fe4c32

apart from that, can't see anything.

image

grappas commented 1 year ago

What are you using for finding those leaks?

vaxerski commented 1 year ago

Checked with valgrind too

grappas commented 1 year ago

obraz

==2620679== LEAK SUMMARY:
==2620679==    definitely lost: 2,040 bytes in 15 blocks
==2620679==    indirectly lost: 1,384,455 bytes in 29,205 blocks
==2620679==      possibly lost: 185,662 bytes in 3,901 blocks
==2620679==    still reachable: 106,703,943 bytes in 10,120 blocks
==2620679==         suppressed: 0 bytes in 0 blocks
==2620679== Reachable blocks (those to which a pointer was found) are not shown.
==2620679== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==2620679==
==2620679== For lists of detected and suppressed errors, rerun with: -s
==2620679== ERROR SUMMARY: 118 errors from 30 contexts (suppressed: 0 from 0)

Then it's not a leak but just unload is not doing it's job ¯_(ツ)_/¯

vaxerski commented 1 year ago

it is for me, odd.

justinesmithies commented 5 months ago

This is my script for slide show:

#!/bin/sh
#<<<<<<<<< format: sh wallpapers.sh $TIMEOUT $DISPLAY_1 $DISPLAY_2
while (true)
do
    sleep 4
    LOOP_COUNT=1

    ls -1 ~/Obrazy/Wallpapers | grep -v webp  | grep -v mp4 | while read each
do
    if [ $(expr $LOOP_COUNT % 2 ) != "0" ]
    then
        hyprctl hyprpaper preload "~/Obrazy/Wallpapers/$each"
        sleep 1
        hyprctl hyprpaper wallpaper "$2,~/Obrazy/Wallpapers/$each"
    else
        hyprctl hyprpaper preload "~/Obrazy/Wallpapers/$each"
        sleep 1
        hyprctl hyprpaper wallpaper "$3,~/Obrazy/Wallpapers/$each"
        sleep $1 #<<<<<<<<<<<<<<<<<<<<<<<
        hyprctl hyprpaper unload all #<<<<<<<<<<<<<<<<<<<<<<
    fi

    LOOP_COUNT=$((LOOP_COUNT+1))
done
done

But "unload all" seems not to be working. hyprpaper grows in RAM with every loop iteration. Typing manually command for unload throws "ok", but doesn't work either.

I too see that the option unload all sometimes doesn't unload properly but does respond with ok . I can start hyprpaper and i see it takes 7M at startup from btop. If I load my default image it rises to 26M but if I change to a larger image it rises to say 61M but when I switch back to my original image and run unload all it now reports 34M instead of the 26M .

All my wallpaper setting script is doing for my two screens is :

#!/bin/sh

# if pgrep swaybg; then
#   pkill swaybg
# fi
# swaybg -m fill -i ~/.cache/wallpaper
read -r wallpaper<~/.cache/test
hyprctl hyprpaper preload "$wallpaper"
hyprctl hyprpaper wallpaper ", $wallpaper"
hyprctl hyprpaper unload all

The logs from hyprpaper are here:

[LOG] Welcome to hyprpaper!
built from commit dfd3d090dc8779f566a224051d9c366511a8556b (?)
[LOG] Cleaned old hyprpaper preloads (1), removing 8.3MB
[WARN] Monitor eDP-1 does not have a target! A wallpaper will not be created.
[WARN] Monitor HDMI-A-1 does not have a target! A wallpaper will not be created.
[LOG] hyprpaper socket started at /tmp/hypr/98034fea3c1d5c1836bcc3b523cf1089dd5ac502_1709061964/.hyprpaper.sock (fd: 4)
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg
[LOG] Preloaded target /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg in 11.16ms -> Pixel size: [1920, 1100]
[LOG] Buffer created for target /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg, Shared Memory usage: 8.3MB
[LOG] Total SM usage for all buffers: 8.3MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg
[LOG] Setting wallpaper for monitor W({
[LOG] Setting wallpaper for monitor W({
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] configure for eDP-1
[LOG] handlePreferredScale: 1.00 for 7b2850000ff0
[LOG] handlePreferredScale: 1.00 for 7b2850000ff0
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Image data for eDP-1: /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg at [0.00, -10.00], scale: 1.00 (original image size: [1920, 1100])
[LOG] Submitting viewport dest size 1920x1080 for 50000ff0
[LOG] configure for HDMI-A-1
[LOG] handlePreferredScale: 1.00 for 7b2850002a20
[LOG] handlePreferredScale: 1.00 for 7b2850002a20
[LOG] Received a request: unload all
[LOG] Image data for HDMI-A-1: /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg at [0.00, -10.00], scale: 1.00 (original image size: [1920, 1100])
[LOG] Submitting viewport dest size 1920x1080 for 50002a20
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] configure for eDP-1
[LOG] handlePreferredScale: 1.00 for 7b2850000ff0
[LOG] handlePreferredScale: 1.00 for 7b2850000ff0
[LOG] Image data for eDP-1: /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg at [0.00, -10.00], scale: 1.00 (original image size: [1920, 1100])
[LOG] Submitting viewport dest size 1920x1080 for 50000ff0
[LOG] configure for HDMI-A-1
[LOG] handlePreferredScale: 1.00 for 7b2850002a20
[LOG] handlePreferredScale: 1.00 for 7b2850002a20
[LOG] Image data for HDMI-A-1: /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg at [0.00, -10.00], scale: 1.00 (original image size: [1920, 1100])
[LOG] Submitting viewport dest size 1920x1080 for 50002a20
[LOG] handlePreferredScale: 1.00 for 7b2850000ff0
[LOG] handlePreferredScale: 1.00 for 7b2850002a20
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /home/justine/Pictures/Wallpapers/wall.png
[LOG] Preloaded target /home/justine/Pictures/Wallpapers/wall.png in 241.07ms -> Pixel size: [3840, 2160]
[LOG] Buffer created for target /home/justine/Pictures/Wallpapers/wall.png, Shared Memory usage: 8.3MB
[LOG] Total SM usage for all buffers: 16.6MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /home/justine/Pictures/Wallpapers/wall.png
[LOG] Setting wallpaper for monitor W({
[LOG] Setting wallpaper for monitor W({
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] configure for eDP-1
[LOG] handlePreferredScale: 1.00 for 7b2850037770
[LOG] handlePreferredScale: 1.00 for 7b2850037770
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Image data for eDP-1: /home/justine/Pictures/Wallpapers/wall.png at [-0.00, 0.00], scale: 0.50 (original image size: [3840, 2160])
[LOG] Submitting viewport dest size 1920x1080 for 50037770
[LOG] configure for HDMI-A-1
[LOG] handlePreferredScale: 1.00 for 7b2850037ee0
[LOG] handlePreferredScale: 1.00 for 7b2850037ee0
[LOG] Image data for HDMI-A-1: /home/justine/Pictures/Wallpapers/wall.png at [-0.00, 0.00], scale: 0.50 (original image size: [3840, 2160])
[LOG] Submitting viewport dest size 1920x1080 for 50037ee0
[LOG] configure for eDP-1
[LOG] handlePreferredScale: 1.00 for 7b2850037770
[LOG] handlePreferredScale: 1.00 for 7b2850037770
[LOG] Image data for eDP-1: /home/justine/Pictures/Wallpapers/wall.png at [-0.00, 0.00], scale: 0.50 (original image size: [3840, 2160])
[LOG] Submitting viewport dest size 1920x1080 for 50037770
[LOG] Received a request: unload all
[LOG] Unloading target /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg, preload path /run/user/1000/.hyprpaper_mhk1TU
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] configure for HDMI-A-1
[LOG] handlePreferredScale: 1.00 for 7b2850037ee0
[LOG] handlePreferredScale: 1.00 for 7b2850037ee0
[LOG] Image data for HDMI-A-1: /home/justine/Pictures/Wallpapers/wall.png at [-0.00, 0.00], scale: 0.50 (original image size: [3840, 2160])
[LOG] Submitting viewport dest size 1920x1080 for 50037ee0
[LOG] handlePreferredScale: 1.00 for 7b2850037770
[LOG] handlePreferredScale: 1.00 for 7b2850037ee0
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg
[LOG] Preloaded target /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg in 28.68ms -> Pixel size: [1920, 1100]
[LOG] Buffer created for target /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg, Shared Memory usage: 8.3MB
[LOG] Total SM usage for all buffers: 16.6MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg
[LOG] Setting wallpaper for monitor W({
[LOG] Setting wallpaper for monitor W({
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] configure for eDP-1
[LOG] handlePreferredScale: 1.00 for 7b285000dde0
[LOG] handlePreferredScale: 1.00 for 7b285000dde0
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Image data for eDP-1: /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg at [0.00, -10.00], scale: 1.00 (original image size: [1920, 1100])
[LOG] Submitting viewport dest size 1920x1080 for 5000dde0
[LOG] configure for HDMI-A-1
[LOG] handlePreferredScale: 1.00 for 7b2850000e80
[LOG] handlePreferredScale: 1.00 for 7b2850000e80
[LOG] Received a request: unload all
[LOG] Unloading target /home/justine/Pictures/Wallpapers/wall.png, preload path /run/user/1000/.hyprpaper_4er7L5
[LOG] Image data for HDMI-A-1: /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg at [0.00, -10.00], scale: 1.00 (original image size: [1920, 1100])
[LOG] Submitting viewport dest size 1920x1080 for 50000e80
[LOG] Accepted incoming socket connection request on fd 5
[LOG] configure for eDP-1
[LOG] handlePreferredScale: 1.00 for 7b285000dde0
[LOG] handlePreferredScale: 1.00 for 7b285000dde0
[LOG] Closing Accepted Connection
[LOG] Image data for eDP-1: /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg at [0.00, -10.00], scale: 1.00 (original image size: [1920, 1100])
[LOG] Submitting viewport dest size 1920x1080 for 5000dde0
[LOG] configure for HDMI-A-1
[LOG] handlePreferredScale: 1.00 for 7b2850000e80
[LOG] handlePreferredScale: 1.00 for 7b2850000e80
[LOG] Image data for HDMI-A-1: /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg at [0.00, -10.00], scale: 1.00 (original image size: [1920, 1100])
[LOG] Submitting viewport dest size 1920x1080 for 50000e80
[LOG] handlePreferredScale: 1.00 for 7b285000dde0
[LOG] handlePreferredScale: 1.00 for 7b2850000e80
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /home/justine/Pictures/Wallpapers/sway-desert.jpg
[LOG] Preloaded target /home/justine/Pictures/Wallpapers/sway-desert.jpg in 172.98ms -> Pixel size: [6016, 3385]
[LOG] Buffer created for target /home/justine/Pictures/Wallpapers/sway-desert.jpg, Shared Memory usage: 8.3MB
[LOG] Total SM usage for all buffers: 16.6MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /home/justine/Pictures/Wallpapers/sway-desert.jpg
[LOG] Setting wallpaper for monitor W({
[LOG] Setting wallpaper for monitor W({
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] configure for eDP-1
[LOG] handlePreferredScale: 1.00 for 7b28500175d0
[LOG] handlePreferredScale: 1.00 for 7b28500175d0
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Image data for eDP-1: /home/justine/Pictures/Wallpapers/sway-desert.jpg at [0.00, -0.50], scale: 0.32 (original image size: [6016, 3385])
[LOG] Submitting viewport dest size 1920x1080 for 500175d0
[LOG] configure for HDMI-A-1
[LOG] handlePreferredScale: 1.00 for 7b285000ec10
[LOG] handlePreferredScale: 1.00 for 7b285000ec10
[LOG] Image data for HDMI-A-1: /home/justine/Pictures/Wallpapers/sway-desert.jpg at [0.00, -0.50], scale: 0.32 (original image size: [6016, 3385])
[LOG] Submitting viewport dest size 1920x1080 for 5000ec10
[LOG] configure for eDP-1
[LOG] handlePreferredScale: 1.00 for 7b28500175d0
[LOG] handlePreferredScale: 1.00 for 7b28500175d0
[LOG] Received a request: unload all
[LOG] Unloading target /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg, preload path /run/user/1000/.hyprpaper_7htRvf
[LOG] Image data for eDP-1: /home/justine/Pictures/Wallpapers/sway-desert.jpg at [0.00, -0.50], scale: 0.32 (original image size: [6016, 3385])
[LOG] Submitting viewport dest size 1920x1080 for 500175d0
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] configure for HDMI-A-1
[LOG] handlePreferredScale: 1.00 for 7b285000ec10
[LOG] handlePreferredScale: 1.00 for 7b285000ec10
[LOG] Image data for HDMI-A-1: /home/justine/Pictures/Wallpapers/sway-desert.jpg at [0.00, -0.50], scale: 0.32 (original image size: [6016, 3385])
[LOG] Submitting viewport dest size 1920x1080 for 5000ec10
[LOG] handlePreferredScale: 1.00 for 7b28500175d0
[LOG] handlePreferredScale: 1.00 for 7b285000ec10
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg
[LOG] Preloaded target /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg in 28.13ms -> Pixel size: [1920, 1100]
[LOG] Buffer created for target /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg, Shared Memory usage: 8.3MB
[LOG] Total SM usage for all buffers: 16.6MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg
[LOG] Setting wallpaper for monitor W({
[LOG] Setting wallpaper for monitor W({
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] configure for eDP-1
[LOG] handlePreferredScale: 1.00 for 7b28508fd8e0
[LOG] handlePreferredScale: 1.00 for 7b28508fd8e0
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Image data for eDP-1: /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg at [0.00, -10.00], scale: 1.00 (original image size: [1920, 1100])
[LOG] Submitting viewport dest size 1920x1080 for 508fd8e0
[LOG] configure for HDMI-A-1
[LOG] handlePreferredScale: 1.00 for 7b2850038070
[LOG] handlePreferredScale: 1.00 for 7b2850038070
[LOG] Received a request: unload all
[LOG] Unloading target /home/justine/Pictures/Wallpapers/sway-desert.jpg, preload path /run/user/1000/.hyprpaper_YK6T8e
[LOG] Image data for HDMI-A-1: /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg at [0.00, -10.00], scale: 1.00 (original image size: [1920, 1100])
[LOG] Submitting viewport dest size 1920x1080 for 50038070
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] configure for eDP-1
[LOG] handlePreferredScale: 1.00 for 7b28508fd8e0
[LOG] handlePreferredScale: 1.00 for 7b28508fd8e0
[LOG] Image data for eDP-1: /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg at [0.00, -10.00], scale: 1.00 (original image size: [1920, 1100])
[LOG] Submitting viewport dest size 1920x1080 for 508fd8e0
[LOG] configure for HDMI-A-1
[LOG] handlePreferredScale: 1.00 for 7b2850038070
[LOG] handlePreferredScale: 1.00 for 7b2850038070
[LOG] Image data for HDMI-A-1: /home/justine/Pictures/Wallpapers/artur-sadlos-to-sh300-ooh-as-05i.jpg at [0.00, -10.00], scale: 1.00 (original image size: [1920, 1100])
[LOG] Submitting viewport dest size 1920x1080 for 50038070
[LOG] handlePreferredScale: 1.00 for 7b28508fd8e0
[LOG] handlePreferredScale: 1.00 for 7b2850038070
vaxerski commented 5 months ago

Right, I see it, though it only happens once to me. Once the memory usage rises after a dynamic call, further calls will not increase ram after unload all to me.

vaxerski commented 5 months ago

no clue where it comes from, maybe a bug with how it's measured? no dangling stuff is remaining and valgrind + lsan don't complain

grappas commented 5 months ago

I revisited hyprpaper again. Used script from original post. Doesn't seems to be an issue anymore for me. Dunno why.

SortexGuy commented 2 months ago

i have a similar issue but in a longer timespan, my script is a bit more complicated but is because i have more images and 2 screens but here is my script:

#! /usr/bin/fish

set -g imgs ~/Dev/bgs/**.{jpg,jpeg,png,webp}
if test $status -ne 0
    set -f st $status
    echo "Bad Glob"
    return $st
end
set -g img_count (count $imgs)

function load_wallpaper
    set -f preload_cmd hyprpaper preload
    set -f wallpaper_cmd hyprpaper wallpaper

    set -f rand_num (random 1 $img_count)
    set -f curr_img $imgs[$rand_num]
    echo $curr_img
    hyprctl $preload_cmd $curr_img
    hyprctl $wallpaper_cmd "DP-1, $curr_img"
    sleep 2 && hyprctl $wallpaper_cmd "HDMI-A-1, $curr_img"
    hyprctl hyprpaper unload all
    dunstify -t 3000 "Wallpaper changed" "to $curr_img"
end

while true
    sleep $(math "60 * 5")

    load_wallpaper
end

it also happens in my laptop with the same script minus the sleep 2 line and with 1 screen.

Here is the last few lines of the log because i don't know for how much time it ran:

[LOG] Total SM usage for all buffers: 4.2MB
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Received a request: wallpaper DP-1, /home/sortextg/Dev/bgs/Wallpaper-Bank/Anime-Girl3.png
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Closing Accepted Connection
[LOG] configure for DP-1
[LOG] handlePreferredScale: 1.00 for 7739a80016c0
[LOG] handlePreferredScale: 1.00 for 7739a80016c0
[LOG] Image data for DP-1: /home/sortextg/Dev/bgs/Wallpaper-Bank/Anime-Girl3.png at [0.00, -11.27], scale: 0.70 (original image size: [1952, 1120])
[LOG] Rendering splash: "If it ain't broke, don't fix it" - Lucascito_03
[LOG] Splash color: 55ffffff
[LOG] Splash font size: 14, pos: 767.71, 1061.22
[LOG] Submitting viewport dest size 1366x768 for a80016c0
[LOG] configure for DP-1
[LOG] handlePreferredScale: 1.00 for 7739a80016c0
[LOG] handlePreferredScale: 1.00 for 7739a80016c0
[LOG] Image data for DP-1: /home/sortextg/Dev/bgs/Wallpaper-Bank/Anime-Girl3.png at [0.00, -11.27], scale: 0.70 (original image size: [1952, 1120])
[LOG] Rendering splash: "If it ain't broke, don't fix it" - Lucascito_03
[LOG] Splash color: 55ffffff
[LOG] Splash font size: 14, pos: 976.00, 1075.51
[LOG] Submitting viewport dest size 1366x768 for a80016c0
[LOG] handlePreferredScale: 1.00 for 7739a80016c0
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Received a request: wallpaper HDMI-A-1, /home/sortextg/Dev/bgs/Wallpaper-Bank/Anime-Girl3.png
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Received a request: unload all
[LOG] Unloading target /home/sortextg/Dev/bgs/Wallpaper-Bank/Anime-Girl3.png, preload path /run/user/1000/.hyprpaper_GwUbiH
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Received a request: preload /home/sortextg/Dev/bgs/Wallpaper-Bank/Lofi-Desktop-Man-Studying.png
[LOG] Preloaded target /home/sortextg/Dev/bgs/Wallpaper-Bank/Lofi-Desktop-Man-Studying.png in 143.94ms -> Pixel size: [2088, 1080]
[LOG] Buffer created for target /home/sortextg/Dev/bgs/Wallpaper-Bank/Lofi-Desktop-Man-Studying.png, Shared Memory usage: 4.2MB
[LOG] Total SM usage for all buffers: 4.2MB
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Received a request: wallpaper DP-1, /home/sortextg/Dev/bgs/Wallpaper-Bank/Lofi-Desktop-Man-Studying.png
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Closing Accepted Connection
[LOG] configure for DP-1
[LOG] handlePreferredScale: 1.00 for 7739a8005350
[LOG] handlePreferredScale: 1.00 for 7739a8005350
[LOG] Image data for DP-1: /home/sortextg/Dev/bgs/Wallpaper-Bank/Lofi-Desktop-Man-Studying.png at [-83.53, 0.00], scale: 0.71 (original image size: [2088, 1080])
[LOG] Rendering splash: "If it ain't broke, don't fix it" - Lucascito_03
[LOG] Splash color: 55ffffff
[LOG] Splash font size: 14, pos: 756.78, 1044.34
[LOG] Submitting viewport dest size 1366x768 for a8005350
[LOG] configure for DP-1
[LOG] handlePreferredScale: 1.00 for 7739a8005350
[LOG] handlePreferredScale: 1.00 for 7739a8005350
[LOG] Image data for DP-1: /home/sortextg/Dev/bgs/Wallpaper-Bank/Lofi-Desktop-Man-Studying.png at [-83.53, 0.00], scale: 0.71 (original image size: [2088, 1080])
[LOG] Rendering splash: "If it ain't broke, don't fix it" - Lucascito_03
[LOG] Splash color: 55ffffff
[LOG] Splash font size: 14, pos: 960.47, 1058.40
[LOG] Submitting viewport dest size 1366x768 for a8005350
[LOG] handlePreferredScale: 1.00 for 7739a8005350
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Received a request: wallpaper HDMI-A-1, /home/sortextg/Dev/bgs/Wallpaper-Bank/Lofi-Desktop-Man-Studying.png
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Received a request: unload all
[LOG] Unloading target /home/sortextg/Dev/bgs/Wallpaper-Bank/Lofi-Desktop-Man-Studying.png, preload path /run/user/1000/.hyprpaper_GqKFmi
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 4
[LOG] Received a request: preload /home/sortextg/Dev/bgs/Wallpaper-Bank/Anime-Girl4.png
[CRITICAL] Failed to read image /home/sortextg/Dev/bgs/Wallpaper-Bank/Anime-Girl4.png because of:
out of memory

Did'nt test with valgrind btw, maybe another time with a simpler script.

This is with version '0.7.0-1' from the arch repo