hyprwm / hyprlock

Hyprland's GPU-accelerated screen locking utility
BSD 3-Clause "New" or "Revised" License
794 stars 59 forks source link

Log is saying Pango markup parsing failed, but not really #444

Open Linguiniotta opened 3 months ago

Linguiniotta commented 3 months ago

Regression?

No

Hyprlock Info and Version

extra/hyprlock 0.4.1-1

Hyprlock config ```sh general { grace = 3 disable_loading_bar = true no_fade_in = true no_fade_out = true hide_cursor = true ignore_empty_input = true } background { monitor = path = screenshot } # Music Player - Image image { monitor = path = /tmp/cover-lock.png size = 84 rounding = 10 border_size = 0 reload_time = 1 # reload_cmd = ~/.scripts/playerctlock.sh --arturl position = 500, 284 halign = left valign = bottom } # Music Player - Title label { monitor = text = cmd[update:1000] ~/.scripts/playerctlock.sh --title position = 610, 340 halign = left valign = bottom } # Music Player - Artist label { monitor = text = cmd[update:1000] ~/.scripts/playerctlock.sh --artist position = 610, 320 halign = left valign = bottom } # Music Player - Album label { monitor = text = cmd[update:1000] ~/.scripts/playerctlock.sh --album position = 610, 300 halign = left valign = bottom } # Greeting label { monitor = text = Welcome back, $USER font_size = 20 font_family = Inter position = 0, 150 halign = center valign = center } # Password Input input-field { monitor = size = 250, 40 dots_center = true placeholder_text = Input Password... position = 0, 250 halign = center valign = center } ```

Compositor Info and Version

System/Version info ```sh Hyprland, built from branch at commit 918d8340afd652b011b937d29d5eea0be08467f5 (flake.lock: update). Date: Tue Jun 25 12:06:02 2024 Tag: v0.41.2, commits: 4886 flags: (if any) System Information: System name: Linux Node name: thulium Release: 6.6.40-1-lts Version: #1 SMP PREEMPT_DYNAMIC Mon, 15 Jul 2024 09:23:08 +0000 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 630 [8086:5912] (rev 04) (prog-if 00 [VGA controller]) 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: ```

Description

The config runs fine, the script is ran, the text is displayed, however I see the following in the log/stdout:

[ERR] Pango markup parsing for Me & You Together Song failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &
[LOG] Framebuffer created, status 36053
Full output of hyprlock ```sh [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] | 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 v1 [LOG] > Bound to wp_cursor_shape_manager_v1 v1 [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_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 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 v1 [LOG] | got iface: xdg_wm_base v6 [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: wl_drm v2 [LOG] | got iface: zwp_linux_dmabuf_v1 v5 [LOG] > Bound to zwp_linux_dmabuf_v1 v5 [LOG] | got iface: hyprland_toplevel_export_manager_v1 v2 [LOG] | got iface: zwp_text_input_manager_v1 v1 [LOG] | got iface: hyprland_global_shortcuts_manager_v1 v1 [LOG] | got iface: zwlr_screencopy_manager_v1 v3 [LOG] > Bound to zwlr_screencopy_manager_v1 v3 [LOG] | got iface: wp_drm_lease_device_v1 v1 [LOG] | got iface: wl_output v4 [LOG] > Bound to wl_output v4 [LOG] [core] dmabufFeedbackMainDevice [LOG] output 46 make Dell Inc. model DELL E170S [LOG] output 46 name DP-1 [LOG] output 46 description Dell Inc. DELL E170S P421N9770DXL (DP-1 via VGA) [LOG] output 46 done [LOG] Running on Hyprland [LOG] Locking session [LOG] eglQueryDmaBufModifiersEXT found 4 mods [LOG] bo chose modifier 0 [LOG] onLockLocked called [LOG] Got fractional scale: 1 [LOG] Got fractional scale: 1 [LOG] configure with serial 13277 [LOG] Configuring surface for logical [Vector2D: x: 1280, y: 1024] and pixel [Vector2D: x: 1280, y: 1024] [LOG] Got fractional scale: 1 [LOG] configure with serial 13277 [LOG] Configuring surface for logical [Vector2D: x: 1280, y: 1024] and pixel [Vector2D: x: 1280, y: 1024] [LOG] Got dma frame with size [Vector2D: x: 1280, y: 1024] [ERR] Invalid key down event (stray release event?) [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Me & You Together Song failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Me & You Together Song failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Me & You Together Song failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Me & You Together Song failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Me & You Together Song failed: Erro r on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Me & You Together Song failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Me & You Together Song failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Authenticating [LOG] PAM_PROMPT: Password: [LOG] auth: authenticated for hyprlock [LOG] Unlocking session [LOG] Unlocked, exiting! [LOG] Reached the end, exiting ```

The script in the config basically does the following:

playerctl metadata --format "{{ xesam:title }}" 2> /dev/null

Running the script manually gives me the following:

title=$(script --title)
echo "The title is [$title]"

>>The title is: [Me & You Together Song]

How to reproduce

Tried it with the following song titles, played for about 5 seconds:

hyprlock stdout ```sh 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] | 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 v1 [LOG] > Bound to wp_cursor_shape_manager_v1 v1 [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_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 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 v1 [LOG] | got iface: xdg_wm_base v6 [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: wl_drm v2 [LOG] | got iface: zwp_linux_dmabuf_v1 v5 [LOG] > Bound to zwp_linux_dmabuf_v1 v5 [LOG] | got iface: hyprland_toplevel_export_manager_v1 v2 [LOG] | got iface: zwp_text_input_manager_v1 v1 [LOG] | got iface: hyprland_global_shortcuts_manager_v1 v1 [LOG] | got iface: zwlr_screencopy_manager_v1 v3 [LOG] > Bound to zwlr_screencopy_manager_v1 v3 [LOG] | got iface: wp_drm_lease_device_v1 v1 [LOG] | got iface: wl_output v4 [LOG] > Bound to wl_output v4 [LOG] [core] dmabufFeedbackMainDevice [LOG] output 46 make Dell Inc. model DELL E170S [LOG] output 46 name DP-1 [LOG] output 46 description Dell Inc. DELL E170S P421N9770DXL (DP-1 via VGA) [LOG] output 46 done [LOG] Running on Hyprland [LOG] Locking session [LOG] eglQueryDmaBufModifiersEXT found 4 mods [LOG] bo chose modifier 0 [LOG] onLockLocked called [LOG] Got fractional scale: 1 [LOG] Got fractional scale: 1 [LOG] configure with serial 28833 [LOG] Configuring surface for logical [Vector2D: x: 1280, y: 1024] and pixel [Vector2D: x: 1280, y: 1024] [LOG] Got fractional scale: 1 [LOG] configure with serial 28833 [LOG] Configuring surface for logical [Vector2D: x: 1280, y: 1024] and pixel [Vector2D: x: 1280, y: 1024] [LOG] Got dma frame with size [Vector2D: x: 1280, y: 1024] [ERR] Invalid key down event (stray release event?) [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Me & You Together Song failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Me & You Together Song failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Me & You Together Song failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Me & You Together Song failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Young & Dumb failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Young & Dumb failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Young & Dumb failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Summer Bummer (feat. A$AP Rocky & Playboi Carti) failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Summer Bummer (feat. A$AP Rocky & Playboi Carti) failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Summer Bummer (feat. A$AP Rocky & Playboi Carti) failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Summer Bummer (feat. A$AP Rocky & Playboi Carti) failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Carrie & Lowell failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [ERR] Pango markup parsing for Carrie & Lowell failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Carrie & Lowell failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [ERR] Pango markup parsing for Carrie & Lowell failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Carrie & Lowell failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [ERR] Pango markup parsing for Carrie & Lowell failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Carrie & Lowell failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [ERR] Pango markup parsing for Carrie & Lowell failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Carrie & Lowell failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [ERR] Pango markup parsing for Carrie & Lowell failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Angel of Small Death & the Codeine Scene failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Angel of Small Death & the Codeine Scene failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Angel of Small Death & the Codeine Scene failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [ERR] Pango markup parsing for Angel of Small Death & the Codeine Scene failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Angel of Small Death & the Codeine Scene failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Angel of Small Death & the Codeine Scene failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] Authenticating [LOG] Framebuffer created, status 36053 [ERR] Pango markup parsing for Angel of Small Death & the Codeine Scene failed: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as & [LOG] PAM_PROMPT: Password: [LOG] auth: authenticated for hyprlock [LOG] Unlocking session [LOG] Unlocked, exiting! [LOG] Reached the end, exiting ```

Crash reports, logs, images, videos

No response

PaideiaDilemma commented 3 months ago

Yeah. We should probably add an option to ignore pango markup. Otherwise you would need to write a script that escapes all special characters used by pango markup (like "&").

But it still renders correctly right? It is just an error log message I think.

Linguiniotta commented 3 months ago

Yep, just the logs.