Bug 37226 - [Profiler] Sampling still doesn't work on Android
Summary: [Profiler] Sampling still doesn't work on Android
Status: VERIFIED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Tools ()
Version: 4.2.0 (C6)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Alex Rønne Petersen
URL:
Depends on:
Blocks:
 
Reported: 2015-12-22 12:56 UTC by Rodrigo Moya
Modified: 2016-09-19 11:38 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Rodrigo Moya 2015-12-22 12:56:22 UTC
Sampling has never worked for me on Android, although it seems it was working some months ago for Peter Collins.

* https://gist.github.com/rodrmoya/cfa57e9503a08082a5ce -> Android logcat on simulator

Just did a test on device, and it works there, so that's a big improvement! So, only fails on simulator right now for me. On device, the app seems to behave much more slower than without sampling, but I'll debug that a bit further and file separate bugs for any issue I find.
Comment 1 Rodrigo Moya 2016-01-22 10:13:46 UTC
Another crash log:

01-22 11:10:50.825 D/AndroidRuntime( 1574): >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
01-22 11:10:50.826 D/AndroidRuntime( 1574): CheckJNI is OFF
01-22 11:10:50.826 E/cutils-trace( 1574): Error opening trace file: No such file or directory (2)
01-22 11:10:50.836 D/ICU     ( 1574): No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-22 11:10:50.847 E/memtrack( 1574): Couldn't load memtrack module (No such file or directory)
01-22 11:10:50.847 E/android.os.Debug( 1574): failed to load memtrack module: -2
01-22 11:10:50.855 D/AndroidRuntime( 1574): Calling main entry com.android.commands.am.Am
01-22 11:10:50.856 E/SchedPolicy( 1574): open of /dev/cpuctl/bg_non_interactive/tasks failed: No such file or directory
01-22 11:10:50.859 I/ActivityManager(  401): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.xamarin.XamStore/md5d71b54be065bd10ca70688e48d6d74f9.MainActivity} from uid 0 on display 0
01-22 11:10:50.862 V/WindowManager(  401): addAppToken: AppWindowToken{c89c42c token=Token{1b26fdf ActivityRecord{eb67e7e u0 com.xamarin.XamStore/md5d71b54be065bd10ca70688e48d6d74f9.MainActivity t4}}} to stack=1 task=4 at 0
01-22 11:10:50.866 V/WindowManager(  401): Adding window Window{9608c7 u0 Starting com.xamarin.XamStore} at 2 of 3 (after Window{98330dd u0 com.android.launcher3/com.android.launcher3.Launcher})
01-22 11:10:50.867 D/AndroidRuntime( 1574): Shutting down VM
01-22 11:10:50.870 I/art     ( 1583): Late-enabling -Xcheck:jni
01-22 11:10:50.877 I/ActivityManager(  401): Start proc 1583:com.xamarin.XamStore/u0a52 for activity com.xamarin.XamStore/md5d71b54be065bd10ca70688e48d6d74f9.MainActivity
01-22 11:10:50.891 W/linker  ( 1583): /data/app/com.xamarin.XamStore-1/lib/x86/libmonodroid.so: is missing DT_SONAME will use basename as a replacement: "libmonodroid.so"
01-22 11:10:50.894 W/monodroid( 1583): Using override path: /data/data/com.xamarin.XamStore/files/.__override__
01-22 11:10:50.894 W/monodroid( 1583): Trying to load sgen from: /data/data/com.xamarin.XamStore/files/.__override__/libmonosgen-2.0.so
01-22 11:10:50.894 W/monodroid( 1583): Trying to load sgen from: /storage/emulated/0/Android/data/com.xamarin.XamStore/files/.__override__/libmonosgen-2.0.so
01-22 11:10:50.894 W/monodroid( 1583): Trying to load sgen from: /data/app/com.xamarin.XamStore-1/lib/x86/libmonosgen-2.0.so
01-22 11:10:50.894 W/monodroid( 1583): Trying to load sgen from: /data/data/com.xamarin.XamStore/files/.__override__/links/libmonosgen-2.0.so
01-22 11:10:50.903 D/eglCodecCommon(  401): TcpStream::connect() - management hostname is 10.71.34.101
01-22 11:10:50.903 D/eglCodecCommon(  401): TcpStream::connect() - connecting host: 10.71.34.1
01-22 11:10:50.905 D/        (  401): HostConnection::get() New Host Connection established 0x9ccf9740, tid 435
01-22 11:10:50.952 E/Surface ( 1262): getSlotFromBufferLocked: unknown buffer: 0xab483d50
01-22 11:10:51.084 W/monodroid( 1583): Trying to load profiler: /data/data/com.xamarin.XamStore/files/.__override__/libmono-profiler-log.so: dlopen=0x0 error=No such file or directory
01-22 11:10:51.085 W/monodroid( 1583): Trying to load profiler: /data/app/com.xamarin.XamStore-1/lib/x86/libmono-profiler-log.so: dlopen=0xaf1c2694 error=<none>
01-22 11:10:51.085 W/monodroid( 1583): Looking for profiler init symbol 'mono_profiler_startup'? 0xb3378b10
01-22 11:10:51.089 D/Mono    ( 1583): Image addref mscorlib[0xac0e9240] -> mscorlib.dll[0xadd18d00]: 1
01-22 11:10:51.089 D/Mono    ( 1583): AOT module 'mscorlib.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-mscorlib.dll.so" not found
01-22 11:10:51.089 D/Mono    ( 1583): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/mscorlib.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-mscorlib.dll.so" not found
01-22 11:10:51.097 D/Mono    ( 1583): Assembly mscorlib[0xac0e9240] added to domain RootDomain, ref_count=1
01-22 11:10:51.104 D/Mono    ( 1583): Image addref XamarinStore[0xac0e93c0] -> XamarinStore.dll[0xadd1ab00]: 1
01-22 11:10:51.104 D/Mono    ( 1583): Assembly XamarinStore[0xac0e93c0] added to domain RootDomain, ref_count=1
01-22 11:10:51.106 D/Mono    ( 1583): AOT module 'XamarinStore.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-XamarinStore.dll.so" not found
01-22 11:10:51.109 D/Mono    ( 1583): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/XamarinStore.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-XamarinStore.dll.so" not found
01-22 11:10:51.109 D/Mono    ( 1583): Image addref Newtonsoft.Json[0xac0e9360] -> Newtonsoft.Json.dll[0xb4574f00]: 1
01-22 11:10:51.109 D/Mono    ( 1583): Assembly Newtonsoft.Json[0xac0e9360] added to domain RootDomain, ref_count=1
01-22 11:10:51.111 D/Mono    ( 1583): AOT module 'Newtonsoft.Json.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-Newtonsoft.Json.dll.so" not found
01-22 11:10:51.113 D/Mono    ( 1583): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/Newtonsoft.Json.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-Newtonsoft.Json.dll.so" not found
01-22 11:10:51.113 D/Mono    ( 1583): Image addref System.ServiceModel.Internals[0xac0e9300] -> System.ServiceModel.Internals.dll[0xb4575400]: 1
01-22 11:10:51.113 D/Mono    ( 1583): Assembly System.ServiceModel.Internals[0xac0e9300] added to domain RootDomain, ref_count=1
01-22 11:10:51.115 D/Mono    ( 1583): AOT module 'System.ServiceModel.Internals.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.ServiceModel.Internals.dll.so" not found
01-22 11:10:51.117 D/Mono    ( 1583): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/System.ServiceModel.Internals.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.ServiceModel.Internals.dll.so" not found
01-22 11:10:51.117 W/monodroid-gc( 1583): GREF GC Threshold: 46080
01-22 11:10:51.117 D/Mono    ( 1583): Image addref Mono.Android[0xac0e92a0] -> Mono.Android.dll[0x9f7c2a00]: 1
01-22 11:10:51.117 D/Mono    ( 1583): Assembly Mono.Android[0xac0e92a0] added to domain RootDomain, ref_count=1
01-22 11:10:51.121 D/Mono    ( 1583): AOT module 'Mono.Android.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-Mono.Android.dll.so" not found
01-22 11:10:51.124 D/Mono    ( 1583): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/Mono.Android.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-Mono.Android.dll.so" not found
01-22 11:10:51.125 D/Mono    ( 1583): Assembly Ref addref Mono.Android[0xac0e92a0] -> mscorlib[0xac0e9240]: 2
01-22 11:10:51.133 D/Mono    ( 1583): DllImport attempting to load: '__Internal'.
01-22 11:10:51.133 D/Mono    ( 1583): DllImport loaded library '(null)'.
01-22 11:10:51.133 D/Mono    ( 1583): DllImport searching in: '__Internal' ('(null)').
01-22 11:10:51.133 D/Mono    ( 1583): Searching for '_monodroid_lref_log_new'.
01-22 11:10:51.133 D/Mono    ( 1583): Probing '_monodroid_lref_log_new'.
01-22 11:10:51.133 D/Mono    ( 1583): Found as '_monodroid_lref_log_new'.
01-22 11:10:51.134 D/Mono    ( 1583): DllImport searching in: '__Internal' ('(null)').
01-22 11:10:51.134 D/Mono    ( 1583): Searching for '_monodroid_lref_log_delete'.
01-22 11:10:51.134 D/Mono    ( 1583): Probing '_monodroid_lref_log_delete'.
01-22 11:10:51.134 D/Mono    ( 1583): Found as '_monodroid_lref_log_delete'.
01-22 11:10:51.135 D/Mono    ( 1583): DllImport searching in: '__Internal' ('(null)').
01-22 11:10:51.135 D/Mono    ( 1583): Searching for '_monodroid_gref_log_new'.
01-22 11:10:51.135 D/Mono    ( 1583): Probing '_monodroid_gref_log_new'.
01-22 11:10:51.135 D/Mono    ( 1583): Found as '_monodroid_gref_log_new'.
01-22 11:10:51.137 D/Mono    ( 1583): DllImport searching in: '__Internal' ('(null)').
01-22 11:10:51.137 D/Mono    ( 1583): Searching for '_monodroid_get_identity_hash_code'.
01-22 11:10:51.137 D/Mono    ( 1583): Probing '_monodroid_get_identity_hash_code'.
01-22 11:10:51.137 D/Mono    ( 1583): Found as '_monodroid_get_identity_hash_code'.
01-22 11:10:51.152 D/Mono    ( 1583): DllImport searching in: '__Internal' ('(null)').
01-22 11:10:51.152 D/Mono    ( 1583): Searching for 'monodroid_typemap_java_to_managed'.
01-22 11:10:51.152 D/Mono    ( 1583): Probing 'monodroid_typemap_java_to_managed'.
01-22 11:10:51.152 D/Mono    ( 1583): Found as 'monodroid_typemap_java_to_managed'.
01-22 11:10:51.173 D/Mono    ( 1583): DllImport searching in: '__Internal' ('(null)').
01-22 11:10:51.173 D/Mono    ( 1583): Searching for '_monodroid_gref_log'.
01-22 11:10:51.173 D/Mono    ( 1583): Probing '_monodroid_gref_log'.
01-22 11:10:51.173 D/Mono    ( 1583): Found as '_monodroid_gref_log'.
01-22 11:10:51.178 D/Mono    ( 1583): DllImport searching in: '__Internal' ('(null)').
01-22 11:10:51.178 D/Mono    ( 1583): Searching for 'monodroid_typemap_managed_to_java'.
01-22 11:10:51.178 D/Mono    ( 1583): Probing 'monodroid_typemap_managed_to_java'.
01-22 11:10:51.178 D/Mono    ( 1583): Found as 'monodroid_typemap_managed_to_java'.
01-22 11:10:51.180 D/Mono    ( 1583): Image addref System.Core[0xac0e96c0] -> System.Core.dll[0x9f7c4300]: 1
01-22 11:10:51.180 D/Mono    ( 1583): Assembly System.Core[0xac0e96c0] added to domain RootDomain, ref_count=1
01-22 11:10:51.183 D/Mono    ( 1583): AOT module 'System.Core.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.Core.dll.so" not found
01-22 11:10:51.186 D/Mono    ( 1583): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/System.Core.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.Core.dll.so" not found
01-22 11:10:51.186 D/Mono    ( 1583): Assembly Ref addref Mono.Android[0xac0e92a0] -> System.Core[0xac0e96c0]: 2
01-22 11:10:51.186 D/Mono    ( 1583): Assembly Ref addref System.Core[0xac0e96c0] -> mscorlib[0xac0e9240]: 3
01-22 11:10:51.352 D/Mono    ( 1583): DllImport searching in: '__Internal' ('(null)').
01-22 11:10:51.352 D/Mono    ( 1583): Searching for '_monodroid_gc_wait_for_bridge_processing'.
01-22 11:10:51.352 D/Mono    ( 1583): Probing '_monodroid_gc_wait_for_bridge_processing'.
01-22 11:10:51.352 D/Mono    ( 1583): Found as '_monodroid_gc_wait_for_bridge_processing'.
01-22 11:10:51.355 D/Mono    ( 1583): DllImport searching in: '__Internal' ('(null)').
01-22 11:10:51.355 D/Mono    ( 1583): Searching for '_monodroid_gref_log_delete'.
01-22 11:10:51.355 D/Mono    ( 1583): Probing '_monodroid_gref_log_delete'.
01-22 11:10:51.355 D/Mono    ( 1583): Found as '_monodroid_gref_log_delete'.
01-22 11:10:51.365 D/Mono    ( 1583): Assembly Ref addref XamarinStore[0xac0e93c0] -> Mono.Android[0xac0e92a0]: 2
01-22 11:10:51.372 D/Mono    ( 1583): Assembly Ref addref XamarinStore[0xac0e93c0] -> mscorlib[0xac0e9240]: 4
01-22 11:10:51.518 D/Mono    ( 1583): Image addref System.Xml[0xac0ea1a0] -> System.Xml.dll[0x9f7c5200]: 1
01-22 11:10:51.518 D/Mono    ( 1583): Assembly System.Xml[0xac0ea1a0] added to domain RootDomain, ref_count=1
01-22 11:10:51.518 D/Mono    ( 1583): AOT module 'System.Xml.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.Xml.dll.so" not found
01-22 11:10:51.518 D/Mono    ( 1583): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/System.Xml.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.Xml.dll.so" not found
01-22 11:10:51.518 D/Mono    ( 1583): Assembly Ref addref Mono.Android[0xac0e92a0] -> System.Xml[0xac0ea1a0]: 2
01-22 11:10:51.518 D/Mono    ( 1583): Assembly Ref addref System.Xml[0xac0ea1a0] -> mscorlib[0xac0e9240]: 5
01-22 11:10:51.559 D/Mono    ( 1583): [0x9f0ff930] worker starting
01-22 11:10:51.563 D/Mono    ( 1583): Image addref System[0xac0ea500] -> System.dll[0x9f7c5c00]: 1
01-22 11:10:51.563 D/Mono    ( 1583): Assembly System[0xac0ea500] added to domain RootDomain, ref_count=1
01-22 11:10:51.568 D/OpenGLRenderer( 1583): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
01-22 11:10:51.576 D/Mono    ( 1583): [0x9eeff930] worker starting
01-22 11:10:51.578 D/Mono    ( 1583): AOT module 'System.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.dll.so" not found
01-22 11:10:51.579 D/Mono    ( 1583): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/System.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.dll.so" not found
01-22 11:10:51.579 D/Mono    ( 1583): Assembly Ref addref XamarinStore[0xac0e93c0] -> System[0xac0ea500]: 2
01-22 11:10:51.580 D/Mono    ( 1583): Assembly Ref addref System[0xac0ea500] -> mscorlib[0xac0e9240]: 6
01-22 11:10:51.580 D/Mono    ( 1583): Assembly Ref addref XamarinStore[0xac0e93c0] -> Newtonsoft.Json[0xac0e9360]: 2
01-22 11:10:51.580 D/Mono    ( 1583): The request to load the retargetable assembly mscorlib v2.0.5.0 was remapped to mscorlib v2.0.5.0
01-22 11:10:51.580 D/Mono    ( 1583): Assembly Ref addref Newtonsoft.Json[0xac0e9360] -> mscorlib[0xac0e9240]: 7
01-22 11:10:51.583 D/eglCodecCommon( 1583): TcpStream::connect() - management hostname is 10.71.34.101
01-22 11:10:51.583 D/eglCodecCommon( 1583): TcpStream::connect() - connecting host: 10.71.34.1
01-22 11:10:51.588 D/        ( 1583): HostConnection::get() New Host Connection established 0x9ecd6b60, tid 1583
01-22 11:10:51.592 D/Atlas   ( 1583): Validating map...
01-22 11:10:51.592 F/OpenGLRenderer( 1583): Task is already in the queue!
01-22 11:10:51.592 F/libc    ( 1583): Fatal signal 6 (SIGABRT), code -6 in tid 1583 (amarin.XamStore)
01-22 11:10:51.631 D/Mono    ( 1583): Assembly Ref addref Mono.Android[0xac0e92a0] -> System[0xac0ea500]: 3
01-22 11:10:51.632 D/Mono    ( 1583): DllImport attempting to load: '/system/lib/libc.so'.
01-22 11:10:51.634 D/Mono    ( 1583): DllImport loaded library '/system/lib/libc.so'.
01-22 11:10:51.634 D/Mono    ( 1583): DllImport searching in: '/system/lib/libc.so' ('/system/lib/libc.so').
01-22 11:10:51.634 D/Mono    ( 1583): Searching for 'gettid'.
01-22 11:10:51.634 D/Mono    ( 1583): Probing 'gettid'.
01-22 11:10:51.634 D/Mono    ( 1583): Found as 'gettid'.
01-22 11:10:51.644 I/SELinux (   69): SELinux: Loaded file_contexts contexts from /file_contexts.
01-22 11:10:51.645 F/DEBUG   (   69): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-22 11:10:51.645 F/DEBUG   (   69): Build fingerprint: 'generic/vbox86t/vbox86t:5.1.51/AOSP/lc10011437:userdebug/test-keys'
01-22 11:10:51.645 F/DEBUG   (   69): Revision: '0'
01-22 11:10:51.645 F/DEBUG   (   69): ABI: 'x86'
01-22 11:10:51.645 F/DEBUG   (   69): pid: 1583, tid: 1583, name: amarin.XamStore  >>> com.xamarin.XamStore <<<
01-22 11:10:51.645 F/DEBUG   (   69): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
01-22 11:10:51.648 F/DEBUG   (   69): Abort message: 'Task is already in the queue!'
01-22 11:10:51.648 F/DEBUG   (   69):     eax 00000000  ebx 0000062f  ecx 0000062f  edx 00000006
01-22 11:10:51.648 F/DEBUG   (   69):     esi b77a7ed0  edi 00000004
01-22 11:10:51.648 F/DEBUG   (   69):     xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000007  xss 0000007b
01-22 11:10:51.649 F/DEBUG   (   69):     eip b7391126  ebp 0000062f  esp bf96a030  flags 00200202
01-22 11:10:51.653 F/DEBUG   (   69): 
01-22 11:10:51.653 F/DEBUG   (   69): backtrace:
01-22 11:10:51.653 F/DEBUG   (   69):     #00 pc 00085126  /system/lib/libc.so (tgkill+22)
01-22 11:10:51.653 F/DEBUG   (   69):     #01 pc 00081358  /system/lib/libc.so (pthread_kill+70)
01-22 11:10:51.653 F/DEBUG   (   69):     #02 pc 00026f15  /system/lib/libc.so (raise+36)
01-22 11:10:51.653 F/DEBUG   (   69):     #03 pc 00020a44  /system/lib/libc.so (abort+80)
01-22 11:10:51.653 F/DEBUG   (   69):     #04 pc 0000cb63  /system/lib/libcutils.so (__android_log_assert+128)
01-22 11:10:51.653 F/DEBUG   (   69):     #05 pc 0008b411  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::queue(android::uirenderer::renderthread::RenderTask*)+81)
01-22 11:10:51.653 F/DEBUG   (   69):     #06 pc 0008a1de  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderProxy::postAndWait(android::uirenderer::renderthread::MethodInvokeRenderTask*)+114)
01-22 11:10:51.653 F/DEBUG   (   69):     #07 pc 0008a2f2  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderProxy::loadSystemProperties()+94)
01-22 11:10:51.653 F/DEBUG   (   69):     #08 pc 000b7aa4  /system/lib/libandroid_runtime.so
01-22 11:10:51.653 F/DEBUG   (   69):     #09 pc 73907626  /data/dalvik-cache/x86/system@framework@boot.oat
01-22 11:10:51.721 F/DEBUG   (   69): 
01-22 11:10:51.721 F/DEBUG   (   69): Tombstone written to: /data/tombstones/tombstone_00
01-22 11:10:51.721 E/DEBUG   (   69): AM write failed: Broken pipe
01-22 11:10:51.722 W/ActivityManager(  401):   Force finishing activity 1 com.xamarin.XamStore/md5d71b54be065bd10ca70688e48d6d74f9.MainActivity
01-22 11:10:51.744 I/Zygote  (   75): Process 1583 exited due to signal (6)
01-22 11:10:52.027 I/WindowManager(  401): Screenshot max retries 4 of Token{1b26fdf ActivityRecord{eb67e7e u0 com.xamarin.XamStore/md5d71b54be065bd10ca70688e48d6d74f9.MainActivity t4 f}} appWin=Window{9608c7 u0 Starting com.xamarin.XamStore} drawState=4
01-22 11:10:52.027 W/ActivityManager(  401): Exception thrown during pause
01-22 11:10:52.027 W/ActivityManager(  401): android.os.DeadObjectException
01-22 11:10:52.027 W/ActivityManager(  401): 	at android.os.BinderProxy.transactNative(Native Method)
01-22 11:10:52.027 W/ActivityManager(  401): 	at android.os.BinderProxy.transact(Binder.java:496)
01-22 11:10:52.027 W/ActivityManager(  401): 	at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:714)
01-22 11:10:52.027 W/ActivityManager(  401): 	at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:831)
01-22 11:10:52.027 W/ActivityManager(  401): 	at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2766)
01-22 11:10:52.027 W/ActivityManager(  401): 	at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2623)
01-22 11:10:52.027 W/ActivityManager(  401): 	at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2502)
01-22 11:10:52.027 W/ActivityManager(  401): 	at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11605)
01-22 11:10:52.027 W/ActivityManager(  401): 	at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11502)
01-22 11:10:52.027 W/ActivityManager(  401): 	at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12190)
01-22 11:10:52.027 W/ActivityManager(  401): 	at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:11697)
01-22 11:10:52.027 W/ActivityManager(  401): 	at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
01-22 11:10:52.028 E/lowmemorykiller(  203): Error opening /proc/1583/oom_score_adj; errno=2
01-22 11:10:52.029 I/ActivityManager(  401): Process com.xamarin.XamStore (pid 1583) has died
01-22 11:10:52.029 E/WindowState(  401): getStack: Window{9608c7 u0 Starting com.xamarin.XamStore} couldn't find taskId=4 Callers=com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:9881 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedLoop:8889 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLocked:8831 com.android.server.wm.WindowManagerService.executeAppTransition:4215 
01-22 11:10:52.029 E/WindowState(  401): getStack: Window{9608c7 u0 Starting com.xamarin.XamStore} couldn't find taskId=4 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowState.getDisplayId:785 com.android.server.wm.WindowStateAnimator.setSurfaceBoundariesLocked:1420 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:9970 
01-22 11:10:52.029 E/WindowState(  401): getStack: Window{9608c7 u0 Starting com.xamarin.XamStore} couldn't find taskId=4 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowStateAnimator.updateSurfaceWindowCrop:1295 com.android.server.wm.WindowStateAnimator.setSurfaceBoundariesLocked:1484 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:9970 
01-22 11:10:52.029 E/WindowState(  401): getStack: Window{9608c7 u0 Starting com.xamarin.XamStore} couldn't find taskId=4 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowState.isDefaultDisplay:1284 com.android.server.wm.WindowStateAnimator.updateSurfaceWindowCrop:1305 com.android.server.wm.WindowStateAnimator.setSurfaceBoundariesLocked:1484 
01-22 11:10:52.029 E/WindowState(  401): getStack: Window{9608c7 u0 Starting com.xamarin.XamStore} couldn't find taskId=4 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowState.getDisplayId:785 com.android.server.wm.InputMonitor.updateInputWindowsLw:294 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:10221 
01-22 11:10:52.029 E/WindowState(  401): getStack: Window{9608c7 u0 Starting com.xamarin.XamStore} couldn't find taskId=4 Callers=com.android.server.wm.DisplayContent.setTouchExcludeRegion:237 com.android.server.wm.WindowManagerService.setFocusedStackFrame:4047 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:10297 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedLoop:8889 
01-22 11:10:52.030 I/ActivityManager(  401): Waited long enough for: ServiceRecord{fd3cae4 u0 com.android.music/.MediaPlaybackService}
01-22 11:10:52.032 E/WindowState(  401): getStack: Window{9608c7 u0 Starting com.xamarin.XamStore} couldn't find taskId=4 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowState.getWindowList:1352 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2797 com.android.server.wm.WindowManagerService.removeWindowLocked:2698 
01-22 11:10:52.032 E/WindowState(  401): getStack: Window{9608c7 u0 Starting com.xamarin.XamStore} couldn't find taskId=4 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2802 com.android.server.wm.WindowManagerService.removeWindowLocked:2698 com.android.server.wm.WindowManagerService.removeWindow:2620 
01-22 11:10:52.038 D/OpenGLRenderer(  401): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
01-22 11:10:52.038 D/Atlas   (  401): Validating map...
01-22 11:10:52.041 W/EGL_xap ( 1262): eglSurfaceAttrib not implemented
01-22 11:10:52.041 W/OpenGLRenderer( 1262): Failed to set EGL_SWAP_BEHAVIOR on surface 0xac0fef60, error=EGL_SUCCESS
01-22 11:10:52.084 D/eglCodecCommon(  401): TcpStream::connect() - management hostname is 10.71.34.101
01-22 11:10:52.084 D/eglCodecCommon(  401): TcpStream::connect() - connecting host: 10.71.34.1
01-22 11:10:52.085 D/        (  401): HostConnection::get() New Host Connection established 0x9ccf99d0, tid 1616
01-22 11:10:52.099 I/OpenGLRenderer(  401): Initialized EGL, version 1.4
01-22 11:10:52.120 D/OpenGLRenderer(  401): Enabling debug mode 0
01-22 11:10:52.127 W/EGL_xap (  401): eglSurfaceAttrib not implemented
01-22 11:10:52.127 W/OpenGLRenderer(  401): Failed to set EGL_SWAP_BEHAVIOR on surface 0x9c96c8c0, error=EGL_SUCCESS
01-22 11:10:52.134 E/Surface (  401): getSlotFromBufferLocked: unknown buffer: 0xaf4174e0
01-22 11:10:52.136 W/EGL_xap (  401): eglSurfaceAttrib not implemented
01-22 11:10:52.136 W/OpenGLRenderer(  401): Failed to set EGL_SWAP_BEHAVIOR on surface 0x9c96c8c0, error=EGL_SUCCESS
01-22 11:10:52.145 D/AndroidRuntime( 1617): >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
01-22 11:10:52.146 D/AndroidRuntime( 1617): CheckJNI is OFF
01-22 11:10:52.146 E/cutils-trace( 1617): Error opening trace file: No such file or directory (2)
01-22 11:10:52.157 D/ICU     ( 1617): No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-22 11:10:52.170 E/memtrack( 1617): Couldn't load memtrack module (No such file or directory)
01-22 11:10:52.170 E/android.os.Debug( 1617): failed to load memtrack module: -2
01-22 11:10:52.182 D/AndroidRuntime( 1617): Calling main entry com.android.commands.am.Am
01-22 11:10:52.182 E/SchedPolicy( 1617): open of /dev/cpuctl/bg_non_interactive/tasks failed: No such file or directory
01-22 11:10:52.183 I/ActivityManager(  401): Force stopping com.xamarin.XamStore appid=10052 user=0: from pid 1617
01-22 11:10:52.184 D/AndroidRuntime( 1617): Shutting down VM
Comment 2 Rodrigo Moya 2016-01-22 10:35:03 UTC
This crash happened with the following options passed to the runtime profiler:

heapshot=ondemand,alloc,nocalls,maxframes=8,sample=cycles/1000

I have tried using "sample" (without the "=cycles/1000"), and similar "crash":

01-22 11:30:57.721 D/AndroidRuntime( 2215): >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
01-22 11:30:57.722 D/AndroidRuntime( 2215): CheckJNI is OFF
01-22 11:30:57.723 E/cutils-trace( 2215): Error opening trace file: No such file or directory (2)
01-22 11:30:57.733 D/ICU     ( 2215): No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-22 11:30:57.743 E/memtrack( 2215): Couldn't load memtrack module (No such file or directory)
01-22 11:30:57.743 E/android.os.Debug( 2215): failed to load memtrack module: -2
01-22 11:30:57.750 D/AndroidRuntime( 2215): Calling main entry com.android.commands.am.Am
01-22 11:30:57.751 E/SchedPolicy( 2215): open of /dev/cpuctl/bg_non_interactive/tasks failed: No such file or directory
01-22 11:30:57.754 I/ActivityManager(  401): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.xamarin.XamStore/md5d71b54be065bd10ca70688e48d6d74f9.MainActivity} from uid 0 on display 0
01-22 11:30:57.754 V/WindowManager(  401): addAppToken: AppWindowToken{a6051e9 token=Token{f09da70 ActivityRecord{1cfa4b3 u0 com.xamarin.XamStore/md5d71b54be065bd10ca70688e48d6d74f9.MainActivity t10}}} to stack=1 task=10 at 0
01-22 11:30:57.759 V/WindowManager(  401): Adding window Window{b82e2b8 u0 Starting com.xamarin.XamStore} at 2 of 7 (after Window{98330dd u0 com.android.launcher3/com.android.launcher3.Launcher})
01-22 11:30:57.759 D/AndroidRuntime( 2215): Shutting down VM
01-22 11:30:57.760 I/art     ( 2224): Late-enabling -Xcheck:jni
01-22 11:30:57.767 I/ActivityManager(  401): Start proc 2224:com.xamarin.XamStore/u0a52 for activity com.xamarin.XamStore/md5d71b54be065bd10ca70688e48d6d74f9.MainActivity
01-22 11:30:57.790 W/linker  ( 2224): /data/app/com.xamarin.XamStore-1/lib/x86/libmonodroid.so: is missing DT_SONAME will use basename as a replacement: "libmonodroid.so"
01-22 11:30:57.792 W/monodroid( 2224): Using override path: /data/data/com.xamarin.XamStore/files/.__override__
01-22 11:30:57.792 W/monodroid( 2224): Trying to load sgen from: /data/data/com.xamarin.XamStore/files/.__override__/libmonosgen-2.0.so
01-22 11:30:57.792 W/monodroid( 2224): Trying to load sgen from: /storage/emulated/0/Android/data/com.xamarin.XamStore/files/.__override__/libmonosgen-2.0.so
01-22 11:30:57.792 W/monodroid( 2224): Trying to load sgen from: /data/app/com.xamarin.XamStore-1/lib/x86/libmonosgen-2.0.so
01-22 11:30:57.792 W/monodroid( 2224): Trying to load sgen from: /data/data/com.xamarin.XamStore/files/.__override__/links/libmonosgen-2.0.so
01-22 11:30:57.836 E/Surface ( 1262): getSlotFromBufferLocked: unknown buffer: 0xab4820e0
01-22 11:30:57.977 W/monodroid( 2224): Trying to load profiler: /data/data/com.xamarin.XamStore/files/.__override__/libmono-profiler-log.so: dlopen=0x0 error=No such file or directory
01-22 11:30:57.977 W/monodroid( 2224): Trying to load profiler: /data/app/com.xamarin.XamStore-1/lib/x86/libmono-profiler-log.so: dlopen=0xaf1c2694 error=<none>
01-22 11:30:57.977 W/monodroid( 2224): Looking for profiler init symbol 'mono_profiler_startup'? 0xb3378b10
01-22 11:30:57.981 D/Mono    ( 2224): Image addref mscorlib[0xac0ea3e0] -> mscorlib.dll[0xadd18d00]: 1
01-22 11:30:57.981 D/Mono    ( 2224): AOT module 'mscorlib.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-mscorlib.dll.so" not found
01-22 11:30:57.981 D/Mono    ( 2224): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/mscorlib.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-mscorlib.dll.so" not found
01-22 11:30:57.990 D/Mono    ( 2224): Assembly mscorlib[0xac0ea3e0] added to domain RootDomain, ref_count=1
01-22 11:30:57.991 D/Mono    ( 2224): Image addref XamarinStore[0xac0ea560] -> XamarinStore.dll[0xadd1ab00]: 1
01-22 11:30:57.991 D/Mono    ( 2224): Assembly XamarinStore[0xac0ea560] added to domain RootDomain, ref_count=1
01-22 11:30:57.992 D/Mono    ( 2224): AOT module 'XamarinStore.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-XamarinStore.dll.so" not found
01-22 11:30:57.992 D/Mono    ( 2224): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/XamarinStore.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-XamarinStore.dll.so" not found
01-22 11:30:57.992 D/Mono    ( 2224): Image addref Newtonsoft.Json[0xac0ea500] -> Newtonsoft.Json.dll[0xb4574f00]: 1
01-22 11:30:57.992 D/Mono    ( 2224): Assembly Newtonsoft.Json[0xac0ea500] added to domain RootDomain, ref_count=1
01-22 11:30:57.993 D/Mono    ( 2224): AOT module 'Newtonsoft.Json.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-Newtonsoft.Json.dll.so" not found
01-22 11:30:57.993 D/Mono    ( 2224): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/Newtonsoft.Json.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-Newtonsoft.Json.dll.so" not found
01-22 11:30:57.993 D/Mono    ( 2224): Image addref System.ServiceModel.Internals[0xac0ea4a0] -> System.ServiceModel.Internals.dll[0xb4575400]: 1
01-22 11:30:57.993 D/Mono    ( 2224): Assembly System.ServiceModel.Internals[0xac0ea4a0] added to domain RootDomain, ref_count=1
01-22 11:30:57.993 D/Mono    ( 2224): AOT module 'System.ServiceModel.Internals.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.ServiceModel.Internals.dll.so" not found
01-22 11:30:57.993 D/Mono    ( 2224): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/System.ServiceModel.Internals.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.ServiceModel.Internals.dll.so" not found
01-22 11:30:57.994 W/monodroid-gc( 2224): GREF GC Threshold: 46080
01-22 11:30:57.994 D/Mono    ( 2224): Image addref Mono.Android[0xac0ea440] -> Mono.Android.dll[0x9f7c2a00]: 1
01-22 11:30:57.994 D/Mono    ( 2224): Assembly Mono.Android[0xac0ea440] added to domain RootDomain, ref_count=1
01-22 11:30:57.994 D/Mono    ( 2224): AOT module 'Mono.Android.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-Mono.Android.dll.so" not found
01-22 11:30:57.994 D/Mono    ( 2224): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/Mono.Android.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-Mono.Android.dll.so" not found
01-22 11:30:57.995 D/Mono    ( 2224): Assembly Ref addref Mono.Android[0xac0ea440] -> mscorlib[0xac0ea3e0]: 2
01-22 11:30:58.009 D/Mono    ( 2224): DllImport attempting to load: '__Internal'.
01-22 11:30:58.009 D/Mono    ( 2224): DllImport loaded library '(null)'.
01-22 11:30:58.009 D/Mono    ( 2224): DllImport searching in: '__Internal' ('(null)').
01-22 11:30:58.009 D/Mono    ( 2224): Searching for '_monodroid_lref_log_new'.
01-22 11:30:58.009 D/Mono    ( 2224): Probing '_monodroid_lref_log_new'.
01-22 11:30:58.009 D/Mono    ( 2224): Found as '_monodroid_lref_log_new'.
01-22 11:30:58.010 D/Mono    ( 2224): DllImport searching in: '__Internal' ('(null)').
01-22 11:30:58.010 D/Mono    ( 2224): Searching for '_monodroid_lref_log_delete'.
01-22 11:30:58.010 D/Mono    ( 2224): Probing '_monodroid_lref_log_delete'.
01-22 11:30:58.010 D/Mono    ( 2224): Found as '_monodroid_lref_log_delete'.
01-22 11:30:58.011 D/Mono    ( 2224): DllImport searching in: '__Internal' ('(null)').
01-22 11:30:58.011 D/Mono    ( 2224): Searching for '_monodroid_gref_log_new'.
01-22 11:30:58.011 D/Mono    ( 2224): Probing '_monodroid_gref_log_new'.
01-22 11:30:58.011 D/Mono    ( 2224): Found as '_monodroid_gref_log_new'.
01-22 11:30:58.014 D/Mono    ( 2224): DllImport searching in: '__Internal' ('(null)').
01-22 11:30:58.014 D/Mono    ( 2224): Searching for '_monodroid_get_identity_hash_code'.
01-22 11:30:58.014 D/Mono    ( 2224): Probing '_monodroid_get_identity_hash_code'.
01-22 11:30:58.014 D/Mono    ( 2224): Found as '_monodroid_get_identity_hash_code'.
01-22 11:30:58.030 D/Mono    ( 2224): DllImport searching in: '__Internal' ('(null)').
01-22 11:30:58.030 D/Mono    ( 2224): Searching for 'monodroid_typemap_java_to_managed'.
01-22 11:30:58.030 D/Mono    ( 2224): Probing 'monodroid_typemap_java_to_managed'.
01-22 11:30:58.030 D/Mono    ( 2224): Found as 'monodroid_typemap_java_to_managed'.
01-22 11:30:58.052 D/Mono    ( 2224): DllImport searching in: '__Internal' ('(null)').
01-22 11:30:58.052 D/Mono    ( 2224): Searching for '_monodroid_gref_log'.
01-22 11:30:58.052 D/Mono    ( 2224): Probing '_monodroid_gref_log'.
01-22 11:30:58.052 D/Mono    ( 2224): Found as '_monodroid_gref_log'.
01-22 11:30:58.059 D/Mono    ( 2224): DllImport searching in: '__Internal' ('(null)').
01-22 11:30:58.060 D/Mono    ( 2224): Searching for 'monodroid_typemap_managed_to_java'.
01-22 11:30:58.060 D/Mono    ( 2224): Probing 'monodroid_typemap_managed_to_java'.
01-22 11:30:58.060 D/Mono    ( 2224): Found as 'monodroid_typemap_managed_to_java'.
01-22 11:30:58.061 D/Mono    ( 2224): Image addref System.Core[0xac0ea860] -> System.Core.dll[0x9f7c4300]: 1
01-22 11:30:58.061 D/Mono    ( 2224): Assembly System.Core[0xac0ea860] added to domain RootDomain, ref_count=1
01-22 11:30:58.063 D/Mono    ( 2224): AOT module 'System.Core.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.Core.dll.so" not found
01-22 11:30:58.064 D/Mono    ( 2224): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/System.Core.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.Core.dll.so" not found
01-22 11:30:58.064 D/Mono    ( 2224): Assembly Ref addref Mono.Android[0xac0ea440] -> System.Core[0xac0ea860]: 2
01-22 11:30:58.064 D/Mono    ( 2224): Assembly Ref addref System.Core[0xac0ea860] -> mscorlib[0xac0ea3e0]: 3
01-22 11:30:58.170 D/Mono    ( 2224): DllImport searching in: '__Internal' ('(null)').
01-22 11:30:58.170 D/Mono    ( 2224): Searching for '_monodroid_gc_wait_for_bridge_processing'.
01-22 11:30:58.170 D/Mono    ( 2224): Probing '_monodroid_gc_wait_for_bridge_processing'.
01-22 11:30:58.170 D/Mono    ( 2224): Found as '_monodroid_gc_wait_for_bridge_processing'.
01-22 11:30:58.171 D/Mono    ( 2224): DllImport searching in: '__Internal' ('(null)').
01-22 11:30:58.171 D/Mono    ( 2224): Searching for '_monodroid_gref_log_delete'.
01-22 11:30:58.171 D/Mono    ( 2224): Probing '_monodroid_gref_log_delete'.
01-22 11:30:58.171 D/Mono    ( 2224): Found as '_monodroid_gref_log_delete'.
01-22 11:30:58.177 D/Mono    ( 2224): Assembly Ref addref XamarinStore[0xac0ea560] -> Mono.Android[0xac0ea440]: 2
01-22 11:30:58.184 D/Mono    ( 2224): Assembly Ref addref XamarinStore[0xac0ea560] -> mscorlib[0xac0ea3e0]: 4
01-22 11:30:58.334 D/Mono    ( 2224): Image addref System.Xml[0xac0eb280] -> System.Xml.dll[0x9f7c4d00]: 1
01-22 11:30:58.334 D/Mono    ( 2224): Assembly System.Xml[0xac0eb280] added to domain RootDomain, ref_count=1
01-22 11:30:58.337 D/Mono    ( 2224): AOT module 'System.Xml.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.Xml.dll.so" not found
01-22 11:30:58.339 D/Mono    ( 2224): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/System.Xml.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.Xml.dll.so" not found
01-22 11:30:58.339 D/Mono    ( 2224): Assembly Ref addref Mono.Android[0xac0ea440] -> System.Xml[0xac0eb280]: 2
01-22 11:30:58.339 D/Mono    ( 2224): Assembly Ref addref System.Xml[0xac0eb280] -> mscorlib[0xac0ea3e0]: 5
01-22 11:30:58.374 D/Mono    ( 2224): [0x9f0ff930] worker starting
01-22 11:30:58.385 D/Mono    ( 2224): Image addref System[0xac0eb580] -> System.dll[0x9f7c5c00]: 1
01-22 11:30:58.385 D/Mono    ( 2224): Assembly System[0xac0eb580] added to domain RootDomain, ref_count=1
01-22 11:30:58.386 D/Mono    ( 2224): [0x9eeff930] worker starting
01-22 11:30:58.388 D/OpenGLRenderer( 2224): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
01-22 11:30:58.388 E/mono-rt ( 2224): 
01-22 11:30:58.388 E/mono-rt ( 2224): Attempting native Android stacktrace:
01-22 11:30:58.388 E/mono-rt ( 2224): 
01-22 11:30:58.391 D/Mono    ( 2224): AOT module 'System.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.dll.so" not found
01-22 11:30:58.393 D/Mono    ( 2224): AOT module '/Users/builder/data/lanes/2692/8dd1a77f/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/System.dll.so' not found: dlopen failed: library "/data/app/com.xamarin.XamStore-1/lib/x86/libaot-System.dll.so" not found
01-22 11:30:58.393 D/Mono    ( 2224): Assembly Ref addref XamarinStore[0xac0ea560] -> System[0xac0eb580]: 2
01-22 11:30:58.393 D/Mono    ( 2224): Assembly Ref addref System[0xac0eb580] -> mscorlib[0xac0ea3e0]: 6
01-22 11:30:58.393 D/Mono    ( 2224): Assembly Ref addref XamarinStore[0xac0ea560] -> Newtonsoft.Json[0xac0ea500]: 2
01-22 11:30:58.393 D/Mono    ( 2224): The request to load the retargetable assembly mscorlib v2.0.5.0 was remapped to mscorlib v2.0.5.0
01-22 11:30:58.393 D/Mono    ( 2224): Assembly Ref addref Newtonsoft.Json[0xac0ea500] -> mscorlib[0xac0ea3e0]: 7
01-22 11:30:58.412 I/Zygote  (   75): Process 2224 exited due to signal (11)
01-22 11:30:58.412 I/ActivityManager(  401): Process com.xamarin.XamStore (pid 2224) has died
01-22 11:30:58.415 I/art     ( 2251): Late-enabling -Xcheck:jni
01-22 11:30:58.423 I/ActivityManager(  401): Start proc 2251:com.xamarin.XamStore/u0a52 for activity com.xamarin.XamStore/md5d71b54be065bd10ca70688e48d6d74f9.MainActivity
01-22 11:30:58.432 W/linker  ( 2251): /data/app/com.xamarin.XamStore-1/lib/x86/libmonodroid.so: is missing DT_SONAME will use basename as a replacement: "libmonodroid.so"
01-22 11:30:58.436 W/monodroid( 2251): Using override path: /data/data/com.xamarin.XamStore/files/.__override__
01-22 11:30:58.436 W/monodroid( 2251): Trying to load sgen from: /data/data/com.xamarin.XamStore/files/.__override__/libmonosgen-2.0.so
01-22 11:30:58.436 W/monodroid( 2251): Trying to load sgen from: /storage/emulated/0/Android/data/com.xamarin.XamStore/files/.__override__/libmonosgen-2.0.so
01-22 11:30:58.436 W/monodroid( 2251): Trying to load sgen from: /data/app/com.xamarin.XamStore-1/lib/x86/libmonosgen-2.0.so
01-22 11:30:58.436 W/monodroid( 2251): Trying to load sgen from: /data/data/com.xamarin.XamStore/files/.__override__/links/libmonosgen-2.0.so
01-22 11:30:58.508 D/AndroidRuntime( 2256): >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
01-22 11:30:58.509 D/AndroidRuntime( 2256): CheckJNI is OFF
01-22 11:30:58.509 E/cutils-trace( 2256): Error opening trace file: No such file or directory (2)
01-22 11:30:58.518 D/ICU     ( 2256): No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-22 11:30:58.528 E/memtrack( 2256): Couldn't load memtrack module (No such file or directory)
01-22 11:30:58.528 E/android.os.Debug( 2256): failed to load memtrack module: -2
01-22 11:30:58.537 D/AndroidRuntime( 2256): Calling main entry com.android.commands.am.Am
01-22 11:30:58.537 E/SchedPolicy( 2256): open of /dev/cpuctl/bg_non_interactive/tasks failed: No such file or directory
01-22 11:30:58.538 I/ActivityManager(  401): Force stopping com.xamarin.XamStore appid=10052 user=0: from pid 2256
01-22 11:30:58.538 I/ActivityManager(  401): Killing 2251:com.xamarin.XamStore/u0a52 (adj 0): stop com.xamarin.XamStore
01-22 11:30:58.553 I/art     ( 2275): Late-enabling -Xcheck:jni
01-22 11:30:58.561 I/ActivityManager(  401): Start proc 2275:com.xamarin.XamStore/u0a52 for activity com.xamarin.XamStore/md5d71b54be065bd10ca70688e48d6d74f9.MainActivity
01-22 11:30:58.561 I/ActivityManager(  401):   Force finishing activity 3 ActivityRecord{1cfa4b3 u0 com.xamarin.XamStore/md5d71b54be065bd10ca70688e48d6d74f9.MainActivity t10}
01-22 11:30:58.564 D/AndroidRuntime( 2256): Shutting down VM
01-22 11:30:58.564 W/ActivityManager(  401): Spurious death for ProcessRecord{2e4a9fc 0:com.xamarin.XamStore/u0a52}, curProc for 2251: null
01-22 11:30:58.564 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:9881 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedLoop:8889 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLocked:8831 com.android.server.wm.WindowManagerService.executeAppTransition:4215 
01-22 11:30:58.564 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowState.getDisplayId:785 com.android.server.wm.WindowStateAnimator.setSurfaceBoundariesLocked:1420 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:9970 
01-22 11:30:58.565 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowStateAnimator.updateSurfaceWindowCrop:1295 com.android.server.wm.WindowStateAnimator.setSurfaceBoundariesLocked:1484 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:9970 
01-22 11:30:58.565 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowState.isDefaultDisplay:1284 com.android.server.wm.WindowStateAnimator.updateSurfaceWindowCrop:1305 com.android.server.wm.WindowStateAnimator.setSurfaceBoundariesLocked:1484 
01-22 11:30:58.565 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowState.getDisplayId:785 com.android.server.wm.InputMonitor.updateInputWindowsLw:294 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:10221 
01-22 11:30:58.565 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.DisplayContent.setTouchExcludeRegion:237 com.android.server.wm.WindowManagerService.setFocusedStackFrame:4047 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:10297 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedLoop:8889 
01-22 11:30:58.567 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:294 com.android.server.wm.WindowAnimator.updateWindowsLocked:289 com.android.server.wm.WindowAnimator.animateLocked:674 
01-22 11:30:58.567 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowState.getDisplayId:785 com.android.server.wm.WindowStateAnimator.computeShownFrameLocked:1064 com.android.server.wm.WindowStateAnimator.prepareSurfaceLocked:1501 
01-22 11:30:58.567 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowState.getDisplayId:785 com.android.server.wm.WindowStateAnimator.setSurfaceBoundariesLocked:1420 com.android.server.wm.WindowStateAnimator.prepareSurfaceLocked:1503 
01-22 11:30:58.567 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowStateAnimator.updateSurfaceWindowCrop:1295 com.android.server.wm.WindowStateAnimator.setSurfaceBoundariesLocked:1484 com.android.server.wm.WindowStateAnimator.prepareSurfaceLocked:1503 
01-22 11:30:58.567 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowState.isDefaultDisplay:1284 com.android.server.wm.WindowStateAnimator.updateSurfaceWindowCrop:1305 com.android.server.wm.WindowStateAnimator.setSurfaceBoundariesLocked:1484 
01-22 11:30:58.569 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowState.getWindowList:1352 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2797 com.android.server.wm.WindowManagerService.removeWindowLocked:2698 
01-22 11:30:58.569 E/WindowState(  401): getStack: Window{b82e2b8 u0 Starting com.xamarin.XamStore} couldn't find taskId=10 Callers=com.android.server.wm.WindowState.getDisplayContent:780 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2802 com.android.server.wm.WindowManagerService.removeWindowLocked:2698 com.android.server.wm.WindowManagerService.removeWindow:2620 
01-22 11:30:58.573 W/linker  ( 2275): /data/app/com.xamarin.XamStore-1/lib/x86/libmonodroid.so: is missing DT_SONAME will use basename as a replacement: "libmonodroid.so"
01-22 11:30:58.576 W/monodroid( 2275): Using override path: /data/data/com.xamarin.XamStore/files/.__override__
01-22 11:30:58.576 W/monodroid( 2275): Trying to load sgen from: /data/data/com.xamarin.XamStore/files/.__override__/libmonosgen-2.0.so
01-22 11:30:58.576 W/monodroid( 2275): Trying to load sgen from: /storage/emulated/0/Android/data/com.xamarin.XamStore/files/.__override__/libmonosgen-2.0.so
01-22 11:30:58.576 W/monodroid( 2275): Trying to load sgen from: /data/app/com.xamarin.XamStore-1/lib/x86/libmonosgen-2.0.so
01-22 11:30:58.576 W/monodroid( 2275): Trying to load sgen from: /data/data/com.xamarin.XamStore/files/.__override__/links/libmonosgen-2.0.so
01-22 11:30:58.579 W/EGL_xap ( 1262): eglSurfaceAttrib not implemented
01-22 11:30:58.579 W/OpenGLRenderer( 1262): Failed to set EGL_SWAP_BEHAVIOR on surface 0xadd2b040, error=EGL_SUCCESS
01-22 11:30:58.587 W/InputMethodManagerService(  401): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@b5f66da attribute=null, token = android.os.BinderProxy@c9ccb4
Comment 3 Rodrigo Kumpera 2016-01-22 15:13:00 UTC
I believe the problem here is that we don't mark the profiling signals with SA_RESTART.

We had a similar problem in the past with suspend/interrupt.
Comment 4 Alex Rønne Petersen 2016-04-12 04:04:59 UTC
Sampling now apparently works on emulator and on device (in some cases) after the changes on master. There are still some on-device crashes that need to be investigated.
Comment 5 Rodrigo Moya 2016-04-12 11:40:07 UTC
With the improvements backported to C7 branch, the situation is:

* sampling works on sims, every single time
* doesn't work on device (seeing my 1st comment here, it seems it was the contrary before, working on devices and not on sims)

The stacktraces I get of the different apps I've tried are most of the time inside sgen:

04-12 13:26:35.749 E/mono-rt (12941): Stacktrace:
04-12 13:26:35.749 E/mono-rt (12941): 
04-12 13:26:35.749 E/mono-rt (12941):   at <unknown> <0xffffffff>
04-12 13:26:35.749 E/mono-rt (12941):   at Newtonsoft.Json.JsonTextReader.Read () <0x00023>
04-12 13:26:35.749 E/mono-rt (12941):   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader,Newtonsoft.Json.Serialization.JsonContract,bool) <0x000a7>
04-12 13:26:35.749 E/mono-rt (12941):   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader,System.Type,bool) <0x000db>
04-12 13:26:35.749 E/mono-rt (12941):   at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader,System.Type) <0x0041b>
04-12 13:26:35.749 E/mono-rt (12941):   at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader,System.Type) <0x0002f>
04-12 13:26:35.749 E/mono-rt (12941):   at Newtonsoft.Json.JsonConvert.DeserializeObject (string,System.Type,Newtonsoft.Json.JsonSerializerSettings) <0x000bb>
04-12 13:26:35.750 E/mono-rt (12941):   at Newtonsoft.Json.JsonConvert.DeserializeObject<T_REF> (string,Newtonsoft.Json.JsonSerializerSettings) <0x0002b>
04-12 13:26:35.750 E/mono-rt (12941):   at Newtonsoft.Json.JsonConvert.DeserializeObject<T_REF> (string) <0x00027>
04-12 13:26:35.750 E/mono-rt (12941):   at XamarinStore.WebService/<GetProducts>c__async1.<>m__0 () <0x00057>
04-12 13:26:35.750 D/OpenGLRenderer(12941): finish <0x662251d8>
04-12 13:26:35.753 E/mono-rt (12941):   at System.Threading.Tasks.Task`1<TResult_REF>.InnerInvoke () <0x00053>
04-12 13:26:35.753 E/mono-rt (12941):   at System.Threading.Tasks.Task.Execute () <0x0004f>
04-12 13:26:35.753 E/mono-rt (12941):   at System.Threading.Tasks.Task.ExecutionContextCallback (object) <0x00053>
04-12 13:26:35.753 E/mono-rt (12941):   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x001f7>
04-12 13:26:35.753 E/mono-rt (12941):   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x0002b>
04-12 13:26:35.753 E/mono-rt (12941):   at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&) <0x0012b>
04-12 13:26:35.753 E/mono-rt (12941):   at System.Threading.Tasks.Task.ExecuteEntry (bool) <0x000bb>
04-12 13:26:35.753 E/mono-rt (12941):   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () <0x00017>
04-12 13:26:35.754 E/mono-rt (12941):   at System.Threading.ThreadPoolWorkQueue.Dispatch () <0x001bb>
04-12 13:26:35.754 E/mono-rt (12941):   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () <0x00007>
04-12 13:26:35.754 E/mono-rt (12941):   at (wrapper runtime-invoke) <Module>.runtime_invoke_bool (object,intptr,intptr,intptr) <0x0006f>
04-12 13:26:35.754 E/mono-rt (12941): 
04-12 13:26:35.754 E/mono-rt (12941): Attempting native Android stacktrace:
04-12 13:26:35.754 E/mono-rt (12941): 
04-12 13:26:35.760 D/OpenGLRenderer(12941): prepareDirty (0.00, 0.00, 1080.00, 1920.00) opaque 1 <0x662251d8>
04-12 13:26:35.765 D/OpenGLRenderer(12941): finish <0x662251d8>
04-12 13:26:35.778 D/OpenGLRenderer(12941): prepareDirty (0.00, 0.00, 1080.00, 1920.00) opaque 1 <0x662251d8>
04-12 13:26:35.787 D/OpenGLRenderer(12941): finish <0x662251d8>
04-12 13:26:35.804 E/mono-rt (12941):   at ???+576540 [0x609e2c1c]
04-12 13:26:35.804 E/mono-rt (12941):   at ???+2355768 [0x23f238]
04-12 13:26:35.807 D/OpenGLRenderer(12941): prepareDirty (0.00, 0.00, 1080.00, 1920.00) opaque 1 <0x662251d8>
04-12 13:26:35.810 E/mono-rt (12941): 
04-12 13:26:35.810 E/mono-rt (12941): =================================================================
04-12 13:26:35.810 E/mono-rt (12941): Got a SIGSEGV while executing native code. This usually indicates
04-12 13:26:35.810 E/mono-rt (12941): a fatal error in the mono runtime or one of the native libraries 
04-12 13:26:35.810 E/mono-rt (12941): used by your application.
04-12 13:26:35.810 E/mono-rt (12941): =================================================================
04-12 13:26:35.810 E/mono-rt (12941): 
04-12 13:26:35.811 F/libc    (12941): Fatal signal 11 (SIGSEGV) at 0x0000002e (code=1), thread 12972 (amarin.XamStore)
04-12 13:26:35.811 F/libc    (12941): Send stop signal to pid:12941 in void debuggerd_signal_handler(int, siginfo_t*, void*)
04-12 13:26:35.813 D/AEE/AED (  165): $===AEE===AEE===AEE===$
04-12 13:26:35.813 D/AEE/AED (  165): p 0 poll events 1 revents 0
04-12 13:26:35.813 D/AEE/AED (  165): not know revents:0
04-12 13:26:35.813 D/AEE/AED (  165): p 1 poll events 1 revents 0
04-12 13:26:35.813 D/AEE/AED (  165): not know revents:0
04-12 13:26:35.813 D/AEE/AED (  165): p 2 poll events 1 revents 1
04-12 13:26:35.813 D/AEE/AED (  165): aed_main_fork_worker: generator 0x13740d0, worker 0xbebd0898, recv_fd 15
04-12 13:26:35.814 D/AEE/AED (  165): p 3 poll events 1 revents 0
04-12 13:26:35.814 D/AEE/AED (  165): not know revents:0
04-12 13:26:35.814 D/AEE/AED (  165): p 4 poll events 1 revents 0
04-12 13:26:35.814 D/AEE/AED (  165): not know revents:0
04-12 13:26:35.814 I/DEBUG   (13020): handle_request(15)
04-12 13:26:35.814 I/DEBUG   (13020): check process 12941 name:amarin.XamStore
04-12 13:26:35.814 I/DEBUG   (13020): tid 12972 abort msg address is:0
04-12 13:26:35.814 I/DEBUG   (13020): BOOM: pid=12941 uid=10142 gid=10142 tid=12972
04-12 13:26:35.815 I/DEBUG   (13020): [OnPurpose Redunant in preset_info] pid: 12941, tid: 12972, name: amarin.XamStore  >>> com.xamarin.XamStore <<<
04-12 13:26:35.887 D/PowerManagerDisplayController(  775): mLightSensorListener.onSensorChanged(): enabled = true, lux = 221.0
04-12 13:26:35.919 I/DEBUG   (13020): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-12 13:26:35.919 I/DEBUG   (13020): Build fingerprint: 'bq/Aquaris_E5_FHD/Aquaris_E5_FHD:4.4.2/KOT49H/1422001059:user/release-keys'
04-12 13:26:35.920 I/DEBUG   (13020): pid: 12941, tid: 12972, name: amarin.XamStore  >>> com.xamarin.XamStore <<<
04-12 13:26:35.920 I/DEBUG   (13020): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000002e
04-12 13:26:35.947 D/PowerManagerDisplayController(  775): mLightSensorListener.onSensorChanged(): enabled = true, lux = 221.5
04-12 13:26:36.025 I/DEBUG   (13020):     r0 00000033  r1 0000002b  r2 000000cc  r3 000001b7
04-12 13:26:36.025 I/DEBUG   (13020):     r4 00000001  r5 00000001  r6 00000000  r7 60bbaef0
04-12 13:26:36.025 I/DEBUG   (13020):     r8 00000011  r9 6787c5e8  sl 67912a80  fp 00000000
04-12 13:26:36.025 I/DEBUG   (13020):     ip 00000000  sp 660fef90  lr 0023f23c  pc 609e2c1c  cpsr 200f0010
04-12 13:26:36.025 I/DEBUG   (13020): 
04-12 13:26:36.025 I/DEBUG   (13020): backtrace:
04-12 13:26:36.025 I/DEBUG   (13020):     #00  pc 0008cc1c  /data/app-lib/Mono.Android.DebugRuntime-1/libmonosgen-32bit-2.0.so
04-12 13:26:36.025 I/DEBUG   (13020):     #01  pc 0023f238  <unknown>
04-12 13:26:36.025 I/DEBUG   (13020): 
04-12 13:26:36.025 I/DEBUG   (13020): stack:
04-12 13:26:36.025 I/DEBUG   (13020):          660fef50  67283890  
04-12 13:26:36.025 I/DEBUG   (13020):          660fef54  60a95960  /data/app-lib/Mono.Android.DebugRuntime-1/libmonosgen-32bit-2.0.so (mono_method_signature+40)
04-12 13:26:36.025 I/DEBUG   (13020):          660fef58  5cdcef08  
04-12 13:26:36.025 I/DEBUG   (13020):          660fef5c  60c3ce30  
04-12 13:26:36.025 I/DEBUG   (13020):          660fef60  00000000  
04-12 13:26:36.025 I/DEBUG   (13020):          660fef64  60a95960  /data/app-lib/Mono.Android.DebugRuntime-1/libmonosgen-32bit-2.0.so (mono_method_signature+40)
04-12 13:26:36.025 I/DEBUG   (13020):          660fef68  00000002  
04-12 13:26:36.025 I/DEBUG   (13020):          660fef6c  40097bc0  /system/lib/libc.so (dlmalloc+532)
04-12 13:26:36.025 I/DEBUG   (13020):          660fef70  00000000  
04-12 13:26:36.025 I/DEBUG   (13020):          660fef74  00000000  
04-12 13:26:36.025 I/DEBUG   (13020):          660fef78  00000000  
04-12 13:26:36.025 I/DEBUG   (13020):          660fef7c  00000001  
04-12 13:26:36.025 I/DEBUG   (13020):          660fef80  67912658  
04-12 13:26:36.025 I/DEBUG   (13020):          660fef84  60bbaef0  /data/app-lib/Mono.Android.DebugRuntime-1/libmonosgen-32bit-2.0.so
04-12 13:26:36.025 I/DEBUG   (13020):          660fef88  e3a070ad  
04-12 13:26:36.026 I/DEBUG   (13020):          660fef8c  ef9000ad  
04-12 13:26:36.026 I/DEBUG   (13020):     #00  660fef90  00000001  
04-12 13:26:36.026 I/DEBUG   (13020):          ........  ........
Comment 6 Rodrigo Moya 2016-04-12 12:00:25 UTC
Another application crashes, with a similar backtrace in mono-sgen, but when so, we have already received (in the Profiler UI) 750K samples, on a 50 seconds run with a 1000 samples/second setting, which seems to be too many.

And 399K of those samples are on a method we don't get a metadata event for (i.e, the Profiler UI displays its MethodBase (0x65666F24) because we don't know what the name of that method is, which is either a bug in the profiler UI parsing code, or, most probably, a method for which we haven't received, before the app crashes, a metadata event for that method).
Comment 7 Alex Rønne Petersen 2016-04-12 13:41:01 UTC
Note that 750k samples for a 50 sec run is believable if the app has multiple threads. You then get 1000 samples per sec per thread.
Comment 8 Alex Rønne Petersen 2016-04-12 13:42:04 UTC
For the unknown MethodBase, what do you mean exactly? Sample events come with a full backtrace, so are you seeing nonsensical methods for every frame in them?
Comment 9 Alex Rønne Petersen 2016-08-29 19:21:51 UTC
Since people are consistently reporting improved sampling stability on Android with C8, I'm going to close this as fixed. Any potential sampling crashes that pop up from now on can be tracked as individual bugs since the sampling implementation should be much more robust in general.
Comment 10 asimk 2016-09-19 11:38:08 UTC
This issue has been fixed with latest profiler build i.e. 0.34.2-4