Xamarin not work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I try create Xamarin Forms app, as described here:
https://trac.pjsip.org/repos/ticket/2086

All compiled and linked properly, both for Android and iOS. But I have
crash app on both platforms:

Android:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Xiaomi/kenzo/kenzo:6.0.1/MMB29M/8.5.19:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 32119, tid: 32119, name: ame.XamFormTest >>> com.companyname.XamFormTest <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
r0 00000000 r1 ff846bac r2 00010004 r3 ff846bec
r4 00000000 r5 ff846bac r6 00000000 r7 d8eed330
r8 ff846be4 r9 aaea3328 sl 12c32560 fp ff846cb0
ip d8ee3bb8 sp ff846ba8 lr d8e79227 pc d8e79be6 cpsr 400d0030

backtrace:
#00 pc 00137be6 /data/app/com.companyname.XamFormTest-1/lib/arm/libpjsua2.so (pj_generate_unique_string+25)
#01 pc 00137223 /data/app/com.companyname.XamFormTest-1/lib/arm/libpjsua2.so (pj_init+74)
#02 pc 000bdc15 /data/app/com.companyname.XamFormTest-1/lib/arm/libpjsua2.so (pjsua_create+120)
#03 pc 000a4e69 /data/app/com.companyname.XamFormTest-1/lib/arm/libpjsua2.so (_ZN2pj8Endpoint9libCreateEv+8)
#04 pc 0008b083 /data/app/com.companyname.XamFormTest-1/lib/arm/libpjsua2.so (CSharp_pjsua2xamarinfpjsua2_Endpoint_libCreate___+2)
#05 pc 00003c90 <unknown>

iOS:

XamFormTest.iOS[191:3684] Unhandled managed exception:
The type initializer for 'pjsua2xamarin.sample' threw an exception. (System.TypeInitializationException)
  at XamFormTest.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00013] in C:\Users\Prof\Documents\Visual Studio 2017\Projects\XamFormTest\XamFormTest.iOS\AppDelegate.cs:25 
  at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
  at XamFormTest.iOS.Application.Main (System.String[] args) [0
ua2xamarin.pjsua2.pjsua2PINVOKE/SWIGExceptionHelper:SetPendingApplicationException (intptr)' while running in aot-only mode. See https://developer.xamarin.com/guides/ios/advanced_topics/limitations/ for more information.
 (System.ExecutionEngineException)
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_delegate_to_ftnptr(object)
  at (wrapper managed-to-native) pjsua2xamarin.pjsua2.pjsua2PINVOKE+SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_pjsua2(pjsua2xamarin.pjsua2.pjsua2PINVOKE/SWIGExceptionHelper/ExceptionDelegate,pjsua2xamarin.pjsua2.pjsua2PINVOKE/SWIGExceptionHelper/ExceptionDelegate,pjsua2xamarin.pjsua2.pjsua2PINVOKE/SWIGExceptionHelper/ExceptionDelegate,pjsua2xamarin.pjsua2.pjsua2PINVOKE/SWIGExceptionHelper/ExceptionDelegate,pjsua2xamarin.pjsua2.pjsua2PINVOKE/SWIGExceptionHelper/ExceptionDelegate,pjsua2xamarin.pjsua2.pjsua2PINVOKE/SWIGExceptionHelper/ExceptionDelegate,pjsua2xamarin.pjsua2.pjsua2PINVOKE/SWIGExceptionHelper/ExceptionDelegate,pjsua2xamarin.pjsua2.pjsua2PINVOKE/S
x00001] in C:\Users\Prof\Documents\Visual Studio 2017\Projects\XamFormTest\XamFormTest.iOS\Main.cs:17 
 --- inner exception ---
The type initializer for 'pjsua2xamarin.pjsua2.pjsua2PINVOKE' threw an exception. (System.TypeInitializationException)
  at pjsua2xamarin.pjsua2.Endpoint..ctor () [0x00000] in C:\Users\Prof\Documents\Visual Studio 2017\Projects\XamFormTest\XamFormTest\pjsua2\Endpoint.cs:49 
  at pjsua2xamarin.sample..cctor () [0x00000] in C:\Users\Prof\Documents\Visual Studio 2017\Projects\XamFormTest\XamFormTest\sample.cs:50 
 --- inner exception ---
The type initializer for 'SWIGExceptionHelper' threw an exception. (System.TypeInitializationException)
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at pjsua2xamarin.pjsua2.pjsua2PINVOKE..cctor () [0x00000] in C:\Users\Prof\Documents\Visual Studio 2017\Projects\XamFormTest\XamFormTest\pjsua2\pjsua2PINVOKE.cs:127 
 --- inner exception ---
Attempting to JIT compile method '(wrapper native-to-managed) pjs
WIGExceptionHelper/ExceptionDelegate,pjsua2xamarin.pjsua2.pjsua2PINVOKE/SWIGExceptionHelper/ExceptionDelegate,pjsua2xamarin.pjsua2.pjsua2PINVOKE/SWIGExceptionHelper/ExceptionDelegate,pjsua2xamarin.pjsua2.pjsua2PINVOKE/SWIGExceptionHelper/ExceptionDelegate)
  at pjsua2xamarin.pjsua2.pjsua2PINVOKE+SWIGExceptionHelper..cctor () [0x000ef] in C:\Users\Prof\Documents\Visual Studio 2017\Projects\XamFormTest\XamFormTest\pjsua2\pjsua2PINVOKE.cs:107

How can I fix this?

-- 
Best regards,
  Sergey Popov


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux