Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Debug console crash #445

@iskernel

Description

@iskernel

Scenario:
While debugging a generic function, evaluating the type of a generic parameter (ex typeof(T)) leads to a crash.

SharpDevelop Version : 5.0.0.4218-Beta 3-193975c4
.NET Version : 4.0.30319.34014
OS Version : Microsoft Windows NT 6.3.9600.0
Current culture : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 281312kb
GC Heap Memory : 107674kb

Unhandled WPF exception
Exception thrown:
System.Exception: Invalid value for TypeKind: TypeParameter
at Debugger.Eval.TypeOf(Thread evalThread, IType type)
at Debugger.AddIn.ExpressionEvaluationVisitor.Visit(TypeOfResolveResult result)
at Debugger.AddIn.ExpressionEvaluationVisitor.Convert(ResolveResult result)
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.Evaluate(String code, Boolean allowMethodInvoke, Boolean allowSetValue)
at ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.Evaluate(String code)
at ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.AcceptCommand(String command)
at ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.HandleInput(Key key)
at ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.<.ctor>b__2(Object sender, KeyEventArgs e)
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
02:37:03.525 [1] DEBUG - Resolved (Line 15, Col 45) to [MemberResolveResult [Method IsKernel.ServiceClients.Bitbucket.Clients.Abstract.IBitbucketPullRequestClient.GetAllAsync(owner:System.String, reposlug:System.String, states:System.Collections.Generic.IEnumerable1[[IsKernel.ServiceClients.Bitbucket.Contracts.PullRequests.Parameters.PullRequestState]], paginatedRequest:IsKernel.ServiceClients.Bitbucket.Contracts.Requests.PaginatedRequest):System.Threading.Tasks.Task1[[IsKernel.ServiceClients.Bitbucket.Contracts.Responses.PaginatedResponse1[[IsKernel.ServiceClients.Bitbucket.Contracts.PullRequests.PullRequest]]]]]] 02:37:03.525 [1] DEBUG - Resolved (Line 15, Col 45) to [MemberResolveResult [Method IsKernel.ServiceClients.Bitbucket.Clients.Abstract.IBitbucketPullRequestClient.GetAllAsync(owner:System.String, reposlug:System.String, states:System.Collections.Generic.IEnumerable1[[IsKernel.ServiceClients.Bitbucket.Contracts.PullRequests.Parameters.PullRequestState]], paginatedRequest:IsKernel.ServiceClients.Bitbucket.Contracts.Requests.PaginatedRequest):System.Threading.Tasks.Task1[[IsKernel.ServiceClients.Bitbucket.Contracts.Responses.PaginatedResponse1[[IsKernel.ServiceClients.Bitbucket.Contracts.PullRequests.PullRequest]]]]]]
02:37:03.525 [1] DEBUG - Resolved (Line 15, Col 45) to [MemberResolveResult [Method IsKernel.ServiceClients.Bitbucket.Clients.Abstract.IBitbucketPullRequestClient.GetAllAsync(owner:System.String, reposlug:System.String, states:System.Collections.Generic.IEnumerable1[[IsKernel.ServiceClients.Bitbucket.Contracts.PullRequests.Parameters.PullRequestState]], paginatedRequest:IsKernel.ServiceClients.Bitbucket.Contracts.Requests.PaginatedRequest):System.Threading.Tasks.Task1[[IsKernel.ServiceClients.Bitbucket.Contracts.Responses.PaginatedResponse1[[IsKernel.ServiceClients.Bitbucket.Contracts.PullRequests.PullRequest]]]]]] 02:37:03.525 [1] DEBUG - Resolved (Line 15, Col 45) to [MemberResolveResult [Method IsKernel.ServiceClients.Bitbucket.Clients.Abstract.IBitbucketPullRequestClient.GetAllAsync(owner:System.String, reposlug:System.String, states:System.Collections.Generic.IEnumerable1[[IsKernel.ServiceClients.Bitbucket.Contracts.PullRequests.Parameters.PullRequestState]], paginatedRequest:IsKernel.ServiceClients.Bitbucket.Contracts.Requests.PaginatedRequest):System.Threading.Tasks.Task1[[IsKernel.ServiceClients.Bitbucket.Contracts.Responses.PaginatedResponse1[[IsKernel.ServiceClients.Bitbucket.Contracts.PullRequests.PullRequest]]]]]]
02:37:03.525 [1] DEBUG - Resolved (Line 15, Col 45) to [MemberResolveResult [Method IsKernel.ServiceClients.Bitbucket.Clients.Abstract.IBitbucketPullRequestClient.GetAllAsync(owner:System.String, reposlug:System.String, states:System.Collections.Generic.IEnumerable1[[IsKernel.ServiceClients.Bitbucket.Contracts.PullRequests.Parameters.PullRequestState]], paginatedRequest:IsKernel.ServiceClients.Bitbucket.Contracts.Requests.PaginatedRequest):System.Threading.Tasks.Task1[[IsKernel.ServiceClients.Bitbucket.Contracts.Responses.PaginatedResponse1[[IsKernel.ServiceClients.Bitbucket.Contracts.PullRequests.PullRequest]]]]]] 02:37:03.526 [1] DEBUG - Resolved (Line 15, Col 45) to [MemberResolveResult [Method IsKernel.ServiceClients.Bitbucket.Clients.Abstract.IBitbucketPullRequestClient.GetAllAsync(owner:System.String, reposlug:System.String, states:System.Collections.Generic.IEnumerable1[[IsKernel.ServiceClients.Bitbucket.Contracts.PullRequests.Parameters.PullRequestState]], paginatedRequest:IsKernel.ServiceClients.Bitbucket.Contracts.Requests.PaginatedRequest):System.Threading.Tasks.Task1[[IsKernel.ServiceClients.Bitbucket.Contracts.Responses.PaginatedResponse1[[IsKernel.ServiceClients.Bitbucket.Contracts.PullRequests.PullRequest]]]]]]
02:37:04.194 [UnitTesting Pipe Reader] DEBUG - Start reading pipe
02:37:04.227 [1] DEBUG - Resolved (Line 18, Col 5) to
02:37:05.145 [1] INFO - Open file d:\Dropbox\SW\csharp\libs\ServiceClients\Bitbucket\IsKernel.ServiceClients.Bitbucket\Infrastructure\MultiValueRequestParameter.cs
02:37:05.146 [1] DEBUG - Resolved (Line 22, Col 6) to
02:37:06.237 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad
02:37:12.492 [1] INFO - Debugger Command: StepOver
02:37:12.520 [1] INFO - Open file d:\Dropbox\SW\csharp\libs\ServiceClients\Bitbucket\IsKernel.ServiceClients.Bitbucket\Infrastructure\MultiValueRequestParameter.cs
02:37:12.520 [1] DEBUG - Resolved (Line 23, Col 6) to
02:37:12.523 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent D:\Dropbox\SW\csharp\libs\ServiceClients\Bitbucket\IsKernel.ServiceClients.Bitbucket\Infrastructure\MultiValueRequestParameter.cs]
02:37:13.325 [37] DEBUG - Telling worker process to exit
02:37:13.325 [37] DEBUG - Waiting for thread-join
02:37:13.326 [41] DEBUG - Cannot read from WorkerProcess 4656: end of stream
02:37:13.326 [41] DEBUG - Stopped reading from WorkerProcess 4656.
02:37:13.326 [41] DEBUG - Telling worker process to exit
02:37:13.326 [41] DEBUG - End of reader thread on WorkerProcess 4656.
02:37:13.327 [37] DEBUG - Joined!
02:37:13.666 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad
02:37:14.911 [1] DEBUG - Resolved (Line 23, Col 6) to [TypeOfResolveResult System.Type]
02:37:14.912 [1] ERROR - Unhandled WPF exception
--> Exception:
System.Exception: Invalid value for TypeKind: TypeParameter
at Debugger.Eval.TypeOf(Thread evalThread, IType type)
at Debugger.AddIn.ExpressionEvaluationVisitor.Visit(TypeOfResolveResult result)
at Debugger.AddIn.ExpressionEvaluationVisitor.Convert(ResolveResult result)
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.Evaluate(String code, Boolean allowMethodInvoke, Boolean allowSetValue)
at ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.Evaluate(String code)
at ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.AcceptCommand(String command)
at ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.HandleInput(Key key)
at ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.<.ctor>b__2(Object sender, KeyEventArgs e)
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution D:\Dropbox\SW\csharp\libs\ServiceClients\Bitbucket\IsKernel.ServiceClients.Bitbucket.sln with 2 projects]
ProjectService.CurrentProject: [CSharpProject: IsKernel.ServiceClients.Bitbucket]
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions