When using the Test Coverage tool in CodeRush to determine the coverage of our unit tests, the tests build and run (it shows the number of succeeded tests in the output window), but the coverage tool hangs: The Progress bar is in marque mode indefinitely, the test runner window is greyed out and no coverage is displayed. When I then close Visual Studio (2019), the following error message appears in the log file (AppData\Local\CodeRush\Logs):
2019.10.30 12:54:47.9560 Error: Message: Object reference not set to an instance of an object.
2019.10.30 12:54:47.9560 Error: Type: System.NullReferenceException
2019.10.30 12:54:47.9560 Error: Source: PresentationFramework
2019.10.30 12:54:47.9560 Error: StackTrace:
2019.10.30 12:54:47.9560 Error: at System.Windows.Data.BindingExpression.Deactivate()
2019.10.30 12:54:47.9560 Error: at System.Windows.Data.BindingExpression.DetachOverride()
2019.10.30 12:54:47.9560 Error: at System.Windows.Data.BindingExpressionBase.Detach()
2019.10.30 12:54:47.9560 Error: at System.Windows.Data.BindingExpressionBase.OnDetach(DependencyObject d, DependencyProperty dp)
2019.10.30 12:54:47.9560 Error: at System.Windows.DependencyObject.ClearValueCommon(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata)
2019.10.30 12:54:47.9560 Error: at System.Windows.DependencyObject.ClearValue(DependencyProperty dp)
2019.10.30 12:54:47.9560 Error: at DevExpress.Xpf.Grid.DefaultColumnChooser.DestroyContentControl()
2019.10.30 12:54:47.9560 Error: at DevExpress.Xpf.Core.ColumnChooserBase.Destroy()
2019.10.30 12:54:47.9560 Error: at DevExpress.Xpf.Grid.DataViewBase.OnSerializeStart()
2019.10.30 12:54:47.9560 Error: at DevExpress.Xpf.Grid.DataViewBase.OnSerializeStart(Object sender, RoutedEventArgs e)
2019.10.30 12:54:47.9560 Error: at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
2019.10.30 12:54:47.9560 Error: at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
2019.10.30 12:54:47.9560 Error: at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
2019.10.30 12:54:47.9560 Error: at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
2019.10.30 12:54:47.9560 Error: at DevExpress.Xpf.Core.Serialization.SerializationProvider.RaiseEvent(RoutedEventArgs e)
2019.10.30 12:54:47.9560 Error: at DevExpress.Xpf.Core.Serialization.SerializationProvider.OnStartSerializing(DependencyObject dObj)
2019.10.30 12:54:47.9560 Error: at DevExpress.Xpf.Core.Serialization.Native.SerializationProviderWrapper.DevExpress.Utils.Serializing.IXtraSerializable.OnStartSerializing()
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.Helpers.SerializeHelper.CallStartSerializing(Object obj)
2019.10.30 12:54:47.9560 Error: at DevExpress.Xpf.Core.Serialization.DXSerializer.DXSerializeHelper.RaiseStartSerializing(Object obj)
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObject(Object obj, XtraSerializationFlags parentFlags, OptionsLayoutBase options)
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializePropertyAsContent(XtraPropertyInfoCollection store, Object obj, PropertyDescriptor prop, OptionsLayoutBase options, XtraSerializableProperty attr, Int32 index)
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeProperty(XtraPropertyInfoCollection store, Object obj, SerializablePropertyDescriptorPair pair, XtraSerializationFlags parentFlags, OptionsLayoutBase options)
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObjectCore(Object obj, XtraSerializationFlags parentFlags, OptionsLayoutBase options)
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObject(Object obj, XtraSerializationFlags parentFlags, OptionsLayoutBase options)
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObject(Object obj, OptionsLayoutBase options)
2019.10.30 12:54:47.9560 Error: at DevExpress.Xpf.Core.Serialization.DXSerializer.SerializationStore.DevExpress.Utils.Serializing.Helpers.IXtraSerializable2.Serialize()
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.Helpers.SerializeHelper.PerformManualSerialization(Object obj)
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObjectCore(Object obj, XtraSerializationFlags parentFlags, OptionsLayoutBase options)
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObject(Object obj, XtraSerializationFlags parentFlags, OptionsLayoutBase options)
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.Helpers.SerializeHelper.SerializeObject(Object obj, OptionsLayoutBase options)
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.XtraSerializer.SerializeObject(Object obj, Stream stream, String appName, OptionsLayoutBase options)
2019.10.30 12:54:47.9560 Error: at DevExpress.Utils.Serializing.XtraSerializer.SerializeObject(Object obj, Object path, String appName, OptionsLayoutBase options)
2019.10.30 12:54:47.9560 Error: at DevExpress.Xpf.Core.Serialization.DXSerializer.SerializeCore(DependencyObject root, Object path, String appName, DXOptionsLayout options, AcceptNestedObjects acceptNested)
2019.10.30 12:54:47.9560 Error: at DevExpress.Xpf.Core.Serialization.DXSerializer.SerializeSingleObject(DependencyObject d, Object path, String appName)
2019.10.30 12:54:47.9560 Error: at DevExpress.CodeRush.ContinuousTesting.UI.View.CodeTreeView.SaveLayoutToStream(Stream stream)
2019.10.30 12:54:47.9560 Error: at DevExpress.CodeRush.ContinuousTesting.UI.View.CodeTreeView.SaveLayoutToString()
2019.10.30 12:54:47.9560 Error: at DevExpress.CodeRush.ContinuousTesting.UI.View.CodeCoverageView.SaveLayoutTo(CodeCoverageToolWindowLayout layout)
2019.10.30 12:54:47.9560 Error: at DevExpress.CodeRush.VSContinuousTesting.CodeCoverage.CodeCoverageToolWindow.SaveLayout()
The coverage tool works perfectly with CodeRush 19.1.9 (I uninstalled 19.2.3 and installed 19.1.9 again). After updating to 19.2.3 again, the coverage tool hangs again.
Hi,
Unfortunately, I could not reproduce the hanging you described. I need more details from you to diagnose the issue.
Is it reproducible always? Does it matter if you run a single test or the whole set? Would you create a sample project where the issue is reproducible on your side and send it to us? It would be a great help for us.
If it is not possible to create such a project, please clarify the following:
Please also send your CodeRush settings and logs. They are stored in folders available via "CodeRush->Support->Settings Folder…" and "CodeRush->Support->CodeRush Logs…" menu items. Just zip their contents and attach here.
I am looking forward to hearing from you.
Hello,
Thank you for the additional details about your project and settings. I reproduced the issue and we are working on it.