Assertion `nbytes % 8 == 0' failed
Posted: Fri Jul 24, 2015 12:02 am
Occasionally, I met the error "qb: XMLGFPreprocessor.C:1046: int XMLGFPreprocessor::process(const char *, DoubleMatrix &, std::basic_string<char, std::char_traits<char>, std::allocator<char>> &, bool): Assertion `nbytes % 8 == 0' failed.".
Sorry that I do not know how to trigger this error exactly, because it seems appearing randomly, but not often.
There can be two cases:
Case 1: I simply did the restart again using the old saved XML file, the error was gone.
Case 2: It seemed the old XML file was broken, because the debug message showed:
"0: iseg=110 dbufsize=265786
1: iseg=95 nbytes=1504628
qbox.x: XMLGFPreprocessor.C:1046: int XMLGFPreprocessor::process(const char *, DoubleMatrix &, std::basic_string<char, std::char_traits<char>, std::allocator<char>> &, bool): Assertion`nbytes % 8 == 0' failed."
I guess for both cases the error is mainly caused by computer clusters themselves. Something may be wrong during data I/O. Any comments? Thank you!
Sorry that I do not know how to trigger this error exactly, because it seems appearing randomly, but not often.
There can be two cases:
Case 1: I simply did the restart again using the old saved XML file, the error was gone.
Case 2: It seemed the old XML file was broken, because the debug message showed:
"0: iseg=110 dbufsize=265786
1: iseg=95 nbytes=1504628
qbox.x: XMLGFPreprocessor.C:1046: int XMLGFPreprocessor::process(const char *, DoubleMatrix &, std::basic_string<char, std::char_traits<char>, std::allocator<char>> &, bool): Assertion`nbytes % 8 == 0' failed."
I guess for both cases the error is mainly caused by computer clusters themselves. Something may be wrong during data I/O. Any comments? Thank you!