-
Notifications
You must be signed in to change notification settings - Fork 456
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
Stack overflow checkpoint file with binary file #407
Comments
I think this is the same problem as described in #99. The binary files must store all the data for the output file so that it can scale at the end of the simulation and then write the whole file at one time. Text files don't store that data (it gets written at each time step). Stack overflow usually occurs because the code is doing some operation on an array that contains more data than is allowed on the stack at one time. The size of the stack varies by compiler/linker and build options, too. I rewrote the routines where the stack overflow is likely taking place in #373, so you might try that version and see if it is still an issue. |
Thank you for your reply. I have never gotten myself to compiling OpenFAST with windows, only on linux. However, on linux the problem does not occure. Therefore I cannot try your version to see if its an issue. On the other hand, it occurs rarely with long simulation times. A workaround is to choose the text file as output instead of the binary, or dismiss writing out checkpoint files. If it is expected behavior, than I would delete the Bug label and close this issue. |
Bug description
In some cases, writing a checkpoint file in combination with a binary output file leads to a stack overflow. This issue is more likely to happen with an increasing TMax.
To Reproduce
I have been able to reproduce this problem with Test18.
Note that this might be system depended. It does not appear with my own linux-intel compiled executable.
Expected behavior
To my knowledge, the binary is written only at the end of the simulation. It is also much smaller in size than the text file, which is written during the simulation. If anything, I would expect that writing a text file in combination with the checkpoint file leads to a stack overflow, rather than the binary file. However, since the checkpoint files are only about 33 mb in size, I wouldn't expect a stack overflow at all.
Screenshots, if applicable
The text was updated successfully, but these errors were encountered: