NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.58k stars 13.73k forks source link

unityhub: blank login screen makes it impossible to access editor #143823

Open benpence opened 2 years ago

benpence commented 2 years ago

Describe the bug

Trying to open the login window on a recent unityhub gives a blank white screen instead.

Not sure if it's a Unity issue or some weird state on my machine... just wanted to know if anyone else's unityhub is broken.

Steps To Reproduce

  1. Use recent (~2021-10-28) commit on unstable in configuration.nix to install unityhub package:

    { pkgs, options, ... }:
    let
      unstable = import <unstable> {
        config.allowUnfree = true;
      };
      # ...
    in {
      # ...
      environment.systemPackages = with pkgs; [
        # ...
        unstable.unityhub
      ];
    }
    $ sudo nixos-rebuild switch
    $ readlink -f $(which unityhub)
    /nix/store/rd18f1yc552wsbpqnfjhrviqmw173vl6-unityhub/bin/unityhub
  2. Run unityhub (process continues to live after printing these lines):

    $ unityhub
    Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
    Checking for update
    Found version 2.4.5 (url: UnityHub.AppImage)
    Downloading update from UnityHub.AppImage
    updater cache dir: /home/ben/.cache/unityhub-updater
    No cached update info available
    Error: Error: APPIMAGE env is not defined
        at newError (/nix/store/2njkbzasgj4bznk58azcv6jhdmb3p8zk-unityhub-extracted/resources/app.asar/node_modules/builder-util-runtime/out/index.js:212:17)
        at Object.task (/nix/store/2njkbzasgj4bznk58azcv6jhdmb3p8zk-unityhub-extracted/resources/app.asar/node_modules/electron-updater/out/AppImageUpdater.js:106:52)
        at AppImageUpdater.executeDownload (/nix/store/2njkbzasgj4bznk58azcv6jhdmb3p8zk-unityhub-extracted/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:741:25)
  3. Run another unityhub process on a separate terminal because for some reason the first process doesn't open it:

    $ unityhub
    $ 
  4. I try to log into Unity, but I am greeted with a blank window: image image image

Expected behavior

Some webpage will load that lets me login.

Additional context

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.122, NixOS, 20.09.4393.068984c00e0 (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.11`
 - channels(ben): `""`
 - channels(root): `"unstable-21.11pre325602.51acb65b302, nixos-20.09.4393.068984c00e0, nixos-20.03-20.03.3330.1db42b7fe38, nixos-20.09-20.09.4393.068984c00e0"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos
stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info