wilkox / treemapify

🌳 Draw treemaps in ggplot2
http://wilkox.org/treemapify
213 stars 18 forks source link

The same code second run crashes under rJava. #18

Closed linpengcheng closed 6 years ago

linpengcheng commented 6 years ago

Under R 3.4.1, rJava 0.9-9, jdk1.8.121, win7 , The same code, first run successfully, the second run crashes, but at Rstudio, each run succeeds.

An unrecoverable stack overflow has occurred.

A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x2ee3fed6, pid=9032, tid=0x00001790

JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13) Java VM: Java HotSpot(TM) Client VM (25.121-b13 mixed mode windows-x86 ) Problematic frame: C [R.dll+0xbfed6]

Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

An error report file with more information is saved as: x:\hs_err_pid9032.log

If you would like to submit a bug report, please visit: http://bugreport.java.com/bugreport/crash.jsp The crash happened outside the Java Virtual Machine in native code. See problematic frame for where to report the bug.

wilkox commented 6 years ago

Thanks for the bug report @linpengcheng. Unfortunately I think this is a problem with the JRE or rJava, not with the package.

linpengcheng commented 6 years ago

@wilkox Thanks! The operation succeeded by modifying the following JVM options: -Xmn30m
-Xms512m -Xmx1024m -Xss1024k