History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: DTRC-670
Type: Exception Exception
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Normal Normal
Assignee: Mikhail Pilin
Reporter: G. Richard Bellamy
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
dotTrace

Unable to read beyond the end of the stream.

Created: 30 Oct 07 02:02   Updated: 21 Dec 07 18:01
Component/s: None
Affects Version/s: None
Fix Version/s: 3.1

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
 
This issue is duplicated by:
DTRC-671 Unable to read beyond the end of the ... Normal Closed

Build: 305


 Description  « Hide
Build305
JetBrains.ReSharper.Util.InternalErrorException: Unable to read beyond the end of the stream.
Tried to open newly taken snapshot (OpenSnapShotFileAction.cs) ---> System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadUInt16()
at JetBrains.dotTrace.SnapShot.UniversalSnapShotFile.RecordHeader..ctor(BinaryReader reader) in C:\Agent\work\Server\dotTrace-Main\src\SnapShot\src\UniversalSnapShotFile\RecordHeader.cs:line 54
at JetBrains.dotTrace.SnapShot.CPU.UniversalSnapShotFile.UniversalSnapShotFile.Load(IProgressIndicator progress, FileStream stream, Boolean dontUseCache) in C:\Agent\work\Server\dotTrace-Main\src\SnapShot.CPU\src\UniversalSnapShotFile\UniversalSnapShotFile.cs:line 38
at JetBrains.dotTrace.SnapShot.CPU.CPUSnapShotFile.Load(IProgressIndicator progress, String filename, Boolean dontUseCache) in C:\Agent\work\Server\dotTrace-Main\src\SnapShot.CPU\src\CPUSnapShotFile.cs:line 28
at JetBrains.dotTrace.ViewControls.CPU.SnapShotTab.Init(IProgressIndicator progress) in C:\Agent\work\Server\dotTrace-Main\src\ViewControls.CPU\src\SnapShotTab\SnapShotTab.cs:line 85
at JetBrains.dotTrace.SnapshotManagement.OpenSnapShotFileAction.Helper.OpenSnapShotAndCreateRootTabPage(IProgressIndicator progress) in C:\Agent\work\Server\dotTrace-Main\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 185
— End of inner exception stack trace —

at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\Agent\work\Server\ReSharper2.0\src\Util\src\Logger.cs:line 331 column 9
at JetBrains.ReSharper.Util.Logger.LogException(String, Exception) in c:\Agent\work\Server\ReSharper2.0\src\Util\src\Logger.cs:line 348 column 5
at JetBrains.dotTrace.SnapshotManagement.Helper.SubmitException(Exception) in C:\Agent\work\Server\dotTrace-Main\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 214 column 4
at System.RuntimeMethodHandle._InvokeMethodFast(Object, Object[], SignatureStruct&, MethodAttributes, RuntimeTypeHandle)
at System.RuntimeMethodHandle.InvokeMethodFast(Object, Object[], Signature, MethodAttributes, RuntimeTypeHandle)
at System.Reflection.RuntimeMethodInfo.Invoke(Object, BindingFlags, Binder, Object[], CultureInfo, Boolean)
at System.Delegate.DynamicInvokeImpl(Object[])
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
at System.Threading.ExecutionContext.runTryCode(Object)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, Object)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object)
at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback, Object)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
at System.Windows.Forms.NativeWindow.WndProc(Message&)
at JetBrains.ReSharper.CommonControls.WindowListener.WndProc(Message&) in c:\Agent\work\Server\ReSharper2.0\src\CommonControls\src\Utils\WindowListener.cs:line 37 column 5
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32, ApplicationContext)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32, ApplicationContext)
at System.Windows.Forms.Form.ShowDialog(IWin32Window)
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ShowDialog() in c:\Agent\work\Server\ReSharper2.0\src\Shell\src\Progress\ProgressWindow.cs:line 356 column 9
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskHelper, String, Boolean, Boolean&) in c:\Agent\work\Server\ReSharper2.0\src\Shell\src\Progress\ProgressWindow.cs:line 615 column 9
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskWithProgress, String, Boolean&) in c:\Agent\work\Server\ReSharper2.0\src\Shell\src\Progress\ProgressWindow.cs:line 575 column 7
at JetBrains.dotTrace.SnapshotManagement.Helper.OpenSnapShotAndCreateRootTabPage() in C:\Agent\work\Server\dotTrace-Main\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 84 column 9
at JetBrains.dotTrace.SnapshotManagement.OpenSnapShotFileAction.OpenNormaly(String, ITaskExecutor) in C:\Agent\work\Server\dotTrace-Main\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 256 column 5
at JetBrains.dotTrace.PocketTasks.OpenSnapShotFileTask.Execute() in C:\Agent\work\Server\dotTrace-Main\src\dotTrace2\src\PocketTasks\OpenSnapShotFileTask.cs:line 31 column 4
at JetBrains.dotTrace.MainStuff.Main(String[]) in C:\Agent\work\Server\dotTrace-Main\src\dotTrace2\src\MainStuff.cs:line 38 column 8



 All   Comments   Work Log   Change History      Sort Order:
Mikhail Pilin - 20 Dec 07 13:21
I think, the problem is ICorProfilerCallback::Shutdown had not been called in core. So, some snapshot file section is absent...