Page 1 of 1

[solved] 0.96.4: No program is launched using items from Open with menu while in editing mode

Posted: Thu Jul 02, 2020 7:19 am
by juozas
Subject: 0.96.4: No program is launched while using items from Open with menu while in editing mode

XnView: MP 0.96.4 - 64 bit (earlier versions might be affected too)
OS: Ubuntu Linux 20.04 LTS - 64bit

Selecting any item from within Open with menu while in editing mode does not open any program. The item was added using Configure programs dialog and I confirmed it does exist in file system.

Effect: Program shown in Open with menu does not start. Error (/usr/bin/gimp: symbol lookup error: /usr/lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates) is shown in console, the mentioned program works fine outside xnview, gimp were used here as an example, Same behavour when trying to use other menus that launch external programs such as menu item Visit Xnview Forum or Download new version button on updater when update is available, firefox error shown as below:
XPCOMGlueLoad error for file /usr/lib/firefox/libmozgtk.so:
/usr/lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates
Couldn't load XPCOM.


To reproduce:
1. Install XnViewMP to Ubuntu 20.04 LTS with latest updates
2. Install any other editor, configure XnView to lauch the editor via open with menu
3. Try to launch external editor while in editing mode
Actual behaviour (bug): Editor is not launched, error (above) is logged in console :bug:

Expected behaviour: Editor is launched, no error shown in console.

Re: 0.96.4: No program is launched using items from Open with menu while in editing mode

Posted: Mon Jul 20, 2020 2:07 pm
by xnview
Please remove XnView/lib/libfreetype.*

Re: 0.96.4: No program is launched using items from Open with menu while in editing mode

Posted: Wed Jul 22, 2020 6:53 am
by juozas
Removing libfreetype.* works, but as it was bundled with the DEB package, it might need to be removed from it and also the package should depend on system version of it instead (by adding it to deps section of the DEB file). Files bundled in installed version of package can be found by running dpkg -L xnview while in console.