Bug 36429 - Eclipse (2.1 GTK linux) freeze&&crash when I export a file from a project
Summary: Eclipse (2.1 GTK linux) freeze&&crash when I export a file from a project
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: PC Linux-GTK
: P3 critical with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-12 15:52 EDT by Xevi Serrats CLA
Modified: 2003-04-21 15:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xevi Serrats CLA 2003-04-12 15:52:17 EDT
Hi,

I use Linux Mandrake-9.1 with JDK-1.4. My eclipse is eclipse-SDK-2.1-linux-gkt.zip.

I have installed the tomcat plugin from
http://www.sysdeo.com/eclipse/tomcatPlugin.html and tomcat in the same machine.

I have a very little project with only one servlet. It do what he must do, say
"Hello world". 

Eclipse works weel tomcat also, but when in the "Package Explorer" I try to
export this servlet eclipse fail. After click on export I could see the window
Export. I select "File system" and click next. I choose some directory and click
finish. It is the moment when eclipse freeze and I only can click on the button
Cancel. But the window continues freezed. 

If I try to close the window export the IDE informs me the window couldn't be
closed due an active operation.

What surprise me is the main window is already usable, it is very slow but I can
open my dear servlet.

After some time, the eclipse crashes :·(

The JVM tells me:

#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
#
# An error report file has been saved as hs_err_pid16646.log.
# Please refer to the file for further information.
#

I upload this file in:

http://ima.udg.es/~xserr008/errJava.txt

If can I do something else, please tell me.

Thanks for this great product.

Regards Xevi.
Comment 1 Felipe Heidrich CLA 2003-04-14 10:04:54 EDT
Is this problem always reproducible ?
Comment 2 Xevi Serrats CLA 2003-04-14 13:28:32 EDT
Hi,

Yes, I can reproduce this problem by a simple example.

I create a tomcat project named tom (as I have said, I have installed tomcat
plugin) and put some class (hSrvInici) in tom.

In >tom > WEB-INF /src / default package   I have
                        -> hSrvInici.java

I can export this file with no problems.

After this I create a package named com.xevi.apps.servlets

So, I have:

> tom > WEB-INF / src / com.xevi.apps.servlets
                                     
I put a class in this package: for example a class named hSrvInici

> tom > WEB-INF / src / com.xevi.apps.servlets.hSrvInici

I selected this class and with se seccond mouse button try to export.

I can see the export window, I select export to a file, I selecte a directory
and after click to "Finish" the export window freeze.

I will be happy if someone tell me how can I generate more information to solve
this problem. I am a Java programmer at work. If someone tell me to tyr to
debbug eclipse or something else I will do all I can.

Thanks a lot,

Regards Xevi.
Comment 3 Steve Northover CLA 2003-04-14 17:06:39 EDT
FH is tracking GTK and Linux version issues.
Comment 4 Felipe Heidrich CLA 2003-04-15 13:25:17 EDT
Xevi, the problem you are having is very similar to Bug#31525.
It was hang problem in first release of GTK 2.2.1, it was present in Redhat 
phoebe (beta version), debian old unstable, mandrake, etc.

This problem was fixed by RedHat and patched before the release of Redhat 9.0.
The GTK version of Redhat 9.0 is 2.2.1-4 (note that dash 4 is important, this 
is the release number that includes the patch for the hang problem).

I believe the release of GTK in Mandrake 9.1 does not include this patch.

Since I don't have Mandrake available it would be very usefull if you could 
test a couple thing:

a) Run the test case in Bug#31525 comment 58, use a CPU monitor, let me know it 
the process gets 100% CPU when you select a tree item.
(don't resize the shell and don't scroll the tree)

b) Test the step in Bug#35443, let me know if works.


Thanks
Comment 5 Xevi Serrats CLA 2003-04-15 15:41:08 EDT
Hi,

I have this gkt:

libgtk+2.0_0-2.2.1-2mdk

I try what you have commented:

a) Run the test case in Bug#31525 comment 58, use a CPU monitor, let me know it 
the process gets 100% CPU when you select a tree item.
(don't resize the shell and don't scroll the tree)

I have executed a simple class with the code and imports a never a process gets
100% CPU :·( perhaps I have try all of possibilities.

b) Test the step in Bug#35443, let me know if works.

Normally, when something work it is something good (in catalonia it is). In this
case It work and I believe it a little bad. I can reproduce step by step what
this bug explain. My CPU go to 90% and  have and AMD 1200MHz ...

Thanks a lot for you time. I will be happy If I can try something else.

Regards Xevi.
Comment 6 Felipe Heidrich CLA 2003-04-15 16:28:06 EDT
Okay,

You can reproduce the bug in case (b) but not in case (a), is that correct ?
Reproducing the bug means the CPU goes to 100%.

In case (a) you just need to run the simple case and select an item on the 
tree. This should cause the CPU to go 100%.
Thanks
Comment 7 Boris Shingarov CLA 2003-04-15 23:23:14 EDT
Felipe,

I have tested both A and B on Mdk 9.1 with 2.2.1-2mdk.

Both tests hog the CPU, but the stranger thing is the scrollbar behavior.
Scrolling the first 20% is ok but beyond that point the thumb starts to flicker
very quickly between 0 and 1/2.

I saw something resembling this, a *while* ago (around 2.0) but the consensus
was that it was caused by a GTK bug in the deprecated CTree - that is, when we
replaced the CTree with the real gtk2 thing between 2.1M2 and M3, it did fix the
problem.
Comment 8 Felipe Heidrich CLA 2003-04-17 10:15:37 EDT
Xevi and Boris:

I've entered a bug against Mandrake about this problem in GTK that's causing 
eclipse to hang. They have already fixed the problem and generate a new version 
of gtk package: gtk+-2.2.1-3mdk.

I would like yuo guys to download and install this new package and re-test case 
(a) and (b). Sorry by been asking help all the time but I do have Mandrake 
Linux to test.

Mandrake bug link:
http://qa.mandrakesoft.com/show_bug.cgi?id=3761

Thanks

Comment 9 Boris Shingarov CLA 2003-04-17 11:43:00 EDT
Is this package part of Cooker or the updates?
Comment 10 Felipe Heidrich CLA 2003-04-17 12:55:01 EDT
I'm not sure, the guy of the mandrake bug said:
"For gtk+2.2.1, grab cooker packages"

Comment 11 Boris Shingarov CLA 2003-04-17 20:55:04 EDT
Ok, I took gtk 2.2.1-4 from Cooker (this pulled a tail of 23 other packages with
it), and galaxy 0.2-22.1.  The problem does NOT happen with these versions: no
CPU hogging and the scrollbar behavior is correct.  Also, no segfault in
progress bars so far.

Proposed resolution: close with the verdict, "OS bug".  This situation is common
with Eclipse/gtk.  I remember helping fix parts of gtk in the Eclipse 2.0
timeframe to get even the ControlExample working (e.g. "Negative size of group's
children").

Felipe: helping with testing this, is a pleasure, not a problem :-)  you can
guess the reason ;-)
Comment 12 Boris Shingarov CLA 2003-04-17 21:16:59 EDT
Sorry.  On the progress bar, I was laughing too early: it just happened again
after about an hour with the new galaxy.
Comment 13 Felipe Heidrich CLA 2003-04-21 09:27:39 EDT
Hi Xevi, did you also update your GTK ? Does it fix the problem you're having ?
Comment 14 Xevi Serrats CLA 2003-04-21 13:07:34 EDT
Hi,

Can I install gtk in a user directory and tell eclipse use this GTK. If I can I
will be happy if I need to modify my global gtk (for dependences ...).

Thanks a lot for your help.

Regards,
Xevi.
Comment 15 Felipe Heidrich CLA 2003-04-21 13:21:49 EDT
Try to install the rpm packages using "rpm -Uvh package_name"
This will update your packages and you won't have problems with dependencies.

I don't think you can install rpm packages in user directories... But, if you 
can do so you can tell eclipse to use them by setting the env variable 
LD_LIBRARY_PATH.

Boris, how did you update your system ? You had to download 23 packages 
individually ? Or mandrake has a smart package management software (like apt-
get in Debian) to help you out ?

Comment 16 Boris Shingarov CLA 2003-04-21 13:29:01 EDT
Yes, Mandrake has something called URPMI, and it's similar to apt-get in the 
sense that it recursively tracks deps in a smart way.  So all I had to do was 
add a Cooker "package source" and tell it to upgrade GTK - it picked up all 
the deps.
Comment 17 Boris Shingarov CLA 2003-04-21 13:39:22 EDT
Also, note on installing a separate gtk under a user home:  this should not be 
hard if building from the source tarball or cvs, pass "--prefix" to the 
configure script (and use library path).  I think it is harder for binary 
rpms, I recall seeing these "relocatable packages" so it should be possible to 
install into a different place, but the problem is what shall rpm do with the 
package db.
Comment 18 Xevi Serrats CLA 2003-04-21 15:16:40 EDT
Hi,

It works.

I have installed the following packages from mandrake cooker:

gtk+2.0-2.2.1-4mdk.i586.rpm
libgdk_pixbuf2.0_0-2.2.1-4mdk.i586.rpm
libgtk+2.0_0-2.2.1-4mdk.i586.rpm

And now I can export the famous file.

I thing I add some comment. The expoft to file windows .. the tree that
represents the servlet package doesn't scroll properlly. Let's say, I want go up
to the root directory (or package) and I can.

If I cloase some packege, the scroll disapears, the open again the package tree
and scroll work (I can go up and down) properlly.

Thanks a lot for your time.

Well, I thing we must say the problem is in GTK, not eclipse.

Regards,

Xevi.
Comment 19 Felipe Heidrich CLA 2003-04-21 15:26:34 EDT
Closing problem report.

(wontfix cause there was no SWT code released)