pwsafe / pwsafe

Password Safe - popular secure and convenient password manager
https://pwsafe.org
Other
734 stars 150 forks source link

Error: Could not initialise help subsystem: Help will not be available #720

Open BusterRaid opened 3 years ago

BusterRaid commented 3 years ago

OS: Debian 10.8 Buster x64, Linux 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux

Desktop: XFCE4

PWSafe: passwordsafe-debian10-1.13-amd64.deb (Also seems to occur with v1.12)

Error occurs on start up of the application. Application run from "Applications" > "Accessories". Manifests as a pop up box with text:

"Password Safe: Error initializing help" "Could not initialize help subsystem: Help will not be available"

It's true, the help system is not available, but the application seems to work in all other respects.

The error does not occur with version: passwordsafe-debian10-1.11-amd64.deb

ronys commented 3 years ago

Odd.

  1. What's the output of "locale" when run from a terminal on your system?
  2. What's the contents of /usr/share/passwordsafe/help ?
BusterRaid commented 3 years ago

@ronys

Bit more info and response to the above questions:

Starting passwordsafe, then examining the .xsession-errors file of the user, I see:

" pwsafe: /home/duser/PortableApps/VMWare-Tools/lib64/libcurl.so.4: no version information available (required by pwsafe) pwsafe:[1769]: PWSprefs - using config file: /home//.pwsafe/pwsafe.cfg [R/W] pwsafe:[1769]: Found user-preferred language: id= 58, name= pwsafe:[1769]: Help file for selected language help/helpEN.zip unavailable. Will retry with default. pwsafe:[1769]: Help file for default language help/helpEN.zip unavailable. Could not initialize help subsystem. "

Response to Q1):

$ locale LANG=en_GB.UTF-8 LANGUAGE=en_GB:en LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" LC_COLLATE="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL=

Response to 2):

$ ls -l /usr/share/passwordsafe/help total 9968 -rw-r--r-- 1 root root 3237959 Oct 24 20:21 helpDE.zip -rw-r--r-- 1 root root 2271543 Oct 24 20:21 helpEN.zip -rw-r--r-- 1 root root 1167228 Oct 24 20:21 helpES.zip -rw-r--r-- 1 root root 25353 Oct 24 20:21 helpFR.zip -rw-r--r-- 1 root root 444964 Oct 24 20:21 helpPL.zip -rw-r--r-- 1 root root 1311825 Oct 24 20:21 helpRU.zip -rw-r--r-- 1 root root 1733077 Oct 24 20:21 helpZH.zip

ronys commented 3 years ago

Right. Looks like a wxWidgets issue specific to Debian:

Running wxWidgets sample internationalization (build from the wxWidgets source from GitHub) test program gives similar errors on Debian. Both PasswordSafe and the test program run cleanly on Ubuntu.

BusterRaid commented 3 years ago

Let me know if I can provide any more info or carry out testing.

bblough commented 3 years ago

I wasn't able to reproduce this with the version that ships in Buster (1.08.2) or with the 1.12 backport that I just uploaded to buster-backports (it's still importing into the archive, but should be available soon). @BusterRaid can you confirm?

Ubuntu uses the source package from Debian without any changes, so I suspect it's a build environment/flag issue.

ronys commented 3 years ago

It's a problem with wxWidgets: They don't deal well with systems that don't have en_US and/or en_GB among the installed locales (or something like that). See https://trac.wxwidgets.org/ticket/19082

BusterRaid commented 3 years ago

The upshot of the below seems that the (Debian 10 x64) version in buster-backports seems to work (WRT the "help system"). The v1.12 on "sourceforge" does not work (WRT the "help system"). The current Buster version seems to be V1.06 Beta and works (WRT the "help system").

Testing: Debian 10.8 Buster as at 18:00 28/02/2021 Linux MACHINE 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux Debian running as VM under VMWare Workstation 12 Player v12.5.9, Win 10 Pro x64 host.

Ran "apt update". Each version was removed with: apt remove passwordsafe apt autoremove


Note: I use Bleachbit to remove "unused" languages:

Bleachbit v4.2.0 Run: Bleachbit as Administrator

Preferences > Languages

KEEP ONLY: en English en_AU Australian English en_CA Canadian English en_GB British English

... All other languages are removed.


Running "locale -a" as normal user:

C C.UTF-8 en_GB.utf8 POSIX


Running "locale" as normal user:

LANG=en_GB.UTF-8 LANGUAGE=en_GB:en LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" LC_COLLATE="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL=


Environment variables as normal user:

LANG=en_GB.UTF-8 LANGUAGE=en_GB:en


Running "localectl" as normal user:

System Locale: LANG=en_GB.UTF-8 LANGUAGE=en_GB:en VC Keymap: n/a X11 Layout: gb X11 Model: pc105


Using current Debian Buster repositories.

Password Safe reported version (Safe combination screen): V1.06 Beta Specific installed version: passwordsafe amd64 1.06+dfsg-1+deb10u1

Help system present and working.


Install of "passwordsafe-debian10-1.08.2-BETA-amd64.deb"

Password Safe reported version (Safe combination screen): V1.8.02 BETA.

Help system present and working.


Install of "passwordsafe-debian10-1.12-amd64.deb"

Note: Downloaded from "https://sourceforge.net/projects/passwordsafe/" circa 19:14 28/02/2021 Using "apt list --installed | grep passwordsafe" shows: passwordsafe/now 1.12 amd64 [installed,upgradable to: 1.12.0+dfsg-1~bpo10+1]

PasswordSafe reported version (Safe combination screen): V1.12

Help system error: Password Safe: Error initializing help Could not initialize help subsystem. Help will not be available.


With the following added to "/etc/apt/sources.list":

deb http://deb.debian.org/debian buster-backports main contrib non-free

Ran "apt update".

Installed using: apt -t buster-backports install passwordsafe

PasswordSafe reported version (Safe combination screen): V1.12 Specific installed version: 1.12.0+dfsg-1~bpo10+1

Help system present and working. available.


Install of "passwordsafe-debian10-1.13-amd64.deb"

PasswordSafe reported version (Safe combination screen): V1.13

Help system error: Password Safe: Error initializing help Could not initialize help subsystem. Help will not be available.