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

Win 10 flowcpp sandbox/hello.flow test failed #213

Open
indiamcq opened this issue May 2, 2019 · 7 comments
Open

Win 10 flowcpp sandbox/hello.flow test failed #213

indiamcq opened this issue May 2, 2019 · 7 comments

Comments

@indiamcq
Copy link

indiamcq commented May 2, 2019

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?

@alstrup
Copy link
Contributor

alstrup commented May 2, 2019

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

@VsevolodZakharov
Copy link
Contributor

It is related to Java Xmx parameter, not LFS.

@indiamcq
Copy link
Author

indiamcq commented May 2, 2019

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

@indiamcq
Copy link
Author

indiamcq commented May 2, 2019

@alstrup Git LFS is installed.

@alstrup
Copy link
Contributor

alstrup commented May 2, 2019

Are you using 64-bit java then?

@indiamcq
Copy link
Author

indiamcq commented May 2, 2019

Yes 64bit

@dmitrys99
Copy link
Contributor

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.

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

4 participants