flow9 icon indicating copy to clipboard operation
flow9 copied to clipboard

Win 10 flowcpp sandbox/hello.flow test failed

Open indiamcq opened this issue 5 years ago • 7 comments

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?

indiamcq avatar May 02 '19 15:05 indiamcq

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".

alstrup avatar May 02 '19 15:05 alstrup

It is related to Java Xmx parameter, not LFS.

VsevolodZakharov avatar May 02 '19 15:05 VsevolodZakharov

Ok I'll look at that. flowjava does work. So I have made progress.

indiamcq avatar May 02 '19 16:05 indiamcq

@alstrup Git LFS is installed.

indiamcq avatar May 02 '19 16:05 indiamcq

Are you using 64-bit java then?

alstrup avatar May 02 '19 16:05 alstrup

Yes 64bit

indiamcq avatar May 02 '19 16:05 indiamcq

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.

dmitrys99 avatar May 03 '19 05:05 dmitrys99