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.
Issue transfered from BugTraq http://developer.java.sun.com/developer/bugParade/bugs/4983987.html ========================= Steps to reproduce: 1. Select "Mount|Version control|Generic VCS" 2. Select CVS profile 3. Type existent path in "Working Directory" field. 4. Press "Finish" 5. On "Runtime" tab select mounted filesystem and open "Output of VCS Commands" window by double-clicking any VCS command in history tree. 6. In main IDE window select "Window|Dock View Into|Output Window|Left" 7. In main IDE window select "Window|Dock View Into|Output Window|Right" IDE hangs, 100% CPU is used. ===================== Reproducible on NB 3.5.1 (attached is thread-dump)
Created attachment 13097 [details] Thread-dump
As I investigated problem I found it is caused by call of close() from CommandOutputVisualizer.writeReplace(). Fix is to remove this call. I have no idea why close() is called there.
Created attachment 13098 [details] Diff of fix
Thanks for the investigation! I'm testing the patch. close() really does not have much sense there.
The patch seems to work O.K. Fixed in trunk: /cvs/vcscore/src/org/netbeans/modules/vcscore/commands/CommandOutputVisualizer.java,v <-- CommandOutputVisualizer.java new revision: 1.32; previous revision: 1.31
It works for me in the trunk build - verified.