Test and Measurement Forum

Crash in native code on startup (Ubuntu 12.04, PS 3000)

Discussion forum for the new Picoscope Linux software

Crash in native code on startup (Ubuntu 12.04, PS 3000)

Postby mfuzzey » Wed Jan 21, 2015 2:02 pm

Hi,

have just installed picoscope on Ubuntu 12.04.
Version info

Code: Select all
mfuzzey@PC12445-BES:/opt/picoscope/lib$ apt-show-versions -r "picoscope|mono-runtime|libusb"
libusb-0.1-4/precise uptodate 2:0.1.12-20
libusb-1.0-0/precise uptodate 2:1.0.9~rc3-2ubuntu1
libusbdrdaq/picoscope uptodate 1.0.4-1r09
libusbmuxd1/precise uptodate 1.0.7-2ubuntu0.1
mono-runtime/precise uptodate 2.10.8.1-1ubuntu2.2
picoscope/picoscope uptodate 6.10.1-4r25


Crash information (after splash screen) is:
Code: Select all
Stacktrace:

  at (wrapper managed-to-native) J/c.a (bc,int,uint,ba/i,single,single,single,single,ba/SiggenSweepType,ba/j,uint,uint,ba/SiggenTrigType,ba/SiggenTrigSource,int16) <0xffffffff>
  at J.SetSiggen (int,uint,ba/i,single,single,single,single,ba/SiggenSweepType,ba/j,uint,uint,ba/SiggenTrigType,ba/SiggenTrigSource,int16) <0x0015b>
  at l.a (ck) <0x0051a>
  at l.DirectConfigureSiggen () <0x0004f>
  at e.h () <0x00097>
  at l.b () <0x06f33>
  at l..ctor (B) <0x002f3>
  at J..ctor (cB) <0x00017>
  at cB.DoCreateDevice () <0x00027>
  at z.a () <0x00048>
  at cV.a (ej,bool,bool,System.Collections.Generic.List`1<Pico.Common.Dal.DeviceSeries>) <0x00147>
  at dV.a (bool,bool) <0x0007f>
  at dV.a (bool,bool) <0x001ef>
  at dV.StartApp (bool,bool) <0x0006b>
  at aw.b () <0x0006b>
  at aG.a (object,System.EventArgs) <0x00033>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object_object (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0018b>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at System.Delegate.DynamicInvokeImpl (object[]) <0x001a3>
  at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x0003b>
  at System.Delegate.DynamicInvoke (object[]) <0x00018>
  at GLib.Signal.ClosureInvokedCB (object,GLib.ClosureInvokedArgs) <0x0014f>
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs) <0x0002f>
  at GLib.SignalClosure.MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) <0x0029b>
  at (wrapper native-to-managed) GLib.SignalClosure.MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) Gtk.Widget.gtk_widget_show_all (intptr) <0xffffffff>
  at Gtk.Widget.ShowAll () <0x00013>
  at aG/<>c__DisplayClassd.<StartApplication>b__a () <0x00043>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0018b>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at System.Delegate.DynamicInvokeImpl (object[]) <0x001a3>
  at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x0003b>
  at System.Delegate.DynamicInvoke (object[]) <0x00018>
  at az/a.b () <0x0002f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this__ (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0018b>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at System.Delegate.DynamicInvokeImpl (object[]) <0x001a3>
  at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x0003b>
  at System.Delegate.DynamicInvoke (object[]) <0x00018>
  at ar.a () <0x00033>
  at aq.b () <0x00127>
  at GLib.Idle/IdleProxy.Handler () <0x0003a>
  at (wrapper native-to-managed) GLib.Idle/IdleProxy.Handler () <0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff>
  at Gtk.Application.Run () <0x0000b>
  at aG.b () <0x001bb>
  at i.a () <0x00041>
  at aG.a () <0x004a3>
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

   /usr/bin/mono() [0x4916ba]
   /usr/bin/mono() [0x4e0d4f]
   /usr/bin/mono() [0x41bc77]
   /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7f5b07a35cb0]
   /usr/local/lib/libusb-1.0.so.0(libusb_get_next_timeout+0x27) [0x7f5ae380c0b7]
   /usr/local/lib/libusb-1.0.so.0(+0x5274) [0x7f5ae380c274]
   /usr/local/lib/libusb-1.0.so.0(libusb_handle_events_timeout+0x1f) [0x7f5ae380ce8f]
   /opt/picoscope/lib/libps3000a.so(+0xc0894) [0x7f5adecab894]
   /opt/picoscope/lib/libps3000a.so(+0xc0c77) [0x7f5adecabc77]
   /opt/picoscope/lib/libps3000a.so(+0x9f6e7) [0x7f5adec8a6e7]
   /opt/picoscope/lib/libps3000a.so(+0x8213c) [0x7f5adec6d13c]
   /opt/picoscope/lib/libps3000a.so(+0xa2ea0) [0x7f5adec8dea0]
   /opt/picoscope/lib/libps3000a.so(+0xa3598) [0x7f5adec8e598]
   /opt/picoscope/lib/libps3000a.so(+0xa9a97) [0x7f5adec94a97]
   /opt/picoscope/lib/libps3000a.so(ps3000aSetSigGenBuiltIn+0x12b) [0x7f5adec043cb]
   [0x414ea77b]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================



Running with mono gives:
Code: Select all
mfuzzey@PC12445-BES:/opt/picoscope/lib$ mono PicoScope.GTK.exe
Info: Trace opened 1/21/2015.
Environment: Info: Running on Mono - True
Environment: Info: Mono Display Name - 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.2)
Environment: Info: Host Operating System - Linux
Environment: Info: 64Bit Operating System - True
Environment: Info: 64Bit Process - True
Environment: Info: Logical Processors - 8
ApplicationInfo: Info: Application 'PicoScope 6 Beta' (version 6.10.1.25) starting.
ID: Info: 4F2D9AEE13C6181A9AC62001C17EF034
Environment: Info: User is not Guest
Environment: Info: No Administrator Privileges
Environment: Info: Failed to detect access rights
Environment: Info: OS Version - Unix 3.2.0.74
Environment: Info: .net Version - 4.0.30319.1
Environment: Info: Current Directory - /opt/picoscope/lib
Environment: Info: Command Line - /opt/picoscope/lib/PicoScope.GTK.exe
ApplicationInfo: Info: Settings file version - 11.2.0
ApplicationInfo: Info: Preferences file version - 2.0.0
ApplicationInfo: Info: Probes file version - 1.0.0
ApplicationInfo: Info: Data file binary header version - 1
Info: Using default culture: English (United States).
InitalDeviceLoadSequence: Info: Begin
Scanning for USB devices: Info: Begin
Scanning for USB devices: Info: Complete
Device: Info: Attempting to load ps6000.dll
Device: Info: Finished loading ps6000.dll
Device: Info: Opening device using DLL ps6000.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load ps6000.dll
Could not load signature of System.Net.Http.HttpContent:SerializeToStreamAsync due to:
Device: Info: Finished loading ps6000.dll
Device: Info: Opening device using DLL ps6000.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load ps5000a.dll
Device: Info: Finished loading ps5000a.dll
Device: Info: Opening device using DLL ps5000a.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load ps5000.dll
Device: Info: Finished loading ps5000.dll
Device: Info: Opening device using DLL ps5000.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load ps4000a.dll
Device: Info: Finished loading ps4000a.dll
Device: Info: Opening device using DLL ps4000a.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load ps4000a.dll
Device: Info: Finished loading ps4000a.dll
Device: Info: Opening device using DLL ps4000a.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load ps4000.dll
Device: Info: Finished loading ps4000.dll
Device: Info: Opening device using DLL ps4000.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load ps3000a.dll
Device: Info: Finished loading ps3000a.dll
Device: Info: Opening device using DLL ps3000a.dll
Device: Info: Opening device successful. Error NoError.
Device: Info: Device opened CU659/060: PS3000A_USB30_PIPER PS3406DMSO PS3000A
Device: Info: Attempting to load ps3000a.dll
Device: Info: Finished loading ps3000a.dll
Device: Info: Opening device using DLL ps3000a.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load ps3000a.dll
Device: Info: Finished loading ps3000a.dll
Device: Info: Opening device using DLL ps3000a.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load ps3000a.dll
Device: Info: Finished loading ps3000a.dll
Device: Info: Opening device using DLL ps3000a.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load ps3000.dll
Device: Info: Finished loading ps3000.dll
Device: Info: Opening device using DLL ps3000.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load ps2000a.dll
Device: Info: Finished loading ps2000a.dll
Device: Info: Opening device using DLL ps2000a.dll
Message: Info: Opening PS2000a.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load ps2000.dll
Device: Info: Finished loading ps2000.dll
Device: Info: Opening device using DLL ps2000.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load usbdrdaq.dll
Device: Info: Finished loading usbdrdaq.dll
Device: Info: Opening device using DLL usbdrdaq.dll
Device: Info: usbdrdaq.dll OpenUnit returned 3
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: Attempting to load pl1000.dll
Device: Info: Finished loading pl1000.dll
Device: Info: Opening device using DLL pl1000.dll
Device: Info: Opening device unsuccessful. Error UnitNotFound
Device: Info: No of Devices Found: 1
Device: Info: Device selected: PS3406DMSO, CU659/060
Info: Driver: ps3000a.dll Version: PS3000A Linux Driver, 1.4.4.22
Info: Kernel driver: picopp.sys Version: PS3000A Linux Driver, 1.4.4.22
InitalDeviceLoadSequence: Info: Complete
Stacktrace:

  at (wrapper managed-to-native) J/c.a (bc,int,uint,ba/i,single,single,single,single,ba/SiggenSweepType,ba/j,uint,uint,ba/SiggenTrigType,ba/SiggenTrigSource,int16) <0xffffffff>
  at J.SetSiggen (int,uint,ba/i,single,single,single,single,ba/SiggenSweepType,ba/j,uint,uint,ba/SiggenTrigType,ba/SiggenTrigSource,int16) <0x0015b>
  at l.a (ck) <0x0051a>
  at l.DirectConfigureSiggen () <0x0004f>
  at e.h () <0x00097>
  at l.b () <0x06f33>
  at l..ctor (B) <0x002f3>
  at J..ctor (cB) <0x00017>
  at cB.DoCreateDevice () <0x00027>
  at z.a () <0x00048>
  at cV.a (ej,bool,bool,System.Collections.Generic.List`1<Pico.Common.Dal.DeviceSeries>) <0x00147>
  at dV.a (bool,bool) <0x0007f>
  at dV.a (bool,bool) <0x001ef>
  at dV.StartApp (bool,bool) <0x0006b>
  at aw.b () <0x0006b>
  at aG.a (object,System.EventArgs) <0x00033>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object_object (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0018b>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at System.Delegate.DynamicInvokeImpl (object[]) <0x001a3>
  at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x0003b>
  at System.Delegate.DynamicInvoke (object[]) <0x00018>
  at GLib.Signal.ClosureInvokedCB (object,GLib.ClosureInvokedArgs) <0x0014f>
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs) <0x0002f>
  at GLib.SignalClosure.MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) <0x0029b>
  at (wrapper native-to-managed) GLib.SignalClosure.MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) Gtk.Widget.gtk_widget_show_all (intptr) <0xffffffff>
  at Gtk.Widget.ShowAll () <0x00013>
  at aG/<>c__DisplayClassd.<StartApplication>b__a () <0x00043>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0018b>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at System.Delegate.DynamicInvokeImpl (object[]) <0x001a3>
  at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x0003b>
  at System.Delegate.DynamicInvoke (object[]) <0x00018>
  at az/a.b () <0x0002f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this__ (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0018b>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at System.Delegate.DynamicInvokeImpl (object[]) <0x001a3>
  at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x0003b>
  at System.Delegate.DynamicInvoke (object[]) <0x00018>
  at ar.a () <0x00033>
  at aq.b () <0x00127>
  at GLib.Idle/IdleProxy.Handler () <0x0003a>
  at (wrapper native-to-managed) GLib.Idle/IdleProxy.Handler () <0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff>
  at Gtk.Application.Run () <0x0000b>
  at aG.b () <0x001bb>
  at i.a () <0x00041>
  at aG.a () <0x004a3>
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

   mono() [0x4916ba]
   mono() [0x4e0d4f]
   mono() [0x41bc77]
   /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7f641d5cecb0]
   /usr/local/lib/libusb-1.0.so.0(libusb_submit_transfer+0x13c) [0x7f6401335a3c]
   /opt/picoscope/lib/libps3000a.so(+0xc086b) [0x7f63f552286b]
   /opt/picoscope/lib/libps3000a.so(+0xc0c77) [0x7f63f5522c77]
   /opt/picoscope/lib/libps3000a.so(+0x9f6e7) [0x7f63f55016e7]
   /opt/picoscope/lib/libps3000a.so(+0x8213c) [0x7f63f54e413c]
   /opt/picoscope/lib/libps3000a.so(+0xa2ea0) [0x7f63f5504ea0]
   /opt/picoscope/lib/libps3000a.so(+0xa3598) [0x7f63f5505598]
   /opt/picoscope/lib/libps3000a.so(+0xa9a97) [0x7f63f550ba97]
   /opt/picoscope/lib/libps3000a.so(ps3000aSetSigGenBuiltIn+0x12b) [0x7f63f547b3cb]
   [0x4154e76b]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted (core dumped)




Demo mode (scope disconnected) works.

Any ideas?

Thanks,

Martin
mfuzzey
Newbie
 
Posts: 0
Joined: Wed Jan 21, 2015 1:54 pm

Re: Crash in native code on startup (Ubuntu 12.04, PS 3000)

Postby mario_ » Fri Jan 23, 2015 2:03 pm

Hi Martin,

You are probably experiencing the same problems with USB stability as described in main thread.
Have look in this post topic13191-90.html#p44431 and also previous entries in case you'd like to try latest release candidate.
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