Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-963

java.lang.AssertionError: Debugger lock taken in AWT Event Queue!

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 9.0
    • Fix Version/s: 9.0
    • Component/s: debugger - Java
    • Labels:
      None
    • Environment:
      Linux; Release Build 316

      Description

      When I've selected the "String Value" column in Variables view of the Java debugger, the following exception is thrown even if I just move the cursor over the string value.

      This does only happen for object values; primitive values do not seem to be affected.

      Probably it's related to tooltips, as those are shown for primitive values, while object values throw an exception.

      As this makes it impossible to show and review large strings and thus makes debugging harder, I've set the status to "Blocker".

       

      java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
          at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl$DebuggerReentrantReadWriteLock$DebuggerReadLock.lock(JPDADebuggerImpl.java:2675)
          at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl$ThreadReentrantReadWriteLock$ThreadWriteLock.lock(JPDAThreadImpl.java:2555)
          at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1066)
          at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1008)
          at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:496)
          at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:460)
          at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:424)
          at org.netbeans.modules.debugger.jpda.ui.models.VariablesTableModel.getValueAt(VariablesTableModel.java:108)
          at org.netbeans.spi.viewmodel.Models$DelegatingTableModel.getValueAt(Models.java:2249)
          at org.netbeans.modules.debugger.jpda.ui.models.NumericDisplayFilter.getValueAt(NumericDisplayFilter.java:112)
          at org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
          at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getValueAt(VariablesTreeModelFilter.java:530)
          at org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
          at org.netbeans.modules.debugger.jpda.ui.models.PendingActionsFilter.getValueAt(PendingActionsFilter.java:108)
          at org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
          at org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1441)
          at org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1441)
          at org.netbeans.spi.viewmodel.Models$CompoundModel.getValueAt(Models.java:4566)
          at org.netbeans.modules.viewmodel.TreeModelNode$MyProperty.updateShortDescription(TreeModelNode.java:2102)
          at org.netbeans.modules.viewmodel.TreeModelNode$MyProperty.getShortDescription(TreeModelNode.java:2084)
          at org.openide.explorer.view.SheetCell.getTableCellRendererComponent(SheetCell.java:276)
          at org.openide.explorer.view.SheetCell$OutlineSheetCell.getTableCellRendererComponent(SheetCell.java:737)
          at org.netbeans.modules.viewmodel.DelegatingCellRenderer.getTableCellRendererComponent(DelegatingCellRenderer.java:66)
          at java.desktop/javax.swing.JTable.prepareRenderer(JTable.java:5758)
          at org.netbeans.swing.outline.Outline.getToolTipText(Outline.java:393)
          at java.desktop/javax.swing.ToolTipManager$insideTimerAction.actionPerformed(ToolTipManager.java:675)
          at java.desktop/javax.swing.Timer.fireActionPerformed(Timer.java:317)
          at java.desktop/javax.swing.Timer$DoPostEvent.run(Timer.java:249)
          at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
          at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
          at java.desktop/java.awt.EventQueue.access$500(EventQueue.java:97)
          at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:717)
          at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:711)
          at java.base/java.security.AccessController.doPrivileged(Native Method)
          at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:89)
          at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
          at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
      [catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:199)
          at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
          at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
          at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
          at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
          at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arunava.sinha ARUNAVA SINHA
                Reporter:
                epdv Peter Nabbefeld
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: