Repository navigation
Open
Labels
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Description
Describe the bug
After the new version from Discord (0.0.15) i'm not able to launch discord from rofi, as its just chrasing
To Reproduce
- rofi -show run
- Pick Discord in the list
- Starting to start, and Crashing.
Expected behavior
It should spawn discord as normal, and not crash
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.
- Dump from running discord from rofi. (rofi -show run &> wtf_rofi then choosing Discord.)
│ File: wtf_rofi
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ Discord 0.0.15
2 │ (node:2818) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
3 │ Starting app.
4 │ Starting updater.
5 │ [Modules] Modules initializing
6 │ [Modules] Distribution: remote
7 │ [Modules] Host updates: enabled
8 │ [Modules] Module updates: enabled
9 │ [Modules] Module install path: /home/skandix/.config/discord/0.0.15/modules
10 │ [Modules] Module installed file path: /home/skandix/.config/discord/0.0.15/modules/installed.json
11 │ [Modules] Module download path: /home/skandix/.config/discord/0.0.15/modules/pending
12 │ [Modules] No updates to install
13 │ [Modules] Checking for host updates.
14 │ [Modules] Host is up to date.
15 │ [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
16 │ [Modules] No module updates available.
17 │
18 │ (Discord:2818): LIBDBUSMENU-GTK-WARNING **: 15:50:34.001: Unable to create pixbuf data stream: Image type “png” is not supported
19 │
20 │ (Discord:2818): LIBDBUSMENU-GTK-WARNING **: 15:50:34.001: Unable to create pixbuf data stream: Image type “png” is not supported
21 │
22 │ (Discord:2818): Gtk-WARNING **: 15:50:34.127: Could not load a pixbuf from icon theme.
23 │ This may indicate that pixbuf loaders or the mime database could not be found.
24 │ **
25 │ Gtk:ERROR:../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /run/current-system/sw/share/icons/Adwaita/16x16/status/image-missing.png: Unrecognised image file format (gdk-pixbuf-error-quark, 3)
26 │ Bail out! Gtk:ERROR:../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /run/current-system/sw/share/icons/Adwaita/16x16/status/image-missing.png: Unrecognised image file format (gdk-pixbuf-error-quark, 3)
27 │ Cannot upload crash dump: cannot exec /usr/bin/wget
28 │
29 │ Unexpected crash report id length
30 │ Failed to get crash dump id.
31 │ Report Id:
Notify maintainers
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
- system: `"x86_64-linux"`
- host os: `Linux 5.4.119, NixOS, 20.09.4204.76ed24ceab9 (Nightingale)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.3.11`
- channels(skandix): `"home-manager-20.09, nixos-hardware"`
- channels(root): `"home-manager-20.09, nixos-20.09.4204.76ed24ceab9, nixos-hardware"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:Reacted by crypto_monad
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Activity
SCOTT-HAMILTON commentedon May 30, 2021
Your discord seems to be missing libpng, could you give the output of this command :
We should also verify that this file is indeed a png file :
skandix commentedon May 30, 2021
ldd "$(readlink -f $(which Discord)|rev|cut -d/ -f2-|rev)/.Discord-wrapped"file /run/current-system/sw/share/icons/Adwaita/16x16/status/image-missing.pngfutile commentedon May 30, 2021
Does this only happen with rofi? Or also if you, e.g., launch discord from a terminal?
Found these issues that look similar, might or might not be related:
image-missing.pngin this case?skandix commentedon May 31, 2021
It only happens through rofi, works fine when launching it through the terminal.
it's after the latest discord update this started to happen, never had this kind of error with rofi from before.
ls -al /run/current-system/sw/share/icons/Adwaita/16x16/status/image-missing.png-r--r--r-- 7 root root 565 Jan 1 1970 /run/current-system/sw/share/icons/Adwaita/16x16/status/image-missing.pngfutile commentedon May 31, 2021
That seems to be the same on my system, and I just did a
nix run nixpkgs/nixos-20.09#rofi --show runand started discord, which also worked fine.SCOTT-HAMILTON commentedon May 31, 2021
Have you figured out wether this was due to a recent rofi update or a discord update ? And if so which update introduced this issue.
Omoroca13 commentedon Jun 10, 2021
I think the reason for this is #110805
I have something similar with steam were the tray icon shows only the unknown icon instead of the steam icon.
if I try with
nix-shell -p rofi -I nixpkgs=channel:nixos-20.09
it works
so its probably something with wrapping rofi with gdk-pixbuff
no clue how to fix this though
wchresta commentedon Aug 23, 2021
Ran into this same issue on Ubuntu + nix (I can't run any gtk applications through rofi that have not been installed through nix).
The problem for me is that rofi sets
$GDK_PIXBUF_MODULE_FILEfor all started programs instead of just the ones coming through nix. This makes other locally installed progams use the loaders.cache in nix-store instead of my system loaders.cache.My dirty fix is to use
overrideAttrsto get a rofi derivation without gdk-pixbuf in buildInputs:This removes
export GDK_PIXBUF_MODULE_FILEfrom rofi wrapper and everything works again (for me).rvalieris commentedon Sep 28, 2021
same issue here launching firefox/chromium (from ubuntu) with rofi (from nixpkgs) makes the browser crash when I try to open a file picker.
@wchresta workaround solves the issue.
stale commentedon Apr 19, 2022
I marked this as stale due to inactivity. → More info