Skip to content

loading svg: invalid size #940

@tjc0726

Description

@tjc0726

Regression?

No

Hyprlock Info and Version

Hyprlock version v0.9.2

Hyprlock config
# USER-PHOTO
image {
    monitor =
    path = /system-users.svg
    size = 150
    position = -105, 30
    halign = center
    valign = center
}

Compositor Info and Version

System/Version info
Hyprland 0.53.0 built from branch v0.53.0 at commit ea444c35bb23b6e34505ab6753e069de7801cc25 clean (version: bump to 0.53.0).
Date: Mon Dec 29 15:21:36 2025
Tag: v0.53.0, commits: 6756

Libraries:
Hyprgraphics: built against 0.5.0, system has 0.5.0
Hyprutils: built against 0.11.0, system has 0.11.0
Hyprcursor: built against 0.1.13, system has 0.1.13
Hyprlang: built against 0.6.7, system has 0.6.7
Aquamarine: built against 0.10.0, system has 0.10.0

Version ABI string: ea444c35bb23b6e34505ab6753e069de7801cc25_aq_0.10_hu_0.11_hg_0.5_hc_0.1_hlg_0.6
no flags were set


System Information:
System name: Linux
Node name: laptop-arch
Release: 6.18.2-arch2-1
Version: #1 SMP PREEMPT_DYNAMIC Thu, 18 Dec 2025 18:00:18 +0000

Libraries:
Hyprgraphics: built against 0.5.0, system has 0.5.0
Hyprutils: built against 0.11.0, system has 0.11.0
Hyprcursor: built against 0.1.13, system has 0.1.13
Hyprlang: built against 0.6.7, system has 0.6.7
Aquamarine: built against 0.10.0, system has 0.10.0



GPU information: 
64:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] Strix [Radeon 880M / 890M] [1002:150e] (rev c4)


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:

Explicit sync: supported
GL ver: 3.2
Backend: drm

Monitor info:
	Panel eDP-1: 2880x1800, eDP-1 Tianma Microelectronics Ltd. TL140ADXP26  -> backend drm
		explicit ✔️
		edid:
			hdr ❌
			chroma ✔️
			bt2020 ❌
		vrr capable ✔️
		non-desktop ❌

Description

not showing svg and this on the console log

[ERR] Image /system-users.svg could not be loaded: loading svg: invalid size
[ERR] renderImage: No cairo surface!

How to reproduce

download svg from

svg file

with commit id 0e955f4f502c221fd5172f9e79f043891857373f

and place it in /system-users.svg

run hyprlock

Crash reports, logs, images, videos

$ hyprlock          
Hyprlock version v0.9.2
[LOG]   | got iface: wl_seat v9
[LOG]    > Bound to wl_seat v9
[LOG]   | got iface: wl_data_device_manager v3
[LOG]   | got iface: wl_compositor v6
[LOG]    > Bound to wl_compositor v6
[LOG]   | got iface: wl_subcompositor v1
[LOG]   | got iface: wl_shm v1
[LOG]    > Bound to wl_shm v1
[LOG]   | got iface: wp_viewporter v1
[LOG]    > Bound to wp_viewporter v1
[LOG]   | got iface: wp_tearing_control_manager_v1 v1
[LOG]   | got iface: wp_fractional_scale_manager_v1 v1
[LOG]    > Bound to wp_fractional_scale_manager_v1 v1
[LOG]   | got iface: zxdg_output_manager_v1 v3
[LOG]   | got iface: wp_cursor_shape_manager_v1 v2
[LOG]    > Bound to wp_cursor_shape_manager_v1 v2
[LOG]   | got iface: zwp_idle_inhibit_manager_v1 v1
[LOG]   | got iface: zwp_relative_pointer_manager_v1 v1
[LOG]   | got iface: zxdg_decoration_manager_v1 v1
[LOG]   | got iface: wp_alpha_modifier_v1 v1
[LOG]   | got iface: zwlr_gamma_control_manager_v1 v1
[LOG]   | got iface: ext_foreign_toplevel_list_v1 v1
[LOG]   | got iface: zwp_pointer_gestures_v1 v3
[LOG]   | got iface: zwlr_foreign_toplevel_manager_v1 v3
[LOG]   | got iface: zwp_keyboard_shortcuts_inhibit_manager_v1 v1
[LOG]   | got iface: zwp_text_input_manager_v1 v1
[LOG]   | got iface: zwp_text_input_manager_v3 v1
[LOG]   | got iface: zwp_pointer_constraints_v1 v1
[LOG]   | got iface: zwlr_output_power_manager_v1 v1
[LOG]   | got iface: xdg_activation_v1 v1
[LOG]   | got iface: ext_idle_notifier_v1 v2
[LOG]   | got iface: hyprland_lock_notifier_v1 v1
[LOG]   | got iface: ext_session_lock_manager_v1 v1
[LOG]    > Bound to ext_session_lock_manager_v1 v1
[LOG]   | got iface: zwp_input_method_manager_v2 v1
[LOG]   | got iface: zwp_virtual_keyboard_manager_v1 v1
[LOG]   | got iface: zwlr_virtual_pointer_manager_v1 v2
[LOG]   | got iface: zwlr_output_manager_v1 v4
[LOG]   | got iface: org_kde_kwin_server_decoration_manager v1
[LOG]   | got iface: hyprland_focus_grab_manager_v1 v1
[LOG]   | got iface: zwp_tablet_manager_v2 v1
[LOG]   | got iface: zwlr_layer_shell_v1 v5
[LOG]   | got iface: wp_presentation v2
[LOG]   | got iface: xdg_wm_base v7
[LOG]   | got iface: zwlr_data_control_manager_v1 v2
[LOG]   | got iface: zwp_primary_selection_device_manager_v1 v1
[LOG]   | got iface: xwayland_shell_v1 v1
[LOG]   | got iface: zwlr_screencopy_manager_v1 v3
[LOG]    > Bound to zwlr_screencopy_manager_v1 v3
[LOG]   | got iface: hyprland_toplevel_export_manager_v1 v2
[LOG]   | got iface: hyprland_toplevel_mapping_manager_v1 v1
[LOG]   | got iface: hyprland_global_shortcuts_manager_v1 v1
[LOG]   | got iface: xdg_wm_dialog_v1 v1
[LOG]   | got iface: wp_single_pixel_buffer_manager_v1 v1
[LOG]   | got iface: wp_security_context_manager_v1 v1
[LOG]   | got iface: hyprland_ctm_control_manager_v1 v2
[LOG]   | got iface: hyprland_surface_manager_v1 v2
[LOG]   | got iface: wp_content_type_manager_v1 v1
[LOG]   | got iface: xdg_toplevel_tag_manager_v1 v1
[LOG]   | got iface: xdg_system_bell_v1 v1
[LOG]   | got iface: ext_workspace_manager_v1 v1
[LOG]   | got iface: ext_data_control_manager_v1 v1
[LOG]   | got iface: wp_pointer_warp_v1 v1
[LOG]   | got iface: wp_fifo_manager_v1 v1
[LOG]   | got iface: wp_commit_timing_manager_v1 v1
[LOG]   | got iface: wp_color_manager_v1 v1
[LOG]   | got iface: wp_drm_lease_device_v1 v1
[LOG]   | got iface: wp_linux_drm_syncobj_manager_v1 v1
[LOG]   | got iface: wl_drm v2
[LOG]   | got iface: zwp_linux_dmabuf_v1 v5
[LOG]    > Bound to zwp_linux_dmabuf_v1 v5
[LOG]   | got iface: wl_output v4
[LOG]    > Bound to wl_output v4
[LOG] Exposed seat name: Hyprland
[LOG] [core] dmabufFeedbackMainDevice
[LOG] output eDP-1 name eDP-1
[LOG] output 63 description Tianma Microelectronics Ltd. TL140ADXP26  (eDP-1)
[LOG] output 63 make Tianma Microelectronics Ltd. model TL140ADXP26
[LOG] output 63 done
[LOG] Running on Hyprland
[ERR] Image /system-users.svg could not be loaded: loading svg: invalid size
[ERR] renderImage: No cairo surface!
[LOG] eglQueryDmaBufModifiersEXT found 8 mods
[LOG] [bo] has 3 plane(s)
[LOG] [bo] chose modifier 200000010437b04
[LOG] Got dma frame with size [Vector2D: x: 2880, y: 1800]
[LOG] Resources gathered after 9 milliseconds
[LOG] Locking session
[LOG] Starting fade in
[LOG] Got fractional scale: 200.0%
[LOG] configure with serial 34255
[LOG] Configuring surface for logical [Vector2D: x: 1440, y: 900] and pixel [Vector2D: x: 2880, y: 1800]
[LOG] onLockLocked called
[ERR] Invalid key down event (stray release event?)
[LOG] Authenticating
[LOG] PAM_PROMPT: Password: 
[LOG] auth: authenticated for hyprlock
[LOG] Unlocking session
[LOG] Unlocked, exiting!
[LOG] Reached the end, exiting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions