I had PicoScope running on my system (Ubuntu 14.04) and everything was happy. But at some point, after installing standard updates, two apps based on Mono started crashing immediately after launch. After several tries at removing and reinstalling the apps and every Mono library I could find, I finally hit on a common library that forced me to uninstall picoscope (and picomono) in order to remove and reinstall the library. Lo and behold, both apps worked right up to the point where I tried to reinstall picoscope and picomono, at which point they died again. Doing nothing but uninstalling picomono fixes them again.
I've read some threads here about Mono problems and there seems to be some indication that the latest release fixes these, but I'm on the ppa, so I'd think I'd be getting the latest release using Synaptic. "mono -V" reports 3.2.8. Synaptic reports that the latest available version of picoscope is 6.11.13-4r3.
The essential message that both apps throw when crashing is the same...Unhandled Exception, System.TypeInitializationException, Mono.Unix.Native.Syscall --> System.EntryPointNotFoundException: Mono_Posix_Syscall_get_at_fdcwd.
I can confirm this. After installing picoscope 6.11.13-4r3 (latest as of today), keepass2 application I am using started to crash every time I open it.
I think picoscope (picomono) should be installed by the package to /opt or similar, somewhere where it doesn't mess up system mono installation.
Attachment has the output from keepass2 which crashes when picomono is installed.
Yes, with the latest version of Picoscope 6 for Linux, we provide our own mono installation, via picomono package. This was required to avoid previous problem, where different OS's provide different (sometime experimental) versions of mono. Some of the changes between version caused picoscope to stop working.
Picomono is based on mono 2.10.8 - a minimum required version. It has been also stripped from some unused by picoscope libraries. You're right that picomono should not interfere with the system provided mono and be used only by picoscope. It seems that during package build extra config files got generated.
Your system software centre/manager should pickup this update automatically and apply it together with other system system updates if allowed.
As for the other problem, I was unable to replicating on my test setup. Maybe you did something to picoscope installation in attempt to fixing it? You can reinstall all the files:
You can also try and revert to use system provided mono. As soon as it is not 4.x.x version, it should be OK (ubuntu 14.04 gives 3.2.8 so it seems OK).
With Ubuntu 12.04, I have big problem with picomono.
Picomono use libcairo2 1.14.2, but ubuntu 12.04 don't.
I want install libcairo2... but this it not possible...
1)
djo@djo-Amilo-Fujitsu:~$ sudo dpkg -i libcairo2_1.14.2-1ubuntu1_i386.deb
dpkg : concernant libcairo2_1.14.2-1ubuntu1_i386.deb contenant libcairo2 :
libcairo2 casse (« breaks ») libwebkitgtk-3.0-0 (<< 2.4.5-2~)
« libwebkitgtk-3.0-0 » (version « 1.8.3-0ubuntu0.12.04.1 ») est présent ainsi que « installé ».
dpkg : erreur de traitement de libcairo2_1.14.2-1ubuntu1_i386.deb (--install) :
l'installation de libcairo2 casserait libwebkitgtk-3.0-0
et la déconfiguration n'est pas autorisée (--auto-deconfigure pourrait aider)
Des erreurs ont été rencontrées pendant l'exécution :
libcairo2_1.14.2-1ubuntu1_i386.deb
2)
djo@djo-Amilo-Fujitsu:~$ sudo dpkg --auto-deconfigure -i libcairo2_1.14.2-1ubuntu1_i386.deb
dpkg : tentative de déconfiguration de libwebkitgtk-3.0-0, qui serait cassé par l'installation de libcairo2 ...
dpkg : oui, déconfiguration de libwebkitgtk-3.0-0 (cassé par libcairo2).
(Lecture de la base de données... 360740 fichiers et répertoires déjà installés.)
Préparation du remplacement de libcairo2 1.10.2-6.1ubuntu3 (en utilisant libcairo2_1.14.2-1ubuntu1_i386.deb) ...
Déconfiguration de libwebkitgtk-3.0-0 ...
Dépaquetage de la mise à jour de libcairo2 ...
dpkg : des problèmes de dépendances empêchent la configuration de libcairo2 :
libcairo2 dépend de libfontconfig1 (>= 2.9.0) ; cependant :
La version de libfontconfig1 sur le système est 2.8.0-3ubuntu9.1.
dpkg : erreur de traitement de libcairo2 (--install) :
problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de libwebkitgtk-3.0-0 :
libwebkitgtk-3.0-0 dépend de libcairo2 (>= 1.10.0) ; cependant :
Le paquet libcairo2 n'est pas encore configuré.
libcairo2 (1.14.2-1ubuntu1) casse libwebkitgtk-3.0-0 (<< 2.4.5-2~) et est dépaqueté mais non configuré.
La version de libwebkitgtk-3.0-0 à configurer est 1.8.3-0ubuntu0.12.04.1.
dpkg : erreur de traitement de libwebkitgtk-3.0-0 (--install) :
problèmes de dépendances - laissé non configuré
Des erreurs ont été rencontrées pendant l'exécution :
libcairo2
libwebkitgtk-3.0-0