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 253594 - Stopping on a breakpoint in JavaFX event handler freezes a desktop
Summary: Stopping on a breakpoint in JavaFX event handler freezes a desktop
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 22:06 UTC by fordprefect
Modified: 2015-09-18 01:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code sample (3.93 KB, text/x-java)
2015-07-21 08:52 UTC, fordprefect
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fordprefect 2015-07-20 22:06:49 UTC
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)
Comment 1 Lou Dasaro 2015-07-21 05:27:07 UTC
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)
Comment 2 fordprefect 2015-07-21 08:52:54 UTC
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
Comment 3 fordprefect 2015-07-21 08:53:17 UTC
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
Comment 4 Roman Svitanic 2015-07-21 09:08:31 UTC
Reassigning to debugger for evaluation. Thanks.
Comment 5 Martin Entlicher 2015-07-22 07:29:19 UTC
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...
Comment 6 Martin Entlicher 2015-07-22 17:37:48 UTC
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.
Comment 7 Martin Entlicher 2015-07-22 17:48:10 UTC
After 8.1 Beta is out, a feedback on how the fix works in JavaFX ANT projects is welcome.
Comment 8 fordprefect 2015-07-25 09:47:09 UTC
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
Comment 9 Quality Engineering 2015-07-29 01:28:45 UTC
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.
Comment 10 Martin Entlicher 2015-09-17 06:43:48 UTC
Fixed for Maven as well by changeset:   292233:0986b82c0e5e
http://hg.netbeans.org/core-main/rev/0986b82c0e5e
Comment 11 Quality Engineering 2015-09-18 01:40:40 UTC
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.