If yes, then you should try 1) strace brackets and notice what are last steps before crash and 2) gdb brackets, run, notice where it crashed and try to diagnose the problematic library
these paths will be fetched (0.05 MiB download, 0.28 MiB unpacked):
/nix/store/wqfv04xz2rpl2326ijghn1f2qgiyplb4-bash-interactive-4.4-p23-dev
copying path '/nix/store/wqfv04xz2rpl2326ijghn1f2qgiyplb4-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
[0616/203058:ERROR:browser_main_loop.cc(192)] GTK theme error: Unable to locate theme engine in module_path: "adwaita",
[0616/203058:ERROR:sandbox_linux.cc(130)] InitializeSandbox() called with multiple threads in process gpu-process
[0616/203209:ERROR:browser_main_loop.cc(187)] GTK icon error: Could not find the icon 'inode-directory'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
this is good news. So --pure disables all environment variables during run, it might one of those is problematic. I bet LD_LIBRARY_PATH or LD_PRELOAD but you should check that yourself
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LANG = "en_DE.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
The program ‘run’ is currently not installed. You can install it by typing:
nix-env -iA nixos.run
nix run -f '<nixpkgs>' -i brackets -c env error: unable to exec 'env': No such file or directory
yes, correct. You can do slightly faster by using the manual envvar binary search Given this is a very common issue, I’d like to have this “environment-git-bisect” as a tool… but we are not there yet
locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_DE.UTF-8
LC_CTYPE=“en_DE.UTF-8”
LC_NUMERIC=“en_DE.UTF-8”
LC_TIME=“en_DE.UTF-8”
LC_COLLATE=“en_DE.UTF-8”
LC_MONETARY=“en_DE.UTF-8”
LC_MESSAGES=“en_DE.UTF-8”
LC_PAPER=“en_DE.UTF-8”
LC_NAME=“en_DE.UTF-8”
LC_ADDRESS=“en_DE.UTF-8”
LC_TELEPHONE=“en_DE.UTF-8”
LC_MEASUREMENT=“en_DE.UTF-8”
LC_IDENTIFICATION=“en_DE.UTF-8”
LC_ALL=
sorry but still I would like to get some more hints.
nix-env -i brackets
warning: name collision in input Nix expressions, skipping '/home/ae/.nix-defexpr/channels_root/nixos'
warning: there are multiple derivations named 'brackets-1.9'; using the first one
installing 'brackets-1.9'
building '/nix/store/qq6bx1vfga215xbhq533398hc9x0nfgv-user-environment.drv'...
created 2198 symlinks in user environment
ls -lah $(which brackets ) lrwxrwxrwx 1 root root 69 Jan 1 1970 /home/ae/.nix-profile/bin/brackets -> /nix/store/cf2klajdda4brmlgvrzk275f3lnjgb58-brackets-1.9/bin/brackets
but
/run/current-system/sw/bin/nix run -f '<nixpkgs>' -i brackets --keep COLORFGBG -c brackets
/nix/store/cf2klajdda4brmlgvrzk275f3lnjgb58-brackets-1.9/bin/brackets: line 8: readlink: command not found
/nix/store/cf2klajdda4brmlgvrzk275f3lnjgb58-brackets-1.9/bin/brackets: line 10: dirname: command not found
/nix/store/cf2klajdda4brmlgvrzk275f3lnjgb58-brackets-1.9/bin/brackets: line 20: /Brackets: No such file or directory
which is the same result like without any var kept: nix run -f '<nixpkgs>' -i brackets -c brackets
Are there env variables which have to be provided or how to unterstand the resulting errors?