-
Notifications
You must be signed in to change notification settings - Fork 3
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 when Converting a larger .neu File with PumGen #77
Comments
Hi, having a run with gdb (if feasible) on the latest PUMgen version would be great. (if it's feasible with your given memory config) One backtrack should probably give a good hint where the problem may lie. (v1.0.1 may just fail due to the dependency on PUMI—it may consume too much memory due to that) |
Hi, this is the backtrace from gdb
|
Thanks for the backtrack! I got an idea where the problem could lie... At least partially. Somehow it reads an element ID that's larger than the total element count (which causes it to want to transfer it to a non-existing higher rank—thus causing an element Sorry if I'm asking a lot; but is there a possibility to get to the neutral file somehow? |
Sure give me a few |
Here you go, it should decompress to 15233MBs |
Thank you for it! I could reproduce the bug locally. |
Debugged a bit—but it may be a problem of the file alas (or the program that wrote it—looks like FORTRAN to me?): seemingly, it only supports 7 or 8-digit numbers for output; but we need 9 digits here. In fact, the first error occurs here:
The stars will be read as "zero" which, when seen in a 1-based representation causes the bug (i.e. we set it to 2**64 - 1). The asterisks are also printed for the element number (even if non-breaking in that case). To be absolutely certain, in case it's not known: we do have a direct Simmodeler integration to PUMgen, if that could be of use. |
Oh even in the elements section "ELEMENTS/CELLS 1.2.1" it seems to be limited by number of digits in the cell index after 7 digits it seems to write over the white space,
I'll create a support ticket with Simmetrix then I would like to use Simmodeler integration but was having issues with compiling PUMI with SimModeler v2024.0-240519 there seems to have been a breaking change in the API so it refuses to compile both with version 2.2.7 and 2.2.8. |
Oh, I see. I wasn't aware it was an optional dependency. I'll try compiling PUMGen without PUMI and see if that works. Thank you so much! Should I close this issue? |
Glad to help! Yeah, it can be closed. Let me do that real quick; the only thing that we could add are more proper error messages in these cases (i.e. some field is covered by asterisks). Or in case Simmodeler supports some other file format that we could parse. |
I've encountered another issue while attempting to convert a .neu file generated with SimModeler v2024.0-240519 using PumGen. The mesh is larger this time (about 28 GB), and it causes a segmentation fault in both the latest version and v1.0.1 of PumGen. I can provide the mesh if that would be helpful.
I compiled pumgen without simmetrix support using the following library versions:
I can run this with gdb or a debug build if you think it would be useful.
The text was updated successfully, but these errors were encountered: