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 64671 - Netbeans hangs (every morning?) on startup
Summary: Netbeans hangs (every morning?) on startup
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-19 15:23 UTC by jenikya
Modified: 2008-12-22 18:27 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log with both successful and hung startups (not evident from log) (76.84 KB, text/plain)
2005-09-22 18:23 UTC, pbannister
Details
Today's messages.log file. Nothing of obvious interest. Is there a way to get a more detailed/interesting log? (115.59 KB, text/plain)
2005-09-23 17:46 UTC, pbannister
Details
Log with both successful and hung startups (not evident from log) (95.45 KB, text/plain)
2005-10-18 12:48 UTC, pbannister
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jenikya 2005-09-19 15:23:01 UTC
I decided to retsrat Netbeans after encountering a problem in the design screen
- (my created design was not displaying). When I tried to restart netbeans, it
hanged. I rebotted my computer, and it hanged on startup yet again - sometime
after it had finished loading modules.

I uninstalled Netbeans 5 and installed it again, and I got the same problem. I
rebotted, and the problem still persists. I cannot get NB to do anything - it
hangs in startup always when it says: 'done loading modules'.
Comment 1 mslama 2005-09-20 08:02:41 UTC
Please first check if it hangs in startup script or in JVM: When it hangs check
if there is java process connected to your console. If yes get thread dump and
attach it here. If it hangs in startup script add set -x to 'netbeans' and
'nbexec' shell scripts. It will output verbose log to console.

Reassigning to core.

Please also add info what OS, JDK, NB build you use.
Comment 2 pbannister 2005-09-22 18:07:49 UTC
I am seeing the same problem on Windows XP Pro with (first) the 9/16 build, and
now the 9/19 build.  In both cases: 
* installed the build
* started NB 
* visited the update center & downloaded some of the offerings
* restarted
* spent time working on an applet UI
* stopped NB
* started NB (the next day) ... or tried to as it hung (no CPU or notable disk
activity) after declaring that it was done loading modules.  

There is nothing obviously unusual in the message.log.

Not clear for want you are asking, but will try running the netbeans.exe with -x
to see if this produces something useful.
Comment 3 pbannister 2005-09-22 18:22:09 UTC
Ah - forgot to add this was with JDK 1.5.0_05.

After killing the hung NB process, started from command line with "bin\netbeans
-x" ... and it worked (successful startup).  Stopped and started from the
command line w/o "-x" ... and it worked.  Stopped and started from the installed
Windows desktop ... and it worked.

FWIW - the hung process had 16 seconds CPU used.  After NB starts successfully,
the CPU use totals 24 seconds.

Perhaps there is something causing trouble run by NB only once(?) per day??

Will attach the message.log, but nothing of obvious interest.
Comment 4 pbannister 2005-09-22 18:23:44 UTC
Created attachment 25077 [details]
Log with both successful and hung startups (not evident from log)
Comment 5 pbannister 2005-09-23 17:44:32 UTC
Following the theory that the hang may be related to something done by NetBeans
once a day on startup...

Today's test was slightly different.  NetBeans was left running overnite.  

Shutdown the running instance of NetBeans.  Started a new instance of NetBeans
(or tried to).  The new instance hung on startup exactly as described before -
after NB announces it is done loading modules (and after 16 seconds total CPU
used) ... nothing.

After a few minutes (long enough to upgrade Firefox to 1.0.7, bring up this page
and enter the above) killed the hung NB instance.  Tried starting NB again, and
it started up successfully.
Comment 6 pbannister 2005-09-23 17:46:59 UTC
Created attachment 25117 [details]
Today's messages.log file.  Nothing of obvious interest.  Is there a way to get a more detailed/interesting log?
Comment 7 mslama 2005-09-23 18:06:10 UTC
Please get thread dump as I suggested above to find out if it is deadlock or
something else. On Linux press Ctrl-\ from console. On Windows you must run
nb.exe from console and press Ctrl-Pause I think from console. You get thread
dump. Copy/paste it to file and attach here.
Comment 8 pbannister 2005-10-04 19:46:19 UTC
FYI- Have not seen another occurance after upgrading to the NetBeans 5.0 beta.
Comment 9 Marian Mirilovic 2005-10-05 10:42:51 UTC
jenikya,
thanks for help.

Closing worksforme
Comment 10 pbannister 2005-10-18 12:46:12 UTC
Apparently this behavior just went into hiding(?).  

Started NB 5.0 beta this morning after a reboot, and got the same symptoms (17
seconds CPU used).  Since I was not expecting trouble, did not start from the
command line (thus no thread dump).

Comment 11 pbannister 2005-10-18 12:48:44 UTC
Created attachment 26076 [details]
Log with both successful and hung startups (not evident from log)
Comment 12 pbannister 2005-10-18 12:54:56 UTC
There may be a clue in the log.  The hang was in "Turning on modules:" between
the two items:

	org.netbeans.modules.websvc.dev/1 [1.3.1.1 200509261930]
	org.netbeans.modules.web.examples/1 [1.3.1 200509261930]

In the hung-startup the first of the above two is listed, but not the second.
Comment 13 mslama 2005-10-18 12:57:31 UTC
For JDK 6.0 there is utility jstack also for Windows. First use jps to find out
PID of your java process and then use jstack to get thread dump. Run both from
console. Of course you should run IDE also on JDK 6.0. You can download EA
binary build of JDK 6.0 from https://mustang.dev.java.net/ ie. no need to run
IDE from console.
Comment 14 Marian Mirilovic 2005-10-31 13:04:14 UTC
pbannister,

we need the thread-dump of locked IDE. Without this information we are not able
to do anything. So please follow the steps mslama wrote above, or look at the page:
http://qa.netbeans.org/bugzilla/generating-thread-dumps.html

I am closing this as worksforme. If you got the same problem once again,
generate the thread-dump and reopen this issue. Thanks in advance.