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 258028 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 250617 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-17 09:32 UTC by Exceptions Reporter
Modified: 2016-06-29 07:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206221


Attachments
stacktrace (2.87 KB, text/plain)
2016-02-17 09:32 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-02-17 09:32:07 UTC
This issue was reported manually by thurka.
It already has 29 duplicates 


Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) Client VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
GUEST: It happend when I start netbeans

GUEST: Getting this error every time when i load Netbeans in my Ubuntu 14.04 System.

GUEST: asd

GUEST: Taking huge memory

GUEST: ????????????20MB?????????

GUEST: check it please.

GUEST: Net beans opening error.

GUEST: Estava usando, deu pau na mem
Comment 1 Exceptions Reporter 2016-02-17 09:32:09 UTC
Created attachment 158531 [details]
stacktrace
Comment 2 Tomas Hurka 2016-02-17 09:33:30 UTC
It looks like a problem in PHP 

org.netbeans.modules.php.editor.PhpEmbeddingProvider.getEmbeddings(PhpEmbeddingProvider.java:96)

Please evaluate.
Comment 3 Tomas Mysik 2016-06-21 14:36:15 UTC
Caused by parsing of huge PHP files. NetBeans should ignore these files during parsing & indexing, similarly to JavaScript.

Thanks.
Comment 4 Tomas Mysik 2016-06-23 05:35:44 UTC
(In reply to Tomas Mysik from comment #3)
> Caused by parsing of huge PHP files. NetBeans should ignore these files
> during parsing & indexing, similarly to JavaScript.

Not exact; this OOME happened during lexing and not parsing so we now check also the file size before lexing. Parser already does this check.

Thanks.

http://hg.netbeans.org/web-main/rev/553c25095cba
Comment 5 Quality Engineering 2016-06-24 01:46:29 UTC
Integrated into 'main-silver', will be available in build *201606240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/553c25095cba
User: Tomas Mysik <tmysik@netbeans.org>
Log: #258028 - OutOfMemoryError: Java heap space

Avoid lexing of huge files.
Comment 6 Tomas Mysik 2016-06-29 07:47:28 UTC
*** Bug 250617 has been marked as a duplicate of this bug. ***