You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Sven Reimers (JIRA)" <ji...@apache.org> on 2018/06/17 17:51:00 UTC
[jira] [Commented] (NETBEANS-963) java.lang.AssertionError:
Debugger lock taken in AWT Event Queue!
[ https://issues.apache.org/jira/browse/NETBEANS-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16515163#comment-16515163 ]
Sven Reimers commented on NETBEANS-963:
---------------------------------------
Tried to reproduce, but all was ok.
Looked at the code and it seems that there is a fallback path where the thread the method is called is used for acquiring the lock - not the current debugger thread).
Not sure why this happens in your case.
Since the release will not have assertions enabled - this is probably not a blocker.
> java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
> -----------------------------------------------------------------
>
> Key: NETBEANS-963
> URL: https://issues.apache.org/jira/browse/NETBEANS-963
> Project: NetBeans
> Issue Type: Bug
> Components: debugger - Java
> Affects Versions: 9.0
> Environment: Linux; Release Build 316
> Reporter: Peter Nabbefeld
> Priority: Blocker
>
> 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)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists