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 243449 - OOM when parsing simple file from codemirror
Summary: OOM when parsing simple file from codemirror
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 241863 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-01 13:07 UTC by Petr Pisl
Modified: 2014-06-04 02:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The file, where the problem can be reproduce (2.53 KB, application/javascript)
2014-04-01 13:07 UTC, Petr Pisl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2014-04-01 13:07:59 UTC
Created attachment 146471 [details]
The file, where the problem can be reproduce

Open the attached file. There is endless cycle and this causes OOM.
Comment 1 Petr Pisl 2014-04-01 21:32:22 UTC
This can be reproduced simple with this code:

function f1 (p1) {
    p1.x = f2;
}

function f2 (p1) {
    p1.x = f1;
}
Comment 2 Petr Pisl 2014-04-04 06:21:55 UTC
Fixed in web-main
http://hg.netbeans.org/web-main/rev/bec3c5c5e0f3
Comment 3 Petr Pisl 2014-04-04 08:59:45 UTC
*** Bug 241863 has been marked as a duplicate of this bug. ***
Comment 4 Quality Engineering 2014-04-05 03:27:55 UTC
Integrated into 'main-silver', will be available in build *201404050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bec3c5c5e0f3
User: Petr Pisl <ppisl@netbeans.org>
Log: #243449 - OOM when parsing simple file from codemirror
Comment 5 Vladimir Riha 2014-04-11 06:11:02 UTC
Cannot reproduced, verified

Product Version: NetBeans IDE Dev (Build 201404100001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 6 Petr Pisl 2014-04-17 08:28:54 UTC
Transplanted to the releases/release80 as part of patch1.
Comment 7 Quality Engineering 2014-04-24 02:16:17 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/454b8916a57c
User: Petr Pisl <ppisl@netbeans.org>
Log: #243449 - OOM when parsing simple file from codemirror
Comment 8 Vladimir Riha 2014-04-24 11:23:22 UTC
Cannot reproduce in patch1, verified

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 9 Quality Engineering 2014-06-04 02:14:08 UTC
Integrated into 'main-silver', will be available in build *201406040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/45ff258293f0
User: Petr Pisl <ppisl@netbeans.org>
Log: #243449 - OOM when parsing simple file from codemirror