Forums - System.DllNotFoundException: SDPCore

10 posts / 0 new
Last post
System.DllNotFoundException: SDPCore
Emeric
Join Date: 6 Oct 15
Posts: 2
Posted: Wed, 2015-10-14 06:28

Hi, I'd like to use SnapdragonProfiler-v1.1 for Linux with APQ8084 devboard. My machine run Ubuntu 14.04 x86_64 and I updated mono to latest version.

$ mono --version
Mono JIT compiler version 4.0.4 (Stable 4.0.4.1/5ab4c0d Tue Aug 25 23:11:51 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

My problem is I cannot start SDP: it complains of a missing library:

SnapdragonProfiler:9909): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",

(SnapdragonProfiler:9909): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",

Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for SDPCorePINVOKE ---> System.TypeInitializationException: An exception was thrown by the type initializer for SWIGExceptionHelper ---> System.DllNotFoundException: SDPCore
at (wrapper managed-to-native) SDPCorePINVOKE/SWIGExceptionHelper:SWIGRegisterExceptionCallbacks_SDPCore (SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate)
at SDPCorePINVOKE+SWIGExceptionHelper..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at SDPCorePINVOKE..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at DeviceAttributes..ctor () [0x00000] in <filename unknown>:0
at Sdp.SettingsModel..ctor () [0x00000] in <filename unknown>:0
at Sdp.ModelManager..ctor () [0x00000] in <filename unknown>:0
at Sdp.SdpApp.Init (IPlatform platform) [0x00000] in <filename unknown>:0
at Sdp.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for SDPCorePINVOKE ---> System.TypeInitializationException: An exception was thrown by the type initializer for SWIGExceptionHelper ---> System.DllNotFoundException: SDPCore
at (wrapper managed-to-native) SDPCorePINVOKE/SWIGExceptionHelper:SWIGRegisterExceptionCallbacks_SDPCore (SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate)
at SDPCorePINVOKE+SWIGExceptionHelper..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at SDPCorePINVOKE..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at DeviceAttributes..ctor () [0x00000] in <filename unknown>:0
at Sdp.SettingsModel..ctor () [0x00000] in <filename unknown>:0
at Sdp.ModelManager..ctor () [0x00000] in <filename unknown>:0
at Sdp.SdpApp.Init (IPlatform platform) [0x00000] in <filename unknown>:0
at Sdp.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0

I don't have such a lib in the tarball I downloaded, but I have libSDPCore.so. What did I miss?

  • Up0
  • Down0
mstreet Moderator
Join Date: 23 Apr 15
Location: San Diego
Posts: 4
Posted: Mon, 2015-10-19 10:56

Hi Emeric,

 

Can you verify that you have installed the following:

Latest libc++ C++ Runtime:

sudo apt-get install libc++1 

Install Java Runtime (1.7.0_79) or later

sudo apt-get install default-jre

 

And that you are running Snapdragon Profiler using the ./run_sdb.sh script?

 

Thanks,

Mike

  • Up0
  • Down0
Emeric
Join Date: 6 Oct 15
Posts: 2
Posted: Fri, 2015-10-30 08:09

Everything was present except libc++1. Installing it fixed my issue. Thanks!

  • Up0
  • Down0
jnuliulei
Join Date: 7 Dec 15
Posts: 1
Posted: Mon, 2015-12-07 16:20

hi,

I also found the same question,and the error log is the same. but I have installed the latest libc++1, I do not know what I missed, please help.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libc++1 is already the newest version.
 

my os is ubuntu 14,

mono --version

TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  x86
    Disabled:      none
    Misc:          softdebug
    LLVM:          supported, not enabled.
    GC:            sgen

java -version:

java version "1.7.0_91"
OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-0ubuntu0.14.04.1)
OpenJDK Server VM (build 24.91-b01, mixed mode)

and start snapdragon profiler with "./run_sdp.sh",

is something wrong?

thanks.

 

  • Up0
  • Down0
mstreet Moderator
Join Date: 23 Apr 15
Location: San Diego
Posts: 4
Posted: Mon, 2015-12-07 17:37

Hi jnuliulei,

 

According to the output of your "mono --version" command, you are using a 32-bit version of Linux whereas the requirement for SDP on Linux is a 64-bit archtechture.  (i.e. x86 is 32bit and amd64 or x64 are 64-bit versions).

 

Thanks,

 

Mike

  • Up0
  • Down0
ujnliulei
Join Date: 5 Jun 15
Posts: 1
Posted: Sun, 2015-12-13 02:34

Hi Mike,

it works now, thanks!

  • Up0
  • Down0
pratikrahate30
Join Date: 5 Oct 16
Posts: 1
Posted: Wed, 2016-10-05 23:04

Hi,

 

Profiler started successfully .

Thanks.

 

  • Up0
  • Down0
dbharbin
Join Date: 4 May 16
Posts: 1
Posted: Fri, 2017-09-15 09:57

having same issue.  error here:

(SnapdragonProfiler:10355): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
 
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'SDPCorePINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: SDPCore
  at (wrapper managed-to-native) SDPCorePINVOKE+SWIGExceptionHelper:SWIGRegisterExceptionCallbacks_SDPCore (SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate)
  at SDPCorePINVOKE+SWIGExceptionHelper..cctor () [0x000ee] in <9e3b19dec36c4a0dad6a66d1d4e3d5b6>:0 
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr)
  at SDPCorePINVOKE..cctor () [0x00000] in <9e3b19dec36c4a0dad6a66d1d4e3d5b6>:0 
   --- End of inner exception stack trace ---
 
Followed the README.txt.  Here is my history:
 
262  sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
  263  echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
  264  sudo apt-get update
  265  sudo apt-get install mono-complete
  266  sudo apt-get install libc++1
  267  sudo apt-get install default-jre
  268  sudo apt-get install android-tools-adb
  269  echo $PATH
  271  PATH=$PATH:/usr/bin/adb  //prolly didn't need to do
 
I am on Debian latest.
 
Any hints?  
  • Up0
  • Down0
siddiqh.x.mohammed
Join Date: 30 Jul 19
Posts: 2
Posted: Wed, 2020-01-22 19:46

Hi All,

mine is 64bit. still I get same error/

Mono JIT compiler version 4.6.2 (Debian 4.6.2.7+dfsg-1ubuntu1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug
    LLVM:          supported, not enabled.
    GC:            sgen

 

let me know

 

BRs

Siddiqh M

  • Up0
  • Down0
siddiqh.x.mohammed
Join Date: 30 Jul 19
Posts: 2
Posted: Tue, 2020-02-11 02:22

Hi All,

My machine is Ubuntu 16.04.5 LTS and I updated mono to latest version.

$ mono --version

Mono JIT compiler version 6.8.0.105 (tarball Tue Feb  4 21:20:35 UTC 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug
    Interpreter:   yes
    LLVM:          yes(610)
    Suspend:       hybrid
    GC:            sgen (concurrent by default)

still I get the same error:

(SnapdragonProfiler:7345): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",

(SnapdragonProfiler:7345): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",

(SnapdragonProfiler:7345): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
SDPTheme/gtkrc:385: Unable to find include file: "styles/startpage"
SDPTheme/gtkrc:387: Unable to find include file: "styles/statusbar"

(SnapdragonProfiler:7345): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",

(SnapdragonProfiler:7345): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",

(SnapdragonProfiler:7345): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'SDPCorePINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: SDPCore assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) SDPCorePINVOKE+SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_SDPCore(SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate)
  at SDPCorePINVOKE+SWIGExceptionHelper..cctor () [0x000ee] in <5e30a5c6586b4d1cadf3d509da0726a5>:0
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at SDPCorePINVOKE..cctor () [0x00000] in <5e30a5c6586b4d1cadf3d509da0726a5>:0
   --- End of inner exception stack trace ---
  at DeviceAttributes..ctor () [0x00000] in <5e30a5c6586b4d1cadf3d509da0726a5>:0
  at Sdp.SettingsModel..ctor () [0x00011] in <149fe000e86f431189d7220bc56ef288>:0
  at Sdp.ModelManager..ctor () [0x00048] in <149fe000e86f431189d7220bc56ef288>:0
  at Sdp.SdpApp.Init (Sdp.IPlatform platform) [0x0001a] in <149fe000e86f431189d7220bc56ef288>:0
  at Sdp.MainClass.Main (System.String[] args) [0x00167] in <ee9d94a30e9c4516b29080ba5c0c86be>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'SDPCorePINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: SDPCore assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) SDPCorePINVOKE+SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_SDPCore(SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate,SDPCorePINVOKE/SWIGExceptionHelper/ExceptionDelegate)
  at SDPCorePINVOKE+SWIGExceptionHelper..cctor () [0x000ee] in <5e30a5c6586b4d1cadf3d509da0726a5>:0
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at SDPCorePINVOKE..cctor () [0x00000] in <5e30a5c6586b4d1cadf3d509da0726a5>:0
   --- End of inner exception stack trace ---
  at DeviceAttributes..ctor () [0x00000] in <5e30a5c6586b4d1cadf3d509da0726a5>:0
  at Sdp.SettingsModel..ctor () [0x00011] in <149fe000e86f431189d7220bc56ef288>:0
  at Sdp.ModelManager..ctor () [0x00048] in <149fe000e86f431189d7220bc56ef288>:0
  at Sdp.SdpApp.Init (Sdp.IPlatform platform) [0x0001a] in <149fe000e86f431189d7220bc56ef288>:0
  at Sdp.MainClass.Main (System.String[] args) [0x00167] in <ee9d94a30e9c4516b29080ba5c0c86be>:0

Snapdragon Profiler Application GUI is not getting launched. Please let us know how to resolve this.

BRs

Siddiqh M

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.