Hello, i have the following bug when trying to open a file. Failing file is attached with this post.
Thank you !
SharpDevelop Version : 5.0.0.3456-alpha-a99ad628
.NET Version : 4.0.30319.18052
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : French (France) (fr-FR)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 190660kb
GC Heap Memory : 78476kb
Exception thrown:
System.OverflowException: L'opération arithmétique a provoqué un dépassement de capacité.
à ICSharpCode.AvalonEdit.Utils.CharRope.ToString(Rope`1 rope, Int32 startIndex, Int32 length)
à ICSharpCode.AvalonEdit.Document.RopeTextSource.GetText(Int32 offset, Int32 length)
à ICSharpCode.NRefactory.Editor.ReadOnlyDocument.GetText(Int32 offset, Int32 length)
à CSharpBinding.Parser.TParser.AddCommentTags(SyntaxTree cu, IList`1 tagComments, ITextSource fileContent, FileName fileName, IDocument& document)
à CSharpBinding.Parser.TParser.Parse(FileName fileName, ITextSource fileContent, Boolean fullParseInformationRequested, IProject parentProject, CancellationToken cancellationToken)
à ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseWithExceptionHandling(ITextSource fileContent, Boolean fullParseInformationRequested, IProject project, CancellationToken cancellationToken)
à ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParse(ITextSource fileContent, IProject parentProject, Boolean fullParseInformationRequested, CancellationToken cancellationToken)
à ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.<>c__DisplayClass12.<DoParseAsync>b__10()
à System.Threading.Tasks.Task`1.InnerInvoke()
à System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.<ParseAsync>d__7.MoveNext()
---- Recent log messages:
11:43:00.973 [28] DEBUG - Serializing to C:\Users\Graveen\AppData\Local\Temp\SharpDevelop5.0
unit.core.d6d12d92.dat
11:43:00.977 [15] WARN - System.IO.FileLoadException: Impossible de charger le fichier ou l'assembly 'SharpDevelop, Version=5.0.0.3447, Culture=neutral, PublicKeyToken=f829da5c02be14ee' ou une de ses dépendances. La définition trouvée du manifeste de l'assembly ne correspond pas à la référence de l'assembly. (Exception de HRESULT : 0x80131040)
Nom de fichier : 'SharpDevelop, Version=5.0.0.3447, Culture=neutral, PublicKeyToken=f829da5c02be14ee'
à System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
à System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
à System.Reflection.Assembly.Load(String assemblyString)
à ICSharpCode.NRefactory.Utils.FastSerializer.Deserialize(BinaryReader reader)
à ICSharpCode.SharpDevelop.Parser.AssemblyParserService.TryReadFromCache(String cacheFileName, DateTime lastWriteTime)
AVT : la journalisation de liaison d'assembly est désactivée.
Pour activer la journalisation des échecs de liaison d'assembly, attribuez la valeur 1 à la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD).
Remarque : une certaine perte de performance est associée à l'enregistrement dans le journal des échecs de liaison d'assembly.
Pour désactiver cette fonctionnalité, supprimez la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog].
11:43:00.981 [27] DEBUG - Serializing to C:\Users\Graveen\AppData\Local\Temp\SharpDevelop5.0
unit.framework.ddc31337.dat
11:43:00.983 [LoadSolutionProjects] DEBUG - Deserializing C:\Users\Graveen\AppData\Local\Temp\SharpDevelop5.0\GameServerScripts.935f5b4e.prj
11:43:01.073 [LoadSolutionProjects] DEBUG - GameServerScripts: ParseFiles() finished. 122 files were re-used from CC cache; 0 files were parsed (0 of those are serializable)
11:43:01.113 [LoadSolutionProjects] DEBUG - Deserializing C:\Users\Graveen\AppData\Local\Temp\SharpDevelop5.0\DOLConfig.5296e16e.prj
11:43:01.143 [LoadSolutionProjects] DEBUG - DOLConfig: ParseFiles() finished. 11 files were re-used from CC cache; 0 files were parsed (0 of those are serializable)
11:43:01.181 [21] WARN - System.IO.FileLoadException: Impossible de charger le fichier ou l'assembly 'SharpDevelop, Version=5.0.0.3447, Culture=neutral, PublicKeyToken=f829da5c02be14ee' ou une de ses dépendances. La définition trouvée du manifeste de l'assembly ne correspond pas à la référence de l'assembly. (Exception de HRESULT : 0x80131040)
Nom de fichier : 'SharpDevelop, Version=5.0.0.3447, Culture=neutral, PublicKeyToken=f829da5c02be14ee'
à System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
à System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
à System.Reflection.Assembly.Load(String assemblyString)
à ICSharpCode.NRefactory.Utils.FastSerializer.Deserialize(BinaryReader reader)
à ICSharpCode.SharpDevelop.Parser.AssemblyParserService.TryReadFromCache(String cacheFileName, DateTime lastWriteTime)
AVT : la journalisation de liaison d'assembly est désactivée.
Pour activer la journalisation des échecs de liaison d'assembly, attribuez la valeur 1 à la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD).
Remarque : une certaine perte de performance est associée à l'enregistrement dans le journal des échecs de liaison d'assembly.
Pour désactiver cette fonctionnalité, supprimez la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog].
11:43:01.212 [34] DEBUG - Serializing to C:\Users\Graveen\AppData\Local\Temp\SharpDevelop5.0\System.Deployment.21d0244f.dat
11:43:01.217 [21] WARN - System.IO.FileLoadException: Impossible de charger le fichier ou l'assembly 'SharpDevelop, Version=5.0.0.3447, Culture=neutral, PublicKeyToken=f829da5c02be14ee' ou une de ses dépendances. La définition trouvée du manifeste de l'assembly ne correspond pas à la référence de l'assembly. (Exception de HRESULT : 0x80131040)
Nom de fichier : 'SharpDevelop, Version=5.0.0.3447, Culture=neutral, PublicKeyToken=f829da5c02be14ee'
à System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
à System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
à System.Reflection.Assembly.Load(String assemblyString)
à ICSharpCode.NRefactory.Utils.FastSerializer.Deserialize(BinaryReader reader)
à ICSharpCode.SharpDevelop.Parser.AssemblyParserService.TryReadFromCache(String cacheFileName, DateTime lastWriteTime)
AVT : la journalisation de liaison d'assembly est désactivée.
Pour activer la journalisation des échecs de liaison d'assembly, attribuez la valeur 1 à la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD).
Remarque : une certaine perte de performance est associée à l'enregistrement dans le journal des échecs de liaison d'assembly.
Pour désactiver cette fonctionnalité, supprimez la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog].
11:43:01.289 [33] DEBUG - Serializing to C:\Users\Graveen\AppData\Local\Temp\SharpDevelop5.0\System.DirectoryServices.9d359d4d.dat
11:43:01.290 [LoadSolutionProjects] DEBUG - LoadSolutionProjectsThread finished after 00:00:06.8728420
11:43:01.299 [1] DEBUG - ParseInformationUpdated C:\Users\Graveen\Documents\Dawn of Light\Svn DoL\DOLSharp\trunk\GameServer\gameobjects\GameMythirian.cs (updated)
11:43:01.371 [1] DEBUG - ParseInformationUpdated C:\Users\Graveen\Documents\Dawn of Light\Svn DoL\DOLSharp\trunk\GameServer\gameobjects\GameMythirian.cs (updated)
11:43:01.407 [1] DEBUG - Update Foldings
11:43:01.978 [7] DEBUG - Git: OverlayIconManager Thread finished
11:43:03.059 [CopyInfoToClipboard] DEBUG - Service startup: ICSharpCode.SharpDevelop.IClipboard
11:49:13.739 [1] INFO - Open file C:\Users\Graveen\Documents\Dawn of Light\Svn DoL\DOLSharp\trunk\GameServer\gameobjects\GameNPC.cs
11:49:13.935 [1] ERROR - Got OverflowException while parsing C:\Users\Graveen\Documents\Dawn of Light\Svn DoL\DOLSharp\trunk\GameServer\gameobjects\GameNPC.cs
11:49:13.937 [1] DEBUG - OpenedFileClosed: C:\Users\Graveen\Documents\Dawn of Light\Svn DoL\DOLSharp\trunk\GameServer\gameobjects\GameNPC.cs
11:49:13.938 [1] DEBUG - OpenedFileClosed: C:\Users\Graveen\Documents\Dawn of Light\Svn DoL\DOLSharp\trunk\GameServer\gameobjects\GameNPC.cs
11:49:13.938 [1] ERROR - ThreadException caught
--> Exception:
System.OverflowException: L'opération arithmétique a provoqué un dépassement de capacité.
à ICSharpCode.AvalonEdit.Utils.CharRope.ToString(Rope`1 rope, Int32 startIndex, Int32 length)
à ICSharpCode.AvalonEdit.Document.TextDocument.GetText(Int32 offset, Int32 length)
à CSharpBinding.Parser.TParser.AddCommentTags(SyntaxTree cu, IList`1 tagComments, ITextSource fileContent, FileName fileName, IDocument& document)
à CSharpBinding.Parser.TParser.Parse(FileName fileName, ITextSource fileContent, Boolean fullParseInformationRequested, IProject parentProject, CancellationToken cancellationToken)
à ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseWithExceptionHandling(ITextSource fileContent, Boolean fullParseInformationRequested, IProject project, CancellationToken cancellationToken)
à ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParse(ITextSource fileContent, IProject parentProject, Boolean fullParseInformationRequested, CancellationToken cancellationToken)
à ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.Parse(ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
à ICSharpCode.SharpDevelop.Parser.ParserService.Parse(FileName fileName, ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
à ICSharpCode.AvalonEdit.AddIn.CodeEditorView.UpdateParseInformationForFolding(ParseInformation parseInfo)
à ICSharpCode.AvalonEdit.AddIn.CodeEditor.ParseInformationUpdated(ParseInformation parseInfo)
à ICSharpCode.AvalonEdit.AddIn.CodeEditor.FetchParseInformation()
à ICSharpCode.AvalonEdit.AddIn.CodeEditor.set_FileName(FileName value)
à ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent.Load(OpenedFile file, Stream stream)
à ICSharpCode.SharpDevelop.Workbench.OpenedFile.SwitchedToView(IViewContent newView)
à ICSharpCode.SharpDevelop.Workbench.OpenedFile.ForceInitializeView(IViewContent view)
à ICSharpCode.SharpDevelop.Workbench.FileServiceOpenedFile.ForceInitializeView(IViewContent view)
à ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent..ctor(OpenedFile file, Encoding fixedEncodingForLoading)
à ICSharpCode.AvalonEdit.AddIn.AvalonEditDisplayBinding.CreateContentForFile(OpenedFile file)
à ICSharpCode.SharpDevelop.Workbench.AutoDetectDisplayBinding.CreateContentForFile(OpenedFile file)
à ICSharpCode.SharpDevelop.Workbench.FileService.LoadFileWrapper.Invoke(FileName fileName)
à ICSharpCode.Core.FileUtility.<>c__DisplayClass13.<ObservedLoad>b__12()
à ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile, FileName fileName, String message, FileErrorPolicy policy)
à ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, FileName fileName, String message, FileErrorPolicy policy)
à ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, FileName fileName, FileErrorPolicy policy)
à ICSharpCode.SharpDevelop.Workbench.FileService.OpenFile(FileName fileName, Boolean switchToOpenedView)
à ICSharpCode.SharpDevelop.FileService.OpenFile(String fileName)
à ICSharpCode.SharpDevelop.Project.FileNode.ActivateItem()
à ICSharpCode.SharpDevelop.Project.Commands.OpenFileFromProjectBrowser.Run()
à ICSharpCode.Core.AbstractMenuCommand.System.Windows.Input.ICommand.Execute(Object parameter)
à ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.ExecuteCommand(ICommand command, Object caller)
à ICSharpCode.Core.WinForms.MenuCommand.OnClick(EventArgs e)
à System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
à System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
à System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
à System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
à System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
à System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ScrollableControl.WndProc(Message& m)
à System.Windows.Forms.ToolStrip.WndProc(Message& m)
à System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
11:49:13.983 [6] ERROR - Got OverflowException while parsing C:\Users\Graveen\Documents\Dawn of Light\Svn DoL\DOLSharp\trunk\GameServer\gameobjects\GameNPC.cs
11:49:14.081 [8] ERROR -
--> Exception:
System.OverflowException: L'opération arithmétique a provoqué un dépassement de capacité.
à ICSharpCode.AvalonEdit.Utils.CharRope.ToString(Rope`1 rope, Int32 startIndex, Int32 length)
à ICSharpCode.AvalonEdit.Document.RopeTextSource.GetText(Int32 offset, Int32 length)
à ICSharpCode.NRefactory.Editor.ReadOnlyDocument.GetText(Int32 offset, Int32 length)
à CSharpBinding.Parser.TParser.AddCommentTags(SyntaxTree cu, IList`1 tagComments, ITextSource fileContent, FileName fileName, IDocument& document)
à CSharpBinding.Parser.TParser.Parse(FileName fileName, ITextSource fileContent, Boolean fullParseInformationRequested, IProject parentProject, CancellationToken cancellationToken)
à ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.ParseWithExceptionHandling(ITextSource fileContent, Boolean fullParseInformationRequested, IProject project, CancellationToken cancellationToken)
à ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParse(ITextSource fileContent, IProject parentProject, Boolean fullParseInformationRequested, CancellationToken cancellationToken)
à ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.<>c__DisplayClass12.<DoParseAsync>b__10()
à System.Threading.Tasks.Task`1.InnerInvoke()
à System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.<ParseAsync>d__7.MoveNext()
11:49:14.082 [8] WARN - Stack trace of last exception log:
à System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
à System.Environment.get_StackTrace()
à ICSharpCode.SharpDevelop.Logging.SDMessageService.ShowException(Exception ex, String message)
à ICSharpCode.SharpDevelop.SharpDevelopExtensions.<FireAndForget>b__0(Task t)
à System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
à System.Threading.Tasks.Task.Execute()
à System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
à System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
à System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
à System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
à System.Threading.ThreadPoolWorkQueue.Dispatch()
à System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution C:\Users\Graveen\Documents\Dawn of Light\Svn DoL\DOLSharp\trunk\Dawn of Light.sln with 7 projects]
ProjectService.CurrentProject: [CSharpProject: GameServer]
Workbench.ActiveContent: System.InvalidOperationException: Le thread appelant ne peut pas accéder à cet objet parce qu'un autre thread en est propriétaire.
à System.Windows.Threading.Dispatcher.VerifyAccess()
à ICSharpCode.SharpDevelop.DispatcherMessageLoop.VerifyAccess()
à ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.get_ActiveContent()
à ICSharpCode.SharpDevelop.Workbench.WorkbenchStartup.<InitializeWorkbench>b__0()
à ICSharpCode.Core.ApplicationStateInfoService.GetCurrentApplicationStateInfo()