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 209446 - C++ IDE slow/hangs when started & network location ofline
Summary: C++ IDE slow/hangs when started & network location ofline
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.1.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-12 05:42 UTC by coolsabby7
Modified: 2012-09-25 08:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description coolsabby7 2012-03-12 05:42:04 UTC
Hi I have seen a problem in the IDE 7.1.1 when we have 2 project at different locations simultaneoulsy in my case.

I have one project in my local hard-drive(while opening the project the IDE sometimes reports slowness detected although i have given 768m of memory in netbeans config file).

Now if i open onother project which is on network location, with earlier one still open, the 2nd project opens up Ok, Now in the services dialog --> under c++ build host --> there are 2 locations

 1) localhost(i had set this as default, the project as main project)
 2) remote server.

 but on adding(new) or connecting a network location [1] is not default anymore, Now if i close the IDe and the network location is offline, then when i restart it the IDE hangs for ever on the network location trying to connect [it does not get up on the default location i had earlier designated (as it is no more default)].

why does the project i designated as Default and main loose its status. on adding a new project from any where.

please let me know if i am missing any step due to which this is occuring and if you think lossing project default status is correct behaviour, please correct me
Comment 1 Vladimir Voskresensky 2012-03-12 08:11:14 UTC
If IDE hangs on startup, please, attach thread dump
http://wiki.netbeans.org/GenerateThreadDump

If already started IDE hangs and you know which steps to use to reproduce it, please, provide thread dump and profile snapshot
http://wiki.netbeans.org/GenerateThreadDump#Profile_Me_Now
Comment 2 coolsabby7 2012-03-13 14:04:40 UTC
hi 
i am not able to generate a dump..i was trying to redirect the dump on to text file in windows console...but unsuccessful....maybe i am missing something(i have read the links)..can you please elaborate the steps...also it says something about
--------
The launcher has determined that the parent process has a console and will reuse
 it for its own console output.
Closing the console will result in termination of the running program.
Use '--console suppress' to suppress console output.
Use '--console new' to create a separate console window.
--------
which i am not able to understand or use

regards
Comment 3 soldatov 2012-03-13 14:16:35 UTC
1) netbeans --console new
2) press Ctrl+Break (Ctrl+Pause/Break) in terminal
Comment 4 Andrew Krasny 2012-03-23 12:14:14 UTC
coolsabby7,

when you refer to project's location as 'remote', do you mean project opened from a remote host or is it just a regular project, but it's location is on some network drive?

If this is the second case (say, NFS share location, which is dead, because remote host is off) then it's likely has nothing to do with 'default' (or any other) c++ build hosts...

BTW, if you are starting NetBeans by double-clicking an icon, you can try to modify it's properties: in 'Target' put '--console new' after netbeans.exe. After that pressing Ctrl+Break (Ctrl+Pause/Break) in terminal will dump a thread.
Comment 5 coolsabby7 2012-04-04 07:20:26 UTC
HI Andrew 
yeah it is the second case where i am trying access files on a network drive by mapping to my windows..

but now there is a new problem, after PC restart even if i bring the network drive online before starting Netbeans the IDE just stalls asking for the authentication to connect to remote HOst and it hangs completely...in the status bar it says validation tools on the remote host... then i have to un-install application it an re-install it gain to start again.. its frustrating..

if you have any other way please let me know...
Comment 6 coolsabby7 2012-04-04 07:22:32 UTC
HI Andrew 
yeah it is the second case where i am trying access files on a network drive by mapping to my windows..

but now there is a new problem, after PC restart even if i bring the network drive online before starting Netbeans the IDE just stalls asking for the authentication to connect to remote HOst and it hangs completely...in the status bar it says validation tools on the remote host... then i have to un-install application it an re-install it gain to start again.. its frustrating..

if you have any other way please let me know...
Comment 7 Vladimir Kvashin 2012-04-16 17:56:03 UTC
(In reply to comment #6)

> ...then i have to
> un-install application it an re-install it gain...

There is much easier workaround: just remove all files 
from NetBeans user directory
(you can see your user directory in Help > About dialogue)
Comment 8 Andrew Krasny 2012-09-25 08:17:27 UTC
coolsabby7,

this issue has been left without attention for quite a while.. 
Now things may already changed. So, do you still have these problems? 
If yes, please confirm and let's try to get to the reason. Otherwise, please close this issue.

Thanks,
=Andrew