Community
Participate
Working Groups
Build Identifier: M20100909-0800 As described here: http://www.linuxquestions.org/questions/linux-general-1/debugging-in-eclipse-ide-causes-gui-freeze-794675/ I am using Eclipse 3.6.1 Build M20100909-0800, JDK 1.6.0_23, and Linux Xfce 4.4.2. The GUI for the entire OS freezes when Eclipse is run in Debug mode, while halting at a breakpoint. The mouse works but the OS does not respond to it. Java thread dump can be obtained using Ctrl-Alt-F1, and then 'kill -3 <pid>'. Killing the process and returning to the GUI using Ctrl-Alt-F7 eliminates the freeze. This happens seemingly at random while debugging; I can use debug for ages without issue and then in specific places it will suddenly freeze. Running the same sequence after rebooting and same breakpoint causes the freeze to occur again. This is unlikely to be a memory issue. I have plenty of memory (1.3G free when Eclipse is running), and the freeze occurs with very little application memory load, and does not seem to occur more frequently with heavy loads. Reproducible: Sometimes Steps to Reproduce: 1.Set a breakpoint 2.Run in debug mode 3.Happens only occasionally, but if it happens once, it will always happen with the same breakpoint
Created attachment 192671 [details] Java thread dump for a freeze event Thread dump obtained using kill -3 <pid> for the Eclipse process, as described in report.
Noticed this in the stackdump for "main": at org.eclipse.jface.dialogs.MessageDialog.open(MessageDialog.java:334) at org.eclipse.jface.dialogs.MessageDialogWithToggle.open(MessageDialogWithToggle.java:114) at org.eclipse.jface.dialogs.MessageDialogWithToggle.openYesNoQuestion(MessageDialogWithToggle.java:303) at org.eclipse.debug.internal.ui.launchConfigurations.PerspectiveManager.shouldSwitchPerspective(PerspectiveManager.java:646) Looks like it is trying to open the switch perspective prompt. Andrew, when the freeze happens do you see the Yes/No dialog asking you to switch perspectives?
(In reply to comment #2) > Noticed this in the stackdump for "main": > > at org.eclipse.jface.dialogs.MessageDialog.open(MessageDialog.java:334) > at > org.eclipse.jface.dialogs.MessageDialogWithToggle.open(MessageDialogWithToggle.java:114) > at > org.eclipse.jface.dialogs.MessageDialogWithToggle.openYesNoQuestion(MessageDialogWithToggle.java:303) > at > org.eclipse.debug.internal.ui.launchConfigurations.PerspectiveManager.shouldSwitchPerspective(PerspectiveManager.java:646) > > Looks like it is trying to open the switch perspective prompt. > > Andrew, when the freeze happens do you see the Yes/No dialog asking you to > switch perspectives? The freeze can happen when this dialog appears; however, I just reproduced it while the IDE was already in the Debug perspective, thus no dialog.
I can consistently freeze the OS UI if I set a breakpoint in menu creation code. I don't think it's the debuggers fault though, rather gtk.
*** This bug has been marked as a duplicate of bug 20006 ***