You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just started using this library, version 2.3.0, currently only using reader's read_row in a simple loop to read each line and print out, it can handle 99.99% of csv files correctly.
But there are some files reading rows will throw terminate called after throwing an instance of 'std::error_code' error, directly resulting in Aborted(core dumped), After pop_front:
, the program aborts. After two days of testing, I have found this occurs only during execution, and reproduce every time it encounter a fixed line in the csv file, but it is ok when I debug it.
I realized it might be a multithreading issue, I add std::this_thread::sleep_for(std::chrono::milliseconds(1)); after
Now it's fine to read all csvs.
But I still don't understand the cause of this problem. Why is the read_csv thread not active? Does pop_front cause core dumping before read_csv thread is ready?
Sorry I couldn't provide the csv that would reproduce the problem.
The text was updated successfully, but these errors were encountered:
I just started using this library, version 2.3.0, currently only using reader's read_row in a simple loop to read each line and print out, it can handle 99.99% of csv files correctly.
But there are some files reading rows will throw terminate called after throwing an instance of 'std::error_code' error, directly resulting in Aborted(core dumped), After pop_front:
csv-parser/single_include/csv.hpp
Line 7628 in 9f8a721
I realized it might be a multithreading issue, I add
std::this_thread::sleep_for(std::chrono::milliseconds(1));
aftercsv-parser/single_include/csv.hpp
Line 7613 in 9f8a721
Now it's fine to read all csvs.
But I still don't understand the cause of this problem. Why is the read_csv thread not active? Does pop_front cause core dumping before read_csv thread is ready?
Sorry I couldn't provide the csv that would reproduce the problem.
The text was updated successfully, but these errors were encountered: