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

Issue will running 2fallingcubes example. #3

Closed
nburgessCarbon opened this issue Jul 10, 2020 · 8 comments
Closed

Issue will running 2fallingcubes example. #3

nburgessCarbon opened this issue Jul 10, 2020 · 8 comments

Comments

@nburgessCarbon
Copy link

Hello,
When running the 2cubesFall.txt example. I get the following error : X11: The DISPLAY environment variable is missingThe GLFW library is not initializedThe GLFW library is not initializedThe GLFW library is not initializedSegmentation fault (core dumped). I think the problem may be that I'm running on a remote machine using a non-x11 terminal. Is there a way to disable the viz and have IPC dump files I can read in later?

@zfergus
Copy link
Member

zfergus commented Jul 11, 2020

Yes, you can use the option-DIPC_WITH_OPENGL=OFF with cmake or set it interactively with ccmake. The output files will be dumped into an output directory located in the directory you run IPC from.

@binoyp
Copy link

binoyp commented Jul 12, 2020

Hi ,

I recompiled with -DIPC_WITH_OPENGL=OFF. But i am getting following message instead of GLFW
[2020-07-12 14:05:54.377] [critical] Not offiline mode supported only with opengl Segmentation fault (core dumped)

@zfergus
Copy link
Member

zfergus commented Jul 12, 2020

Ah, I forgot to mention that in order to run without the viewer you have to change the first argument to the IPC_bin. If the first argument is 10 it runs with the viewer and if it is 100 it runs without. If you compile with -DIPC_WITH_OPENGL=OFF then the only valid option is 100.

If you are using batch.py then change line 30 to:

runCommand += progPath + ' 100 ' + inputFolderPath + inputModelNameI + ' t' + numOfThreads

I will add a cmd-line option to that script to make it easier to choose.

@zfergus
Copy link
Member

zfergus commented Jul 12, 2020

I forgot to mention in my original reply that you only need to compile with -DIPC_WITH_OPENGL=OFF if your system does not have the necessary OpenGL libraries installed. If the compilation works with -DIPC_WITH_OPENGL=ON, then you can still run without the viewer using the above method.

@zfergus
Copy link
Member

zfergus commented Jul 12, 2020

In my latest commit (a02cad1), I added an --offline option to batch.py that runs IPC in offline mode. I also updated the README with the information I wrote above.

@nburgessCarbon
Copy link
Author

Thanks Zach, I'll be trying that tomorrow when I get to work.

@binoyp
Copy link

binoyp commented Jul 13, 2020

Thank you, It worked.

@nburgessCarbon
Copy link
Author

Thanks Zach, everything works great now.

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

3 participants