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 175471 - IDE frozen on startup
Summary: IDE frozen on startup
Status: RESOLVED DUPLICATE of bug 175077
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-26 19:40 UTC by bht
Modified: 2009-11-02 17:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file while IDE is frozen (37.57 KB, text/plain)
2009-10-26 19:46 UTC, bht
Details
Console output from --console new startup (16.16 KB, text/plain)
2009-10-30 22:14 UTC, bht
Details
Thread dump from starting with --console new (39.26 KB, text/plain)
2009-10-30 22:21 UTC, bht
Details
Another thread dump (65.05 KB, text/plain)
2009-10-30 22:30 UTC, bht
Details
Another thread dump, probably the best (67.95 KB, text/plain)
2009-10-30 22:34 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2009-10-26 19:40:34 UTC
IDE starts up bt then freezes. In task manager, when I switch to it, then I can see only the title bar.
I can re-size, but the content is only of other windows e.g. Task manager not NetBeans. CPU is 0%.
Comment 1 bht 2009-10-26 19:46:22 UTC
Created attachment 90104 [details]
log file while IDE is frozen
Comment 2 bht 2009-10-27 08:57:45 UTC
I can't start the beta without freeze at all. It loads the start page with news from the internet, and it indicates that
it is opening projects. Then it freezes, with the "Opening Projects" progress bar not completing, staying white inside. 

I am back to 6.7.1 because of that. You might find this interesting, and in that case I am happy to help if you want me
to. My optionas are limited, because I am currently on a slow modem connection, so I cannot download a development build.

May be you can advise me of things to try, or provide me with small debug patches etc.. If time is a factor: We probably
have 12 hours time difference, so communicating early in the morning might be ok, otherwise no hurry, it takes a day for
the response anyway.

Comment 3 mslama 2009-10-30 21:16:51 UTC
If IDE hangs please get thread dump and attach it here. I do not see anything suspicious in IDE log.
Comment 4 bht 2009-10-30 22:12:23 UTC
I followed instructions at
http://wiki.netbeans.org/GenerateThreadDump

a) I start NetBeans from a console.
When I press [Ctrl+Break] in the console window where I launched netbeans.exe from then I get only a line feed. Same
with NetBeans 6.7.1. But I get a thread dump with other java apps.

b) I start NetBeans from a console with the command netbeans.exe --console new
NetBeans starts without hanging, and I am getting output on the additional console. Will attach as StartupConsole01.txt.
I am closing NetBeans.
When I start again as before, then NetBeans still hangs. So this reproduces beautifully.

Would you please advise what to do next. I don't know how I can increase the screen buffer size of the additional
console - it appears it is too small. I can do it for the original console, but it appears the new console size is not
changed with this. I will also attach the log files of a successful startup with the --console new option.
Comment 5 bht 2009-10-30 22:14:16 UTC
Created attachment 90344 [details]
Console output from --console new startup
Comment 6 bht 2009-10-30 22:21:00 UTC
Created attachment 90346 [details]
Thread dump from starting with --console new
Comment 7 bht 2009-10-30 22:30:48 UTC
Created attachment 90347 [details]
Another thread dump
Comment 8 bht 2009-10-30 22:34:36 UTC
Created attachment 90348 [details]
Another thread dump, probably the best
Comment 9 mslama 2009-10-31 11:06:08 UTC
It looks like deadlock between LibraryManager and Project mutex. "Default RequestProcessor" and "Load Open Projects".
Passing to projects/ui for evaluation. I do not know what is correct lock order.
Comment 10 mslama 2009-10-31 11:07:54 UTC
Note: I looked at last thread dump only. AWT thread is also blocked as it waits for Project.Mutex.
Comment 11 Milan Kubec 2009-11-02 09:25:22 UTC
Please evaluate, probably related to recent synchronization changes in JavaEEServerModuleFactory.addLibrary(). Thanks.
Comment 12 Vince Kraemer 2009-11-02 17:12:49 UTC
the fix for this went into the trunk on Oct. 21... if you run into a hang with a more recent build. please open a new issue

*** This issue has been marked as a duplicate of 175077 ***