-
Notifications
You must be signed in to change notification settings - Fork 120
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 using the ExternalField block in 3D #668
Comments
Hi |
Hi, Initial fields setup
|
Ok, can you share how you define your external fields please ? |
I use different configurations, here is the simplest one - just with the 3D paraxial Gaussian beam in vacuum. I'm not sure if I also need to set profiles for components equal to 0, but after many crashed I also added these functions (didn't help)
P.S: edited by beck-llr just to make the code a bit more readable. |
You don't have to set other components to 0. Can you reproduce the issue if you set |
Yes, I just tried it - it crashes even with efield_x=0 and bfield_y=0 |
Ok that looks bad indeed :-) |
I run my codes on a supercomputer. This version I uploaded a year ago. |
Update: In version 5.0 I have the same problem with the ExternalField block (previous version was 4.7) |
Please try to use external fields on a smaller case. This is too check whether it is a memory issue. The new file serves as a storage for simulation information. Happi uses it to obtain information about the configuration |
It works in 1D. What do you mean by "smaller case"? Smaller simulation box size? This one isn't big 24x24x32 (in lambda) If possible, one more question wrt info.shelf file. Does it mean that updated happi doesn't work with the old simulation results since it requires info.shelf? |
By smaller case i mean something occupying les memory. Like less particles or lower resolution. The new happi falls back to the previous approach if it can't find the file |
Thank you for your explanation about happi. As to ExternalField block, the test case I reported was related to vacuum, so no particles at all, and the number of cells 384x384x512, which is pretty low wrt my simulation for plasma with Laser or Prescribed field blocks. |
Can you provide a case that crashes? |
vac_ext_zeros.txt If I comment all ExternalField blocks it works (with all zero results), however if all block are uncommented I get |
Thanks for sharing. I was able to reproduce your problem. There seems to be something off with the E fields (it works for the B fields). We'll look into it and let you know asap. |
Thank you. |
I've pushed a fix in our local repository. We'll try to make it available to you tomorrow. Thanks again for reporting and doing all the tests ! |
Thank you again! |
The last commit should fix your issue. Please confirm and close the issue if it does. |
Thank you for fixing this issue. Now it works. |
Dear developers,
I'm running tests with the ExternalField block for various field configurations.
While this works well in 1D, I experienced a segmentation fault in 3D tests. For example, when I use analytical solutions for a 3D Gaussian beam to set the laser in this way. The same field solution installed at the boundary of the simulation box works correctly.
This is what I see in the slurm file
Initial fields setup
[nia1230:54934:0:54934] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x231)
[nia1230:54960:0:54960] Caught signal 11 (Segmentation fault: address not mapped to object at address 0xa1)
[nia0151:253841:0:253841] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x241)
[nia0151:253826:0:253826] Caught signal 11 (Segmentation fault: address not mapped to object at address 0xa1)
[nia0151:253844:0:253844] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x231)
[nia1230:54954:0:54954] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x231)
[nia0151:253840:0:253840] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x231)
[nia1230:54961:0:54961] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x31)
The text was updated successfully, but these errors were encountered: