ios - MonoTouch Binding Library - EXC_BAD_ACCESS (SIGSEGV) -


my app crashes on live device only, when use kiip monotouch bindings. works fine on simulator. here part of stack trace:

0   libsystem_c.dylib               0x30eb293c memset$variant$cortexa8 + 52 1   sample                          0x002b5738 gc_clear_stack_inner (misc.c:298) 2   sample                          0x002b574c gc_clear_stack_inner (misc.c:299) 3   sample                          0x002b574c gc_clear_stack_inner (misc.c:299) 4   sample                          0x002b574c gc_clear_stack_inner (misc.c:299) 5   sample                          0x002b574c gc_clear_stack_inner (misc.c:299) 6   sample                          0x002b574c gc_clear_stack_inner (misc.c:299) 7   sample                          0x002b574c gc_clear_stack_inner (misc.c:299) 8   sample                          0x002b574c gc_clear_stack_inner (misc.c:299) 9   sample                          0x002b574c gc_clear_stack_inner (misc.c:299) 10  sample                          0x002b574c gc_clear_stack_inner (misc.c:299) 11  sample                          0x002b57b8 gc_clear_stack (misc.c:344) 12  sample                          0x002b2bd8 gc_malloc_atomic (malloc.c:270) 13  sample                          0x0026f374 mono_object_new_ptrfree_box (object.c:4416) 14  sample                          0x00102290 wrapper_managed_to_native_object___icall_wrapper_mono_object_new_ptrfree_box_intptr (mscorlib.dll.6.s:92590) 15  sample                          0x0001da78 system_collections_generic_dictionary_2_intptr_system_weakreference_trygetvalue_intptr_system_weakreference_ (monotouch.dll.6.s:14642) 16  sample                          0x0000d1e4 monotouch_objcruntime_runtime_trygetnsobject_intptr (monotouch.dll.6.s:6354) 17  sample                          0x0000d2f0 monotouch_objcruntime_runtime_getnsobject_intptr (monotouch.dll.6.s:6380) 18  sample                          0x0000d3a4 monotouch_objcruntime_runtime_getnsobjectwrapped_intptr (monotouch.dll.6.s:6415) 19  sample                          0x00023e08 wrapper_native_to_managed_monotouch_objcruntime_runtime_getnsobjectwrapped_intptr (monotouch.dll.6.s:17991) 20  sample                          0x002bea2c get_managed_object_for_ptr_fast (monotouch-glue.m:346) 21  sample                          0x001ca1fc native_to_managed_trampoline_kiip_kpmanager_set_sharedmanager (registrar.m:823) 

here sdk:

www.jmawebtechnologies.com/files/archive.zip

here sample project

https://github.com/mono/monotouch-bindings/tree/master/kiip

here code software crashes:

appdelegate > kpmanager.sharedmanager = new kpmanager(

here full crash log:

www.jmawebtechnologies.com/files/crash.zip

this because libkiip.a library you're using doesn't have architecture you're building for. happen instance if libkiip.a has armv6 , i386 code, you're building armv7.

at build time should result in warning:

warning mt1301: native library `libkiip.a` (i386, armv7) ignored since not match current build architecture(s) (armv6) 

the solution either change monotouch project use architecture available in libkiip.a library, or make sure have right architecture in library (i believe universal libkiip.a binary do).


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -