flow9
flow9 copied to clipboard
Win 10 flowcpp sandbox/hello.flow test failed
When I run the test script. The Window appears then disappears by itself. Below is the console.
>flowcpp demos/demos.flow
>python D:\github\flow9\bin\\flowc1 file=demos/demos.flow bytecode=demos.bytecode debug=1
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap
How do I resolve this?
Did you have git lfs installed? If not, then install git lfs from https://git-lfs.github.com.
After that, then do "d:\github\flow9> git lfs pull".
It is related to Java Xmx parameter, not LFS.
Ok I'll look at that. flowjava does work. So I have made progress.
@alstrup Git LFS is installed.
Are you using 64-bit java then?
Yes 64bit
Please post some more information about your system:
-
java -version
- memory volume & CPU information
Next, flowc1
is a Python script, which, in turn, calls Java code. To exclude Python influence, try to run following command from within flow9 folder (it is the same as you're trying to call while running flowc1
):
java -cp platforms/java -jar tools/flowc/flowc.jar bin-dir=./bin/ -- file=demos/demos.flow verbose=1 bytecode=1 server=0
Also, run the same without server=0
(you may want change /
to \
)
It should produce multiple lines like
Parsing...
Typechecking...
Saving...
Verifying...
Anyways, post output (maybe as text file) here and we'll try to help with an issue.