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.
Steps to reproduce: - open Freeway sample on remote host - close IDE while parsing Actual behavior: - long waiting of finishing parsing (about 60 seconds on my environment) Expected behavior: - finishing parsing in couple seconds - finishing model shut downing (count CRC) in couple seconds Priority P2 because starting IDE again (after hiding IDE GUI and before finisinng previous) results in wild exceptions.
Created attachment 110109 [details] threads dump
As I understand, this can be reproduced with ordinary remote as well in the case there are no caches for remote system headers.
Created attachment 110134 [details] proposed patch Vladimir K. please take a look on patch.
I did. I agree with the changes. I have a minor question though: wouldn you mind changing in FileImpl constructs like if (<condition> || ModelImpl.instance().getState() == CsmModelState.CLOSING) { break; // or return with a separate if (CsmModelState.CLOSING) { break; // or return } which I believe will make reading and further modification more easy
*** Bug 199494 has been marked as a duplicate of this bug. ***
I´ve added some safe exit points, although there still could be delay, because i.e. if big file is transferred it takes time + jsch uses timeout and tries to recover if channel was closed. Other places I find risky to be fixed and imho not more than P3 http://hg.netbeans.org/cnd-main/rev/0f1f35c7c10b
Fix 0f1f35c7c10b does not fix problem because signal CsmModelState.CLOSING is blocked by code model tasks waitModelTasks() and no real interrupting of onInlude(). It is a lines in first patch: + setState(CsmModelState.CLOSING); waitModelTasks(); - setState(CsmModelState.CLOSING); If you are concerned about swapping this lines you can introduce new intermediate state "START_CLOSING" (or flag) an use it state in onInclude().
Proposed change is too risky in 7.0.1 context
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/0f1f35c7c10b User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #201120 - Parsing of full remote project prevents IDE shut downing - interrupt inclusion loop on close - interrupt parsing on close - interrupt gothering file options on close
extra fix http://hg.netbeans.org/cnd-main/rev/f52c5d753214
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/f52c5d753214 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: extra fix for #201120 - Parsing of full remote project prevents IDE shut downing