Bug 44196 - Profiler crashes upon startup.
Summary: Profiler crashes upon startup.
Status: RESOLVED DUPLICATE of bug 44287
Alias: None
Product: Profiler
Classification: Xamarin
Component: Android ()
Version: 0.34.x
Hardware: PC Windows
: High critical
Target Milestone: (C8)
Assignee: Rodrigo Moya
URL:
Depends on:
Blocks:
 
Reported: 2016-09-12 15:41 UTC by Brad Chase
Modified: 2016-09-19 15:39 UTC (History)
4 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 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 Brad Chase 2016-09-12 15:41:44 UTC
As soon as the app is deployed, the profiler starts ticking.  Once it loads on the tablet this comes up:

DEBUG[2016-09-09 15:49:21Z]: Finished
INFO[2016-09-09 15:49:21Z]: CurrentRun.Finished for com.Company.App
ERROR[2016-09-09 15:49:21Z]: error occured on run com.Company.App Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: chunkLength
ERROR[2016-09-09 15:49:21Z]: Error occured on run com.Company.App: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: chunkLength
DEBUG[2016-09-09 15:49:21Z]: Stopping profiler log reader
INFO[2016-09-09 15:49:52Z]: Creating android run for com.Company.App|md556783ced3debcf02de6e19e61a1661d4.MainActivity target on device Hi120Q64G45160403778
DEBUG[2016-09-09 15:49:52Z]: Progress report initialized successfully
INFO[2016-09-09 15:49:52Z]: StartRecording for com.Company.App
DEBUG[2016-09-09 15:49:53Z]: Opening C:\Users\bwchase\AppData\Local\Temp\pd0tzhae.mlpd
DEBUG[2016-09-09 15:49:53Z]: reading log header
INFO[2016-09-09 15:49:53Z]: read header with format version 11
DEBUG[2016-09-09 15:49:53Z]: reading file C:\Users\bwchase\AppData\Local\Temp\pd0tzhae.mlpd
DEBUG[2016-09-09 15:49:53Z]: Forwarding port 60468 to Android device CHUWI CW-Hi12
DEBUG[2016-09-09 15:49:55Z]: thread at 4151926400 loaded
ERROR[2016-09-09 15:49:55Z]: 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.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.d__33.MoveNext()


And then bombs out.  This happens on all of our tablets (Samsung, CHUWI, Emulators, ASUS, ... )
Comment 1 Rodrigo Moya 2016-09-19 15:39:31 UTC

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