Empty INCAR causes (harmless) crash with new HDF5

Problems running VASP: crashes, internal errors, "wrong" results.


Moderators: Global Moderator, Moderator

Locked
Message
Author
daniel_marchand
Newbie
Newbie
Posts: 3
Joined: Tue Aug 29, 2023 1:35 pm

Empty INCAR causes (harmless) crash with new HDF5

#1 Post by daniel_marchand » Tue Mar 19, 2024 2:33 pm

Hi Everyone,

I've noticed that running an empty INCAR with the new HDF5 module will cause a HDF5 error

-----------------------------------------------------------------------------
| _ ____ _ _ _____ _ |
| | | | _ \ | | | | / ____| | | |
| | | | |_) | | | | | | | __ | | |
| |_| | _ < | | | | | | |_ | |_| |
| _ | |_) | | |__| | | |__| | _ |
| (_) |____/ \____/ \_____| (_) |
| |
| internal error in: vhdf5_base.F at line: 2309 |
| |
| HDF5 call in vhdf5_base.F:2309 produced error: 1 |
| |
| If you are not a developer, you should not encounter this problem. |
| Please submit a bug report. |
| |
-----------------------------------------------------------------------------

I'm guessing this is probably some minor edge-case that would not be difficult to fix in the source code. Interestingly adding even a single line, e.g., GGA = PE, will remove the error.

Perhaps also might be worth considering making VASP more strict about having an empty INCAR.

andreas.singraber
Global Moderator
Global Moderator
Posts: 236
Joined: Mon Apr 26, 2021 7:40 am

Re: Empty INCAR causes (harmless) crash with new HDF5

#2 Post by andreas.singraber » Mon Mar 25, 2024 3:45 pm

Hello!

Thank you very much for this report, I was able to reproduce this unexpected behavior. Even if there is only a single character (space or '#') in the file it still works, but a completely empty file causes this crash. This should definitely not happen and we will write a fix which should be part of the next release. Sorry for any inconvenience this may have caused!

All the best,
Andreas Singraber

Locked