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 122451 - UI Hang on first startup
Summary: UI Hang on first startup
Status: RESOLVED DUPLICATE of bug 132857
Alias: None
Product: ide
Classification: Unclassified
Component: Welcome (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 133836 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-21 01:29 UTC by crichter
Modified: 2008-07-24 16:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread Dump (14.65 KB, text/plain)
2007-11-22 05:45 UTC, crichter
Details
Second threaddump, several minutes after program launch. (12.58 KB, text/plain)
2007-11-29 01:55 UTC, crichter
Details
Another thread dump. (15.61 KB, text/plain)
2007-11-29 01:56 UTC, crichter
Details
Screen shot of initial launch. (8.77 KB, text/plain)
2007-11-29 01:56 UTC, crichter
Details
Example of window repainting locking. (25.62 KB, text/plain)
2007-11-29 01:57 UTC, crichter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crichter 2007-11-21 01:29:05 UTC
After unpacking the new rc1 from the zip and starting it for the first time, Netbeans will start but the entire UI is a
grey rectangle and unresponsive. This is the way it stays until the process is killed. I first noticed this in beta2 on
our Solaris 8 dev box (JDK5). The problem does not occur on our Windows desktops.

We're behind a firewall at work, so after a little looking around I found that ensuring the proxy is setup and the
welcome screen turned off Netbeans starts ok and the UI doesn't hang.

After a fresh "install" of Netbeans, manually copying the two files below seems to be a work around. I'm guessing
something has changed with the welcome screen and the online resources it pulls in. If it can't find the host the UI
freezes. (Note I've changed the proxy details)

~/.netbeans/6.0rc1/config/Preferences/org/netbeans/core.properties

#Tue May 08 16:45:10 EST 2007
WWWBrowser=SL[/Browsers/FirefoxBrowser
proxyHttpPort=someportnumber
proxyType=2
proxyHttpHost=someproxy.hostname.com
UIMode=2


~/.netbeans/6.0rc1/config/Preferences/org/netbeans/modules/welcome.properties

#Tue Oct 23 16:43:24 EST 2007
startCounter=3
planetnetbeans.org/rss20.xml=Tue, 23 Oct 2007 06\:11\:32 GMT
showOnStartup=false
lastActiveTab=1
feedback.survey.startups=2
feedback.survey.show.at=1194934658760
www.netbeans.org/demos.xml=Fri, 24 Aug 2007 03\:20\:54 GMT
Comment 1 Petr Nejedly 2007-11-21 13:35:13 UTC
Please attach a thread dump of hung IDE:
http://wiki.netbeans.org/wiki/view/GenerateThreadDump

But as the culprit is, probably, the welcome screen, reassigning accordingly
Comment 2 Petr Nejedly 2007-11-21 13:35:53 UTC
Can't find the welcome screen category, reassigning manually.
Comment 3 Petr Nejedly 2007-11-21 14:04:22 UTC
BTW: P2 at least (but no data lost YET ;-))
Comment 4 crichter 2007-11-22 05:45:53 UTC
Created attachment 53351 [details]
Thread Dump
Comment 5 Stanislav Aubrecht 2007-11-22 10:35:35 UTC
i'm not able to reproduce this. the thread dump does not indicate any problem in welcome and all http calls are made in
separate thread that don't block EDT anyway 

crichter, can you pls try running netbeans with start page enabled *and* correct proxy settings? does it still freeze ui?
Comment 6 Petr Nejedly 2007-11-22 11:50:18 UTC
The thread dump shows no welcome screen but rather delayed menu initialization. But this shouldn't take that long and
shouldn't be influenced by proxies/networking at all. Well, maybe it's a coincidence and you hit the thread dump too early?

In case you're sure there's relation to networking, please generate more thread dumps during the hang (3 or so with
10-20s delay) and post them.
Comment 7 crichter 2007-11-29 01:55:52 UTC
Created attachment 53635 [details]
Second threaddump, several minutes after program launch.
Comment 8 crichter 2007-11-29 01:56:22 UTC
Created attachment 53636 [details]
Another thread dump.
Comment 9 crichter 2007-11-29 01:56:43 UTC
Created attachment 53637 [details]
Screen shot of initial launch.
Comment 10 crichter 2007-11-29 01:57:36 UTC
Created attachment 53638 [details]
Example of window repainting locking.
Comment 11 crichter 2007-11-29 01:58:15 UTC
Sorry for the delay. I've tried rc2 as well, without the proxy setup I am getting the same issue. Attached is a thread
dump (several minutes after launching).

With the proxy settings added (but leaving the welcome screen turned on) I don't get the issue.  Repainting certain
tasks seems a little slow but I believe that is to do with JDK5 and swing painting problems fixed in JDK6.

Turning off the proxy settings results in the below. Initially the entire window is not painted. After a few minutes it
seems some of the UI is painted and then will freeze again (something locking down the EDT??).

Attached are some screen shots and several more thread dumps.  Adding correct proxy settings resolved the problem. 
Comment 12 Stanislav Aubrecht 2008-06-18 16:37:42 UTC
crichter, can you pls try resizing the whole ide window when the ui lock happens again? thanks
Comment 13 Antonin Nebuzelsky 2008-06-18 16:46:20 UTC
*** Issue 133836 has been marked as a duplicate of this issue. ***
Comment 14 Stanislav Aubrecht 2008-07-24 16:44:15 UTC
judging from the attached thread dumps this seems like a duplicate of #132857 - slow repaints of welcome screen.
if the proxy isn't set correctly the feeds are not loaded so the upper and bottom stripes are very large making repaints
slow due to #132857

please reopen if this issue is still reproducible in recent builds

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