Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-9170

Debugger: Exception in variable view due to empty labels for few variables

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 5.1.2
    • Fix Version/s: Release 5.1.3
    • Component/s: Debugging
    • Labels:
      None
    • Environment:

      Mac OS 10.14.3, Win 10
      Ti SDK: 8.0.1.v20190430172038
      Appc CLI: 7.0.10
      Node: 8.12.0
      JDK: 1.8.0_144
      Studio: 5.1.2.201903111843

      Description

      Exceptions are shown when expanding a variable to view its child key-values. The exception gets generated when a blank row/rows are shown in the variable view.

      On iOS this issue doesn't really occur but was seen when during debug a source file was opened showing Source not found.
      On Android it is easily reproducible for few variables like when we expand the variables Ti or Titanium or Tabgroup or Win

      Steps to Reproduce:
      1. Create a default classic titanium project
      2. Add a breakpoint to tabGroup.open()
      3. Debug on Android device/emulator
      4. When the debug thread gets suspended on the brekapoint, check the variables view and expand the variable tabgroup

      Actual Result:
      Blank rows are shown upon expansion. Also exceptions are shown. Following are the studio logs:

      !ENTRY org.eclipse.core.jobs 4 2 2019-05-10 10:53:32.864
      !MESSAGE An internal error occurred during: "Label Job".
      !STACK 0
      java.lang.NullPointerException
      	at com.axway.inspector.model.InspectorVariablePreview.getValue(InspectorVariablePreview.java:77)
      	at org.eclipse.debug.internal.ui.model.elements.VariableLabelProvider.getLabel(VariableLabelProvider.java:95)
      	at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider.getLabel(ElementLabelProvider.java:315)
      	at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider.retrieveLabel(ElementLabelProvider.java:218)
      	at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider$LabelUpdater.run(ElementLabelProvider.java:165)
      	at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider$LabelJob.run(ElementLabelProvider.java:74)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
       
      !ENTRY org.eclipse.core.jobs 4 2 2019-05-10 10:53:32.865
      !MESSAGE An internal error occurred during: "has children update".
      !STACK 0
      java.lang.NullPointerException
      	at com.axway.inspector.model.InspectorVariablePreview.getValue(InspectorVariablePreview.java:77)
      	at org.eclipse.debug.internal.ui.model.elements.VariableContentProvider.hasChildren(VariableContentProvider.java:65)
      	at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider.updateHasChildren(ElementContentProvider.java:229)
      	at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider$3.run(ElementContentProvider.java:206)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
      

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              ssekhri Satyam Sekhri
              Reviewer:
              Satyam Sekhri
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: