PicoScope 6 crashes at startup on Ubuntu 18.04

Discussion forum for the Picoscope 6 Linux software
Post Reply
steph
Newbie
Posts: 0
Joined: Fri May 04, 2018 10:42 am

PicoScope 6 crashes at startup on Ubuntu 18.04

Post by steph »

Hi all
PicoScope 6 crashes at startup on Ubuntu 18.04.
In both user and admin modes
Tested on 2 Dell precision 3630.
I've attached the trace.xml
any suggestions ?
Thank you
Attachments
trace.xml
(4.29 KiB) Downloaded 488 times

RTFM@1984
Newbie
Posts: 0
Joined: Sun Jul 07, 2019 10:09 pm

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by RTFM@1984 »

In the xml file it says:
Inner Exception:System.DllNotFoundException: /opt/picomono/lib/libgdiplus.so
I have the same version and the same Ubuntu 18.04 and it works fine in my case.

Can you do an ls of /opt/picomono/lib/

You should see something like:

Code: Select all

$ls -al /opt/picomono/lib
total 39380
drwxr-xr-x  6 root root     4096 Aug 23 22:52 .
drwxr-xr-x  7 root root     4096 Aug 23 22:52 ..
drwxr-xr-x  2 root root     4096 Aug 23 22:52 gtk-sharp-2.0
drwxr-xr-x  2 root root     4096 Aug 23 22:52 lib
-rw-r--r--  1 root root    70168 Apr 20  2017 libatksharpglue-2.so
lrwxrwxrwx  1 root root       24 Aug 23 22:52 libgdiplus.so -> /usr/lib/libgdiplus.so.0
lrwxrwxrwx  1 root root       24 Aug 23 22:52 libgdiplus.so.0 -> /usr/lib/libgdiplus.so.0
-rw-r--r--  1 root root  1589634 Apr 20  2017 libgdiplus.so.0.0.0
-rw-r--r--  1 root root    96843 Apr 20  2017 libgdksharpglue-2.so
-rw-r--r--  1 root root    13959 Apr 20  2017 libgladesharpglue-2.so
-rw-r--r--  1 root root    51204 Apr 20  2017 libglibsharpglue-2.so
-rw-r--r--  1 root root   718036 Apr 20  2017 libgtksharpglue-2.so
-rw-r--r--  1 root root   401923 Apr 20  2017 libikvm-native.so
lrwxrwxrwx  1 root root       18 Apr 20  2017 libmono-2.0.so -> libmonosgen-2.0.so
lrwxrwxrwx  1 root root       20 Apr 20  2017 libmono-2.0.so.1 -> libmonosgen-2.0.so.1
lrwxrwxrwx  1 root root       24 Apr 20  2017 libmono-2.0.so.1.0.0 -> libmonosgen-2.0.so.1.0.0
lrwxrwxrwx  1 root root       25 Apr 20  2017 libmonoboehm-2.0.so -> libmonoboehm-2.0.so.1.0.0
lrwxrwxrwx  1 root root       25 Apr 20  2017 libmonoboehm-2.0.so.1 -> libmonoboehm-2.0.so.1.0.0
-rw-r--r--  1 root root 17066051 Apr 20  2017 libmonoboehm-2.0.so.1.0.0
-rw-r--r--  1 root root   845826 Apr 20  2017 libMonoPosixHelper.so
lrwxrwxrwx  1 root root       24 Apr 20  2017 libmonosgen-2.0.so -> libmonosgen-2.0.so.1.0.0
lrwxrwxrwx  1 root root       24 Apr 20  2017 libmonosgen-2.0.so.1 -> libmonosgen-2.0.so.1.0.0
-rw-r--r--  1 root root 19069013 Apr 20  2017 libmonosgen-2.0.so.1.0.0
-rw-r--r--  1 root root   318631 Apr 20  2017 libMonoSupportW.so
-rw-r--r--  1 root root    30630 Apr 20  2017 libpangosharpglue-2.so
drwxr-xr-x 14 root root     4096 Aug 23 22:52 mono
drwxr-xr-x  2 root root     4096 Aug 23 22:52 mono-source-libs

steph
Newbie
Posts: 0
Joined: Fri May 04, 2018 10:42 am

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by steph »

Thank you for your answer
I have the same thing as you.
Other suggestions ?

Code: Select all

$ ls -al /opt/picomono/lib/
total 39380
drwxr-xr-x  6 root root     4096 sept. 18 11:36 .
drwxr-xr-x  7 root root     4096 sept. 18 11:36 ..
drwxr-xr-x  2 root root     4096 sept. 18 11:36 gtk-sharp-2.0
drwxr-xr-x  2 root root     4096 sept. 18 11:36 lib
-rw-r--r--  1 root root    70168 avril 20  2017 libatksharpglue-2.so
lrwxrwxrwx  1 root root       19 avril 20  2017 libgdiplus.so -> libgdiplus.so.0.0.0
lrwxrwxrwx  1 root root       19 avril 20  2017 libgdiplus.so.0 -> libgdiplus.so.0.0.0
-rw-r--r--  1 root root  1589634 avril 20  2017 libgdiplus.so.0.0.0
-rw-r--r--  1 root root    96843 avril 20  2017 libgdksharpglue-2.so
-rw-r--r--  1 root root    13959 avril 20  2017 libgladesharpglue-2.so
-rw-r--r--  1 root root    51204 avril 20  2017 libglibsharpglue-2.so
-rw-r--r--  1 root root   718036 avril 20  2017 libgtksharpglue-2.so
-rw-r--r--  1 root root   401923 avril 20  2017 libikvm-native.so
lrwxrwxrwx  1 root root       18 avril 20  2017 libmono-2.0.so -> libmonosgen-2.0.so
lrwxrwxrwx  1 root root       20 avril 20  2017 libmono-2.0.so.1 -> libmonosgen-2.0.so.1
lrwxrwxrwx  1 root root       24 avril 20  2017 libmono-2.0.so.1.0.0 -> libmonosgen-2.0.so.1.0.0
lrwxrwxrwx  1 root root       25 avril 20  2017 libmonoboehm-2.0.so -> libmonoboehm-2.0.so.1.0.0
lrwxrwxrwx  1 root root       25 avril 20  2017 libmonoboehm-2.0.so.1 -> libmonoboehm-2.0.so.1.0.0
-rw-r--r--  1 root root 17066051 avril 20  2017 libmonoboehm-2.0.so.1.0.0
-rw-r--r--  1 root root   845826 avril 20  2017 libMonoPosixHelper.so
lrwxrwxrwx  1 root root       24 avril 20  2017 libmonosgen-2.0.so -> libmonosgen-2.0.so.1.0.0
lrwxrwxrwx  1 root root       24 avril 20  2017 libmonosgen-2.0.so.1 -> libmonosgen-2.0.so.1.0.0
-rw-r--r--  1 root root 19069013 avril 20  2017 libmonosgen-2.0.so.1.0.0
-rw-r--r--  1 root root   318631 avril 20  2017 libMonoSupportW.so
-rw-r--r--  1 root root    30630 avril 20  2017 libpangosharpglue-2.so
drwxr-xr-x 14 root root     4096 sept. 18 11:36 mono
drwxr-xr-x  2 root root     4096 sept. 18 11:36 mono-source-libs

RTFM@1984
Newbie
Posts: 0
Joined: Sun Jul 07, 2019 10:09 pm

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by RTFM@1984 »

Is the symbolic link to which libgdiplus refers to also present on your system?

RTFM@1984
Newbie
Posts: 0
Joined: Sun Jul 07, 2019 10:09 pm

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by RTFM@1984 »

Are you able to start picoscope in demo mode, i.e. without a device connected?

steph
Newbie
Posts: 0
Joined: Fri May 04, 2018 10:42 am

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by steph »

I don't see any pbs with symbolic links.
No, unable to start picoscope in demo mode.
The program crashes right from launch.
I only see the error window attached.
Attachments
pico.png

RTFM@1984
Newbie
Posts: 0
Joined: Sun Jul 07, 2019 10:09 pm

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by RTFM@1984 »

Could you try to find out with strace which file access attempt, if any, is causing a problem?

steph
Newbie
Posts: 0
Joined: Fri May 04, 2018 10:42 am

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by steph »

Here is the file generated by strace :
https://webcloud.zaclys.com/index.php/s/5FssaDmfctz8nf8
It doesn't really help me. Maybe you ?

RTFM@1984
Newbie
Posts: 0
Joined: Sun Jul 07, 2019 10:09 pm

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by RTFM@1984 »

picotech forum is not allowing me to reply with some bash output.

What is the purpose of this forum at all?

I wanted to say that you can check your locale in linux. Mine is the following:

Code: Select all

$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_GB.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=

RTFM@1984
Newbie
Posts: 0
Joined: Sun Jul 07, 2019 10:09 pm

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by RTFM@1984 »

If you follow the symbolic link to picoscope and the script which is in:

/opt/picoscope/bin/picoscope

can you find out if something is not working in the script?

In my case, I can start it manually with:

Code: Select all

# assuming mono is located at:
#  $(which mono 2>/dev/null)
# and equals to:
#  /opt/picomono/bin/mono

export PATH="/opt/picomono/bin:$PATH"
export LD_LIBRARY_PATH="/opt/picomono/lib:$LD_LIBRARY_PATH"
export MONO_PATH=/opt/picoscope/lib
cd /opt/picoscope/lib
exec sg pico -c "/opt/picomono/bin/mono /opt/picoscope/lib/PicoScope.GTK.exe"
The advantage is that all errors are shown in the terminal and maybe you can see from there why it is crashing.

Good luck!

steph
Newbie
Posts: 0
Joined: Fri May 04, 2018 10:42 am

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by steph »

Thank you.
But I give up. Maybe the next versions will settle this pb.

jii
Newbie
Posts: 0
Joined: Thu Oct 03, 2019 2:22 pm

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by jii »

The most likely reason is, that you are missing libpng12 -library. Ubuntu 18 (and newer) ships only with libpng16 installed, and libpng12 is not available from apt library.

You need to install the files manually from .deb file:
Download the file from here https://packages.ubuntu.com/xenial/amd64/libpng12-0/download

Extract contents with dpkg -x, eg.

Code: Select all

dpkg -X somefolder libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
Copy the library to /lib/x86_64-linux-gnu (you need root access to do this!)

Code: Select all

sudo cp -rp somefolder/* /lib/x86_64-linux-gnu
After this Picoscope should start. Or at least this fixed the error for me!

Wellental
Newbie
Posts: 0
Joined: Tue Oct 29, 2019 3:19 pm

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by Wellental »

Same here! on fresh 18.04 install.
installing libpng12-0 fixed it.

gicking
Newbie
Posts: 0
Joined: Fri Dec 13, 2019 11:41 pm

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by gicking »

same here on Xubuntu 18.04.3 LTS

Installing libpng12-0 via apt solved my problem:
1) sudo bash -c 'echo "deb http://security.ubuntu.com/ubuntu xenial-security main" > /etc/apt/sources.list
2) sudo apt-get update
3) sudo apt-get install libpng12-0

Thanks a lot!

redlerm
Newbie
Posts: 0
Joined: Thu Feb 20, 2020 7:20 pm

Re: PicoScope 6 crashes at startup on Ubuntu 18.04

Post by redlerm »

FYI - This worked for me too. This is on Ubuntu 18.04 running from an SD card on a Chromebook. :-)

Post Reply