Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Luna Hanging when Loading Debug Configuration

Having a problem with Eclipse (Luna) IDE, while running the program I encountered a never ending loop so had to terminate the program. After which every-time I try to re-run the program it just hangs when loading the Debug Configuration.

I am trying to create a Eclipse Plug-in to retrieve a file name and add comments to it. I don't believe there's an error with the program as it was working fine before. I have tested a simple helloWorld program in another workspace to see if there were any problems but that program works fine. From what I have read it could be something to do with the metadata file but I have no idea how to correct it.

Problem

When attempting to load the Eclipse Luna box pops up (this is normal) in the bottom right-hand corner of the box, it shows what it is loading. It seems to hang at the point when it is trying to load org.eclipse.web.core.

The program was working fine up before the loop happened and I could run it without any problems.

When Eclipse stops responding it asks "if you wish to close the program" and below that it offers you some problem details which are listed below.

Problem Details

Problem signature:

  • Problem Event Name: AppHangB1
  • Application Name: javaw.exe
  • Application Version: 8.0.11.12
  • Application Timestamp: 539f94f3
  • Hang Signature: 8701
  • Hang Type: 134217728
  • OS Version: 6.3.9600.2.0.0.256.48
  • Locale ID: 2057
  • Additional Hang Signature 1: 8701579a6fb10e5d0065e1f36c8dcf91
  • Additional Hang Signature 2: 6c5e
  • Additional Hang Signature 3: 6c5ef7fd43455b1ace2cb9fa4a881a13
  • Additional Hang Signature 4: 8701
  • Additional Hang Signature 5: 8701579a6fb10e5d0065e1f36c8dcf91
  • Additional Hang Signature 6: 6c5e
  • Additional Hang Signature 7: 6c5ef7fd43455b1ace2cb9fa4a881a13

Have Tried

Cleaning and rebuilding all projects, disabling firewalls and antiviruses, creating another basic program, reinstalling Eclipse and Java.

like image 235
csb Avatar asked Aug 18 '14 15:08

csb


People also ask

How do I get out of loop while debugging in Eclipse?

As a user I would suggest the following: make a hotkey to exit the loop in debugging mode, for example ctrl-shift-F11.

What is debug configuration in Eclipse?

An eclipse debug configuration is similar to a run configuration but it used to start an application in the debug mode. Because the application is started in the debug mode the users are prompted to switch to the debug perspective.

How do I run a test case in debug mode in Eclipse?

With the test class open in the Eclipse editor, simply right click in the editor view and select Debug As > TestNG Test. Eclipse will stop at any breakpoints you set just like it would with any other local debug process.


2 Answers

I finally figured it out, within local Workspace I deleted the .metadata folder and then just re-imported the project this got it working again.

It seems when it got stuck in the loop the .Lock file was not closed properly within the .metadata folder and prevented eclipse from starting the Debug Configuration.

These questions also have some answerers that might work as well without having to delete the .metadata folder:

How do I prevent Eclipse from hanging on startup?

Eclipse hangs on loading workbench

like image 164
csb Avatar answered Oct 27 '22 09:10

csb


I experienced the same issue with eclipse Mars running on Linux. I solved it by removing the debug configuration file associated with the project. This file is located in .metadata/.plugins/.org.eclipse.debug.core/.launches/$ProjectName.launch

like image 41
Grubby Avatar answered Oct 27 '22 08:10

Grubby