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 47515 - NB hangs after cvs co tasklist from the release36 branch
Summary: NB hangs after cvs co tasklist from the release36 branch
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: RANDOM, THREAD
Depends on: 160409
Blocks:
  Show dependency tree
 
Reported: 2004-08-19 19:31 UTC by Tim Lebedkov
Modified: 2011-11-30 20:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (25.81 KB, text/plain)
2004-08-19 19:32 UTC, Tim Lebedkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2004-08-19 19:31:38 UTC
see the attachment
Comment 1 Tim Lebedkov 2004-08-19 19:32:05 UTC
Created attachment 16966 [details]
Thread dump
Comment 2 Martin Entlicher 2004-08-20 10:00:39 UTC
Looks like a deadlock in and or editor. Moving to ant for evaluation.
Comment 3 Jesse Glick 2004-08-20 15:43:18 UTC
Looks to me like CloneableEditorSupport.loadDocument should not call
messageName synchronously in the finally block - especially as it is
holding a document lock at the time. Suggest the handling of aProblem
just be done asynch. Or don't use messageName at all here; this
doesn't look like a regular class of user error to me, we could
probably skip the localized annotation.

Only applicable to Ant scripts since these actually do computation in
messageName - not based entirely on file name.

Probably not P2; have not heard of any other instances of this
happening. Note that it is only occurring after some other
(unfortunately unknown) exception is thrown inside loadDocument.
Comment 4 Petr Nejedly 2004-10-27 09:47:03 UTC
I'd like to fix this to 4.0
Not calling messageName is bad idea, we should tell the user which
file can't be opened (think of startup with 20 files open).
It should suffice to invokeLater the notification, but writing the
test will probably be nightmare :-(
I'll attach cleaned stack trace.
Comment 5 Petr Nejedly 2004-10-29 22:43:45 UTC
openide/src/org/openide/text/CloneableEditorSupport.java,v1.138
openide/test/unit/src/org/openide/text/Deadlock47515Test.java,v1.1
Comment 6 Tim Lebedkov 2004-12-20 11:53:18 UTC
tried to checkout tasklist/release_40

lock.c:225: failed assertion `strncmp (repository,
current_parsed_root->directory, strlen
(current_parsed_root->directory)) == 0'
cvs [server aborted]: received abort signal
lock.c:225: failed assertion `strncmp (repository,
current_parsed_root->directory, strlen
(current_parsed_root->directory)) == 0'
cvs [server aborted]: received abort signal
Comment 7 Jesse Glick 2004-12-20 18:04:01 UTC
Tim that error message has nothing to do with the IDE, it is a
well-known problem with the CollabNet CVS server. Use
/shared/data/helm/cvs/repository rather than /cvs as the path in your
CVSROOT to work around.
Comment 8 Tim Lebedkov 2005-01-03 20:12:04 UTC
using "/shared/data/helm/cvs/repository" as repository path in 4.0
prints the following message:

Protocol error: uncounted data discarded
Comment 9 Jesse Glick 2005-01-03 21:21:05 UTC
Tim: again, whatever errors you may receive checking things out
probably have nothing to do with this bug.

The following CVSROOT works fine for me on the command line, with CVS
1.11.17 on Linux:

:pserver:jglick@cvs.netbeans.org:2401/shared/data/helm/cvs/repository

If you have problems with it, feel free to file a bug in www /
netbeans.org CVS and give details to reproduce from scratch.
Comment 10 Tim Lebedkov 2005-01-18 17:56:59 UTC
ok