This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 187176 - [69cat] using alt+shift+O to navigate to a java file sometimes results in the IDE crashing
Summary: [69cat] using alt+shift+O to navigate to a java file sometimes results in the...
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Freeform (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-03 22:06 UTC by jasondonmoyer
Modified: 2010-06-14 14:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log from after crash (2.22 MB, text/x-log)
2010-06-03 22:07 UTC, jasondonmoyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jasondonmoyer 2010-06-03 22:06:16 UTC
[ BUILD # : RC2 ]
[ JDK VERSION : 1.6.20 ]

I'm seeing occasional IDE crashes that result in lost data.  Frequently, they
seem to be trigger by using alt+shift+o to launch the file selection dialog and
then the act of double clicking the desired item causes the IDE to crash. 
There is an exception in my messages.log, but I'm unsure if it's related to
this particular crash.
Comment 1 jasondonmoyer 2010-06-03 22:07:13 UTC
Created attachment 99799 [details]
messages.log from after crash

attaching messages.log
Comment 2 Peter Pis 2010-06-04 07:34:22 UTC
Could you please inspect for "hs_err_pid*" files (most probably they will exist in NB installation directory)?
Comment 3 Tomas Zezula 2010-06-04 07:45:48 UTC
Please attach the hotspot crash file. It's problem of your OS or JVM as the IDE has no native library and it's only managed code. Without the hs_err_pid file I am not able to report the issue to hs.
THanks
Comment 4 Tomas Zezula 2010-06-04 07:48:46 UTC
The exception at the log is unrelated it's issue #186321 which is already fixed in trunk.
In the issue there is also description how to workaround the issue.
Comment 5 jasondonmoyer 2010-06-04 17:01:02 UTC
(In reply to comment #2)
> Could you please inspect for "hs_err_pid*" files (most probably they will exist
> in NB installation directory)?

Unfortunately, there is no 'hs_err_pid*' file in either my netbeans installation or .netbeans directories.  Is there any other place or different type of filename where this could exist?  This problem happens fairly frequently, I'll look for this file again the next time it does.
Comment 6 Tomas Zezula 2010-06-04 17:34:59 UTC
On windows the hs_err_pid should be generated the current directory and if not successful, to the TEMP directory for the user.
Comment 7 jasondonmoyer 2010-06-04 19:37:24 UTC
(In reply to comment #6)
> On windows the hs_err_pid should be generated the current directory and if not
> successful, to the TEMP directory for the user.
I'm running Linux and I searched the entire drive for any file beginning with 'hs_' and there were none.  Any other ideas?
Comment 8 Tomas Zezula 2010-06-07 08:03:02 UTC
Sorry, I've overlooked the platform.
On linux it should go current working directory.
You can also use the jvm option -XX:ErrorFile=path_to_log_file.
You can pass it to NB by:
./netbeans -J-XX:ErrorFile=path_to_log_file
Comment 9 jasondonmoyer 2010-06-08 21:20:32 UTC
(In reply to comment #8)
> Sorry, I've overlooked the platform.
> On linux it should go current working directory.
> You can also use the jvm option -XX:ErrorFile=path_to_log_file.
> You can pass it to NB by:
> ./netbeans -J-XX:ErrorFile=path_to_log_file

I've experienced an IDE crash again.  This time while attempting to revert a file from a Mercurial repository.  Again, no hs_err*.log file was generated.  I've executed the command find . -iname 'hs_*' (from / as root).  I've even created a file hs_err_x.log file in the places where this file is expected to be generated to guarantee that the above command will find these files.  Any other ideas?
Comment 10 Tomas Zezula 2010-06-09 11:19:18 UTC
Try the -XX:ErrorFile option.
If it does not help, try at least to run the IDE from terminal, when hotspot crashes it prints at least some info to console.
Thanks
Comment 11 jasondonmoyer 2010-06-11 15:27:03 UTC
(In reply to comment #10)
> Try the -XX:ErrorFile option.
> If it does not help, try at least to run the IDE from terminal, when hotspot
> crashes it prints at least some info to console.
> Thanks

Finally!  Following is the output from running netbeans from the terminal after the error has occurred:

jdonmoyer@jdonmoyer-ubuntu:~/netbeans-6.9rc2/bin$ ./netbeans
Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
The program '<unknown>' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 122932 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.)


As a clarification, this time it occurred after dismissing a dialog that was launched from within netbeans using ant's input capability from my freeform project build script:

<input message="Please specify a test case to run:" addproperty="case" />

The common thread in every occurrence where I've seen the IDE crash is that it always occurs after dismissing a netbeans launched dialog.

Let me know if I can assist in any other way with tracking this down.
Comment 12 Tomas Zezula 2010-06-14 09:16:54 UTC
Seems as a problem in JVM Window manager communication.
Do you use the standard Ubuntu window manager (compiz)?
Thanks
Comment 13 jasondonmoyer 2010-06-14 14:00:30 UTC
(In reply to comment #12)
> Seems as a problem in JVM Window manager communication.
> Do you use the standard Ubuntu window manager (compiz)?
> Thanks

Ubuntu 10.04 (same machine has been upgraded since about 8.04).  I use compiz, but have installed compiz settings manager in order to workaround some bugs (inconsistencies) in other apps that have been introduced since the switch to compiz.