Skip to content

Tangram won't work properly due to bwrap issues #197085

@akiross

Description

@akiross

Describe the bug

After starting a nix shell with Tangram, I'm able to run it, but it won't work properly: bwrap will error and no pages will be loaded. Please note that the application does start, but when an URL is inserted, an error is written on the console and it will not proceed loading the page; the canvas remains empty instead of loading a page. The error is the following:

bwrap: Can't mkdir parents for /run/current-system/sw/share/fonts: No such file or directory

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix shell nixpkgs#tangram
  2. re.sonny.Tangram
  3. in the address bar go to e.g. github.com
  4. the error appears on the terminal log

Expected behavior

Pages are loaded, no bwrap error is printed.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Using flatpak, tangram works as expected.

Notify maintainers

@austinbutler

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.15.74, NixOS, 22.05 (Quokka), 22.05.20221020.44fc3cb`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.9.1`
 - channels(root): `"nixos-22.05"`
 - channels(akiross): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

I'm using flakes and this is the flake.lock for my nixos configuration, hoping it helps

$ cat /etc/nixos/flake.lock
{
  "nodes": {
    "nixos-hardware": {
      "locked": {
        "lastModified": 1665987993,
        "narHash": "sha256-MvlaIYTRiqefG4dzI5p6vVCfl+9V8A1cPniUjcn6Ngc=",
        "owner": "NixOS",
        "repo": "nixos-hardware",
        "rev": "0e6593630071440eb89cd97a52921497482b22c6",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "master",
        "repo": "nixos-hardware",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1666249138,
        "narHash": "sha256-CzK8NA8xEMKAhvHXB8UMODckcH97sZXm6lziKNWLv0M=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "44fc3cb097324c9f9f93313dd3f103e78d722968",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "nixos-22.05",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "nixos-hardware": "nixos-hardware",
        "nixpkgs": "nixpkgs"
      }
    }
  },
  "root": "root",
  "version": 7
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions