Exception on changing a Property of an rxrec file

Bug reports.
bkruse
Posts: 39
Joined: Tue Jul 20, 2010 12:19 pm

Exception on changing a Property of an rxrec file

Post by bkruse » Thu Sep 02, 2010 9:45 am

Good day everybody,

to reproduce:
- open an existing rxrec file (which contains a Logging Item at first position)
- in Properties pane, doubleclick on "User" in the "Category" row
- type "Meta" into the Category field and confirm with "Enter"
- hit "Ctrl+s" to save the current file
- close the current file
- on the next file, do steps 1 to 3 again. On hitting "Enter" one of the below exceptions will arise.

Additional Information:
In my case this is reproducible even after restarting Ranorex.
I'm not sure if steps 4 to 6 are always needed to reproduce.
If confirming by selecting another cell (instead of hitting "Enter"), the Editor does not get dirty. This may be related.

regards, Björn
Ranorex Studio Version : 2.3.4.9270
.NET Version : 2.0.50727.4952
OS Version : Microsoft Windows NT 6.1.7600.0
Current culture : German (Germany) (de-DE)
Working Set Memory : 220992kb
GC Heap Memory : 35560kb

Exception thrown:
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Ranorex.Controls.ItemRecorder.UpdateListFromRecordTable(Boolean causeOnRecordingChanged)
bei Ranorex.Controls.ItemRecorder.itemDetailGrid_PropertyValueChanged(Object s, PropertyValueChangedEventArgs e)
bei System.Windows.Forms.PropertyValueChangedEventHandler.Invoke(Object s, PropertyValueChangedEventArgs e)
bei System.Windows.Forms.PropertyGrid.OnPropertyValueChanged(PropertyValueChangedEventArgs e)
bei System.Windows.Forms.PropertyGrid.OnPropertyValueSet(GridItem changedItem, Object oldValue)
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.CommitValue(GridEntry ipeCur, Object value)
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.CommitValue(Object value)
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.CommitText(String text)
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.Commit()
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.UnfocusSelection()
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.GridViewEdit.ProcessDialogKey(Keys keyData)
bei System.Windows.Forms.Control.PreProcessMessage(Message& msg)
bei System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
bei System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

---- Recent log messages:
Failed to append recent log messages.
System.InvalidOperationException: Die Sequenz enthält keine Elemente.
bei System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
bei ICSharpCode.SharpDevelop.Sda.LogMessageRecorder.AppendRecentLogMessages(StringBuilder sb, ILog log)
bei 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: ICSharpCode.SharpDevelop.Gui.PropertyPad
ProjectService.OpenSolution: [Solution: FileName=C:\Users\bkruse\Documents\RanorexStudio Projects\Programmer\Programmer.rxsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: CreditSystem]
Ranorex Studio Version : 2.3.4.9270
.NET Version : 2.0.50727.4952
OS Version : Microsoft Windows NT 6.1.7600.0
Current culture : German (Germany) (de-DE)
Working Set Memory : 163488kb
GC Heap Memory : 32055kb

Exception thrown:
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Ranorex.Controls.ItemRecorder.OnRecordingChanged(Boolean updateUndo)
bei Ranorex.Controls.ItemRecorder.OnSetRecordTable(RecordTable value)
bei Ranorex.Controls.ItemRecorder.set_CurrentRecordTable(RecordTable value)
bei Ranorex.Controls.ItemRecorder.get_CurrentRecordTable()
bei Ranorex.Controls.ItemRecorder.UpdateListFromRecordTable(Boolean causeOnRecordingChanged)
bei Ranorex.Controls.ItemRecorder.itemDetailGrid_PropertyValueChanged(Object s, PropertyValueChangedEventArgs e)
bei System.Windows.Forms.PropertyValueChangedEventHandler.Invoke(Object s, PropertyValueChangedEventArgs e)
bei System.Windows.Forms.PropertyGrid.OnPropertyValueChanged(PropertyValueChangedEventArgs e)
bei System.Windows.Forms.PropertyGrid.OnPropertyValueSet(GridItem changedItem, Object oldValue)
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.CommitValue(GridEntry ipeCur, Object value)
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.CommitValue(Object value)
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.CommitText(String text)
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.Commit()
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.UnfocusSelection()
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.GridViewEdit.ProcessDialogKey(Keys keyData)
bei System.Windows.Forms.Control.PreProcessMessage(Message& msg)
bei System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
bei System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

---- Recent log messages:
Failed to append recent log messages.
System.InvalidOperationException: Die Sequenz enthält keine Elemente.
bei System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
bei ICSharpCode.SharpDevelop.Sda.LogMessageRecorder.AppendRecentLogMessages(StringBuilder sb, ILog log)
bei 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: ICSharpCode.SharpDevelop.Gui.PropertyPad
ProjectService.OpenSolution: [Solution: FileName=C:\Users\bkruse\Documents\RanorexStudio Projects\Programmer\Programmer.rxsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: CreditSystem]

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

Re: Exception on changing a Property of an rxrec file

Post by Support Team » Thu Sep 02, 2010 1:44 pm

Hi,

Thank you for posting the bug. I was able to reproduce it and submitted a new bug entry to our internal bug tracking tool.

Regards,
Peter
Ranorex Team