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 214913 - SceneBuilder doesn't survive a NetBeans exit, on Windows, and if SceneBuilder has been started from NetBeans
Summary: SceneBuilder doesn't survive a NetBeans exit, on Windows, and if SceneBuilder...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Visual Tool Integration (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Petr Somol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 12:50 UTC by yjoan
Modified: 2012-09-11 14:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yjoan 2012-06-28 12:50:01 UTC
On Windows I noticed that if you double click an fxml from within NB 7.2 Beta, then get SceneBuilder up, do whatever change within SceneBuilder and finally exit from NetBeans it will kill abruptly your SceneBuilder (then any pending changes are lost).
Doing it the reverse way is fine: you start SceneBuilder first then NetBeans, in which case exit from NetBeans won't kill SceneBuilder.

On Mac nothing like that occurs, SceneBuilder survives NetBeans's exit in all cases.
Comment 1 J Bachorik 2012-06-29 10:30:20 UTC
The ExternalExecution API takes care of ending processes connected to the IDE process on shutdown. On Mac the SceneBuilder process is detached from the IDE process by the launcher and as such it is not closed on IDE shutdown. On Window, on the other hand, the launcher process does not fork an independent SB process and, as a result, SB will get closed on IDE shutdown.

Fixing by bot using ExternalExecution API - the standard Java mechanism for launching system processes does not care about leaving them orphaned once the launching process exits: http://hg.netbeans.org/profiler-main/rev/95e7c78b4ec4

Please, re-test on Mac to see whether this fix causes no regressions (I have no access to a Mac machine ...)
Comment 2 Quality Engineering 2012-07-02 11:59:01 UTC
Integrated into 'main-golden', will be available in build *201207020907* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/95e7c78b4ec4
User: Jaroslav Bachorik <yardus@netbeans.org>
Log: #214913: Don't close the SceneBuilder child process on IDE exit
Comment 3 J Bachorik 2012-08-03 07:58:13 UTC
QA, please, verify.
Comment 4 Stepan Zebra 2012-08-06 09:51:27 UTC
verified in trunk
Comment 5 J Bachorik 2012-08-06 10:37:34 UTC
transplanted into releases - https://hg.netbeans.org/releases/rev/7680b4ac3caa
Comment 6 Quality Engineering 2012-09-01 11:08:04 UTC
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/7680b4ac3caa
User: Jaroslav Bachorik <yardus@netbeans.org>
Log: #214913: Don't close the SceneBuilder child process on IDE exit
(transplanted from 95e7c78b4ec411c6f1f932f178081a142a3c1ca4)
Comment 7 Stepan Zebra 2012-09-10 10:02:14 UTC
Fix doesn't seems to be present on the patch UC and the bug is reproducible after update. Maybe the spec. version wasn't increased...
Comment 8 Stepan Zebra 2012-09-11 14:34:45 UTC
(In reply to comment #7)
> Fix doesn't seems to be present on the patch UC and the bug is reproducible
> after update. Maybe the spec. version wasn't increased...

fixed