This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 189239 - Right-click throws AssertionError: Debugger lock taken in AWT Event Queue!
Summary: Right-click throws AssertionError: Debugger lock taken in AWT Event Queue!
Status: RESOLVED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Michal Skvor
URL:
Keywords:
Depends on:
Blocks: 173187
  Show dependency tree
 
Reported: 2010-08-05 07:58 UTC by Alexandr Scherbatiy
Modified: 2011-05-16 13:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 171757


Attachments
stacktrace (3.55 KB, text/plain)
2010-08-05 07:58 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-08-05 07:58:28 UTC
Build: NetBeans IDE Dev (Build 201008050001)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows XP

Stacktrace: 
java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
   at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl$DebuggerReentrantReadWriteLock$DebuggerReadLock.lock(JPDADebuggerImpl.java:2099)
   at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl$ThreadReentrantReadWriteLock$ThreadWriteLock.lock(JPDAThreadImpl.java:1988)
   at org.netbeans.modules.javafx.debugger.utils.Utils.getClassValue(Utils.java:147)
   at org.netbeans.modules.javafx.debugger.models.ScriptObjectVariable.getJDIValue(ScriptObjectVariable.java:115)
   at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getUniqueID(AbstractObjectVariable.java:874)
   at org.netbeans.modules.debugger.jpda.heapwalk.models.HeapActionsFilter$1.isEnabled(HeapActionsFilter.java:120)
Comment 1 Alexandr Scherbatiy 2010-08-05 07:58:32 UTC
Created attachment 101224 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2010-08-05 08:04:06 UTC
NetBeans IDE Dev (Build 201008030001)

Steps to reproduce:

- Create the Path Animation JavaFX sample 
 (New Project-> Samples -> JavaFX -> Path Animation )

- Open the pathanimation.Scenario class
- Set a breakpoint to the line 63 'if (running) then play();' in
 fadeIn() function

- Debug the project
- Expand the Script node in the Variables window
- Right-click on the 'startup' variable

The exception pops up.
Comment 3 Martin Entlicher 2010-08-05 09:58:28 UTC
I've added a check for ((Refreshable) var).isCurrent() in changeset:   175240:51dd9db2d1ca This should prevent from retrieving of the value of uninitialized variables.
http://hg.netbeans.org/main/rev/51dd9db2d1ca

But the implementation of getInnerValue() and getJDIValue() should be in sync in ScriptObjectVariable. It's not necessary to override getJDIValue(), overriding getInnerValue() should be enough, since AbstractVariable.getJDIValue() returns getInnerValue(). It looks like AbstractVariable.getJDIValue() should have been final.
Comment 4 Quality Engineering 2010-08-06 03:17:41 UTC
Integrated into 'main-golden', will be available in build *201008060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/51dd9db2d1ca
User: mentlicher@netbeans.org
Log: #189239 Check if the variable is up-to-date when asking for it's unique ID in AWT thread.
Comment 5 David Strupl 2011-05-16 13:53:22 UTC
Closing all bugs filed against JavaFX 1.x as wontfix. We will support JavaFX 2.0 - please keep opened only bugs against the new release. Thanks.