Bug Report T828210
Visible to All Users

Code Coverage tool hangs indefinitely

created 5 years ago

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.

Comments (2)
PW PW
Przemyslaw Wlodarczak (DevExpress) 5 years ago

    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:

    1. What testing framework do you use?
    2. What kind of code are you testing (e.g. a class library, wpf application, etc)
    3. Which framework does your code use (e.g. .net core 2.0, .net 4.7.2, etc)
    4. Which exact VS version and extensions do you use? To get this information, open the "Help->About Microsoft Visual Studio" window, click the "Copy Info" button and paste everything here.

    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.

    AE AE
    Alex Eg (DevExpress) 5 years ago

      Hello,
      Thank you for the additional details about your project and settings. I reproduced the issue and we are working on it.

      Answers approved by DevExpress Support

      created 5 years ago

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.