Picoscope Software doesn't work Ubuntu 18.04

Discussion forum for the new Picoscope Linux software
Post Reply
igodphil
Newbie
Posts: 0
Joined: Sun Nov 10, 2019 4:32 pm

Picoscope Software doesn't work Ubuntu 18.04

Post by igodphil » Sun Nov 10, 2019 4:42 pm

Hey,

i have installed the Picoscope software from the repository. If i want to start the software i get this error message:
File: trace.xml
Path: /home/phil/.local/share/Pico Technology/260a68f1-c314-451b-830f-0a5e01d65514/trace.xml
Contents:

Trace opened 10.11.2019.
Application 'PicoScope 6 Beta' (version 6.13.7.707) starting.
60BFBF01CAA739640A71C8DDD600E6AD
User is not Guest
No Administrator Privileges
Failed to detect access rights
Host Operating System - Linux
OS Version - Unix 5.0.0.32
.net Version - 4.0.30319.42000
Running on Mono - True
Mono Display Name - 4.6.2 (Stable 4.6.2.16/ac9e222 Thu Apr 20 10:05:37 BST 2017)
Current Directory - /opt/picoscope/lib
Processor Count - 2
64Bit Operating System - True
64Bit Process - True
Command Line - /opt/picoscope/lib/PicoScope.GTK.exe
Settings file version - 11.3.1
Preferences file version - 2.0.0
Probes file version - 1.0.0
Data file binary header version - 1
Creating Preferences file.
Using default culture: English (United States).
Unhandled Exception 1:System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: /opt/picomono/lib/libgdiplus.so
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000cc] in <1917aa1c39d94b1a91807b8cd9f03350>:0
--- End of inner exception stack trace ---
at System.Drawing.Icon.GetInternalBitmap () [0x0000b] in <1917aa1c39d94b1a91807b8cd9f03350>:0
at System.Drawing.Icon.ToBitmap () [0x0001b] in <1917aa1c39d94b1a91807b8cd9f03350>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Icon:ToBitmap ()
at Pico...ctor () [0x00097] in <6b774d82131044baaefb7b6415580f0b>:0
at Pico.. () [0x00044] in <6b774d82131044baaefb7b6415580f0b>:0
at Pico..RunApplication (System.Collections.Generic.List`1[T] startupErrors) [0x00037] in <2ee687ea0fcb44359ca9fe09ef46e18c>:0
at Pico.. () [0x00103] in <6b774d82131044baaefb7b6415580f0b>:0
at Pico..Main () [0x00040] in <6b774d82131044baaefb7b6415580f0b>:0

Inner Exception:System.DllNotFoundException: /opt/picomono/lib/libgdiplus.so
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000cc] in <1917aa1c39d94b1a91807b8cd9f03350>:0

Trace Closing
I'am using Linux Ubuntu 18.04 LTS. So what can i do?

elzaphod
Newbie
Posts: 0
Joined: Tue Sep 15, 2015 11:17 am

Re: Picoscope Software doesn't work Ubuntu 18.04

Post by elzaphod » Wed Nov 20, 2019 4:25 pm

Same here:

Code: Select all


    Trace opened 11/20/2019.
    Application 'PicoScope 6 Beta' (version 6.13.7.707) starting.
    C5076770FE2CF38082C8B59678A0A28A
    User is not Guest
    Administrator Privileges
    Failed to detect access rights
    Host Operating System - Linux
    OS Version - Unix 5.0.0.36
    .net Version - 4.0.30319.42000
    Running on Mono - True
    Mono Display Name - 4.6.2 (Stable 4.6.2.16/ac9e222 Thu Apr 20 10:05:37 BST 2017)
    Current Directory - /opt/picoscope/lib
    Processor Count - 4
    64Bit Operating System - True
    64Bit Process - True
    Command Line - /opt/picoscope/lib/PicoScope.GTK.exe
    Settings file version - 11.3.1
    Preferences file version - 2.0.0
    Probes file version - 1.0.0
    Data file binary header version - 1
    Creating Preferences file.
    Using default culture: English (United States).
    Unhandled Exception 1:System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: /opt/picomono/lib/libgdiplus.so
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x000cc] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
   --- End of inner exception stack trace ---
  at System.Drawing.Icon.GetInternalBitmap () [0x0000b] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
  at System.Drawing.Icon.ToBitmap () [0x0001b] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Icon:ToBitmap ()
  at Pico...ctor () [0x00097] in <6b774d82131044baaefb7b6415580f0b>:0 
  at Pico.. () [0x00044] in <6b774d82131044baaefb7b6415580f0b>:0 
  at Pico..RunApplication (System.Collections.Generic.List`1[T] startupErrors) [0x00037] in <2ee687ea0fcb44359ca9fe09ef46e18c>:0 
  at Pico.. () [0x00103] in <6b774d82131044baaefb7b6415580f0b>:0 
  at Pico..Main () [0x00040] in <6b774d82131044baaefb7b6415580f0b>:0 
    Inner Exception:System.DllNotFoundException: /opt/picomono/lib/libgdiplus.so
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x000cc] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
    Trace Closing

The library

Code: Select all

 /opt/picomono/lib/libgdiplus.so
exists and

Code: Select all

echo $LD_LIBRARY_PATH
:/opt/picomono/lib


I tried it with and without sudo and my user is part of the 'pico' group.

Any news?

PrzemoF
User
User
Posts: 2
Joined: Sat Nov 09, 2019 10:24 am

Re: Picoscope Software doesn't work Ubuntu 18.04

Post by PrzemoF » Sun Nov 24, 2019 5:35 pm

1. Check if you have file: /opt/picomono/lib/libgdiplus.so
2. Check what are the file permissions.
3. On my system (non-ubuntu):

Code: Select all

$ ls -la /opt/picomono/lib/libgdiplus.so
lrwxrwxrwx. 1 root root 22 11-17 09:42 /opt/picomono/lib/libgdiplus.so -> /lib64/libgdiplus.so.0
localhost:/home/przemo
$ rpm -qf /lib64/libgdiplus.so.0
libgdiplus-5.6-3.fc30.x86_64

elzaphod
Newbie
Posts: 0
Joined: Tue Sep 15, 2015 11:17 am

Re: Picoscope Software doesn't work Ubuntu 18.04

Post by elzaphod » Tue Nov 26, 2019 8:37 am

Hi,

thanks for your time.

Code: Select all

alois@alois-ThinkPad-X1-Carbon-2nd:/opt/picomono/lib$ ll
total 39380
drwxr-xr-x  6 root root     4096 Nov 20 16:47 ./
drwxr-xr-x  7 root root     4096 Nov 20 16:47 ../
drwxr-xr-x  2 root root     4096 Nov 20 16:47 gtk-sharp-2.0/
drwxr-xr-x  2 root root     4096 Nov 20 16:47 lib/
-rw-r--r--  1 root root    70168 Apr 20  2017 libatksharpglue-2.so
lrwxrwxrwx  1 root root       19 Apr 20  2017 libgdiplus.so -> libgdiplus.so.0.0.0
lrwxrwxrwx  1 root root       19 Apr 20  2017 libgdiplus.so.0 -> libgdiplus.so.0.0.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 Nov 20 16:47 mono/
drwxr-xr-x  2 root root     4096 Nov 20 16:47 mono-source-libs/
alois@alois-ThinkPad-X1-Carbon-2nd:/opt/picomono/lib$ sudo rpm -qf libgdiplus.so.0.0.0 
file /opt/picomono/lib/libgdiplus.so.0.0.0 is not owned by any package
The package does not have any ownership. I just reinstalled the picoscope package with all it's supplementing packages, but the outcome of the commands is the very same.

Cheers,
Hendrik

PrzemoF
User
User
Posts: 2
Joined: Sat Nov 09, 2019 10:24 am

Re: Picoscope Software doesn't work Ubuntu 18.04

Post by PrzemoF » Thu Nov 28, 2019 11:34 am

OK, I'm not sure why, but on my system it's linked to library in /lib64. On your system it's linked to the file in the same directory. Check if you have that library somewhere else in the system. It's part of libgdiplus - if you don't have it installed - install it and try to use it (replace the links with links pointing the the newly installed libgdiplus). I don't know if it's going to help, but it's worth a try.

P.S. Debugging non-open source is always pain...

Post Reply