Strange pdf file association error in gnome-shell [solved]

Issues related to applications and software problems
Post Reply
Arie
Posts: 12
Joined: 2019/01/04 07:47:22

Strange pdf file association error in gnome-shell [solved]

Post by Arie » 2019/01/10 10:53:41

Hi All,

We are running the latest Centos 7.6 (problem exist on the earlier 7.5 version to) .

It runs in a virtual environment and the desktop is shown to the user using a thin client over VNC, witch works completely correct.
There are some small tweaks to the environment so the user is almost limited to using the application.

The user is running a java application that is located in /usr/local/wesp/wesp3/
The user must be able to make show reports that the application creates as PDF and are stored in/tmp/

At startup there are no problems, the PDF pops up in adobe (or evenice if that is configured) and the only thing is an error in
/var/log/messages:

Code: Select all

Jan 10 11:31:54 wspcvl-wstdor journal: Unable to locate theme engine in module_path: "adwaita",
Jan 10 11:31:54 wspcvl-wstdor journal: Unable to locate theme engine in module_path: "adwaita",
Jan 10 11:31:54 wspcvl-wstdor journal: Failed to load module "pk-gtk-module"
Jan  7 13:28:43 wspcvl-wstdor org.gnome.Shell.desktop: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x380004d (Adobe Read)
Jan  7 13:28:43 wspcvl-wstdor org.gnome.Shell.desktop: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x380004d (Toelating-)
Jan  7 13:28:43 wspcvl-wstdor org.gnome.Shell.desktop: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x380004d (Toelating-)
Than after a while 15 minutes or sometimes a day, the PDF cannot be shown anymore, the user gets a message that there is no default PDF viewer configured and the message in /var/log/messages is:

Code: Select all

Dec 31 09:00:43 wspcvl-wstdor org.gnome.Shell.desktop: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x321795c specified for 0x3217963 (WESP - Fou).
The only thing that we see is that there is no audit message in /var/log/gdm/:0.log or /var/log/Xorg.0.log, when the PDF can not me opened.

In this error situation a PDF located anywhere on the system can be opened, just by a dubble click on it.

Somehow the link between the application and the PDF viewer gets broken and I am getting clueless. :?
The startup Icon for the application is on the desktop, and copying the icon to /home/wesp/.local/share/applications/
seems to make it start faster.

Are there rules or guidelines for deploying one's own application in Centos/Gnome.
Last edited by Arie on 2019/03/13 12:43:33, edited 3 times in total.

Arie
Posts: 12
Joined: 2019/01/04 07:47:22

Re: Strange java application and pdf not opening error

Post by Arie » 2019/01/24 13:15:15

Some steps further,

Some errors gone, but still the strange PDF issue.

Resolving issues with 32bit applications:
https://www.ibm.com/support/knowledgece ... stall.html
yum install libgtk-x11-2.0.so.0 (already installed)
yum install libpk-gtk-module.so (incl dependencies)
yum install libcanberra-gtk-module.so (incl dependencies)

This removes the "Failed to load module "pk-gtk-module"" Error.

yum install adwaita-gtk2-theme-3.28-2.el7.i686
This removes the "Unable to locate theme engine in module_path: "adwaita"" Error

Arie
Posts: 12
Joined: 2019/01/04 07:47:22

Re: Strange java application and pdf not opening error

Post by Arie » 2019/01/25 15:09:14

The error form the java application:

Code: Select all

DEBUG [AWT-EventQueue-0] [xx.xx.xxx.client.gui.common.pdf.AbstractPDFGenerator] - Java.OS name: Linux, Desktop.isDesktopSupported(): true
2019-01-25 11:46:04,816 ERROR [AWT-EventQueue-0] [xx.xx.xxx..client.gui.common.pdf.AbstractPDFGenerator] - Failed to show URI:file:/tmp/myfile.pdf
java.io.IOException: Failed to show URI:file:/tmp/MSC-BRUNELLA_Reisgegevens.pdf
        at sun.awt.X11.XDesktopPeer.launch(XDesktopPeer.java:121)
        at sun.awt.X11.XDesktopPeer.open(XDesktopPeer.java:84)
        at java.awt.Desktop.open(Desktop.java:272)
        xx.xx.xxx..client.gui.common.pdf.AbstractPDFGenerator.openFile(Unknown Source)
        xx.xx.xxx..client.gui.common.pdf.AbstractPDFGenerator.openFile(Unknown Source)
        xx.xx.xxx..client.gui.common.pdf.AbstractPDFGenerator.openBestand(Unknown Source)
        xx.xx.xxx..client.gui.common.pdf.AbstractPDFGenerator.beeindigDocument(Unknown Source)
        xx.xx.xxx..client.gui.planner.reizen.overzicht.OverzichtReizenDialoog.printVoyageData(Unknown Source)
        xx.xx.xxx..client.gui.planner.reizen.overzicht.actions.PrintVoyageDataAction.actionPerformed(Unknown Source)

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Strange java application and pdf not opening error

Post by hunter86_bg » 2019/01/28 21:12:28

Are you using gnome with Wayland or gnome classic?
Have you tried another manager?

Arie
Posts: 12
Joined: 2019/01/04 07:47:22

Re: Strange pdf file association error in gnome-shell

Post by Arie » 2019/02/05 15:23:51

Gnome classic, not wayland. Development is working on the code for the application
seems to do the trick.

Post Reply