Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 258453

Summary: Deadlocks in editor
Product: z_Archived Reporter: valhallasw <valhallasw>
Component: PDTAssignee: Roy Ganor <ganoro>
Status: CLOSED FIXED QA Contact: Sylvia Tancheva <silviya>
Severity: normal    
Priority: P3 CC: abu_hurayrah, gadi, marek78uk, remy.suen, spektom
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Stack trace when using one core fully
none
Stack trace just after entering text with huge lags none

Description valhallasw CLA 2008-12-11 10:02:12 EST
Created attachment 120200 [details]
Stack trace when using one core fully

When using the editor, the CPU usage sometimes jumps to one full core; the stacktrace for this is attached as 'highcpu.txt'. This does not happen all the time, but regularly.

Secondly, the editor itself is very slow. Entering text sometimes takes up to a second per key, which makes it pretty much unuseable. The stacktrace with the lagging text - or just after this condition, is attaches as 'entertext.txt'.

I am using Eclipse 3.4.2 build M20081203-0800; the PDT development build. Used features:
com.sun.jna_3.0.9
org.eclipse.cvs.source_1.1.1.r34x_20080902-7C79E8N9nJD4oAW9V1938
org.eclipse.cvs_1.1.1.r34x_20080902-7C79E8N9nJD4oAW9V1938
org.eclipse.equinox.p2.user.ui.source_1.0.1.r34x_v20080721-7d-7tEQcCaaYRIgGNDkOt
02267
org.eclipse.equinox.p2.user.ui_1.0.1.r34x_v20080721-7d-7tEQcCaaYRIgGNDkOt02267
org.eclipse.help.source_1.0.1.R34x_v20080827-7r7xEJ1EJBZu5nHaP-M5jLz0NEVT
org.eclipse.help_1.0.1.R34x_v20080827-7r7xEJ1EJBZu5nHaP-M5jLz0NEVT
org.eclipse.jdt.source_3.4.2.r342_v20081010-7o7tEAmEEDWElz0GbqRJKhkF4BpN
org.eclipse.jdt_3.4.2.r342_v20081010-7o7tEAmEEDWElz0GbqRJKhkF4BpN
org.eclipse.pde.p2.source_1.0.0.v20080522-1--7w3119171503111
org.eclipse.pde.p2_1.0.0.v20080522-1--7w3119171503111
org.eclipse.pde.source_3.4.1.r341_v20080731-7T7U1E9imVKxBBVz0rFz-UV
org.eclipse.pde_3.4.1.r341_v20080731-7T7U1E9imVKxBBVz0rFz-UV
org.eclipse.platform.source_3.4.2.r34x_v20081010-9I96EiOElHi8lZjOFC8R3eM66eSJXdP
25WOWU
org.eclipse.platform_3.4.2.r34x_v20081010-9I96EiOElHi8lZjOFC8R3eM66eSJXdP25WOWU
org.eclipse.rcp.source_3.4.100.r341_v20080814-989JESNEcAexPjMDUS9EYW1r4I33
org.eclipse.rcp_3.4.100.r341_v20080814-989JESNEcAexPjMDUS9EYW1r4I33
org.eclipse.sdk_3.4.1.R34x_v20080827-7O7S7CC2J4xtLCjB1Vpz0J3iKk2fMVrbegZmv8f3DXM
0O
org.spearce.egit_0.3.1.200811260008
org.tigris.subversion.clientadapter.svnkit.feature_1.5.4
org.tigris.subversion.subclipse_1.4.7
org.tmatesoft.svnkit_1.2.1.5297
Comment 1 valhallasw CLA 2008-12-11 10:02:44 EST
Created attachment 120201 [details]
Stack trace just after entering text with huge lags
Comment 2 valhallasw CLA 2008-12-11 13:54:26 EST
Another, possibly unrelated, problem: eclipse.exe fails to exit and stays active in the background.
Comment 3 Paul Webster CLA 2008-12-15 07:54:30 EST
The stack traces don't indicate any outstanding problem.  You event thread (main) is waiting on OS input, and aside from a couple of Runnable PHP debugger threads there isn't anything overly suspicious.

Do you have the same problem in a text editor in say, the eclipse Classic build?  Or is it only in the PDT packaged build?

PW
Comment 4 Basil Gohar CLA 2009-06-02 06:48:42 EDT
I am experiencing a problem quite similar to this, but I am running under GNU/Linux (Fedora, specifically) using the distribution's own packaged Eclipse (3.4.2), using OpenJDK.

I get the same problem with typing.  Disable Mark Occurrences helps performance a little, but it's still quite slow compared to, say, PHPEclipse.

Should I submit this as a separate bug?
Comment 5 Michael Spector CLA 2009-06-04 07:55:17 EDT
(In reply to comment #4)
> I am experiencing a problem quite similar to this, but I am running under
> GNU/Linux (Fedora, specifically) using the distribution's own packaged Eclipse
> (3.4.2), using OpenJDK.
> 
> I get the same problem with typing.  Disable Mark Occurrences helps performance
> a little, but it's still quite slow compared to, say, PHPEclipse.
> 
> Should I submit this as a separate bug?
> 

Please report a separate bug including:

1. Sample code (if it's possible)
2. Exact use case.

Thanks!
Comment 6 Gadi Goldbarg CLA 2010-01-22 05:02:49 EST
I don't see any deadlocks currently with eclipse 3.5/PDT 2.2.
Closing the bug.
[Sylvia Tancheva]