SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Bug Report

Last post 03-04-2017 4:48 PM by capralden. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-04-2017 4:48 PM

    Bug Report

    SharpDevelop Version : 5.1.0.5216-0e58df71
    .NET Version         : 4.6.01590
    OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
    Current culture      : Russian (Russia) (ru-RU)
    Current UI language  : en
    Running under WOW6432, processor architecture: x86-64
    Working Set Memory   : 160952kb
    GC Heap Memory       : 19273kb
    Exception thrown:
    System.OverflowException: Arithmetic operation resulted in an overflow.
       at ICSharpCode.AvalonEdit.Utils.CharRope.ToString(Rope`1 rope, Int32 startIndex, Int32 length)
       at ICSharpCode.AvalonEdit.Document.RopeTextSource.GetText(Int32 offset, Int32 length)
       at ICSharpCode.NRefactory.Editor.ReadOnlyDocument.GetText(Int32 offset, Int32 length)
       at CSharpBinding.Parser.TParser.AddCommentTags(SyntaxTree cu, IList`1 tagComments, ITextSource fileContent, FileName fileName, IDocument& document)
       at CSharpBinding.Parser.TParser.Parse(FileName fileName, ITextSource fileContent, Boolean fullParseInformationRequested, IProject parentProject, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseWithExceptionHandling(ITextSource fileContent, Boolean fullParseInformationRequested, IProject project, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParse(ITextSource fileContent, IProject parentProject, Boolean fullParseInformationRequested, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.<>c__DisplayClass28_0.<DoParseAsync>b__0()
       at System.Threading.Tasks.Task`1.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
    --- 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 ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.<ParseAsync>d__26.MoveNext()
    ---- Recent log messages:
    18:45:29.249 [1] DEBUG - Service startup: ICSharpCode.UnitTesting.ITestService
    18:45:29.299 [LoadSolutionProjects] ERROR - Got ArgumentOutOfRangeException while parsing C:\Users\Денис\Documents\SharpDevelop Projects\c\c\Program.cs
    18:45:29.309 [LoadSolutionProjects] ERROR - Error on LoadSolutionProjects thread
    --> Exception:
    System.AggregateException: One or more errors occurred. ---> System.ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: length
       at System.String.Substring(Int32 startIndex, Int32 length)
       at ICSharpCode.NRefactory.Editor.StringTextSource.GetText(Int32 offset, Int32 length)
       at ICSharpCode.NRefactory.Editor.ReadOnlyDocument.GetText(Int32 offset, Int32 length)
       at CSharpBinding.Parser.TParser.AddCommentTags(SyntaxTree cu, IList`1 tagComments, ITextSource fileContent, FileName fileName, IDocument& document)
       at CSharpBinding.Parser.TParser.Parse(FileName fileName, ITextSource fileContent, Boolean fullParseInformationRequested, IProject parentProject, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseWithExceptionHandling(ITextSource fileContent, Boolean fullParseInformationRequested, IProject project, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParse(ITextSource fileContent, IProject parentProject, Boolean fullParseInformationRequested, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseFile(ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserService.ParseFile(FileName fileName, ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass27_0.<ParseFiles>b__0(FileName fileName)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
       at System.Threading.Tasks.Task.InnerInvoke()
       at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
       at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )
       --- End of inner exception stack trace ---
       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
       at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList`1 list, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
       at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
       at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body)
       at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.ParseFiles(List`1 filesToParse, IProgressMonitor progressMonitor)
       at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.Initialize(IProgressMonitor progressMonitor, List`1 filesToParse)
       at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass10_0.<.ctor>b__0(IProgressMonitor monitor)
       at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobTask.Run(IProgressMonitor progressMonitor)
       at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobQueue.RunThread()
    ---> (Inner Exception #0) System.ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: length
       at System.String.Substring(Int32 startIndex, Int32 length)
       at ICSharpCode.NRefactory.Editor.StringTextSource.GetText(Int32 offset, Int32 length)
       at ICSharpCode.NRefactory.Editor.ReadOnlyDocument.GetText(Int32 offset, Int32 length)
       at CSharpBinding.Parser.TParser.AddCommentTags(SyntaxTree cu, IList`1 tagComments, ITextSource fileContent, FileName fileName, IDocument& document)
       at CSharpBinding.Parser.TParser.Parse(FileName fileName, ITextSource fileContent, Boolean fullParseInformationRequested, IProject parentProject, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseWithExceptionHandling(ITextSource fileContent, Boolean fullParseInformationRequested, IProject project, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParse(ITextSource fileContent, IProject parentProject, Boolean fullParseInformationRequested, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseFile(ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserService.ParseFile(FileName fileName, ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass27_0.<ParseFiles>b__0(FileName fileName)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
       at System.Threading.Tasks.Task.InnerInvoke()
       at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
       at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<---
    18:45:29.325 [LoadSolutionProjects] WARN - Stack trace of last exception log:
       at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
       at System.Environment.get_StackTrace()
       at ICSharpCode.SharpDevelop.Logging.SDMessageService.ShowException(Exception ex, String message)
       at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobQueue.RunThread()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    18:45:29.583 [6] DEBUG - Git: OverlayIconManager Thread finished
    18:45:46.273 [LoadSolutionProjects] DEBUG - LoadSolutionProjectsThread finished after 00:00:17.1346155
    18:45:46.274 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.Workbench.IDisplayBindingService
    18:45:51.667 [1] INFO - CurrentProject changed to c
    18:45:51.670 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
    18:45:51.729 [1] INFO - Loading addin ASP.NET MVC Binding
    18:45:51.734 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.IClipboard
    18:45:53.421 [1] INFO - Initialize DirectoryNode C:\Users\Денис\Documents\SharpDevelop Projects\c\c
    18:45:53.422 [7] DEBUG - Git: OverlayIconManager Thread started
    18:45:53.523 [7] DEBUG - Git: OverlayIconManager Thread finished
    18:45:55.115 [1] INFO - Open file C:\Users\Денис\Documents\SharpDevelop Projects\c\c\Program.cs
    18:45:55.183 [1] INFO - Loading addin Search & Replace
    18:45:55.244 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.ILanguageService
    18:45:55.288 [1] ERROR - Got OverflowException while parsing C:\Users\Денис\Documents\SharpDevelop Projects\c\c\Program.cs
    18:45:55.289 [1] DEBUG - OpenedFileClosed: C:\Users\Денис\Documents\SharpDevelop Projects\c\c\Program.cs
    18:45:55.290 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.Editor.Bookmarks.IBookmarkManager
    18:45:55.302 [1] DEBUG - OpenedFileClosed: C:\Users\Денис\Documents\SharpDevelop Projects\c\c\Program.cs
    18:45:55.302 [1] ERROR - ThreadException caught
    --> Exception:
    System.OverflowException: Arithmetic operation resulted in an overflow.
       at ICSharpCode.AvalonEdit.Utils.CharRope.ToString(Rope`1 rope, Int32 startIndex, Int32 length)
       at ICSharpCode.AvalonEdit.Document.TextDocument.GetText(Int32 offset, Int32 length)
       at CSharpBinding.Parser.TParser.AddCommentTags(SyntaxTree cu, IList`1 tagComments, ITextSource fileContent, FileName fileName, IDocument& document)
       at CSharpBinding.Parser.TParser.Parse(FileName fileName, ITextSource fileContent, Boolean fullParseInformationRequested, IProject parentProject, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseWithExceptionHandling(ITextSource fileContent, Boolean fullParseInformationRequested, IProject project, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParse(ITextSource fileContent, IProject parentProject, Boolean fullParseInformationRequested, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.Parse(ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserService.Parse(FileName fileName, ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
       at ICSharpCode.AvalonEdit.AddIn.CodeEditorView.UpdateParseInformationForFolding(ParseInformation parseInfo)
       at ICSharpCode.AvalonEdit.AddIn.CodeEditor.ParseInformationUpdated(ParseInformation parseInfo)
       at ICSharpCode.AvalonEdit.AddIn.CodeEditor.FetchParseInformation()
       at ICSharpCode.AvalonEdit.AddIn.CodeEditor.set_FileName(FileName value)
       at ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent.Load(OpenedFile file, Stream stream)
       at ICSharpCode.SharpDevelop.Workbench.OpenedFile.SwitchedToView(IViewContent newView)
       at ICSharpCode.SharpDevelop.Workbench.OpenedFile.ForceInitializeView(IViewContent view)
       at ICSharpCode.SharpDevelop.Workbench.FileServiceOpenedFile.ForceInitializeView(IViewContent view)
       at ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent..ctor(OpenedFile file, Encoding fixedEncodingForLoading)
       at ICSharpCode.AvalonEdit.AddIn.AvalonEditDisplayBinding.CreateContentForFile(OpenedFile file)
       at ICSharpCode.SharpDevelop.Workbench.FileService.LoadFileWrapper.Invoke(FileName fileName)
       at ICSharpCode.Core.FileUtility.<>c__DisplayClass63_0.<ObservedLoad>b__0()
       at ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile, FileName fileName, String message, FileErrorPolicy policy)
       at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, FileName fileName, String message, FileErrorPolicy policy)
       at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, FileName fileName, FileErrorPolicy policy)
       at ICSharpCode.SharpDevelop.Workbench.FileService.OpenFile(FileName fileName, Boolean switchToOpenedView)
       at ICSharpCode.SharpDevelop.FileService.OpenFile(String fileName)
       at ICSharpCode.SharpDevelop.Project.FileNode.ActivateItem()
       at ICSharpCode.SharpDevelop.Gui.ExtTreeView.OnMouseDoubleClick(MouseEventArgs e)
       at System.Windows.Forms.TreeView.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    18:45:55.323 [5] ERROR - Got OverflowException while parsing C:\Users\Денис\Documents\SharpDevelop Projects\c\c\Program.cs
    18:45:55.457 [5] ERROR - 
    --> Exception:
    System.OverflowException: Arithmetic operation resulted in an overflow.
       at ICSharpCode.AvalonEdit.Utils.CharRope.ToString(Rope`1 rope, Int32 startIndex, Int32 length)
       at ICSharpCode.AvalonEdit.Document.RopeTextSource.GetText(Int32 offset, Int32 length)
       at ICSharpCode.NRefactory.Editor.ReadOnlyDocument.GetText(Int32 offset, Int32 length)
       at CSharpBinding.Parser.TParser.AddCommentTags(SyntaxTree cu, IList`1 tagComments, ITextSource fileContent, FileName fileName, IDocument& document)
       at CSharpBinding.Parser.TParser.Parse(FileName fileName, ITextSource fileContent, Boolean fullParseInformationRequested, IProject parentProject, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseWithExceptionHandling(ITextSource fileContent, Boolean fullParseInformationRequested, IProject project, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParse(ITextSource fileContent, IProject parentProject, Boolean fullParseInformationRequested, CancellationToken cancellationToken)
       at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.<>c__DisplayClass28_0.<DoParseAsync>b__0()
       at System.Threading.Tasks.Task`1.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
    --- 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 ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.<ParseAsync>d__26.MoveNext()
    18:45:55.457 [5] WARN - Stack trace of last exception log:
       at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
       at System.Environment.get_StackTrace()
       at ICSharpCode.SharpDevelop.Logging.SDMessageService.ShowException(Exception ex, String message)
       at ICSharpCode.SharpDevelop.SharpDevelopExtensions.<>c.<FireAndForget>b__2_0(Task t)
       at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
       at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
       at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
       at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    ---- Post-error application state information:
    Installed 3rd party AddIns: 
    ProjectService.CurrentSolution: [Solution C:\Users\Денис\Documents\SharpDevelop Projects\c\c.sln with 1 projects]
    ProjectService.CurrentProject: [CSharpProject: c]
    Workbench.ActiveContent: System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
       at System.Windows.Threading.Dispatcher.VerifyAccess()
       at ICSharpCode.SharpDevelop.DispatcherMessageLoop.VerifyAccess()
       at ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.get_ActiveContent()
       at ICSharpCode.SharpDevelop.Workbench.WorkbenchStartup.<>c.<InitializeWorkbench>b__4_0()
       at ICSharpCode.Core.ApplicationStateInfoService.GetCurrentApplicationStateInfo()
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.