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 185947 - Trying to use new FXD/FXZ feature hangs NB
Summary: Trying to use new FXD/FXZ feature hangs NB
Status: RESOLVED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Andrew Korostelev
URL: n/a
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-11 18:35 UTC by sharimoyahoo
Modified: 2011-11-16 16:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
FXZ file to reproduce bug (825 bytes, application/octet-stream)
2010-05-12 12:51 UTC, sharimoyahoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sharimoyahoo 2010-05-11 18:35:04 UTC
According to FXD spec at:
 http://java.sun.com/javafx/1.3/docs/fxdspec/#refsummary

... it is possible to use references with names containing a space by placing double quotes around the name.

e.g. fill: #gradient 
  could become:
     fill: #"radial gradient"

When I try to create a FXZ file in NetBeans using this syntax, as soon as I enter a double quote char, NetBeans hangs.
Don't know what it's doing, but CPU is at about 90%.
NB does not respond at all and I have to kill it via the task manager.
Comment 1 Lukas Hasik 2010-05-12 08:26:53 UTC
I'm not able to reproduce on Mac with 201005112200 build

sharimoyahoo, we need more informations from you. If you are able to reproduce then take a thread dump or profiler snapshot. 
http://wiki.netbeans.org/GenerateThreadDump

thank you
Comment 2 sharimoyahoo 2010-05-12 12:51:22 UTC
Created attachment 98844 [details]
FXZ file to reproduce bug

Could not find a "nb.exe" file.
Attaching the data file I was using instead.

In the Rectangle definition containing 
   id: whiteSquare

place cursor after the "#" in:
   fill: #gradient

Type a double quote (").
NetBeans should hang.
Comment 3 Andrew Korostelev 2010-05-13 10:18:46 UTC
described problem is reproducible only if user starts to add double-quote to the reference that is not resolved.
Will try to handle this case separately.

Note: If you open fxz attached by reporter in Production Suite fx-viewer, it fails to show image with error: "could not find element with id gradient".
I have filled issue 186074 to track lack of error message
Comment 4 Andrew Korostelev 2010-05-14 15:11:36 UTC
My previous evaluation is not absolutely correct.
I have made mistake in reproduction steps and has added double quote to reference in fill attribute of the second #gradient occurance (in blackSquare rectangle).
In that case fxviewer hasn't reached this reference because has failed to resolve the first #gradient occurance.

If I update fxz by following user steps in external text editor and try to open the result in fxviewer it hangs.
The problem is in FXDReader.nextReference() method and can't be fixed on NetBeans side without affecting usual workflow performance.
I have filed RT-8651 for FXDLoader.
Comment 5 Alexandr Scherbatiy 2010-05-18 08:42:41 UTC
JavaFX SDK issue.
Comment 6 Andrew Korostelev 2010-06-08 08:53:38 UTC
works correctly after SDK issue is fixed (http://javafx-jira.kenai.com/browse/RT-8651).