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

Freeze when GNOME keyring is not installed #10673

Closed
2 tasks done
linsui opened this issue Nov 28, 2023 · 8 comments
Closed
2 tasks done

Freeze when GNOME keyring is not installed #10673

linsui opened this issue Nov 28, 2023 · 8 comments
Assignees
Labels
bug Confirmed bugs or reports that are very likely to be bugs status: depends-on-external A bug or issue that depends on an update of an external library

Comments

@linsui
Copy link
Contributor

linsui commented Nov 28, 2023

JabRef version

5.11 (latest release)

Operating system

GNU / Linux

Details on version and operating system

NixOS 24.05

Checked with the latest development build (copy version output from About dialog)

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

Uninstall GNOME keyring. Then open Jabref options. Freeze.

ERROR: Cloud not acquire a prompt.: org.freedesktop.secret.errors.NoSuchObject: /org/freedesktop/secrets/prompt/870bc57feddd44eb90b2e76d3b8621db
	at secret.service@1.8.1-jdk17/org.freedesktop.secret.Prompt.prompt(Prompt.java:41)
	at secret.service@1.8.1-jdk17/org.freedesktop.secret.Prompt.lambda$await$0(Prompt.java:63)
	at secret.service@1.8.1-jdk17/org.freedesktop.secret.handlers.SignalHandler.await(SignalHandler.java:144)
	at secret.service@1.8.1-jdk17/org.freedesktop.secret.Prompt.await(Prompt.java:62)
	at secret.service@1.8.1-jdk17/org.freedesktop.secret.Prompt.await(Prompt.java:80)

Appendix

...

Log File
Paste an excerpt of your log file here
@ThiloteE ThiloteE added the bug Confirmed bugs or reports that are very likely to be bugs label Nov 28, 2023
@koppor koppor added this to the 5.12 milestone Dec 5, 2023
@koppor koppor modified the milestones: 5.12, 5.13 Dec 18, 2023
@koppor
Copy link
Member

koppor commented Dec 18, 2023

Filed upstream - javakeyring/java-keyring#96

@koppor koppor added the status: depends-on-external A bug or issue that depends on an update of an external library label Dec 18, 2023
@koppor koppor modified the milestones: 5.13, 5.14 Mar 25, 2024
@koppor koppor self-assigned this Mar 25, 2024
@koppor koppor modified the milestones: 5.14, 5.15 Apr 2, 2024
@koppor koppor modified the milestones: 5.15, 5.14 May 20, 2024
@koppor
Copy link
Member

koppor commented May 27, 2024

@linsui Is there a (kind of) minimal NixOS configuration to work on? I am new to NixOS (using it now and then for a few hours) and have a mixed setup of Flake and Homemanager and stuff (based on https://nixos-and-flakes.thiscute.world/other-usage-of-flakes/the-new-cli), but it totally feels like a mess - and I am not sure if I will be able to replicate (I am on GNOME in NixOS)

  services.xserver.desktopManager.gnome.enable = true;

@linsui
Copy link
Contributor Author

linsui commented May 28, 2024

Here is a minimal flake.nix with minimal GNOME and jabref

{
  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
  outputs = { self, nixpkgs }: {
    nixosConfigurations.test = nixpkgs.lib.nixosSystem {
      modules = [
        ({ config, pkgs, lib, ... }: {
          users.users.test = {
            isNormalUser = true;
            password = "12345678";
          };

          services = {
            xserver = {
              enable = true;
              desktopManager.gnome.enable = true;
              displayManager.gdm.enable = true;
              xkb.layout = "us";
              excludePackages = [ pkgs.xterm ];
            };

            # Disable some services enabled by GNOME
            gnome = {
              tracker.enable = false;
              tracker-miners.enable = false;
              rygel.enable = false;
              gnome-online-accounts.enable = false;
              gnome-online-miners.enable = lib.mkForce false;
              gnome-keyring.enable = lib.mkForce false;
            };
            avahi.enable = false;
            dleyna-renderer.enable = false;
            dleyna-server.enable = false;
            geoclue2.enable = false;
          };
          environment.gnome.excludePackages = with pkgs.gnome; [
            adwaita-icon-theme
            gnome-backgrounds
            gnome-bluetooth
            gnome-color-manager
            gnome-control-center
            gnome-shell-extensions
            gnome-themes-extra
            baobab
            evince
            gnome-disk-utility
            file-roller
            epiphany
            gnome-clocks
            gnome-logs
            gnome-system-monitor
            nautilus
            yelp
            totem
            geary
            gnome-backgrounds
            gnome-characters
            gnome-weather
            gnome-maps
            simple-scan
            gnome-contacts
            gnome-calendar
            gnome-calculator
            gnome-font-viewer
            gnome-music
            gnome-shell-extensions
            seahorse
            pkgs.gnome-connections
            pkgs.loupe
            pkgs.gnome-text-editor
            pkgs.snapshot
            pkgs.gnome-tour
            pkgs.gnome-user-docs
            pkgs.orca
          ];

          environment.systemPackages = with pkgs; [ jabref ];

          nixpkgs.hostPlatform = { system = "x86_64-linux"; };
          system.stateVersion = "24.05";
        })
      ];
    };
  };
}

You can run it with nix --extra-experimental-features flakes run .#nixosConfigurations.test.config.system.build.vm -- -m 4G.

But I can't reproduce this problem on JabRef 5.13 so maybe it has been fixed somehow.

@Siedlerchr Siedlerchr modified the milestones: 5.14, 5.15 Jun 3, 2024
@Siedlerchr
Copy link
Member

Thanks for the feedback @linsui Did you encounter this issue again or is it still solved? Otherwise we would close this issue and reopen it if the issue persists

@linsui
Copy link
Contributor Author

linsui commented Jun 4, 2024

I thought it's solved somehow, thanks!

@linsui linsui closed this as completed Jun 4, 2024
@koppor
Copy link
Member

koppor commented Jul 11, 2024

@linsui What would help nevertheless would be a Vagrantfile for a NixOS VM. I made some for Ubuntu and Fedora. (https://github.com/JabRef/jabref/tree/main/scripts/vms)

NixOS could be easy, but IDK. Maybe, you have some time and energy for that?

@linsui
Copy link
Contributor Author

linsui commented Jul 18, 2024

I'm not familiar with vagrant and I don't know ruby. 🤷

@koppor
Copy link
Member

koppor commented Jul 18, 2024

I'm not familiar with vagrant and I don't know ruby. 🤷

Me neither 😅.

Just in case you have some time and want to accept that challenge. I know, this is not a task for minutes. I spend hours tk o create https://github.com/JabRef/jabref/tree/main/scripts/vms. The challenge was neither VirtualBox, nor Vagrant nor Ruby. It was to find out the right commands to setup the operating system. Example:

# Update package index

I was just thinking you maybe know the commands to setup it and could share them in a reusable way.

No worries though, was just an idea to offer some point of support for JabRef so that the developers gain time to work on something else. Its a free time project for all of us and should create joy or new knowledge! 💪🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs status: depends-on-external A bug or issue that depends on an update of an external library
Projects
None yet
Development

No branches or pull requests

4 participants