Skip to content

free() invalid size when setting wallpaper to HDMI connected display #375

Description

@aliqut

Distro: OpenSUSE Tumbleweed

hyprpaper crashes with the following error message:

DEBUG ]: Welcome to hyprpaper!
built from commit  ()
DEBUG ]: Found 2 output(s)
free(): invalid size
[1]    18160 IOT instruction (core dumped)  hyprpaper

This only happens when I try to set a wallpaper on HDMI-A-1, it works fine if the wallpaper is only applied to eDP-1. Not sure how to troubleshoot this.

Some relevant configs/command outputs below:

hyprland.lua monitor config:

hl.monitor({
	output = "HDMI-A-1",
	mode = "1920x1080@120",
	position = "1920x0",
	scale = 1,
})

hl.monitor({
	output = "eDP-1",
	mode = "1920x1080@144",
	position = "0x0",
	scale = 1,
})

hyprpaper.conf:

wallpaper {
    monitor = eDP-1
    path = /path/to/image
    fit_mode = cover
}

wallpaper {
    monitor = HDMI-A-1
    path = /path/to/image
    fit_mode = cover
}

splash = false
ipc = true

hyprctl monitors all:

Monitor HDMI-A-1 (ID 0):
	1920x1080@120.00000 at 1920x0
	description: Philips Consumer Electronics Company PHL24E1N1100A UHB2602014927
	make: Philips Consumer Electronics Company
	model: PHL24E1N1100A
	physical size (mm): 530x300
	serial: UHB2602014927DEBUG ]: Welcome to hyprpaper!
built from commit  ()
DEBUG ]: Found 2 output(s)
free(): invalid size
[1]    18160 IOT instruction (core dumped)  hyprpaper
	active workspace: 3 (3)
	special workspace: 0 ()
	reserved: 0 26 0 0
	scale: 1.00
	transform: 0
	focused: yes
	dpmsStatus: 1
	vrr: false
	solitary: 0
	solitaryBlockedBy: windowed mode,missing candidate
	activelyTearing: false
	tearingBlockedBy: next frame is not torn,missing candidate
	directScanoutTo: 0
	directScanoutBlockedBy: user settings,missing candidate
	disabled: false
	currentFormat: XRGB8888
	mirrorOf: none
	availableModes: 1920x1080@60.00Hz 1920x1080@120.00Hz 1920x1080@100.00Hz 1920x1080@74.97Hz 1920x1080@59.94Hz 1920x1080@50.00Hz 1680x1050@59.95Hz 1280x1024@75.03Hz 1280x1024@60.02Hz 1440x900@59.89Hz 1280x720@60.00Hz 1280x720@59.94Hz 1280x720@50.00Hz 1024x768@75.03Hz 1024x768@70.07Hz 1024x768@60.00Hz 800x600@75.00Hz 800x600@72.19Hz 800x600@60.32Hz 800x600@56.25Hz 720x576@50.00Hz 720x480@59.94Hz 640x480@75.00Hz 640x480@72.81Hz 640x480@59.94Hz 640x480@59.93Hz 
	colorManagementPreset: srgb
	sdrBrightness: 1.00
	sdrSaturation: 1.00
	sdrMinLuminance: 0.20
	sdrMaxLuminance: 80
	hardwareCursorsInUse: false

Monitor eDP-1 (ID 1):
	1920x1080@143.99899 at 0x0
	description: BOE 0x084D
	make: BOE
	model: 0x084D
	physical size (mm): 340x190
	serial: 
	active workspace: 10 (10)
	special workspace: 0 ()
	reserved: 0 26 0 0
	scale: 1.00
	transform: 0
	focused: no
	dpmsStatus: 1
	vrr: true
	solitary: 0
	solitaryBlockedBy: windowed mode,missing candidate
	activelyTearing: false
	tearingBlockedBy: next frame is not torn,missing candidate
	directScanoutTo: 0
	directScanoutBlockedBy: user settings,missing candidate
	disabled: false
	currentFormat: XRGB8888
	mirrorOf: none
	availableModes: 1920x1080@144.00Hz 
	colorManagementPreset: srgb
	sdrBrightness: 1.00
	sdrSaturation: 1.00
	sdrMinLuminance: 0.20
	sdrMaxLuminance: 80
	hardwareCursorsInUse: false


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions