Project

General

Profile

Open eCard App (1.3.0) startet nicht auf Debian (Buster) [solved!]

Added by Holger Burkhardt over 4 years ago

Die Installation des deb-Paketes von https://www.openecard.org/download/pc/ auf einem Debian-Buster PC verläuft ohne Fehler, jedoch startet die App nicht.

Beim Aufruf aus dem Menü passiert nichts.

Das Ausführen von /opt/Open-eCard-App/Open-eCard-App im Terminal ergibt:

/opt/Open-eCard-App/Open-eCard-Appuld have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.

# The format of this file is the same as for the corresponding file of
# the X Window System, which normally can be found in
#    /usr/lib/X11/locale/libpackager.so not found.

Auch beim Aufruf von java -jar /opt/Open-eCard-App/app/Open-eCard-App-jfx.jar im Terminal passiert nichts (keine Fehlermeldung/Ausgabe/...) und man landet wieder unvermittelt am Eingabe-Prompt.

Installiert ist:

openjdk 11.0.4 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Debian-1deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Debian-1deb10u1, mixed mode, sharing)

  1. Warum funktioniert das DEB-Paket nicht "out-of-the-box"?
  2. Wo wird die libpackager.so Bibliothek gesucht, wo kommt sie her (scheint in keinem Debian Buster Paket enthalten zu sein)?

Replies (6)

RE: Open eCard App (1.3.0) startet nicht auf Debian (Buster) - Added by Tobias Wich over 4 years ago

This seems to be a bug due to wrong usage of readline in JDK 8.
I can't tell why this didn't happen before Buster.
https://bugs.openjdk.java.net/browse/JDK-8157913

There will be a new version shortly using recent JDKs. Until that is released you may try the workaround proposed in this Cryptomator issue.
https://github.com/cryptomator/cryptomator/issues/265#issuecomment-218064709

RE: Open eCard App (1.3.0) startet nicht auf Debian (Buster) - Added by Holger Burkhardt over 4 years ago

Thanks for the feedback!

Unfortunately, I do not fully grasp the recommended workaround! I guess that the proposed solution is in analogy to what is in your link.

I had already tried in the past (but not documented in my question) to copy the library to the supposed destination, i.e. /usr/lib/X11/locale/

However without success. Even with the library there, I get still the very same error message. Also after chmod of the library with (w)rite and e(x)ecute rights for everyone:

holger@Latitude7280:~$ /opt/Open-eCard-App/Open-eCard-App 
/opt/Open-eCard-App/Open-eCard-Appuld have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.

# The format of this file is the same as for the corresponding file of
# the X Window System, which normally can be found in
#    /usr/lib/X11/locale/libpackager.so not found.
holger@Latitude7280:~$ ls -l /usr/lib/X11/locale/libpackager.so 
-rwxrwxrwx 1 root root 10022808 Sep 18 18:41 /usr/lib/X11/locale/libpackager.so
holger@Latitude7280:~$ 

Maybe I am missing the obvious, but to my eyes, the error message is not comprehensible.

So I guess my best option is to wait for the new version which is to be released shortly.

RE: Open eCard App (1.3.0) startet nicht auf Debian (Buster) - Added by Bernd Gruber over 4 years ago

Hello,
I had the same problem.
What I did:
"strace /opt/Open-eCard-App/Open-eCard-App" showed me:
.....
openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/usr/lib/locale/en_US/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/usr/lib/locale/en.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/usr/lib/locale/en/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
.....

So installing the package locales-all, which contains these files, solved the problem.

Bernd

RE: Open eCard App (1.3.0) startet nicht auf Debian (Buster) - Added by Holger Burkhardt over 4 years ago

Thanks for the suggestion.

Indeed, running the Open-eCard-App with strace on my computer produced the same messages.

However, adding the en_US.utf8 locale (via sudo dpkg-reconfigure locales) and/or installing locales-all helps to get rid of these error messages, but still does not lead to a working set-up in my case. :(

Running subsequently Open-eCard-App again with strace produces a 1.7 MiB big output (attached to this post), which gives no clear indication to me for further debugging.

It starts quite soon with a file not found message:

...
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
...

many others following, and almost at the very end a complaint about insufficient main memory:

...
mincore(0x7fff51f2c000, 4096, 0x7fff52029c1e) = -1 ENOMEM (Nicht genügend Hauptspeicher verfügbar)
...

before the process stalls and nothing else happens.

@Bernd: What Java version are you using?

For the time being I am still stuck and waiting for the "shortly" to be released new version which hopefully works for me.

strace-output (1.66 MB) strace-output output von "strace /opt/Open-eCard-App/Open-eCard-App"

RE: Open eCard App (1.3.0) startet nicht auf Debian (Buster) - Added by Bernd Gruber over 4 years ago

I'm using java-13-openjdk-amd64.

But, indeed, I also get a lot of "Datei oder Verzeichnis nicht gefunden" and "Nicht genügend Hauptspeicher verfügbar" in the end of the strace output, but it works (just logged in with it).
Except for /etc/ld.so.preload, which exists with a size of 0 byte.

Good luck
Bernd

RE: Open eCard App (1.3.0) startet nicht auf Debian (Buster) - Added by Holger Burkhardt over 4 years ago

Excellent hint!

creating the empty /etc/ld.so.preload was the missing element!

The Open eCard App is working now (with the standard Java 11 of debian buster as indicated in the first post)!

Thanks for all the help.

Addendum:
It seems that the empty /etc/ld.so.preload file is not even necessary. After testing (though on a different PC (but also running debian buster)) I do believe that I just had missed the small Open eCard icon appearing in the tray!

    (1-6/6)