Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segmentation fault 0ad #312804

Closed
biscotty666 opened this issue May 19, 2024 · 5 comments
Closed

segmentation fault 0ad #312804

biscotty666 opened this issue May 19, 2024 · 5 comments

Comments

@biscotty666
Copy link

I add these packages (flakes and home-manager):

 zeroadPackages.zeroad-data
 zeroadPackages.zeroad-unwrapped

Running 0ad gives:

[1]    708401 segmentation fault (core dumped)  0ad

Details:

flake.nix

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    home-manager.url = "github:nix-community/home-manager/master";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";
};

 homeConfigurations."biscotty" = home-manager.lib.homeManagerConfiguration {
        inherit pkgs;
        extraSpecialArgs = { inherit inputs; };
        modules = [
          ./home.nix
        ];
      };
    };

home.nix imports

{ config, pkgs, ... }:

{
  home.packages = with pkgs; [
    zeroadPackages.zeroad-data
    zeroadPackages.zeroad-unwrapped
];
}
@RossComputerGuy
Copy link
Contributor

RossComputerGuy commented May 19, 2024

What CPU architecture and OS are you on?

@biscotty666
Copy link
Author

CPU is Intel i7. OS is NixOS.

@iSneeze
Copy link

iSneeze commented Jun 6, 2024

getting the same error with the zeroad package, on NixOS 24.11.20240531.57610d2 (Vicuña) x86_64, Linux 6.9.2-zen1, running on a Wayland compositor (Hyprland)

@RossComputerGuy
Copy link
Contributor

Interesting, this issue does not occur on NixOS 24.11 on M1 Pro. Might be an x86_64-linux specific issue? Maybe try the zeroadPackages.zeroad package instead of the unwrapped + data one?

@pluiedev
Copy link
Contributor

pluiedev commented Jun 6, 2024

0ad requires a wrapper to run correctly, as it needs the ZEROAD_ROOTDIR environment variable to be set. There really shouldn't be a reason for running unwrapped packages directly like that, and a crash is to be expected.

Simply use the wrapped zeroad package, and it should work just fine (at least, it worked fine on my machine)

@pluiedev pluiedev closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants