Bug 44375 - Running any of the profiles with CPU time profiler stops after 2-3 seconds with error while reading buffer
Summary: Running any of the profiles with CPU time profiler stops after 2-3 seconds wi...
Status: RESOLVED DUPLICATE of bug 44287
Alias: None
Product: Profiler
Classification: Xamarin
Component: Android ()
Version: 0.34.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jose Miguel Torres
URL:
Depends on:
Blocks:
 
Reported: 2016-09-15 16:16 UTC by n.v.biryukov
Modified: 2016-09-19 14:56 UTC (History)
4 users (show)

Tags: xamarin, profiler, buffer,
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 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:
RESOLVED DUPLICATE of bug 44287

Description n.v.biryukov 2016-09-15 16:16:58 UTC
INFO[2016-09-15 18:06:09Z]: initializing android platform
INFO[2016-09-15 18:06:09Z]: initializing ios platform
INFO[2016-09-15 18:06:09Z]: initializing mlpd platform
INFO[2016-09-15 18:06:09Z]: ##########################################
INFO[2016-09-15 18:06:09Z]: # Xamarin Profiler version -  0.34.1.0
INFO[2016-09-15 18:06:09Z]: #  * Arch x86_64
INFO[2016-09-15 18:06:09Z]: ##########################################
DEBUG[2016-09-15 18:06:09Z]: processing command line = C:\Program Files (x86)\Xamarin\Profiler\XamarinProfiler.exe --type=android --target=PureSensors.PureSensors|md572c47d3415aacf6bfa531a519f592482.MainActivity --device=3204d8752575715f --options=name:Samsung SM-G800F
DEBUG[2016-09-15 18:06:15Z]: instrument added
DEBUG[2016-09-15 18:06:15Z]: instrument added
DEBUG[2016-09-15 18:06:15Z]: instrument added
INFO[2016-09-15 18:06:15Z]: Creating android run for PureSensors.PureSensors|md572c47d3415aacf6bfa531a519f592482.MainActivity target on device 3204d8752575715f
DEBUG[2016-09-15 18:06:15Z]: Progress report initialized successfully
INFO[2016-09-15 18:06:15Z]: StartRecording for PureSensors.PureSensors
DEBUG[2016-09-15 18:06:19Z]: Opening C:\Users\nvbir\AppData\Local\Temp\iciporgq.mlpd
DEBUG[2016-09-15 18:06:19Z]: reading log header
INFO[2016-09-15 18:06:19Z]: read header with format version 13
DEBUG[2016-09-15 18:06:19Z]: reading file C:\Users\nvbir\AppData\Local\Temp\iciporgq.mlpd
DEBUG[2016-09-15 18:06:19Z]: Forwarding port 57649 to Android device Samsung SM-G800F
DEBUG[2016-09-15 18:06:19Z]: thread  at 1073828180 loaded
DEBUG[2016-09-15 18:06:19Z]: thread  at 2094939016 loaded
ERROR[2016-09-15 18:06:23Z]: error while reading buffer
System.ArgumentNullException: Value cannot be null.
Parameter name: key
   at System.Collections.Concurrent.ConcurrentDictionary`2.TryGetValue(TKey key, TValue& value)
   at XamarinProfiler.Core.Metadata.Store.SamplesStore.AddSample(SampleType type, UInt64 timestamp, CallTreeNode node)
   at XamarinProfiler.Core.Metadata.Store.ProfileListener.ProcessSampleHit(BufferDescriptor buffer, UInt64 timestamp, SampleType sampleType, Int64 threadId, Int64[] instructionPointers, Int64[] managedBacktrace)
   at XamarinProfiler.Core.Reader.EventReader.ReadSampleHitEvent(LogReader reader, BufferDescriptor buffer, Byte extendedInfo, IEventProcessor processor)
   at XamarinProfiler.Core.Reader.LogReader.<Start>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at XamarinProfiler.Core.Metadata.Store.ProfileListener.<StartReading>d__33.MoveNext()
DEBUG[2016-09-15 18:06:23Z]: Finished
INFO[2016-09-15 18:06:23Z]: CurrentRun.Finished for PureSensors.PureSensors
Comment 1 Rodrigo Moya 2016-09-19 14:56:37 UTC

*** This bug has been marked as a duplicate of bug 44287 ***