The Welkin Suite Forum

Still having crashing issues with Lightning Bundles



Still having crashing issues with Lightning Bundles

  • Please log in to reply

#1
windows version welkinsuite

jconvry

    Posted 02 May 2018 and edited 11 May 2018

    Hello, I opened a similar topic not too long ago that was marked fixed by the recent release.

    This issue occurred again. (See stack trace from Event Viewer below...)


    I recreated my solution, it seemed fine. I did some work on my components. When attempting to build, Welkin notified me of a conflict and asked me to pull from salesforce. When I did this, the components I was working on were removed from my Solution. (The folders are now blank and the files within no longer exist on my hard drive)

    Can you please review this and let me know what may be causing this? Thanks



    Application: TheWelkinSuite.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.NullReferenceException
    at WelkinSuite.Presentation.ToolWindows.LightningBundleExplorer.LightningBundleExplorer+<>c__DisplayClass6.<ApplyFilter>b__2(System.Object)
    at System.Windows.Data.ListCollectionView.PrepareLocalArray()
    at System.Windows.Data.ListCollectionView.RefreshOverride()
    at System.Windows.Data.CollectionView.RefreshInternal()
    at System.Windows.Data.CollectionView.RefreshOrDefer()
    at System.Windows.Data.ListCollectionView.set_CustomSort(System.Collections.IComparer)
    at WelkinSuite.Presentation.ToolWindows.LightningBundleExplorer.Helper.BundlesSortConverter.Convert(System.Object, System.Type, System.Object, System.Globalization.CultureInfo)
    at System.Windows.Data.BindingExpression.TransferValue(System.Object, Boolean)
    at System.Windows.Data.BindingExpression.Activate(System.Object)
    at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt)
    at System.Windows.Data.BindingExpression.AttachOverride(System.Windows.DependencyObject, System.Windows.DependencyProperty)
    at System.Windows.Data.BindingExpressionBase.OnAttach(System.Windows.DependencyObject, System.Windows.DependencyProperty)
    at System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty, System.Object, System.Windows.PropertyMetadata, Boolean, Boolean, System.Windows.OperationType, Boolean)
    at System.Windows.Data.BindingOperations.SetBinding(System.Windows.DependencyObject, System.Windows.DependencyProperty, System.Windows.Data.BindingBase)
    at System.Windows.Controls.HeaderedItemsControl.PrepareHierarchy(System.Object, System.Windows.Controls.ItemsControl)
    at System.Windows.Controls.HeaderedItemsControl.PrepareHeaderedItemsControl(System.Object, System.Windows.Controls.ItemsControl)
    at System.Windows.Controls.ItemsControl.PrepareContainerForItemOverride(System.Windows.DependencyObject, System.Object)
    at Telerik.Windows.Controls.RadTreeView.PrepareContainerForItemOverride(System.Windows.DependencyObject, System.Object)
    at System.Windows.Controls.ItemsControl.MS.Internal.Controls.IGeneratorHost.PrepareItemContainer(System.Windows.DependencyObject, System.Object)
    at System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(System.Windows.DependencyObject)
    at Telerik.Windows.Controls.TreeView.TreeViewPanel.InsertContainer(Int32, System.Windows.UIElement, Boolean)
    at Telerik.Windows.Controls.TreeView.TreeViewPanel.AddContainerFromGenerator(Int32, System.Windows.UIElement, Boolean)
    at Telerik.Windows.Controls.TreeView.TreeViewPanel.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
    at System.Windows.Controls.ItemsPresenter.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
    at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
    at System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
    at System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean)
    at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.ScrollViewer.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
    at System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
    at System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean)
    at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
    at System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
    at System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
    at System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
    at System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean)
    at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
    at System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.DockPanel.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
    at System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
    at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
    at System.Windows.UIElement.Measure(System.Windows.Size)
    at System.Windows.ContextLayoutManager.UpdateLayout()
    at System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object)
    at System.Windows.Media.MediaContext+InvokeOnRenderCallback.DoWork()
    at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
    at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
    at System.Windows.Media.MediaContext.RenderMessageHandler(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.DispatcherOperation.InvokeImpl()
    at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Windows.Threading.DispatcherOperation.Invoke()
    at System.Windows.Threading.Dispatcher.ProcessQueue()
    at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)




    7 replies to this topic

    #2

    kate.dulko

      Posted 03 May 2018

      Hi,


      Thank you for sharing this issue with us.


      According to the stack trace that you have shared, this is another TWS crash.


      I kindly ask you to provide us with some additional details so that we could detect a reason for this crash and find a solution.

      Here are my questions:

      1. Can you please check if the component, that was removed from your TWS project during the pulling process, is still present on your organization?
      2. When exactly did TWS crash occur? In other words, at which step or after which exact action you got the issue?

      Also, please send us a bug report directly from the IDE - you can find this functionality in the menu Help -> Report a Bug, please put your email and enable the 'Attach Log File' checkbox. This way we will receive your TWS log files that could provide us with an additional information.


      Thank you,

      Kate



      Kate Dulko
      Customer Relations

      The Welkin Suite

      twitter: @KateDulko
      skype id: d_katerina
      e-mail: kate.dulko@welkinsuite.com

       

        


      #3

      jconvry

        Posted 07 May 2018

        Hi Kate!


        1. Yes they are present in the org, just not in welkin local project
        2. The crash occurs when I click to open the Lightning Bundle Explorer
          1. After downloading a new project, they are there initially, then are removed again, either during a crash or when I Pull From Salesforce.


        #4

        kate.dulko

          Posted 07 May 2018

          Hi,


          Thank you for your update.

          I kindly ask you to send us a bug report directly from the IDE with the attached log files so that we could analyze them.


          Also, can you please tell me if this is reproduced for all Lightning components or for some exact of them?


          Thank you,

          Kate



          Kate Dulko
          Customer Relations

          The Welkin Suite

          twitter: @KateDulko
          skype id: d_katerina
          e-mail: kate.dulko@welkinsuite.com

           

            


          #5

          jconvry

            Posted 07 May 2018

            Hi Kate, I did as you asked.



            Also, I caught it in the act, pulling from salesforce is asking me to remove a lot of files from the org, including components i know are still in the org. (See attached fiel)


            I did not let it do it though, but it looks like a list of the files that get removed anyways when there is a crash after clicking Lightning Bundle Explorer sometimes.


            In my package.xml, I have 

            <types>
            <members>*</members>
            <name>AuraDefinitionBundle</name>
            </types>



            Attached Files


            #6

            kate.dulko

              Posted 08 May 2018

              Hi,


              Thank you for your response with the additional details and for your bug report.


              May I please clarify some more additional details so that we could find a reason for deletion of files during the pulling process?

              Here are my questions:

                   1. Do you use any version control tool, for example, the built-in Git support in TWS or any external Git- or another client for your TWS project?

                   2. When exactly did issue start to reproduce: if there were some changes on your organization, or right after updating the IDE to the latest version?

                   3. Were these bundles create in the IDE or directly on your organization?


              Our developers are looking for a reason for this behavior and we would greatly appreciate any additional information.


              Thank you,

              Kate




              Kate Dulko
              Customer Relations

              The Welkin Suite

              twitter: @KateDulko
              skype id: d_katerina
              e-mail: kate.dulko@welkinsuite.com

               

                


              #7

              jconvry

                Posted 08 May 2018 and edited 08 May 2018

                kate.dulko, on 08 May 2018 - 04:37 PM, said:

                Hi,


                Thank you for your response with the additional details and for your bug report.


                May I please clarify some more additional details so that we could find a reason for deletion of files during the pulling process?

                Here are my questions:

                     1. Do you use any version control tool, for example, the built-in Git support in TWS or any external Git- or another client for your TWS project?

                Jason: No 3rd party GIT tool that interfaces with TWS. 

                     2. When exactly did issue start to reproduce: if there were some changes on your organization, or right after updating the IDE to the latest version?

                Jason: Hard to say, but it seemed like it was after we created some new Lightning Components. The older ones don't seem affected.

                     3. Were these bundles create in the IDE or directly on your organization?

                Jason: I believe they were created using TWS. They exist in the org and I can modify them using Dev Console in the UI. It basically seems like welkin thinks they should not be part of the solution and keeps wanting to remove them.


                Our developers are looking for a reason for this behavior and we would greatly appreciate any additional information.


                Thank you,

                Kate


                 Responses inline



                #8

                kate.dulko

                  Posted 11 May 2018

                  Hi,


                  Thank you for your response greatly!


                  We have reproduced the issue partially, however, if you don't mind me asking, we would appreciate if you could provide us with some more details.

                  There are three cases which I kindly ask you to check:


                  1. Please reproduce the issue one more time, and at the moment when you get the list of files which the IDE suggest you to delete at the latest stage of the pulling process (exactly this stage you have shared with us on the screenshot), please check what is the entry in your package.xml file about Aura files. If there is the same '<members>*</members>' at this moment?


                  2. Right after this, please open the Developer Console and execute the next SOQL query for one of your Lightning components bundle which the IDE suggests for deleting:

                  select Id, DefType, AuraDefinitionBundle.DeveloperName from AuraDefinition where AuraDefinitionBundle.DeveloperName = '{Name_of_LightningBundle}'

                  After you would get a result, please open your project file (you can easily navigate to it using the 'Open Folder in File Explorer' in the context menu of your project in the Solution Explorer in TWS, and find a *.sfprog file) and compare names and IDs of included members.


                  3. And the last one case :)

                  After this, please follow the next steps:

                       1. please open the Project Metadata Components wizard, disable the Aura Definition Bundle metadata type, and click 'Apply' - as a result, all your Lightning files would be removed from your project;

                       2. open the Project Metadata Components wizard again, please enable the Lightning metadata type and subscribe for it, click 'Apply';

                       3. please pull from Salesforce and check if you would receive all your Lightning components to your TWS project;

                       4. in the case, if you would get all components, please pull from salesforce one more time and check if the IDE would suggest you to deleted some components, in other words - if the issue would be reproduced.


                  Please share your results for these cases.

                  We greatly appreciate your collaboration in our investigation of this issue, and we will be happy to solve the issue as soon as possible.


                  Thank you,

                  Kate


                  Kate Dulko
                  Customer Relations

                  The Welkin Suite

                  twitter: @KateDulko
                  skype id: d_katerina
                  e-mail: kate.dulko@welkinsuite.com

                   

                    





                  Boost Your Productivity. Get Started Today

                  Try Free Trial