-
Notifications
You must be signed in to change notification settings - Fork 122
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
gap_fit config_file with carriage returns breaks writing of potential #664
Comments
@albapa or @Sideboard - would one of you be willing to take a look at this? |
I only have my one example, but I'd expect that you should be able to reproduce it with any
in case some other feature in there (e.g. the quotes in the |
I have tried to reproduce it with a small training XYZ of Ti, and kept the format of your I am wondering if there is something specific about the carriage returns you are using - could it be some sort of DOS/Windows CR problem? |
Should I look at it as well? |
No Windows were involved. I create the file on Linux with
and then run |
I guess it'd probably be easy enough to add "-g" to the FoX compilation, which is where the error happens, and is currently missing from the stack trace. |
A more complete stack trace now
I'll investigate more. |
The deepest line (m_common_buffer.F90:221) is indeed in a bit of code that says something about writing a newline. |
From the way my debug prints are going, I think there's just some memory corruption. Maybe a gfortran version issue? Basically, the literal strings in my debugging prints are replaced with other text in the output. |
I found my actual debugging statements. They're OK. There's definitely something fishy with FoX, though. They make a big deal out of having a max record length between newlines, but the code that dies seems to ignore all that reasoning and just dump an arbitrarily long string if it finds a newline inside the string. |
See also andreww/fox#82 |
That issue has my proposed fix to FoX, which seems to work, and I'm trying |
|
I see... So it's not just the line breaks, but also the line lengths. Rather than relying on a FoX PR, I am happy to do push the |
I'm happy with the |
Haven't had much contact with the FoX author so I think we should make our own fix independenlty. |
Should we just fork it, if the original repo is basically inactive? I'll think about it a bit more, but I'm now reasonably confident of the fix I suggested in that issue. |
If you create
config_file
that has carriage returns, it seems to work at the stage of generating the potential, but when it tries to write the command line into thetmp_...
xml file, there is an error in FoXThe end of the
tmp_...
file isI can work around that by doing
gap_fit $( cat config_file )
instead ofgap_fit config_file=config_file
, but it'd be nice if that code removed the carriage returns in the command line that it saves in the xml fileThe text was updated successfully, but these errors were encountered: