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

Bug 342151

Summary: Closing java web start console crashes Eclipse with 'BadWindow (invalid Window parameter)'
Product: [Eclipse Project] Platform Reporter: Mats-Ola Persson <deathpolli>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: aron, eclipse.felipe, ericwill, grant_gayed, remy.suen
Version: 4.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Mats-Ola Persson CLA 2011-04-07 09:01:10 EDT
Build Identifier: 20110218-0911

You are able to crash Eclipse if you close the java web start (jws) console[1] while showing a modal dialog from Application.start.

The application outputs:

The program 'example' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 835 error_code 3 request_code 20 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.)

I am using java version 1.6.0_24

1: http://download.oracle.com/javase/1.5.0/docs/guide/deployment/deployment-guide/console.html#startup

Reproducible: Always

Steps to Reproduce:
1. Enable the Java web start (see details on how to enable)
2. Download the attached code and update the *.jnlp-files to reflect your environment (setting <jnlp codebase=...>).
3. Run from a terminal "javaws example.jnlp" and the modal dialog pops up
4. Hit close in the console window
5. Application crashes and the error described in details is output.
Comment 1 Mats-Ola Persson CLA 2011-04-07 09:09:16 EDT
The code be found here: http://dl.dropbox.com/u/17342984/Code/javawstest.zip
Comment 3 Eric Williams CLA 2018-06-29 15:33:37 EDT
I don't think this is something we can fix.