NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.21k stars 14.21k forks source link

pencil: crash startup sway/wayland #187298

Open asbachb opened 2 years ago

asbachb commented 2 years ago

Steps To Reproduce

nix-shell -p pencil --run pencil
Hardware acceleration disabled for Linux.
Background web-printer started.
Shortcut main service started.
Shortcut: Super+F12 registered
[40611:0818/185309.698119:FATAL:gpu_data_manager_impl_private.cc(894)] The display compositor is frequently crashing. Goodbye.
/tmp/nix-shell-38679-0/rc: line 3: 40611 Trace/breakpoint trap   (core dumped) pencil

Additional context

I'm using sway/wayland.

Notify maintainers

@bjornfor @prikhi @mrVanDalo

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.19.0, NixOS, 22.11 (Raccoon), 22.11pre400274.6512b21eabb`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.10.3`
 - channels(asbachb): `""`
 - channels(root): `"nixos, nixos-hardware"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
bjornfor commented 2 years ago

I can reproduce on NixOS 22.05 with GNOME (Wayland):

$ nix-shell -p pencil --run pencil
Hardware acceleration disabled for Linux.
Background web-printer started.
Shortcut main service started.
Shortcut: Super+F12 registered
[3964758:0818/173238.264068:FATAL:gpu_data_manager_impl_private.cc(894)] The display compositor is frequently crashing. Goodbye.
/tmp/nix-shell-3962786-0/rc: line 3: 3964758 Trace/breakpoint trap   (core dumped) pencil
asbachb commented 2 years ago

Upstream bug: https://github.com/evolus/pencil/issues/724

Workaround: nix-shell -p pencil --run 'pencil --disable-seccomp-filter-sandbox'

asbachb commented 2 years ago

@bjornfor Should we mark the package as broken or add the workaround to the package?

bjornfor commented 2 years ago

I'm not sure. I don't know the consequences of that option.

I searched a bit and it seems like a common issue in electron apps using newer glibc.

lucasew commented 2 years ago

I can confirm this bug on i3wm, it's not specific to sway or Wayland based environments.

jozefcifre commented 1 year ago

Upstream bug: evolus/pencil#724

Workaround: nix-shell -p pencil --run 'pencil --disable-seccomp-filter-sandbox'

https://github.com/evolus/pencil/issues/781#issue-1889321828