Bug 371480 - Occasional freeze during normal java code editing
Summary: Occasional freeze during normal java code editing
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2012-02-14 06:36 EST by marco benuzzi CLA
Modified: 2020-07-04 03:07 EDT (History)
3 users (show)

See Also:


Attachments
thread dump (22.93 KB, text/plain)
2012-02-14 06:39 EST, marco benuzzi CLA
no flags Details
thread dump 2 (19.61 KB, text/plain)
2012-02-14 06:45 EST, marco benuzzi CLA
no flags Details
sample project which freeze (90.17 MB, application/x-gzip)
2012-04-10 18:11 EDT, marco benuzzi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description marco benuzzi CLA 2012-02-14 06:36:12 EST
Build Identifier: Version: 3.6.2.r362 Build id: M20110210-1200

java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Server VM (build 19.0-b09, mixed mode)



Reproducible: Sometimes
Comment 1 marco benuzzi CLA 2012-02-14 06:39:01 EST
Created attachment 210965 [details]
thread dump
Comment 2 marco benuzzi CLA 2012-02-14 06:41:02 EST
A lot of time the freeze occurs some seconds after pasting in the editor some code copied from another instance of eclipse.
Comment 3 marco benuzzi CLA 2012-02-14 06:45:37 EST
Created attachment 210966 [details]
thread dump 2
Comment 4 Remy Suen CLA 2012-02-14 08:01:12 EST
Deferring to JDT. May be an SWT problem though.
Comment 5 Dani Megert CLA 2012-02-15 02:29:57 EST
Either an SWT problem or just simply GCs happening. Marco, do you have enough RAM and do you give enough of it to Eclipse?
Comment 6 marco benuzzi CLA 2012-02-16 05:10:50 EST
My hardware
CPU: Intel(R) Core(TM)2 Duo CPU P9700 @ 2.80GHz
RAM: 4 GB

eclipse.ini memory config
--launcher.XXMaxPermSize
256m
-vmargs
-Xms256m
-Xmx768m
Comment 7 marco benuzzi CLA 2012-03-26 20:31:17 EDT
I'm able to reproduce to reproduce the problem.

Steps are:
1) edit a method in a java class
2) the class have no variable/field/attribute with name "factory"
3) past some java code copied from outside eclipse; the code contains the word "factory"

Eclipse freeze for 20-30 minutes.

When Eclipse came back:
1) copy the text "getObjectFactory()" in the clipboard
2) select the word "factory" from the code copied before
3) past (in order to substitute "factory" with "getObjectFactory()")

Eclipse freeze again for 20-30 minutes. Than appears the code completation with a list of more than 20.000 classes
Comment 8 marco benuzzi CLA 2012-03-26 20:38:47 EDT
(In reply to comment #7)
Correction to last sentence

Eclipse freeze again for 20-30 minutes. Than appears the quick fixes [factory cannot be reolved] with a list of more than 13.000 quick fixes available
Comment 9 Dani Megert CLA 2012-03-27 03:13:33 EDT
(In reply to comment #8)
> (In reply to comment #7)
> Correction to last sentence
> 
> Eclipse freeze again for 20-30 minutes. Than appears the quick fixes [factory
> cannot be reolved] with a list of more than 13.000 quick fixes available

Wow 13000 quick fixes! It would be great if you could fill in your steps with concrete test data (the source you paste and ideally the project into which you paste) so that we can indeed reproduce the problem. Also, it would be great to get some more stack traces.
Comment 10 marco benuzzi CLA 2012-03-27 03:30:09 EDT
It's not so easy.
In order to provide you with a working project I should give you also all the external dependencies:
- Jboss EAP 5.1
- Axis2
- GWT 
- some more...
If you think it will be really usefull for you I can manage to create a project with all the libraries within it and zip the project to you...
But the size will be huge, I suppose more than 500 MB.
Haw can we manage that?
Comment 11 Dani Megert CLA 2012-03-27 03:46:56 EDT
(In reply to comment #10)
> It's not so easy.
> In order to provide you with a working project I should give you also all the
> external dependencies:
> - Jboss EAP 5.1
> - Axis2
> - GWT 
> - some more...
> If you think it will be really usefull for you I can manage to create a project
> with all the libraries within it and zip the project to you...
> But the size will be huge, I suppose more than 500 MB.
> Haw can we manage that?

Let's first try whether additional stack traces help. From the initial stack traces I got the feeling it hangs in the UI thread but if you really get 13000 quick fixes then something else might go wrong here.

You could attach the large file by selecting the 'Big File' checkbox.
Comment 12 marco benuzzi CLA 2012-04-10 18:11:06 EDT
Created attachment 213827 [details]
sample project which freeze

see comments inside classes
Comment 13 Eric Williams CLA 2018-05-14 15:12:51 EDT
This is still reproducible. Though I do have question the number of quick fixes...how is a user supposed to scroll through that?
Comment 14 Eclipse Genie CLA 2020-07-04 03:07:03 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.