NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.67k stars 13.81k forks source link

standardnotes 3.181.23 is just a blank window with almost all of the UI missing #278191

Open duxovni opened 9 months ago

duxovni commented 9 months ago

Describe the bug

When I open standardnotes, I get a blank window with no UI except for the top menu bar.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Open standardnotes

Expected behavior

I expected standardnotes to have a UI.

Screenshots

Blank standardnotes window

Additional context

I've confirmed that this issue is still present if I backport standardnotes 3.183.22, the latest upstream version.

If I build a modified derivation that uses the upstream AppImage instead of nixpkgs' electron (essentially, the exact same changes I made in https://github.com/NixOS/nixpkgs/pull/247061), the issue is resolved, so this does seem to be related to nixpkgs electron in some way.

Notify maintainers

@M-Gregoire @chuangzhu @squalus

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.67-rt20, NixOS, 24.05 (Uakari), 24.05.20231230.b0d36bd`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

squalus commented 9 months ago

I saw something similar and found it was related to the secrets service. I went to the KDE wallet manager, hit "Open wallet", and the problem went away after restarting the app.

We should at least have a standardnotes-bin package that uses upstream's binaries.

duxovni commented 9 months ago

I don't think libsecret is involved in my case; I have useNativeKeychain disabled in standardnotes' user preferences, and lssecret doesn't show anything standardnotes-related. Good to know in any case, though!

bjornfor commented 9 months ago

Is it an electron app? There is some GPU cache that must be removed from time to time, there are issues about it here, but I'm on phone now.

duxovni commented 9 months ago

Not a GPU cache issue either; I tried removing the entire .config/Standard Notes directory (which includes .config/Standard Notes/GPUCache) to make it start over from scratch, nothing changed.

rbreslow commented 9 months ago

I am also encountering this issue (on KDE, 3.181.23, latest version of nixpkgs/nixpkgs-unstable):

Screenshot_20240103_165054

rbreslow commented 8 months ago

@duxovni Do you have any one-liners or files you can share w/ your modified derivation? So folks who find this issue can temporarily workaround?

Right now, I'm having to use a different computer to access my notes.

duxovni commented 8 months ago

Sure, here's the overlay I've been using:

final: prev: {
  standardnotes = let
    pname = "standardnotes";
    version = "3.183.22";
    src = prev.fetchurl {
      url = "https://github.com/standardnotes/app/releases/download/%40standardnotes%2Fdesktop%403.183.22/standard-notes-3.183.22-linux-x86_64.AppImage";
      hash = "sha256-tPbTgM13+c+wyhCAPawr3U71ofIHFN96x8QYes7RhfE=";
    };
    appimageContents = prev.appimageTools.extract { inherit pname version src; };
  in prev.appimageTools.wrapType2 {
    inherit pname version src;

    extraPkgs = pkgs: [ pkgs.libsecret ];

    extraInstallCommands = ''
      chmod -R +w $out
      mv $out/bin/${pname}-${version} $out/bin/${pname}

      ${prev.desktop-file-utils}/bin/desktop-file-install --dir $out/share/applications \
        --set-key Exec --set-value ${pname} ${appimageContents}/standard-notes.desktop
      ln -s ${appimageContents}/usr/share/icons $out/share
    '';
  };
}
rbreslow commented 8 months ago

Hey, thanks so much! That works.

LinuxMason commented 6 days ago

Same issue here…

image