rehamaltamimi / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

OutOfMemoryError when title = Depeche Mode #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
http://code.google.com/p/gwtwiki/source/browse/trunk/info.bliki.wiki.test/bliki-
test/src/main/java/info/bliki/api/HTMLCreatorTest.java

use "Depeche Mode" as title

What is the expected output? What do you see instead?
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2882)
    at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
    at java.lang.StringBuilder.append(StringBuilder.java:119)
    at java.lang.StringBuilder.append(StringBuilder.java:167)
    at java.lang.StringBuilder.append(StringBuilder.java:55)
    at info.bliki.wiki.filter.TemplateParser.parseRecursive(TemplateParser.java:67)
    at info.bliki.wiki.filter.TemplateParser.parseTemplate(TemplateParser.java:415)
    at 
info.bliki.wiki.filter.TemplateParser.parseTemplateOrTemplateParameter(TemplateP
arser.java:351
)
    at info.bliki.wiki.filter.TemplateParser.runParser(TemplateParser.java:152)
    at info.bliki.wiki.filter.TemplateParser.parseRecursive(TemplateParser.java:87)
    at info.bliki.wiki.filter.TemplateParser.parseTemplate(TemplateParser.java:415)
    at 
info.bliki.wiki.filter.TemplateParser.parseTemplateOrTemplateParameter(TemplateP
arser.java:351
)
    at info.bliki.wiki.filter.TemplateParser.runParser(TemplateParser.java:152)
    at info.bliki.wiki.filter.TemplateParser.parseRecursive(TemplateParser.java:87)
    at info.bliki.wiki.filter.TemplateParser.parseTemplate(TemplateParser.java:415)
    at 
info.bliki.wiki.filter.TemplateParser.parseTemplateOrTemplateParameter(TemplateP
arser.java:351
)
    at info.bliki.wiki.filter.TemplateParser.runParser(TemplateParser.java:152)
    at info.bliki.wiki.filter.TemplateParser.parseRecursive(TemplateParser.java:87)
    at info.bliki.wiki.filter.TemplateParser.parseTemplate(TemplateParser.java:415)
    at 
info.bliki.wiki.filter.TemplateParser.parseTemplateOrTemplateParameter(TemplateP
arser.java:351
)
    at info.bliki.wiki.filter.TemplateParser.runParser(TemplateParser.java:152)
    at info.bliki.wiki.filter.TemplateParser.parseRecursive(TemplateParser.java:87)
    at info.bliki.wiki.filter.TemplateParser.parseTemplate(TemplateParser.java:415)
    at 
info.bliki.wiki.filter.TemplateParser.parseTemplateOrTemplateParameter(TemplateP
arser.java:351
)
    at info.bliki.wiki.filter.TemplateParser.runParser(TemplateParser.java:152)
    at info.bliki.wiki.filter.TemplateParser.parseRecursive(TemplateParser.java:87)
    at info.bliki.wiki.filter.TemplateParser.parseTemplate(TemplateParser.java:415)
    at 
info.bliki.wiki.filter.TemplateParser.parseTemplateOrTemplateParameter(TemplateP
arser.java:351
)
    at info.bliki.wiki.filter.TemplateParser.runParser(TemplateParser.java:152)
    at info.bliki.wiki.filter.TemplateParser.parseRecursive(TemplateParser.java:87)
    at info.bliki.wiki.filter.TemplateParser.parseTemplate(TemplateParser.java:415)

What version of the product are you using? On what operating system?
bliki-3.0.10.jar Mac OS

Please provide any additional information below.

Original issue reported on code.google.com by sebastia...@gmail.com on 21 Mar 2009 at 12:03

GoogleCodeExporter commented 8 years ago
Did you use the default Java heap space settings?

try something like -Xmx512m as VM arguments?

See:
http://getsatisfaction.com/apple/topics/java_lang_outofmemoryerror_java_heap_spa
ce2

Does this solve the problem?

Original comment by axelclk@gmail.com on 26 Mar 2009 at 9:18

GoogleCodeExporter commented 8 years ago
I already tried increasing the heap

Original comment by sebastia...@gmail.com on 26 Mar 2009 at 9:39

GoogleCodeExporter commented 8 years ago
Problem seems to be, that I don't have implemented the <onlyinclude> tag for 
templates.
http://en.wikipedia.org/wiki/Help:Template#onlyinclude

I will try to add this feature the next days.

If you set Configuration.PARSER_RECURSION_LIMIT = 4 it doesn't create a 
OutOfMemoryError, but of course create a totally wrong rendering.

Original comment by axelclk@gmail.com on 27 Mar 2009 at 8:55

GoogleCodeExporter commented 8 years ago
I added <onlyinclude> tag here:
http://code.google.com/p/gwtwiki/source/detail?r=75

Note: I've changed the Maven pom structure to 3 modules in SVN.
Some files have moved to other places.

Original comment by axelclk@gmail.com on 27 Mar 2009 at 10:13