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

Segmentation fault at start #1

Open
zuf opened this issue Apr 26, 2012 · 2 comments
Open

Segmentation fault at start #1

zuf opened this issue Apr 26, 2012 · 2 comments

Comments

@zuf
Copy link

zuf commented Apr 26, 2012

Hello.

I have segfault when I try run it on Linux (x86_64)

gdb says this:

Program received signal SIGSEGV, Segmentation fault.
0x000000000041999e in GLFFTWater::phillips (this=0x936cb0, kx=-4.00553083, ky=-4.00553083, 
    w=@0x0: <error reading variable>) at src/glfftwater.cpp:91
91      w = powf((9.81*sqrtf(kk)),1.0f); //compute the dispersion relation
@psastras
Copy link
Owner

Cant repro on my Linux x86_64 machine. Might be due to not supporting posix_memalign. No reason to use it so I switched it to regular c++ news - see if it works?

@zuf
Copy link
Author

zuf commented May 2, 2012

Ok thank you. Now I can start it on OpenGL 4 compatible hardware.
Thank you!

There two small issues:

  1. On older hardware (that only supports OpenGL 3.3) this get crush without any warnings.
  2. Seems like you miss unistd.h in main.cpp. It needed for getpid().

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

2 participants