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.
Add breakpoint to any event handler and my entire desktop freezes, have to jump out to a virtual console and kill javafx application. Looks to be very similar to Bug 236376 against 7.3.1 System Info Product Version: NetBeans IDE 8.0.2 (Build 201411181905) Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2 Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03 Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16 System: Linux version 4.0.7-300.fc22.x86_64 running on amd64; UTF-8; en_GB (nb)
Thank you for your report. Reporter, please clarify the specifics of your Linux installation, and provide a short code sample (attachment) that displays the anomaly. I am unable to replicate this anomaly using: Product Version: NetBeans IDE 8.0.2 (Build 201411102027) Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2 Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03 Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16 System: Linux version 3.13.0-51-generic running on amd64; UTF-8; en_US (nb) (ubuntu 14.04 LTS)
Created attachment 154756 [details] Code sample Set breakpoint in the onDragDetected handler, when the IDE hits the breakpoint the whole desktop locks up until the application is killed. Looks like the application being debugged is retaining focus. Running on Fedora 22 with Gnome 3.16 and stock fedora kernel, Oracle JDK 1.8.0_51-b16 uname output Linux xxxx.localdomain 4.0.7-300.fc22.x86_64 #1 SMP Mon Jun 29 22:15:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Set breakpoint in the onDragDetected handler, when the IDE hits the breakpoint the whole desktop locks up until the application is killed. Looks like the application being debugged is retaining focus. Running on Fedora 22 with Gnome 3.16 and stock fedora kernel, Oracle JDK 1.8.0_51-b16 uname output Linux xxxx.localdomain 4.0.7-300.fc22.x86_64 #1 SMP Mon Jun 29 22:15:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Reassigning to debugger for evaluation. Thanks.
Reproduced. It looks like the mouse grab is taken in some native code just before the event is emitted and therefore the fix in issue #236376 does not help here. As a workaround, please add -Dglass.disableGrab=true into the project's VM options. That will assure that the JavaFX application will not grab the mouse during debugging. NetBeans should add that option by default when debugging...
I've added the -Dglass.disableGrab=true system option directly to ANT JavaFX project. On debug, this option applies automatically. changeset: 290082:9be3fb6a4a1b http://hg.netbeans.org/core-main/rev/9be3fb6a4a1b Pushed to the new release81_beta branch to get it into 8.1 beta: changeset: 300195:e7ddebd26489 http://hg.netbeans.org/releases/rev/e7ddebd26489 The Maven JavaFX project is using an external project builder. It is currently under an investigation how to get the option there.
After 8.1 Beta is out, a feedback on how the fix works in JavaFX ANT projects is welcome.
Can confirm that the addition of the -Dglass.disableGrab=true fixes the problem in 8.0.2, will check the 8.1 beta and feed back when it is available. Many thanks for your help on this and apologies for the delay in getting back to you on this, work got in the way
Integrated into 'main-silver', will be available in build *201507290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9be3fb6a4a1b User: mentlicher@netbeans.org Log: #253594: Add -Dglass.disableGrab=true when debugging JavaFX, to prevent from desktop freezes.
Fixed for Maven as well by changeset: 292233:0986b82c0e5e http://hg.netbeans.org/core-main/rev/0986b82c0e5e
Integrated into 'main-silver', will be available in build *201509180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/0986b82c0e5e User: mentlicher@netbeans.org Log: #253594: Use -Dglass.disableGrab=true when debugging JavaFX, to prevent from desktop freezes.