Using the snapshot feature against an android emulator hangs the application

I am currently using v0.30.0-0 (1) of the profiler, and every time I try to snapshot the memory, the application running in the emulator hangs. If I terminate the app, the snapshot is returned.

Best Answer

Answers

  • The profiler log contains:
    INFO[2016-01-14 23:10:21Z]: ##########################################
    INFO[2016-01-14 23:10:21Z]: # Xamarin Profiler version - 0.30.0-0
    INFO[2016-01-14 23:10:21Z]: # * Arch x86_64
    INFO[2016-01-14 23:10:21Z]: ##########################################
    DEBUG[2016-01-14 23:10:21Z]: processing command line = /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler --type=android --target=AsyncImageAndroid.AsyncImageAndroid|md5c162e62e34c0cdaf9e3dc778a22d0c6e.MainActivity --device=10.71.34.101:5555 --options=name:Nexus 4 (Lollipop)
    INFO[2016-01-14 23:10:23Z]: Creating android run for AsyncImageAndroid.AsyncImageAndroid|md5c162e62e34c0cdaf9e3dc778a22d0c6e.MainActivity target on device 10.71.34.101:5555
    DEBUG[2016-01-14 23:10:23Z]: Progress report initialized successfully
    DEBUG[2016-01-14 23:10:23Z]: performing service XamarinProfiler.Instruments.AllocationsSummaryService update while another one is in progress
    DEBUG[2016-01-14 23:10:23Z]: performing service XamarinProfiler.Instruments.CallTreeService update while another one is in progress
    DEBUG[2016-01-14 23:10:23Z]: performing service XamarinProfiler.Instruments.AllocationsListService update while another one is in progress
    DEBUG[2016-01-14 23:10:23Z]: performing service XamarinProfiler.Instruments.HeapShotService update while another one is in progress
    DEBUG[2016-01-14 23:10:24Z]: Opening /var/folders/d0/vltmg7w51p56twt071gzyfr9m3fg_j/T/skbh41mu.mlpd
    DEBUG[2016-01-14 23:10:24Z]: reading log header
    INFO[2016-01-14 23:10:24Z]: read header with format version 11
    DEBUG[2016-01-14 23:10:24Z]: reading file /var/folders/d0/vltmg7w51p56twt071gzyfr9m3fg_j/T/skbh41mu.mlpd
    DEBUG[2016-01-14 23:10:24Z]: Forwarding port 38073 to Android device Nexus 4 (Lollipop)
    DEBUG[2016-01-14 23:10:24Z]: thread at 3077783200 loaded
    DEBUG[2016-01-14 23:10:40Z]: Acquiring heapshot via port 38073
    DEBUG[2016-01-14 23:11:38Z]: handling heap start at 00:00:16.130
    DEBUG[2016-01-14 23:11:38Z]: handling heap end for heapshot Snapshot 0
    DEBUG[2016-01-14 23:11:38Z]: Stopping profiler log reader
    DEBUG[2016-01-14 23:11:38Z]: Finished

  • Just a side note: I searched through the list of known bugs and I could not find this in there. And the bug link that you provided is not accessible to me.

Sign In or Register to comment.