RCP: 0.7.8, Linux&Mac TXM launch fails with not found shared library error
FR
Après avoir mis à jour TXM et forcé à quitter TXM depuis le lanceur (par exemple lors d’un import XTZ, l’UI se fige et s’assombrit). TXM ne se lance plus avec le message suivant apparaît dans une boite de dialogue :
The TXM executable launcher was unable to locate its companion shared library.
Dans la console, le lancement de TXM donne ceci :
sheiden@sheiden-XPS-13-9343:~$ TXM
Prepare redirections in /home/sheiden/TXMPostInstallLogs.txt and /home/sheiden/TXMPostInstallErrorLogs.txt
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
Diagnostic
Démarrer TXM en activant les logs au plus tôt en ajoutant les paramètres -debug -log au script de démarrage /usr/bin/TXM puis lancer TXM depuis le terminal.
Result : the /usr/lib/TXM/TXM.ini and ~/.txm/TXM.ini files refere to
different launcher plugins.
If ~/.txm/TXM.ini is replaced with /usr/lib/TXM/TXM.ini
/usr/lib/TXM/TXM/TXM.ini
. TXM starts.
This shows that TXM behavior changes just before the bug: TXM starts OK and then suddenly it stops to start with this behavior.
Diagnostic 2
Findout what are the launcher debug options to activate its logs. The goal is to know whythe first plugin is not found or used.
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20150204-1316
about eclipse launcher executable: http://heleclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Flauncher.html&resultof=%22launcher%22
Solution 1 : LINUX
Execute in a terminal (ctrl-alt-t) :
cp /usr/lib/TXM/TXM/TXM.ini ~/.txm/TXM.ini
Solution 1 : MAC OS X
Execute in a terminal :
cp /Applications/TXM/TXM/TXM.app/Contents/MacOS/TXM.ini ~/.txm/TXM.ini
Solution 2
TXM run script must ensure that the TXM.ini file does not point to plugins/org.eclipse.equinox.launcher jars.
This solution needs a new setup
Solution 3
The first run after TXM update works we can use that moment to fix the TXM.ini file and remove the plugin configuration lines
(from redmine: issue id 1812, created on 2016/06/29 by Matthieu Decorde)