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 153376 - IDE hangs when switching execution model to Mobile emulator
Summary: IDE hangs when switching execution model to Mobile emulator
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-18 11:42 UTC by Alexandr Scherbatiy
Modified: 2011-10-19 12:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Thread Dump (26.81 KB, text/plain)
2008-11-18 11:43 UTC, Alexandr Scherbatiy
Details
IDE Thread Dump 2 (64.69 KB, text/plain)
2008-11-18 11:43 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-11-18 11:42:01 UTC
JavaFX_NB_Plugin_NB65_promoted #89 14-Nov-2008 13:59:29
  Product Version         = NetBeans IDE 6.5 (Build 200811100001)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16; Sun Microsystems Inc.


It is rarely reproduced issue so the steps below do not always hang the IDE.
- Create a JavaFX Script project
- Run it in Browser
- Switch the execution model to the Mobile Emulator
  IDE hangs from time to time.

Or it sometimes hangs when I switch the execution model  
from mobile emulator to Run in Browser.

But I have a thread dump. May be it helps:

"AWT-EventQueue-1" prio=6 tid=0x2d73c400 nid=0xe44 waiting for monitor entry [0x2f25e000..0x2f25fb94]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at
org.netbeans.modules.javafx.project.classpath.BootClassPathImplementation.getResources(BootClassPathImplementation.java:83)
	- waiting to lock <0x070c39c8> (a org.netbeans.modules.javafx.project.classpath.BootClassPathImplementation)
	at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:294)
	at org.netbeans.modules.java.source.usages.ClassPathRootsListener.handleClassPath(ClassPathRootsListener.java:152)
	- locked <0x07e552d0> (a org.netbeans.modules.java.source.usages.ClassPathRootsListener)
	at org.netbeans.modules.java.source.usages.ClassPathRootsListener.propertyChange(ClassPathRootsListener.java:330)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at org.netbeans.api.java.classpath.ClassPath.firePropertyChange(ClassPath.java:558)
	at org.netbeans.api.java.classpath.ClassPath$SPIListener.propertyChange(ClassPath.java:958)
	at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:186)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
	at
org.netbeans.modules.javafx.project.classpath.BootClassPathImplementation.resetCache(BootClassPathImplementation.java:147)
	at
org.netbeans.modules.javafx.project.classpath.BootClassPathImplementation.propertyChange(BootClassPathImplementation.java:122)
	at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:186)
	at org.netbeans.spi.project.support.ant.PropertyUtils$SequentialPropertyEvaluator.stateChanged(PropertyUtils.java:876)
	at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:319)
	at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:123)
	at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:109)
	at org.netbeans.spi.project.support.ant.ProjectProperties$PP$2.run(ProjectProperties.java:332)
	at org.netbeans.spi.project.support.ant.ProjectProperties$PP$2.run(ProjectProperties.java:331)
	at org.openide.util.Mutex.readAccess(Mutex.java:285)
	at org.netbeans.spi.project.support.ant.ProjectProperties$PP.fireChange(ProjectProperties.java:338)
	at org.netbeans.spi.project.support.ant.ProjectProperties$PP.put(ProjectProperties.java:210)
	at org.netbeans.spi.project.support.ant.ProjectProperties.putProperties(ProjectProperties.java:123)
	at org.netbeans.spi.project.support.ant.AntProjectHelper$6.run(AntProjectHelper.java:698)
	at org.netbeans.spi.project.support.ant.AntProjectHelper$6.run(AntProjectHelper.java:697)
	at org.openide.util.Mutex.writeAccess(Mutex.java:394)
	at org.netbeans.spi.project.support.ant.AntProjectHelper.putProperties(AntProjectHelper.java:696)
	at org.netbeans.modules.java.api.common.ant.UpdateHelper$2.run(UpdateHelper.java:114)
	at org.openide.util.Mutex.writeAccess(Mutex.java:469)
Comment 1 Alexandr Scherbatiy 2008-11-18 11:43:10 UTC
Created attachment 73861 [details]
IDE Thread Dump
Comment 2 Alexandr Scherbatiy 2008-11-18 11:43:58 UTC
Created attachment 73862 [details]
IDE Thread Dump 2
Comment 3 Adam Sotona 2008-11-18 13:01:39 UTC
Yep, it is there - nice one.
It inside BootClassPathImplementation between Project Mutex and synchronized section inside BootClassPathImplementation.
I am working on a fix.
Comment 4 Adam Sotona 2008-11-18 13:42:44 UTC
fixed in trunk - http://hg.netbeans.org/javafx/rev/9e75e9db3876
Comment 5 David Kaspar 2008-11-19 09:03:39 UTC
Still happens in the latest release builds.
Comment 6 Adam Sotona 2008-11-19 09:19:58 UTC
request for integration is pending
Comment 7 Lark Fitzgerald 2008-11-19 19:10:53 UTC
This was approved and integrated earlier today.
http://hg.netbeans.org/javafx65?cmd=changeset;node=6173f0e6525a
Comment 8 Alexandr Scherbatiy 2008-12-25 11:23:01 UTC
Verified in NetBeans 6.5 with JavaFX SDK 1.0
Comment 9 David Strupl 2011-10-19 12:05:30 UTC
Cleaning bugzilla categories ....