Bug 1048 - FormatExcetpion when using the Android Log Viewer in VS 2010
Summary: FormatExcetpion when using the Android Log Viewer in VS 2010
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Tools and Addins ()
Version: 1.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
: 2107 ()
Depends on:
Blocks:
 
Reported: 2011-09-26 05:44 UTC by dellis1972
Modified: 2011-11-21 11:50 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 or GitHub 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 FIXED

Description dellis1972 2011-09-26 05:44:06 UTC
When using the Android Log Viewer from withing Visual Studio 2010, I get a FormatException raised by visual studio which causes the whole IDE to crash.

The only option was to (very quickly) turn off logging and close the Android Log Viewer and revert to using abd logcat to view the log records.

I dont have any further information on what might have caused the problem.
Comment 1 Jonathan Pobst 2011-11-08 16:56:27 UTC
Trace obtained from IRC:

Exception Type: System.FormatException
Exception Message: String was not recognized as a valid DateTime.
Exception Stack Trace:    at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)
   at Novell.MonoDroidVS.LogCatControl.GotData(Object sender, DataReceivedEventArgs e)
   at System.Diagnostics.Process.OutputReadNotifyUser(String data)
   at System.Diagnostics.AsyncStreamReader.FlushMessageQueue()
   at System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
   at System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
   at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
   at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
   at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Comment 2 Andreia Gaita 2011-11-17 17:56:22 UTC
Fixed on 2.0
Comment 3 Jonathan Pobst 2011-11-21 11:50:34 UTC
*** Bug 2107 has been marked as a duplicate of this bug. ***