Bug 19826 - livelock during indexing?
Summary: livelock during indexing?
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0 F4   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-10 14:02 EDT by Rodrigo Peretti CLA
Modified: 2002-06-14 05:54 EDT (History)
0 users

See Also:


Attachments
stack (6.32 KB, text/plain)
2002-06-10 14:02 EDT, Rodrigo Peretti CLA
no flags Details
stack 1 (5.80 KB, text/plain)
2002-06-10 14:07 EDT, Rodrigo Peretti CLA
no flags Details
stack 2 (6.02 KB, text/plain)
2002-06-10 14:09 EDT, Rodrigo Peretti CLA
no flags Details
debug info (13.96 KB, text/plain)
2002-06-10 15:13 EDT, Rodrigo Peretti CLA
no flags Details
more debug info - truncated (17.79 KB, text/plain)
2002-06-11 09:44 EDT, Rodrigo Peretti CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Peretti CLA 2002-06-10 14:02:10 EDT
build 20020610 - Windows XP - Japanese

In a fresh workspace, I imported all the plug-ins and ran a runtime-workbench. 
Closed the runtime workbench. CTRL+SHIFT+O and a dialog showed up with 185 
files to index, CPU at 100% and nothing else seems to be happening neither the 
progress monitor is updating. I've done a CTRL+Break and will attach the 
stack. The UI seem to be alive (I can move the progress dialog and the 
perspective is repainted).
Comment 1 Rodrigo Peretti CLA 2002-06-10 14:02:30 EDT
Created attachment 1341 [details]
stack
Comment 2 Rodrigo Peretti CLA 2002-06-10 14:06:57 EDT
Adding more stacks (not sure if useful but different times could provide more 
info).
Comment 3 Rodrigo Peretti CLA 2002-06-10 14:07:38 EDT
Created attachment 1342 [details]
stack 1
Comment 4 Rodrigo Peretti CLA 2002-06-10 14:09:25 EDT
Created attachment 1343 [details]
stack 2
Comment 5 Rodrigo Peretti CLA 2002-06-10 14:10:37 EDT
Hiting cancel works but if I try to search again, the same problem happens.
Comment 6 Rodrigo Peretti CLA 2002-06-10 14:14:19 EDT
Correction: I meant CTRL+SHIFT+T and not O. I restarted Eclipse and it now 
says 124 files need to be indexed. So it seems it actually has done some work?
Comment 7 Philipe Mulet CLA 2002-06-10 14:21:20 EDT
Which VM are you using ? Seems like the indexing thread is waiting on a sleep
(50) for ever...
Comment 8 Philipe Mulet CLA 2002-06-10 14:23:15 EDT
Oops, misread the trace. The search is paused while the indexer is processing 
all files to be added. Need to double check. Could be indexing is slower on 
japanese due to encoding ? 

Would you notice such a performance degradation when compiling ?
Comment 9 Rodrigo Peretti CLA 2002-06-10 14:26:37 EDT
I was using:
java version "1.4.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b08)
Java HotSpot(TM) Client VM (build 1.4.1-beta-b08, mixed mode)

It works with IBM 1.3.1 although I noticed it being slower than usual. I 
waited a few minutes when using the 1.4.1 but nothing seemed to have happened. 
Although, as I wrote above, the number of files to index decreased after I 
restarted. Will try again with 1.4.1 and leave the machine on for a while and 
see what happens.
Comment 10 Philipe Mulet CLA 2002-06-10 14:34:32 EDT
Also, you might want to enable some of the tracing of org.eclipse.jdt.core.
I recommend:

# Turn on debug tracing for org.eclipse.jdt.core plugin
org.eclipse.jdt.core/debug=true

# Reports background indexer activity: indexing, saving index file, index 
queries
org.eclipse.jdt.core/debug/indexmanager=true
Comment 11 Rodrigo Peretti CLA 2002-06-10 15:13:37 EDT
I left it running for 1 hour and the dialog did not change (185 files to 
index). Restarted with .options and the dialog is now showing 124 files to 
index like previous test (note that I started a new workspace after I ran with 
JDK 1.3.1). Attaching console with debug info.
Comment 12 Rodrigo Peretti CLA 2002-06-10 15:13:59 EDT
Created attachment 1344 [details]
debug info
Comment 13 Philipe Mulet CLA 2002-06-11 08:24:06 EDT
pls investigate
Comment 14 Rodrigo Peretti CLA 2002-06-11 09:44:03 EDT
I left it running yesterday and today I've got the Open Types dialog. So it 
seems to be really slow. Will attach what I've got in the console but I'm not 
sure if it helps. The info is truncated because it seems the console did not 
have enough buffer.
Comment 15 Rodrigo Peretti CLA 2002-06-11 09:44:21 EDT
Created attachment 1354 [details]
more debug info - truncated
Comment 16 David Audel CLA 2002-06-12 10:22:29 EDT
It seems that indexing works but is very slow. Perhaps indexing is slower on 
japanese encoding.
Comment 17 Philipe Mulet CLA 2002-06-13 12:29:02 EDT
Japanese encoding support seems really slow. This would be a runtime issue.
Closing