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 have been using CSVReader in a function like this:
voidload_trajectory_dataset(std::string& trajectory_dataset_path, TrajectoryDataset& trajectory_dataset) {
csv::CSVFormat format;
format.delimiter(',')
.header_row(0);
/* Create Reader */
csv::CSVReader reader(trajectory_dataset_path, format);
/* Value for each row */
integer_type user;
floating_point_type latitude, longitude, timestamp;
/* Iterate all rows */for (csv::CSVRow& row: reader) {
user = row["user"].get<integer_type>();
latitude = row["latitude"].get<floating_point_type>();
longitude = row["longitude"].get<floating_point_type>();
timestamp = row["timestamp"].get<floating_point_type>();
/* Save information */
trajectory_dataset[user].emplace_back(latitude, longitude, timestamp);
}
}
When returning from this function, a Segmentation Fault is encountered in the destructor of csv::internals::ThreadSafeDequecsv::CSVRow, csv::internals::ThreadSafeDequecsv::CSVRow::~ThreadSafeDeque. The LLDB back trace is as follows:
I was wondering whether pointers were used in csv::internals::ThreadSafeDeque, but I couldn't find any when I read csv::internals::ThreadSafeDeque at csv.hpp:5903:15 . What else could be the cause of the invalid address?
The text was updated successfully, but these errors were encountered:
Closing because nobody else has reported this issue. A segfault involving 0x0 during object destruction in an object that uses the implicitly-defined C++ destructor is unlikely a problem with this library's code.
I have been using CSVReader in a function like this:
When returning from this function, a Segmentation Fault is encountered in the destructor of csv::internals::ThreadSafeDequecsv::CSVRow, csv::internals::ThreadSafeDequecsv::CSVRow::~ThreadSafeDeque. The LLDB back trace is as follows:
I was wondering whether pointers were used in csv::internals::ThreadSafeDeque, but I couldn't find any when I read csv::internals::ThreadSafeDeque at csv.hpp:5903:15 . What else could be the cause of the invalid address?
The text was updated successfully, but these errors were encountered: