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.
Summary: | OutOfMemoryError: Java heap space | ||
---|---|---|---|
Product: | javascript | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | agamez73, AvanOsch, gusak80, medeag, mmirilovic, sfritts |
Priority: | P1 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 204344 |
Attachments: | stacktrace |
Description
Exceptions Reporter
2013-10-03 13:49:13 UTC
Created attachment 140760 [details]
stacktrace
When you extract last heapdump with gzip -dc < heapdump-694731.hprof.gz > result.hprof you can see that org.netbeans.modules.editor.hints.ParseErrorAnnotation#77 has some Annotations with 88mb String descriptions like : Expected semicolon ; after "/*Debitore delete - precontrolli jQuery("#debitore_delete").click(function() { var id = jQuery("#jqlist_debitori").jqGrid('getGridParam', 'selrow'); if (id) { var ret = jQuery("#jqlist_debitori").jqGrid('getRowData', id); Debitori_exe('DELETE', ret.anagrafiche_id, ret.qualifica); } else { alert("Seleziona un Debitore"); } }); //Debitore update - precontrolli jQuery("#debitore_update").click(function() { var id = jQuery("#jqlist_debitori").jqGrid('getGridParam', 'selrow'); if (id) { var ret = jQuery("#jqlist_debitori").jqGrid('getRowData', id); Debitori_exe('UPDATE', ret.anagrafiche_id, ret.qualifica); } else { alert("Seleziona un Debitore"); } }); //SEZIONE DEBITORI - FINE // {{{ LEGALI DEI DEBITORI jQuery("#debitorilegali_delete").click(function() This bug already has 100 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=204344 I have went through more then 20 head dumps and all was cased by very big Error token in js file. The problem was that the js parser has better recovery then the coloring lexer. The hints are counted based on the ast. But the hints usually displays the text from the token which is on the error position. So if there were many hints in the long error token, then the text of error token was copied for every hint. After the fix are not created some hints that has are position in the lexical error token. Integrated into 'main-silver', will be available in build *201503250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/55ca41587cc7 User: Petr Pisl <ppisl@netbeans.org> Log: #236700 - OutOfMemoryError: Java heap space *** Bug 249704 has been marked as a duplicate of this bug. *** |