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 248764 - IDE locks up(for several minutes) then StackOverflowError when a large number of nodes are selected
Summary: IDE locks up(for several minutes) then StackOverflowError when a large number...
Status: RESOLVED DUPLICATE of bug 250817
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 8.0.1
Hardware: PC All
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-19 23:25 UTC by sproger1
Modified: 2015-10-16 12:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack traces showing the issue in Netbeans 801 release, at multiple points. (254.71 KB, text/plain)
2014-11-19 23:25 UTC, sproger1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sproger1 2014-11-19 23:25:28 UTC
Created attachment 150581 [details]
stack traces showing the issue in Netbeans 801 release, at multiple points.

When a few hundred nodes are selected in the Explorer (Project, Files or Favorites) window, the GUI/EDT locks up for anywhere from a few seconds to half an hour, eventually you may get a StackOverflowError.

This issue still exists in Netbeans 8.0.1 even though similar issues have been raised in the past. See related issues: Bug 212619, Bug 204645, Bug 212619 and many others which have been marked as duplicates, but this issue still exists.

The current implementation is severely flawed, there has to be a better way to determine the list of selected nodes without using recursion OR avoid creating a list all-together and just return an iterator, which an action(when performed) can then iterate over off the EDT. Instead of locking up the EventQueueThread immediately after the nodes are selected. 

No means of cancelling the selection currently exists and this forces the user to restart the application.

Attached is the stack trace showing the issue in Netbeans 801 release.
Comment 1 Ondrej Vrabec 2015-09-17 14:51:36 UTC
I was not able to get the same result with 8.0.2. Can you reproduce it? Does it always happen when you select that many files at once?
I selected 1000 files and there was no hang and no error in the end. How do you select the files, do you select one by one? Or select-first->Shift+select-last?
Comment 2 Ondrej Vrabec 2015-10-16 12:46:58 UTC
JardaH did what he could about this: bug 250817: http://hg.netbeans.org/main-silver/rev/fd15d00453fa. Should make things better fixed.

*** This bug has been marked as a duplicate of bug 250817 ***