bhauman / lein-figwheel

Figwheel builds your ClojureScript code and hot loads it into the browser as you are coding!
Eclipse Public License 1.0
2.88k stars 208 forks source link

StackOverflowError if launching figwheel-sidecar.repl-api/start-figwheel! within CIDER #549

Closed vemv closed 7 years ago

vemv commented 7 years ago

Hi!

(figwheel-sidecar.repl-api/start-figwheel!) works well on plain terminal lein repl.

But if I invoke that same code within CIDER context, I'll get a StackOverflowError, with a stack trace such as: https://gist.github.com/vemv/f3992d317a2ee72be9626a7b62ac08af

Looks like a compiler bug, or a buggy interaction between the compiler and FW.

I could imagine that there isn't much you can work out from the stacktrace, but maybe you can give me a hint for gathering useful debug info?

Cheers - Victor

vemv commented 7 years ago

I had forgotten that a StackOverflowError is a kind of OOM!

Fixed by setting :jvm-opts ["-Xmx6g"]