grim(wayland): Failed to create image. #8

Closed
opened 2025-12-28 23:18:50 +01:00 by adam · 1 comment
Owner

Originally created by @ryan4yin on GitHub (Jul 30, 2023).

grim works fine at v0.1.1, but will report an error on the latest commit: 81a41049:

› grim 
*** BUG ***
In create_bits_image_internal: The expression bits == NULL || (rowstride_bytes % sizeof (uint32_t)) == 0 was false
Set a breakpoint on '_pixman_log_error' to debug

Failed to create image

Related:

Originally created by @ryan4yin on GitHub (Jul 30, 2023). `grim` works fine at [v0.1.1](https://github.com/ryan4yin/nix-config/releases/tag/v0.1.1), but will report an error on the latest commit: [81a41049](https://github.com/ryan4yin/nix-config/tree/81a41049732a161ae4d3aed366115ce5dd7a0abf): ``` › grim *** BUG *** In create_bits_image_internal: The expression bits == NULL || (rowstride_bytes % sizeof (uint32_t)) == 0 was false Set a breakpoint on '_pixman_log_error' to debug Failed to create image ``` Related: - https://www.reddit.com/r/hyprland/comments/14aqixm/i_cant_take_screen_shot_on_my_hyprland/
adam added the bug label 2025-12-28 23:18:50 +01:00
adam closed this issue 2025-12-28 23:18:50 +01:00
Author
Owner

@ryan4yin commented on GitHub (Jul 30, 2023):

Fixed by 26da19ba38.

The problem may be caused by inconsistent nixpkgs commit, hyprland's flake follows github:NixOS/nixpkgs/nixos-unstable, but I'm on the nixpkgs's stable branch.

@ryan4yin commented on GitHub (Jul 30, 2023): Fixed by https://github.com/ryan4yin/nix-config/commit/26da19ba38f1f2ee957f6861edc9be1d3801f9b4. The problem may be caused by inconsistent nixpkgs commit, hyprland's flake follows `github:NixOS/nixpkgs/nixos-unstable`, but I'm on the nixpkgs's stable branch.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/nix-config#8