Test and Measurement Forum

Mono Problems (still?)

Discussion forum for the new Picoscope Linux software

Mono Problems (still?)

Postby jpa » Fri Jun 03, 2016 3:36 pm

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.

Any help?

John
jpa
Newbie
 
Posts: 0
Joined: Fri Jun 03, 2016 3:16 pm

Re: Mono Problems (still?)

Postby karpi » Sun Jun 05, 2016 5:27 pm

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.
Attachments
keepass2.mono.failure.txt
output from keepass2 when picomono is installed
(4.98 KiB) Downloaded 31 times
karpi
Newbie
 
Posts: 0
Joined: Sun Jun 05, 2016 5:19 pm

Re: Mono Problems (still?)

Postby karpi » Sun Jun 05, 2016 5:30 pm

Forgot to mention, system I use is Debian Jessie (8.5).
karpi
Newbie
 
Posts: 0
Joined: Sun Jun 05, 2016 5:19 pm

Re: Mono Problems (still?)

Postby mario_ » Mon Jun 06, 2016 8:18 am

Hi,

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.

To quickly fix the problem with do as follows:

1) delete picomono.conf from ld cache:
Code: Select all
sudo rm /etc/ld.so.conf.d/picomono.conf

2) reload ld cache
Code: Select all
sudo ldconfig

3) install localized version of picomono config.xml (file attached to download)
Code: Select all
sudo cp config.xml /opt/picomono/etc/mono/config


This should work for now. In the mean time I start working on providing fixed version of picomono for future use.
Attachments
config.xml
localized picomono config
(2.02 KiB) Downloaded 38 times
mario_
Site Admin
Site Admin
 
Posts: 112
Joined: Fri Sep 13, 2013 12:57 pm

Re: Mono Problems (still?)

Postby jpa » Tue Jun 07, 2016 2:14 pm

The good news? With your fix, I can install Picoscope without breaking KeePass2 or Bless.

The bad news? "The application PicoScope has closed unexpectedly", PicoScope.GTK.exe crashed with SIGABRT in __GI_raise()

picoscope 6.11.13-4r3, amd64

disassembly __GI_raise+55>: cmp $0xfffffffffffff000,%rax

John
jpa
Newbie
 
Posts: 0
Joined: Fri Jun 03, 2016 3:16 pm

Re: Mono Problems (still?)

Postby mario_ » Thu Jun 09, 2016 8:27 am

I have just published the fixed version of picomono. To use it run:
Code: Select all
sudo apt-get upgrade
sudo apt-get install picomono

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:

Code: Select all
sudo apt-get install --reinstall picoscope

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).

1) install all bits from mono suite
Code: Select all
sudo apt-get install mono-complete


2) edit picoscope startup script, by hashing/commenting two export lines (20-21) from it
Code: Select all
sudo editor /opt/picoscope/bin/picoscope

lines to disable
export PATH="/opt/picomono/bin:$PATH"
export LD_LIBRARY_PATH="/opt/picomono/lib:$LD_LIBRARY_PATH"
mario_
Site Admin
Site Admin
 
Posts: 112
Joined: Fri Sep 13, 2013 12:57 pm

Re: Mono Problems (still?)

Postby DJO » Thu Jul 21, 2016 7:18 pm

Hi,

Sorry for my english...

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

What is possible now ?

Thanks
DJO
DJO
Newbie
 
Posts: 0
Joined: Thu Jul 21, 2016 7:01 pm

Re: Mono Problems (still?)

Postby mario_ » Tue Jul 26, 2016 10:48 am

The problem you are experiencing has been explained and steps for the resolution given in this post: topic25641.html#p84721
mario_
Site Admin
Site Admin
 
Posts: 112
Joined: Fri Sep 13, 2013 12:57 pm


Return to PicoScope for Linux

Who is online

Users browsing this forum: No registered users and 0 guests