Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackOverflowException in MarkdownParser when running sbt under Java 8. #143

Closed
metasim opened this issue Apr 21, 2015 · 8 comments
Closed

Comments

@metasim
Copy link
Member

metasim commented Apr 21, 2015

As of 7f98941, running makeSite causes a StackOverflowException in:

com.tristanhunt.knockoff.ChunkParser$$anon$1.findEnd(MarkdownParsing.scala:270)

Obviously not really a bug in the documentation, but logging since the docs can't be built until fixed.

Top of the stack trace:

java.lang.StackOverflowError
    at java.util.regex.Pattern.compile(Pattern.java:1683)
    at java.util.regex.Pattern.<init>(Pattern.java:1351)
    at java.util.regex.Pattern.compile(Pattern.java:1028)
    at scala.util.matching.Regex.<init>(Regex.scala:153)
    at scala.collection.immutable.StringLike$class.r(StringLike.scala:224)
    at scala.collection.immutable.StringOps.r(StringOps.scala:31)
    at scala.collection.immutable.StringLike$class.r(StringLike.scala:213)
    at scala.collection.immutable.StringOps.r(StringOps.scala:31)
    at com.tristanhunt.knockoff.ChunkParser$$anon$1.findEnd(MarkdownParsing.scala:261)
    at com.tristanhunt.knockoff.ChunkParser$$anon$1.findEnd(MarkdownParsing.scala:270)
    at com.tristanhunt.knockoff.ChunkParser$$anon$1.findEnd(MarkdownParsing.scala:270)
    at com.tristanhunt.knockoff.ChunkParser$$anon$1.findEnd(MarkdownParsing.scala:270)
@metasim
Copy link
Member Author

metasim commented Apr 21, 2015

Context:

> about
[info] This is sbt 0.13.7
[info] The current project is {file:/Users/sfitch/Coding/OSS/sbt-website/}root 0.1-SNAPSHOT
[info] The current project is built against Scala 2.10.4
[info] Available Plugins: sbt.plugins.IvyPlugin, sbt.plugins.JvmPlugin, sbt.plugins.CorePlugin, sbt.plugins.JUnitXmlReportPlugin, sbtmeow.SbtMeowPlugin, sbtsh.ShPlugin, net.virtualvoid.sbt.graph.Plugin, com.typesafe.sbt.SbtSite, com.typesafe.sbt.SbtGhPages, com.typesafe.sbt.SbtGit
> plugins
In file:/Users/sfitch/Coding/OSS/sbt-website/
    sbt.plugins.IvyPlugin: enabled in root
    sbt.plugins.JvmPlugin: enabled in root
    sbt.plugins.CorePlugin: enabled in root
    sbt.plugins.JUnitXmlReportPlugin: enabled in root
    sbtmeow.SbtMeowPlugin: enabled in root
    sbtsh.ShPlugin: enabled in root

@metasim
Copy link
Member Author

metasim commented Apr 21, 2015

Something else is going on, as I still have the problem when checking out as far back as 91e7894 (Feb 17).

@eed3si9n
Copy link
Member

I'm not seeing the problem. I just pushed the site right now to check.

@metasim
Copy link
Member Author

metasim commented Apr 21, 2015

sbt output from running ;reload; clean; makeSite

[info] generated /Users/sfitch/Coding/OSS/sbt-website/target/redirect/Examples/Advanced-Command-Example.html that links to ../Advanced-Command-Example.html
Error while processing /Users/sfitch/Coding/OSS/sbt-website/src/reference/01-General-Info/04-Bintray-For-Plugins.md
[info] Loading site data… done
[info] Compiling site…
[info]       create  [0.00s]  ../../target/nanoc/assets/arc.js
[info]       create  [0.00s]  ../../target/nanoc/assets/bootstrap-theme.min.css
[info]       create  [0.00s]  ../../target/nanoc/assets/bootstrap.min.js
[info]       create  [0.00s]  ../../target/nanoc/assets/bootstrap_style.min.css
[info]       create  [0.00s]  ../../target/nanoc/assets/community-support.svg
[info]       create  [0.08s]  ../../target/nanoc/community.html
[info]       create  [0.01s]  ../../target/nanoc/documentation.html
[info]       create  [0.01s]  ../../target/nanoc/download.html
[info]       create  [0.00s]  ../../target/nanoc/assets/favicon.ico
[info]       create  [0.00s]  ../../target/nanoc/assets/github-logo-teal.png
[info]       create  [0.00s]  ../../target/nanoc/assets/github-logo.png
[info]       create  [0.00s]  ../../target/nanoc/assets/glyphicons-halflings-regular.svg
[info]       create  [0.01s]  ../../target/nanoc/index.html
[info]       create  [0.00s]  ../../target/nanoc/assets/jquery.min.js
[info]       create  [0.00s]  ../../target/nanoc/assets/stylesheet.css
[info]       create  [0.00s]  ../../target/nanoc/assets/twitter-logo-teal.png
[info]       create  [0.00s]  ../../target/nanoc/assets/twitter-logo-white.png
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe-logo-reverse.svg
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe_color_reverse.svg
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe_full_color.svg
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe_icon_full_color.svg
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe_icon_reverse.svg
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe_reverse.svg
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe_sbt_color_reverse_png.png
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe_sbt_color_reverse_svg.svg
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe_sbt_png.png
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe_sbt_reverse.svg
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe_sbt_reverse_png.png
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe_sbt_reverse_svg.svg
[info]       create  [0.00s]  ../../target/nanoc/assets/typesafe_sbt_svg.svg
[info]       create  [0.00s]  ../../target/nanoc/assets/wrench-1000-center-navy.png
[info] 
[info] Site compiled in 0.22s.
Error while processing java.lang.StackOverflowError
[trace] Stack trace suppressed: run last reference:mappings for the full output.
[trace] Stack trace suppressed: run last tutorial:mappings for the full output.
[error] (reference:mappings) java.lang.StackOverflowError
[error] (tutorial:mappings) java.lang.StackOverflowError

@metasim
Copy link
Member Author

metasim commented Apr 21, 2015

Note: I installed all the ruby bits per README.md.

@eed3si9n
Copy link
Member

I'm using Java 7. -Xmx2G -XX:MaxPermSize=512M -Dfile.encoding=UTF-8.

@metasim
Copy link
Member Author

metasim commented Apr 21, 2015

Me:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)

Will try with your options and Java 7.

@metasim metasim changed the title StackOverflowException in MarkdownParser StackOverflowException in MarkdownParser when running sbt under Java 8. Apr 21, 2015
@metasim
Copy link
Member Author

metasim commented Apr 21, 2015

Works with Java 7 (confirmed using sbt -java-home <jdk7-path>)! Issue should probably be filed against sbt-site or pamphlet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants