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 139543 - javafx.application.Frame class freezes IDE
Summary: javafx.application.Frame class freezes IDE
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Oleg Barbashov
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-07-10 09:21 UTC by Alexandr Scherbatiy
Modified: 2008-07-14 10:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ThreadDump (31.20 KB, text/plain)
2008-07-10 09:22 UTC, Alexandr Scherbatiy
Details
IDE log file (32.84 KB, text/plain)
2008-07-10 09:23 UTC, Alexandr Scherbatiy
Details
JavaFX Script code that freezes IDE (1.42 KB, text/plain)
2008-07-10 09:27 UTC, Alexandr Scherbatiy
Details
Standalone test (6.48 MB, application/x-compressed)
2008-07-10 13:40 UTC, Oleg Barbashov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-07-10 09:21:56 UTC
Steps to reproduce:

- Copy the attached example to the editor
- Enable the Preview
  The IDE hangs.

Found one Java-level deadlock:
=============================
"AWT-EventQueue-2":
  waiting to lock monitor 0x267f242c (object 0x04a9ca50, a java.awt.Component$AWTTreeLock),
  which is held by "SACT"
"SACT":
  waiting to lock monitor 0x28fc3a1c (object 0x0305e6c8, a java.lang.Object),
  which is held by "AWT-EventQueue-2"
Comment 1 Alexandr Scherbatiy 2008-07-10 09:22:51 UTC
Created attachment 64227 [details]
ThreadDump
Comment 2 Alexandr Scherbatiy 2008-07-10 09:23:29 UTC
Created attachment 64228 [details]
IDE log file
Comment 3 Alexandr Scherbatiy 2008-07-10 09:26:01 UTC
-------- Original Message --------
Subject: Upcoming name / class change
Date: Mon, 07 Jul 2008 15:09:57 -0400
From: Shannon Hickey 

Hello,

Just a head's up on two changes that will be coming (in both trunk and
preview) over the next day or so:

1) To avoid conflicts between the new Window/Frame/Dialog and the old
Swing versions, the Swing versions will be renamed
SwingWindow/SwingFrame/SwingDialog.

2) To move us closer to a fully node-based world, Application will no
longer have a "Component" as content. Instead, it will have an attribute
of type Stage. The new Stage class will have a writable attribute for
the node-based content and will provide attributes to ascertain the
usable width and height of the area on which content is drawn.

For backward compatibility with old Applications that are Component
based, we'll introduce SwingApplication for the time being.

Please look for this in trunk first, followed by a merge into the branch.

Thanks,
Shannon
Comment 4 Alexandr Scherbatiy 2008-07-10 09:27:12 UTC
Created attachment 64230 [details]
JavaFX Script code that freezes IDE
Comment 5 Alexandr Scherbatiy 2008-07-10 10:03:04 UTC
Steps to reproduce for other team:

- Download JavaFX Script plugin from http://deadlock.netbeans.org/hudson/job/JavaFX_NB_daily
- Install the Plugin in NetBeans IDE 6.1
- Create a JavaFX Script project: File->New Project->JavaFX->JavaFX Script Application
   -> Next -> Finish
- Copy the code to the Editor
------------------------------------------------------------------------------------------------
import javafx.application.*;
import javafx.scene.*;
import javafx.scene.text.*;
import javafx.scene.geometry.*;
import javafx.scene.layout.*;
import javafx.scene.paint.*;

Frame {
  title: "Example of Using the New Stage Class"
  width: 350
  height: 250
  visible: true
  stage:
    Stage {
      fill: Color.LIGHTYELLOW
      width: 20
      height: 20
      content:
        VBox {
          spacing: 40
          content:
            for (i in [1..3]) 
              HBox {
                spacing: 20
                content: [
                  Circle {
                    fill: Color.BLUE
                    centerX: 30
                    centerY: 30
                    radius: 20
                  },
                  Text {
                    fill: Color.RED
                    font: 
                      Font {
                        name: "Sans Serif"
                        style: FontStyle.BOLD
                        size: 24
                      }
                    x: 10
                    y: 10
                    textOrigin: TextOrigin.TOP
                    content: "A Text Node"
                  },
                  Rectangle {
                    fill: Color.GREEN
                    x: 10
                    y: 10
                    width: 40
                    height: 30
                  }
                ]
              }
        }    
    }
}
------------------------------------------------------------------------------------------------

- Enable the preview (Press 'Enable Preview' editor toolbar button)
The IDE hangs.


Found one Java-level deadlock:
=============================
"AWT-EventQueue-2":
  waiting to lock monitor 0x267f242c (object 0x04a9ca50, a java.awt.Component$AWTTreeLock),
  which is held by "SACT"
"SACT":
  waiting to lock monitor 0x28fc3a1c (object 0x0305e6c8, a java.lang.Object),
  which is held by "AWT-EventQueue-2"
 
Comment 6 Oleg Barbashov 2008-07-10 10:50:16 UTC
Most likely duplicate of 139137, just new reproducible test case.
Comment 7 Oleg Barbashov 2008-07-10 13:40:18 UTC
Created attachment 64247 [details]
Standalone test
Comment 8 Oleg Barbashov 2008-07-10 13:42:48 UTC
Attached .zip (http://www.netbeans.org/nonav/issues/showattachment.cgi/64247/I139363.ZIP) contains simple code that is
enought to illustrate a problem.
Comment 9 Oleg Barbashov 2008-07-10 16:11:02 UTC
JIRA issue: http://openjfx.java.sun.com/jira/browse/JFXC-1534
Comment 10 Oleg Barbashov 2008-07-10 20:18:17 UTC
Fixed.
Comment 11 Alexandr Scherbatiy 2008-07-14 10:31:52 UTC
verified