Skip to content

Buffer overflow when max_wallpapers > ~70 #5

@Jack02134x

Description

@Jack02134x

In the current version of hellpaper max_wallpapers above ~70 in config causes hellpaper to abort with:


    *** buffer overflow detected ***: terminated
    fish: Job 1, 'hellpaper ...' terminated by signal SIGABRT (Abort)

Previously I was able to set max_wallpapers = 500 without issues.

My hellpaper config:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Hellpaper Configuration File
# Lines starting with # or ; are comments.

[Theme]
# Colors are defined as R, G, B, A (0-255)
bg = 10, 10, 15, 255
idle = 30, 30, 46, 255
hover = 49, 50, 68, 255
border = 203, 166, 247, 255
ripple = 245, 194, 231, 255
overlay = 10, 10, 15, 200
text = 202, 212, 241, 255

[Settings]
# Width
width = 1280
# Height
height = 720
# The maximum number of wallpapers to load from the directory.
max_wallpapers = 70
# The base size of the square thumbnail images.
base_thumb_size = 150
# The base padding between thumbnails.
base_padding = 15
# The thickness of the glowing border on hover.
border_thickness_bloom = 3.0
# The number of threads to use for loading thumbnail images.
max_threads = 8
# The speed of all layout and hover animations. Higher is faster.
anim_speed = 20.0
# The number of particles to emit on selection.
particle_count = 50
# The duration of the Ken Burns (pan/zoom) effect in preview mode.
ken_burns_duration = 15.0
# The maximum frames per second.
max_fps = 60

[Effects]
# Available effects: none, glitch, blur, pixelate, shake, collapse, reveal
startup_effect = none
keypress_effect = none
exit_effect = none

Script that manages the wallpaper changing:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

WALLPAPER_DIR=/home/jack/wallpapers/
SELECTED_WALL=$(hellpaper "$WALLPAPER_DIR")

if [ -z "$SELECTED_WALL" ]; then
    echo "No wallpaper selected."
    exit 1
fi

matugen --show-colors -t scheme-fidelity image "$SELECTED_WALL" & cp "$SELECTED_WALL" ~/.config/hellpaper/wall & swww img "$SELECTED_WALL" --transition-type any


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions