LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-11-2010, 06:03 AM   #1
mericet
Member
 
Registered: Jul 2009
Posts: 50

Rep: Reputation: 8
Debugging in Eclipse IDE causes GUI freeze


Hi,
Recently I have been having trouble debugging in Eclipse. I an writing a Java Applet and testing it using Eclipse's Applet Viewer but when I attempt debug mode it sometimes causes my GUI to freeze. I am able to break out to the prompt using ctrl-alt-f1 and restart the gui, but that's annoying because I then have to restart all the apps running on it.

Eclipse (Galileo)
Java JDK 1.6
Ubuntu 9.10 with Gnome 2.28.1

thanks
 
Old 03-11-2010, 11:37 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
That *shouldn't* be happening - Eclipse and the 1.6 Sun JDK are both pretty robust.

Do you have enough RAM? Eclipse uses a lot of memory, Java uses a lot of memory ... and Gnome uses an AWFUL lot of memory. I'd strongly recommand at least 1GB RAM.

Try running "top" in a command window when you fire up Eclipse and the JDK debugger. If you use any more than "0" bytes swap ... then you absolutely need more RAM.

Otherwise, if swap stays "zero" and it still hangs, then we need to look elsewhere. Perhaps run a memory checker on the RAM that you already have (perhaps there's a hardware issue with your RAM)?

'Hope that helps .. PSM
 
Old 04-05-2011, 12:42 PM   #3
typically
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
I am encountering this same problem, using Eclipse 3.6.1 Build M20100909-0800, JDK 1.6.0_23, and Linux Xfce 4.4.2.

The entire OS freezes; not sure if the same is happening to the OP. The mouse works but the OS does not respond to it. The state requires a reset with Ctrl-Alt-Bksp.

This happens randomly 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.

Think this is an Eclipse bug of some sort... any ideas or pointers would be useful.

Last edited by typically; 04-05-2011 at 12:43 PM.
 
Old 04-06-2011, 03:31 AM   #4
mericet
Member
 
Registered: Jul 2009
Posts: 50

Original Poster
Rep: Reputation: 8
Thanks so far - I will look into the memory.
I do have a nicer way out then mentioned before -
ctrl-alt-f1 to the command prompt,
ls -a to find the java process (Eclipse is a java process)
kill -9 (the pid of the java process)
ctrl-alt-f7 back to the gui

that way I only kill the offending application, the GUI starts responding again, the rest of my applications are able to continue.
 
Old 04-06-2011, 03:36 PM   #5
typically
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Reported this as a bug here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=342075

..which includes a Java thread dump.

Thanks for the workaround, mericet. Very useful
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugging in Eclipse HarryBoy Linux - Software 1 11-27-2009 05:34 AM
How to catch the bug: overwritten heap memory, debugging with Eclipse LariFari Programming 7 11-05-2008 01:51 PM
Eclipse and erratic stepping while debugging zakkhoyt Programming 1 10-20-2008 04:46 PM
LXer: Debugging PHP using Eclipse and PDT LXer Syndicated Linux News 0 06-18-2008 09:36 AM
LXer: Debugging with the Eclipse Platform LXer Syndicated Linux News 0 05-04-2007 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration