Netbeans 6.0.1 is freezing when it is startup after displaying the main window, the status bar say "Opening Main
Window...", it just stop, I only can maximize and minimize the windows and nothing else, all the menu, tab, etc is not
responding to any mouse / click event. If I wait long enough eg: 10 min, finally it will normal again.
My guess Netbeans try to connect to internet and unable to do so, and it wait for timeout.
How to repeat the bug:
- Mess around with your dns setting (eg: change it to non existent dns server in your Network eg: 192.168.1.50), make
sure it is not able to resolve the domain and unable to access Internet
- Start Netbeans, it will free at the point mentioned above
- Netbeans 6.0.1
- Java 1.6.03 and Java 1.6.04
- Ubuntu 7.10 (Gutsy)
- Have mercurial plugins (may/may not be related)
- Unplug the network cable
- Or disable the Network Interface in control panel
the funny things, that netbeans able to detect if the cable is unplugged or the network interface is disabled.
Why it is trouble, because under certain condition (dns server down, or network problem), Netbeans is unusable. Unless I
patience enough wait 10 min for timeout
Thanks for inspection of this problem, passing to autoupdate, I think it tries to connect to get info about updates.
Feel free to reassign if i'm wrong.
Autoupdate does connecting to internet pure out of AWT thus cannot block any AWT operation. I'm sure it could make
trouble like this. I'm reassign back.
kiyut. please attach full stack traces while freezing open main window to allow us to complete problem evaluation. Thanks
Sorry for confusing, I wanted to say: I'm sure that AU _cannot_ make troubles like this. I'm sorry.
kiyut, we definitely need a tread dump when the IDE is frozen. Maybe even more thread dumps. If you are able to
reproduce it, go ahead, take thread dump - http://wiki.netbeans.org/GenerateThreadDump, and attach it here
thank you for your report
Created attachment 58025 [details]
Just attached a thread dump.
This thread dump is generated under the following condition
- Netbeans 6.0.1
- Jdk 1.6.0_04
- Netbeans Settings: Under Menu - Tool - Plugins, I disable (un tick) all the Update Center available and set the Check
Interval to "never"
If it is Update Center problem, this is also indicate that Update Center does not honour the setting, because I untick
all the available Update Center and set the Update Interval to none, so it should not try to connect to Update Center.
The problem also exist whether the update center is enabled (ticked) or disabled.
To repeat the bug
- Just mess around with the DNS setting in the control panel eg: set the dns to non existant dns server, and make sure
it unable to resolve the address
Created attachment 58026 [details]
Another Thread Dump
Sorry, forget to mention to the condition (Thread Dump generated)
I have mercurial plugins installed and it is under Ubuntu 7.10 (Gutsy), which may or may not be related.
cc'ing mslama. I can see only registration in the thread dump.
kiyut, it is freezing only on start up, right? Could you check if there isn't other dialog hidden behind the main window?
Reasigning to registration for evaluation
Yes, it is only freezing at startup only. After wait long enough, it will be normal again. And there is no other windows
/ dialog, it is only main windows.
In relation with registration, I registered it sometimes ago when I installed Netbeans IDE and open the first time (I
guess), so It have not been popup again. And now during the freeze it is also not popup again, just main windows (but
Yes problem is in registration code. Network activity should be done out of AWT thread.
Fixed in main trunk: efa685d71151. Most of work is now done out of AWT thread. Showing dialog is posted to AWT thread
using invokeLater. Additional fix: After opening browser using Help->Register registration status is not checked as this
is asynchronous anyway.