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 248842

Summary: OOME with NodeJS project
Product: javascript Reporter: Vladimir Riha <vriha>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description Vladimir Riha 2014-11-23 17:09:34 UTC
Reproducing issue 246598:
Exact steps:
- download ZIP of this project [1]
- create a new HTML5 project for it (set SiteRoot for Project Directory!)
- invoke NPM Install (can end with errors)
- invoke Bower install
- once finished, I left IDE for few minutes in background (switched to browser)
- then I opened PageController.js and typed

util.

and invoked cc. Memory usage jumped to almost 1GB and IDE became unresponsive. Heap dump is available here [2]


[1] https://github.com/JakubMrozek/Zdrojak
[2] https://drive.google.com/file/d/0B6Sd5ov8j7IUS2JmQnNodllOMjg/view?usp=sharing


Thank you



Product Version: NetBeans IDE Dev (Build 201411230001)
Java: 1.7.0_72; Java HotSpot(TM) Client VM 24.72-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_72-b14
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2014-11-23 17:10:35 UTC
Created attachment 150643 [details]
IDE log
Comment 2 Petr Pisl 2015-07-20 08:06:55 UTC
I can reproduce this. My guess is that you pressed CTRL+SPACE twice and invoke code completion for all symbols. I'm going to add an logic, which doesn't allow such queries. Only if there is a some prefix.
Comment 3 Petr Pisl 2015-07-20 10:01:06 UTC
Fixed in web-main. The symbols fro empty prefix are not counted from index.
Comment 4 Quality Engineering 2015-07-21 01:19:00 UTC
Integrated into 'main-silver', will be available in build *201507210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9bd09b81276c
User: Petr Pisl <ppisl@netbeans.org>
Log: #248842 - OOME with NodeJS project