Bug 342075 - GUI/Linux Freeze on Breakpoint
Summary: GUI/Linux Freeze on Breakpoint
Status: RESOLVED DUPLICATE of bug 20006
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Linux-GTK
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL: http://www.linuxquestions.org/questio...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-06 16:30 EDT by Andrew CLA
Modified: 2012-09-18 08:06 EDT (History)
5 users (show)

See Also:


Attachments
Java thread dump for a freeze event (25.94 KB, text/plain)
2011-04-06 16:32 EDT, Andrew CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew CLA 2011-04-06 16:30:58 EDT
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
Comment 1 Andrew CLA 2011-04-06 16:32:26 EDT
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.
Comment 2 Michael Rennie CLA 2011-04-06 16:58:55 EDT
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?
Comment 3 Andrew CLA 2011-04-06 17:51:24 EDT
(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.
Comment 4 Pawel Piech CLA 2011-06-08 16:12:56 EDT
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.
Comment 5 Markus Keller CLA 2012-09-18 08:06:36 EDT

*** This bug has been marked as a duplicate of bug 20006 ***