ranorex studio exception during editing

Bug reports.
hobli
Posts: 59
Joined: Thu Jul 30, 2009 1:15 am

ranorex studio exception during editing

Post by hobli » Sun Feb 06, 2011 5:17 am

hi,
I encountered stack overflow exception with details as below:
I can not attach the source file due to company policy. but I guess it may due to the size of file (10k lines) and during my editing, soem syntax error detected in ream time by ranorex studio.
Ranorex Studio Version : 2.3.4.9270
.NET Version : 2.0.50727.3053
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 3
Current culture : English (United States) (en-US)
Terminal Server Session
Working Set Memory : 167256kb
GC Heap Memory : 110518kb

Error parsing D:\z0021c4y\development\testProject\testProject\TestCases_0001.vb
Exception thrown:
System.OverflowException: Value was either too large or too small for a Double.
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)
at ICSharpCode.NRefactory.Parser.VB.Lexer.ReadDigit(Char ch, Int32 x)
at ICSharpCode.NRefactory.Parser.VB.Lexer.Next()
at ICSharpCode.NRefactory.Parser.VB.Lexer.NextToken()
at ICSharpCode.NRefactory.Parser.VB.Lexer.SkipCurrentBlock(Int32 targetToken)
at ICSharpCode.NRefactory.Parser.VB.Parser.StructureMemberDecl(ModifierList m, List`1 attributes)
at ICSharpCode.NRefactory.Parser.VB.Parser.ClassBody(TypeDeclaration newType)
at ICSharpCode.NRefactory.Parser.VB.Parser.NonModuleDeclaration(ModifierList m, List`1 attributes)
at ICSharpCode.NRefactory.Parser.VB.Parser.NamespaceMemberDecl()
at ICSharpCode.NRefactory.Parser.VB.Parser.NamespaceBody()
at ICSharpCode.NRefactory.Parser.VB.Parser.NamespaceMemberDecl()
at ICSharpCode.NRefactory.Parser.VB.Parser.VBNET()
at ICSharpCode.NRefactory.Parser.VB.Parser.Parse()
at VBNetBinding.Parser.TParser.Parse(IParser p, String fileName, IProjectContent projectContent)
at VBNetBinding.Parser.TParser.Parse(IProjectContent projectContent, String fileName, String fileContent)
at ICSharpCode.SharpDevelop.ParserService.ParseFile(IProjectContent fileProjectContent, String fileName, String fileContent, Boolean updateCommentTags)

---- Recent log messages:
Failed to append recent log messages.
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Sda.LogMessageRecorder.AppendRecentLogMessages(StringBuilder sb, ILog log)
at ICSharpCode.SharpDevelop.Sda.ExceptionBox.getClipboardString()

---- Post-error application state information:
Installed 3rd party AddIns: [RxLogViewer 2.3.4.9270], [RxObjectRepository 2.3.4.9270], [RxRecorder 2.3.4.9270], [Workflow Foundation Designer 2.3.4.9270], [ElementTree 2.3.4.9270]
Workbench.ActiveContent: [TextEditorDisplayBindingWrapper D:\z0021c4y\development\testProject\testProject\TestCases_0001.vb]
ProjectService.OpenSolution: [Solution: FileName=D:\z0021c4y\development\testProject\testProject.rxsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [VBNetProject: customModule]

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: ranorex studio exception during editing

Post by Support Team » Mon Feb 07, 2011 11:40 am

Thank you for reporting this problem! We identified this to be a bug in the SharpDevelop code parser that occurs if you have a double value that is equal to or greater/lesser than Double.MaxValue/MinValue, respectively.

This issue will be fixed in the next Ranorex service release.

Regards,
Alex
Ranorex Team

hobli
Posts: 59
Joined: Thu Jul 30, 2009 1:15 am

Re: ranorex studio exception during editing

Post by hobli » Thu Feb 10, 2011 6:42 am

thanks.