Skip to content

caffeine-ng segmentation faults after some time #364077

@Kaukov

Description

@Kaukov

Describe the bug

I'm using NixOS 24.11 with AwesomeWM, XScreenSaver and xss-lock. I've had this setup on all my previous distributions. I use caffeine-ng to keep the screensaver from activating when watching videos or playing games.

Using the stable version of awesome, xscreensaver, xss-lock and caffeine-ng, caffeine will segfault after some time.

Doesn't matter if xscreensaver and xss-lock are defined as services or just installed as system packages and invoked by the user on session startup. caffeine will always segfault after some random period of time.

I tried with kernels 6.11 and 6.12 - didn't affect behavior.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install caffeine-ng, xscreensaver, xss-lock and use them
  2. Wait for caffeine to segfault
  3. ...

Expected behavior

caffeine remains running forever

Screenshots

Additional context

A snippet of the last logged lines when I run caffeine in the foreground:

2693
2700
3138
2693
2700
3138
2693
2700
3138
2693
2700
3138
2693
2700
3138
xscreensaver-command: already inactive, resetting activity time

2693
2700
3138
2693
2700
3138
2693
2700
3138
2693
2700
3138
Segmentation fault (core dumped)

Metadata

~ > nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.12.3, NixOS, 24.11 (Vicuna), 24.11.710486.4dc2fc4e62db`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.10`
 - channels(root): `"nixos-24.11"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Notify maintainers


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions