Bug 273380 - Dragging files between projects in Project Explorer crashes Eclipse
Summary: Dragging files between projects in Project Explorer crashes Eclipse
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-04-23 03:12 EDT by Ronald Vink CLA
Modified: 2009-05-13 16:12 EDT (History)
5 users (show)

See Also:


Attachments
zipped log file (2.57 KB, application/x-gzip)
2009-04-28 02:46 EDT, Ronald Vink CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald Vink CLA 2009-04-23 03:12:56 EDT
Build ID: M20090211-1700

Steps To Reproduce:
1.Create two projects with files
2.Drag a file from one project to the other
3.Eclips will crash witout warning


More information:
Comment 1 Paul Webster CLA 2009-04-23 07:53:41 EDT
This works for me.

Please run your test, and then attach any workspace log <workspace>/.metadata/.log and your hs_err_<pid> file (the stack trace at crash time).

PW
Comment 2 Paul Webster CLA 2009-04-27 12:26:59 EDT
Please re-open with requested info.

PW
Comment 3 Ronald Vink CLA 2009-04-28 02:46:18 EDT
Created attachment 133490 [details]
zipped log file
Comment 4 Ronald Vink CLA 2009-04-28 02:48:39 EDT
I started eclipse from the commandline. Dragging a file resulted in :

[rvin@rvin eclipse]$ ./eclipse --sync
The program 'Eclipse' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 58571 error_code 3 request_code 3 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

No difference in output with or without --sync
Comment 5 Remy Suen CLA 2009-04-28 07:52:51 EDT
(In reply to comment #3)
> Created an attachment (id=133490) [details]
> zipped log file

Maybe I'm using 'tar' wrong, but I can't untar this.
Comment 6 Paul Webster CLA 2009-04-28 07:58:57 EDT
eclipse.buildId=M20090211-1700
java.version=1.7.0-internal
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86

This combination gives you an X error.

Do you still get it if you use the latest 1.6 JVM?

PW
Comment 7 Paul Webster CLA 2009-04-28 07:59:36 EDT
(In reply to comment #5)
> Maybe I'm using 'tar' wrong, but I can't untar this.
> 

It's simply gzipped:
gunzip -dc log.gz >log.txt

PW
Comment 8 Ronald Vink CLA 2009-05-04 07:45:17 EDT
I think I am using the latest java, see output below.

  [rvin@rvin .metadata]$ rpm -qa | grep java
  java-1.7.0-icedtea-1.7.0.0-24.614.2mdv2008.1
  java-1.6.0-sun-plugin-1.6.0.06-2mdv2008.1
  timezone-java-2008i-1mdv2008.1
  java-1.6.0-sun-1.6.0.06-2mdv2008.1
  openoffice.org-java-common-2.4.1.10-1.3mdv2008.1
  java-1.6.0-sun-fonts-1.6.0.06-2mdv2008.1
  java-access-bridge-1.22.0-0.0.1mdv2008.1 
  java-1.6.0-sun-alsa-1.6.0.06-2mdv2008.1
  java-1.6.0-sun-jdbc-1.6.0.06-2mdv2008.1

Comment 9 Remy Suen CLA 2009-05-04 07:48:03 EDT
(In reply to comment #8)
> I think I am using the latest java, see output below.

I suggest you try switching to using Java 6 instead.
Comment 10 Bogdan Gheorghe CLA 2009-05-04 10:04:34 EDT
Can you replicate this with just a base Eclipse install? (i.e. no Mylyn, no CDT installed?)
Comment 11 Ronald Vink CLA 2009-05-11 03:12:42 EDT
(In reply to comment #10)
> Can you replicate this with just a base Eclipse install? (i.e. no Mylyn, no CDT
> installed?)
> 

I could not find a base Eclipse for download, so I downloaded eclipse-cpp-ganymede-SR2-linux-gtk.tar.gz, and started eclipse. Changed the default working directory. Created a "Hello World" project "Hello" and tried to drag the file Hello.c. Instant crash.
The same with eclipse-SDK-3.4.2-linux-gtk.tar.gz and eclipse-cpp-galileo-M6-linux-gtk.tar.gz.
I even switched back from 2.6.29.1 kernel to 2.6.24.7-desktop-2mnb.
Tried the same on a laptop with the same kernel and other installation, all went well. The only difference is I am using a double screen with seperate X server on my desktop and single screen on the laptop.
I tried some configurations with Xinerama, TwinView and Seperate X Server setings and suddenly drag and drop works. So it must have been a conflicting setting in xorg.conf or any other X11 configuration.
Thanks for the support.
Comment 12 Kevin Barnes CLA 2009-05-13 16:11:58 EDT
.
Comment 13 Kevin Barnes CLA 2009-05-13 16:12:56 EDT
.